/*
 * Word Lozenge: components
 * Needs tokens.css first. Every class starts with "wl-" so it can sit next to any other CSS.
 */

/* Base */
.wl { margin: 0; background: var(--wl-paper); color: var(--wl-ink); font-family: var(--wl-sans); font-size: var(--wl-text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wl *, .wl *::before, .wl *::after { box-sizing: border-box; }
:where(.wl) a { color: inherit; }
.wl-container { width: min(100% - 2 * var(--wl-gutter), var(--wl-container)); margin-inline: auto; }
.wl-narrow { width: min(100% - 2 * var(--wl-gutter), var(--wl-narrow)); margin-inline: auto; }
.wl-section { padding-block: var(--wl-section); }
.wl-section--greige { background: var(--wl-greige); }
.wl-section--cobalt { background: var(--wl-cobalt); color: var(--wl-white); }
.wl-section--cobalt .wl-lead { color: rgba(255, 255, 255, .82); }
.wl-rule { height: 1px; margin: 0; border: 0; background: var(--wl-line); }

/* Type */
.wl-serif { font-family: var(--wl-serif); font-weight: 400; letter-spacing: -.02em; }
.wl-italic { font-family: var(--wl-serif); font-style: italic; font-weight: 400; }
.wl-h2, .wl-h3 { margin: 0; font-weight: 400; }
.wl-h2 { font-size: var(--wl-text-h2); letter-spacing: var(--wl-tracking-h2); line-height: 1; }
.wl-h3 { font-size: var(--wl-text-h3); letter-spacing: -.02em; line-height: 1.15; }
.wl-lead { max-width: 560px; margin: 18px 0 0; color: var(--wl-soft); font-size: var(--wl-text-lead); line-height: 1.5; }
.wl-kicker { display: block; color: var(--wl-ink); font-size: 18px; line-height: 1.15; }
.wl-kicker + .wl-serif { display: block; font-size: 24px; line-height: 1.1; }
.wl-mono { font-family: var(--wl-mono); font-size: var(--wl-text-micro); letter-spacing: .06em; text-transform: uppercase; }
.wl-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

/* The burst: a black eight-point star, inline with text or as a bullet */
.wl-burst { display: inline-block; width: .78em; height: .78em; flex: none; vertical-align: -.04em; background: currentColor; clip-path: polygon(50% 0, 59% 29%, 85% 15%, 71% 41%, 100% 50%, 71% 59%, 85% 85%, 59% 71%, 50% 100%, 41% 71%, 15% 85%, 29% 59%, 0 50%, 29% 41%, 15% 15%, 41% 29%); }
.wl-burst--sm { width: 10px; height: 10px; vertical-align: 0; }

/* Lozenge: a thin outline pill wrapped around a word or phrase */
.wl-lozenge { display: inline-flex; align-items: center; gap: .12em; padding: 0 .3em .04em .22em; border: var(--wl-hair); border-radius: var(--wl-radius-pill); line-height: 1; }
.wl-lozenge--blush { border-color: transparent; background: var(--wl-blush); }

/* Shade chip: a small gradient tile that sits between words like a photo */
.wl-chip { display: inline-block; width: .9em; height: 1.1em; margin-inline: .08em; vertical-align: -.08em; border-radius: var(--wl-radius-chip); background: var(--wl-shade-1); }
.wl-chip--2 { background: var(--wl-shade-2); }
.wl-chip--3 { background: var(--wl-shade-3); }
.wl-chip--4 { background: var(--wl-shade-4); }

/* Nav: small and quiet, sits on top of the masthead */
.wl-nav { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-block: 16px; }
.wl-nav__brand { font-family: var(--wl-serif); font-size: 22px; line-height: 1; text-decoration: none; }
.wl-nav__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 14px; }
.wl-nav__links a { text-decoration: none; }
.wl-nav__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wl-nav__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; }
.wl-nav--light { color: var(--wl-white); }

/* Masthead: greige panel, soft light, the wordmark across the full width */
.wl-mast { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 72% 80%, var(--wl-greige-2), transparent 70%), radial-gradient(60% 70% at 20% 10%, #f1ede7, transparent 70%), var(--wl-greige); color: var(--wl-white); }
.wl-mast__word { margin: clamp(12px, 3vw, 40px) 0 0; font-family: var(--wl-serif); font-size: var(--wl-text-mast); font-weight: 400; letter-spacing: var(--wl-tracking-mast); line-height: .82; white-space: nowrap; text-shadow: 0 1px 30px rgba(60, 50, 40, .08); }
.wl-mast__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: clamp(32px, 6vw, 80px) 28px; }
.wl-mast__blurb { max-width: 300px; margin: 0 0 14px; font-size: 13px; line-height: 1.4; }
.wl-mast__object { position: absolute; right: 12%; bottom: -40px; width: clamp(120px, 18vw, 240px); aspect-ratio: 3 / 4; border-radius: 48% 48% 12px 12px; background: var(--wl-shade-1); opacity: .9; }
.wl-mast__object::after { content: ""; position: absolute; left: 30%; top: -18%; width: 40%; height: 26%; border-radius: 10px 10px 4px 4px; background: var(--wl-ink); }

/* Statement: the run-on headline that mixes the grotesk and the serif */
.wl-statement { margin: 0; font-size: var(--wl-text-statement); font-weight: 400; letter-spacing: var(--wl-tracking-statement); line-height: 1.02; }
.wl-statement .wl-serif { letter-spacing: -.03em; }
.wl-statement .wl-lozenge { margin-block: .04em; }
.wl-statement__aside { display: inline-flex; vertical-align: middle; max-width: 120px; margin-left: 12px; font-size: 12px; letter-spacing: 0; line-height: 1.25; }

/* Dot pager: a column of small rings at the page edge */
.wl-pager { position: fixed; left: 10px; top: 50%; z-index: 3; display: grid; gap: 7px; transform: translateY(-50%); }
.wl-pager span { width: 7px; height: 7px; border: 1px solid var(--wl-stone); border-radius: 50%; }
.wl-pager span.is-on { border-color: var(--wl-ink); background: var(--wl-ink); }

/* Buttons: thin outline pills. Ink fill for the one main action */
.wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; border: 1px solid var(--wl-ink); border-radius: var(--wl-radius-pill); background: transparent; color: var(--wl-ink); font-family: var(--wl-sans); font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--wl-ease), color .2s var(--wl-ease); }
.wl-btn:hover { background: var(--wl-ink); color: var(--wl-paper); }
.wl-btn--solid { background: var(--wl-ink); color: var(--wl-paper); }
.wl-btn--solid:hover { background: var(--wl-soft); border-color: var(--wl-soft); }
.wl-btn--light { border-color: rgba(255, 255, 255, .8); color: var(--wl-white); }
.wl-btn--light:hover { background: var(--wl-white); color: var(--wl-ink); }
.wl-btn--lg { padding: 13px 26px; font-size: 16px; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Section head: two-line label on the left, an outline button on the right */
.wl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

/* Look cards: big rounded tiles with their own color and type inside */
.wl-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 44%); gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.wl-look { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 340px; padding: 24px; overflow: hidden; border-radius: var(--wl-radius); background: var(--wl-greige); color: var(--wl-ink); text-decoration: none; }
.wl-look--ink { background: var(--wl-ink); color: var(--wl-paper); }
.wl-look--cobalt { background: var(--wl-cobalt); color: var(--wl-white); }
.wl-look--blush { background: var(--wl-blush); }
.wl-look__title { margin: 0; font-family: var(--wl-serif); font-size: clamp(34px, 4vw, 52px); font-weight: 400; letter-spacing: -.03em; line-height: .95; }
.wl-look__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.wl-look__swatches { display: flex; gap: 6px; }
.wl-look__swatches i { width: 28px; height: 36px; border-radius: var(--wl-radius-chip); background: var(--wl-shade-1); }
.wl-look__swatches i:nth-child(2) { background: var(--wl-shade-2); }
.wl-look__swatches i:nth-child(3) { background: var(--wl-shade-3); }
.wl-look__swatches i:nth-child(4) { background: var(--wl-shade-4); }

/* Index list: numbered rows with thin rules, for steps and features */
.wl-index { margin: 0; padding: 0; list-style: none; border-top: var(--wl-border); }
.wl-index li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-block: 22px; border-bottom: var(--wl-border); }
.wl-index__n { padding-top: 6px; color: var(--wl-faint); }
.wl-index p { margin: 6px 0 0; color: var(--wl-soft); }

/* Badges */
.wl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: var(--wl-hair); border-radius: var(--wl-radius-pill); font-size: 12px; white-space: nowrap; }
.wl-badge--blush { border-color: transparent; background: var(--wl-blush); }
.wl-badge--ink { border-color: transparent; background: var(--wl-ink); color: var(--wl-paper); }

/* Quote */
.wl-quote { margin: 0; font-family: var(--wl-serif); font-size: clamp(30px, 4vw, 54px); letter-spacing: -.025em; line-height: 1.05; }
.wl-quote cite { display: block; margin-top: 20px; font-family: var(--wl-sans); font-size: 14px; font-style: normal; color: var(--wl-soft); letter-spacing: 0; }

/* Forms: underlined fields, labels in small grotesk */
.wl-form { display: grid; gap: 22px; }
.wl-field { display: grid; gap: 6px; }
.wl-label { font-size: 13px; font-weight: 500; }
.wl-input, .wl-select, .wl-textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--wl-ink); border-radius: 0; background: transparent; color: var(--wl-ink); font-family: var(--wl-sans); font-size: 18px; outline: none; }
.wl-input::placeholder, .wl-textarea::placeholder { color: var(--wl-faint); }
.wl-input:focus, .wl-select:focus, .wl-textarea:focus { border-bottom-width: 2px; padding-bottom: 9px; }
.wl-help { color: var(--wl-faint); font-size: 12px; }
.wl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-choice { position: relative; }
.wl-choice input { position: absolute; opacity: 0; }
.wl-choice span { display: inline-flex; padding: 7px 14px; border: var(--wl-hair); border-radius: var(--wl-radius-pill); font-size: 14px; cursor: pointer; white-space: nowrap; }
.wl-choice input:checked + span { border-color: var(--wl-ink); background: var(--wl-ink); color: var(--wl-paper); }
.wl-choice input:focus-visible + span { outline: 2px solid var(--wl-cobalt); outline-offset: 2px; }
.wl-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--wl-soft); }
.wl-check input { margin-top: 3px; accent-color: var(--wl-ink); }

/* Pricing: three tall columns divided by thin rules, the featured one in blush */
.wl-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--wl-ink); }
.wl-plan { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 32px; border-bottom: var(--wl-border); }
.wl-plan + .wl-plan { border-left: var(--wl-border); }
.wl-plan--featured { background: var(--wl-blush-soft); }
.wl-plan__name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; }
.wl-plan__price { font-family: var(--wl-serif); font-size: 76px; letter-spacing: -.04em; line-height: .9; }
.wl-plan__price small { font-family: var(--wl-sans); font-size: 14px; letter-spacing: 0; color: var(--wl-soft); }
.wl-plan__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.wl-plan__list li { display: flex; gap: 10px; align-items: baseline; }
.wl-plan .wl-btn { margin-top: auto; align-self: flex-start; }

/* Toggle: two outline pills */
.wl-toggle { display: inline-flex; gap: 4px; padding: 3px; border: var(--wl-hair); border-radius: var(--wl-radius-pill); }
.wl-toggle button { padding: 6px 14px; border: 0; border-radius: var(--wl-radius-pill); background: transparent; color: var(--wl-ink); font: 500 14px var(--wl-sans); cursor: pointer; white-space: nowrap; }
.wl-toggle button.is-on { background: var(--wl-ink); color: var(--wl-paper); }

/* FAQ */
.wl-faq { border-top: var(--wl-border); }
.wl-faq details { padding-block: 18px; border-bottom: var(--wl-border); }
.wl-faq summary { display: flex; justify-content: space-between; gap: 16px; font-size: 20px; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.wl-faq summary::-webkit-details-marker { display: none; }
.wl-faq summary::after { content: "+"; font-family: var(--wl-serif); font-size: 26px; line-height: .8; }
.wl-faq details[open] summary::after { content: "\2212"; }
.wl-faq p { margin: 12px 0 0; max-width: 640px; color: var(--wl-soft); }

/* Article */
.wl-article__head { padding-block: clamp(48px, 8vw, 104px) 40px; }
.wl-article__title { margin: 18px 0 0; font-size: clamp(42px, 6.6vw, 96px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.wl-article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--wl-soft); font-size: 14px; }
.wl-article__cover { height: clamp(220px, 40vw, 480px); border-radius: var(--wl-radius-lg); background: radial-gradient(40% 60% at 70% 60%, var(--wl-blush), transparent 70%), var(--wl-greige); }
.wl-prose { font-size: 18px; line-height: 1.7; }
.wl-prose p { margin: 0 0 1.2em; }
.wl-prose h2 { margin: 1.8em 0 .5em; font-size: 34px; font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.wl-prose h2 .wl-serif { letter-spacing: -.02em; }
.wl-prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.wl-prose li { display: flex; gap: 12px; align-items: baseline; margin-bottom: .5em; }
.wl-prose blockquote { margin: 1.6em 0; padding: 0; font-family: var(--wl-serif); font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.wl-dropcap::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--wl-serif); font-size: 88px; line-height: .75; }
.wl-figure { margin: 1.8em 0; }
.wl-figure__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wl-figure__swatches i { height: 140px; border-radius: var(--wl-radius); background: var(--wl-shade-1); }
.wl-figure__swatches i:nth-child(2) { background: var(--wl-shade-2); }
.wl-figure__swatches i:nth-child(3) { background: var(--wl-shade-3); }
.wl-figure__swatches i:nth-child(4) { background: var(--wl-shade-4); }
.wl-figure figcaption { margin-top: 10px; color: var(--wl-soft); font-size: 13px; }

/* Footer: a second, smaller wordmark and quiet columns */
.wl-footer { padding-block: 56px 28px; border-top: 1px solid var(--wl-ink); }
.wl-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; font-size: 14px; }
.wl-footer__cols h4 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--wl-faint); }
.wl-footer__cols a { display: block; margin-bottom: 6px; text-decoration: none; }
.wl-footer__cols a:hover { text-decoration: underline; }
.wl-footer__word { margin: 48px 0 0; font-family: var(--wl-serif); font-size: clamp(64px, 15vw, 220px); letter-spacing: -.045em; line-height: .8; }
.wl-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 20px; color: var(--wl-faint); font-size: 12px; }

@media (max-width: 720px) {
  .wl-plan + .wl-plan { border-left: 0; }
  .wl-row { grid-auto-columns: 82%; }
  .wl-pager, .wl-mast__object { display: none; }
  .wl-nav__side { display: none; }
  .wl-statement__aside { display: flex; margin: 12px 0 0; }
  .wl-figure__swatches i { height: 90px; }
}
