/*
 * Wash Rail: components
 * Built only from tokens.css. Load tokens.css first.
 * Each page also carries one tiny inline SVG filter (#wr-bleed) that gives the orbs and
 * wash panels their soft watercolor edge. Without it they still render as clean gradients.
 */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
.wr { margin: 0; background: var(--wr-paper); color: var(--wr-ink); font-family: var(--wr-sans); font-size: var(--wr-text-body); line-height: var(--wr-leading-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wr img, .wr svg { display: block; max-width: 100%; }
:where(.wr) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
:where(.wr) a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.wr) a:hover { color: var(--wr-berry); }
.wr :focus-visible { outline: none; box-shadow: var(--wr-focus); border-radius: var(--wr-radius-xs); }
.wr [hidden] { display: none !important; }
.wr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wr-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The frame: orb rail | dashed rule | center column | dashed rule | sidebar */
.wr-frame { display: grid; grid-template-columns: var(--wr-rail) minmax(0, var(--wr-column)) var(--wr-side); justify-content: center; min-height: 100vh; }
.wr-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 96px 0 40px; }
.wr-main { min-width: 0; padding: 22px var(--wr-gutter) 0; border-left: var(--wr-dash); border-right: var(--wr-dash); }
.wr-side { padding: 22px 0 40px 28px; }
.wr-sticky { position: sticky; top: 22px; }

@media (max-width: 1000px) {
  .wr-frame { grid-template-columns: 76px minmax(0, var(--wr-column)) 200px; }
  .wr-rail { padding-top: 88px; }
  .wr-frame { --wr-orb: 50px; }
}
@media (max-width: 860px) {
  .wr-frame { display: flex; flex-direction: column; }
  .wr-side { order: 1; padding: 16px var(--wr-gutter) 14px; border-bottom: var(--wr-dash); }
  .wr-rail { order: 2; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 14px var(--wr-gutter); overflow-x: clip; --wr-orb: var(--wr-orb-sm); }
  .wr-rail .wr-stamp { display: none; }
  .wr-main { order: 3; border: 0; border-top: var(--wr-dash); }
  .wr-sticky { position: static; }
  .wr-side__more { display: none; }
}

/* Type */
.wr-display { font-size: var(--wr-text-display); font-weight: var(--wr-weight-title); line-height: 1.08; letter-spacing: -.02em; }
.wr-title { font-size: var(--wr-text-title); font-weight: var(--wr-weight-title); line-height: 1.18; letter-spacing: var(--wr-tracking-title); max-width: 560px; }
.wr-title a { text-decoration: none; }
.wr-h3 { font-size: var(--wr-text-h3); font-weight: var(--wr-weight-strong); line-height: 1.3; }
.wr-lead { font-size: var(--wr-text-lead); line-height: 1.55; color: var(--wr-ink-soft); }
.wr-meta { font-family: var(--wr-mono); font-size: var(--wr-text-meta); color: var(--wr-ink-faint); line-height: 1.5; }
.wr-meta a { color: var(--wr-ink-soft); }
.wr-small { font-size: var(--wr-text-small); color: var(--wr-ink-soft); }
.wr-tiny { font-size: 13px; line-height: 1.45; }
.wr-stack > * + * { margin-top: 16px; }
.wr-stack-lg > * + * { margin-top: 28px; }
.wr-heart { color: var(--wr-berry); }

/* Orbs: soft watercolor pebbles in the rail */
.wr-orb { --a: var(--wr-rose); --b: var(--wr-lilac); --c: var(--wr-butter); flex: none; width: var(--wr-orb); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .72), transparent 36%), radial-gradient(circle at 70% 72%, var(--b), transparent 62%), radial-gradient(circle at 22% 78%, var(--c), transparent 50%), var(--a); filter: url(#wr-bleed); transition: transform var(--wr-speed) var(--wr-ease); }
a.wr-orb:hover, .wr-orb--hover:hover { transform: scale(1.06) rotate(-6deg); }
.wr-orb--rose { --a: var(--wr-rose); --b: var(--wr-lilac); --c: var(--wr-white); }
.wr-orb--moss { --a: var(--wr-moss); --b: var(--wr-butter); --c: var(--wr-moss-deep); }
.wr-orb--sea { --a: var(--wr-sea); --b: var(--wr-moss); --c: var(--wr-lilac); }
.wr-orb--lilac { --a: var(--wr-lilac); --b: var(--wr-sea); --c: var(--wr-rose); }
.wr-orb--butter { --a: var(--wr-butter); --b: var(--wr-rose); --c: var(--wr-moss); }
.wr-orb--empty { background: none; border: var(--wr-dash); filter: none; }
.wr-orb--sm { width: var(--wr-orb-sm); }

/* The stamp: a rose orb with the product name running round it */
.wr-stamp { position: relative; width: var(--wr-orb); aspect-ratio: 1; flex: none; text-decoration: none; }
.wr-stamp .wr-orb { position: absolute; inset: 0; width: 100%; }
.wr-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--wr-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--wr-ink); }

/* Sidebar: one black pill, a big plain menu, then small extras */
.wr-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--wr-weight-strong); font-size: 19px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.wr-logo .wr-orb { --wr-orb: 26px; filter: none; }
.wr-side__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wr-menu { display: grid; gap: 2px; margin-top: 26px; padding: 0; list-style: none; font-size: var(--wr-text-menu); line-height: 1.35; }
.wr-menu a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.wr-menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.wr-menu svg { width: 17px; height: 17px; }
@media (max-width: 860px) {
  .wr-menu { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 16px; }
}
.wr-mode { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--wr-ink-faint); font-size: 16px; }
.wr-mode svg { width: 16px; height: 16px; }
.wr-side__more > * + * { margin-top: 30px; }
.wr-side__more { margin-top: 30px; }
.wr-sidehead { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.wr-social { display: grid; gap: 4px; padding: 0; list-style: none; font-size: 15px; }
.wr-social li { display: flex; align-items: center; gap: 9px; }
.wr-social i { width: 13px; height: 13px; border-radius: 3px; background: var(--wr-ink-faint); }
.wr-social i.is-rose { background: var(--wr-rose-deep); }
.wr-social i.is-sea { background: var(--wr-sea-deep); }
.wr-social i.is-moss { background: var(--wr-moss-deep); }

/* Small promo card in the sidebar */
.wr-promo { display: block; text-decoration: none; }
.wr-promo__art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--wr-radius-xs); background: var(--wr-ink); overflow: hidden; }
.wr-promo__art .wr-orb { position: absolute; --wr-orb: 64px; right: -10px; bottom: -14px; }
.wr-promo__art span { position: absolute; left: 12px; top: 12px; color: var(--wr-paper); font-family: var(--wr-mono); font-size: 12px; line-height: 1.4; }
.wr-promo__art b { display: block; margin-top: 6px; font-family: var(--wr-sans); font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.wr-promo p { margin-top: 10px; font-size: 15px; line-height: 1.4; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Buttons: one black rounded pill, a plain outline and a raspberry for the big yes */
.wr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--wr-ink); border-radius: var(--wr-radius); background: var(--wr-ink); color: var(--wr-white); font-family: var(--wr-sans); font-size: 16px; font-weight: var(--wr-weight-strong); line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--wr-speed) var(--wr-ease), color var(--wr-speed) var(--wr-ease); }
.wr-btn:hover { background: var(--wr-ink-soft); border-color: var(--wr-ink-soft); color: var(--wr-white); }
.wr-btn svg { width: 16px; height: 16px; }
.wr-btn--ghost { background: transparent; color: var(--wr-ink); border-color: var(--wr-ink-faint); }
.wr-btn--ghost:hover { background: var(--wr-paper-tint); color: var(--wr-ink); border-color: var(--wr-ink); }
.wr-btn--berry { background: var(--wr-berry); border-color: var(--wr-berry); }
.wr-btn--berry:hover { background: var(--wr-ink); border-color: var(--wr-ink); }
.wr-btn--sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.wr-btn--lg { min-height: 52px; padding: 0 26px; font-size: 18px; }
.wr-btn--block { width: 100%; }
.wr-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Posts in the center column, split by dashed rules */
.wr-post { padding-bottom: var(--wr-post-gap); margin-bottom: 26px; border-bottom: var(--wr-dash); }
.wr-post:last-of-type { border-bottom: 0; }
.wr-post > * + * { margin-top: 16px; }
.wr-post .wr-title { margin-top: 2px; }
.wr-prose { font-size: var(--wr-text-body); line-height: var(--wr-leading-body); }
.wr-prose > * + * { margin-top: 18px; }
.wr-prose a { text-decoration: underline; }
.wr-prose h2 { margin-top: 44px; font-size: 25px; font-weight: var(--wr-weight-strong); line-height: 1.25; letter-spacing: -.01em; }
.wr-prose h3 { margin-top: 32px; font-size: 20px; font-weight: 700; }
.wr-prose ul, .wr-prose ol { padding-left: 22px; }
.wr-prose li + li { margin-top: 6px; }
.wr-prose--lg { font-size: 19px; line-height: 1.7; }

/* Wash panels: the post "image", painted with soft color and a line drawing on top */
.wr-wash { --a: var(--wr-sea); --b: var(--wr-lilac); --c: var(--wr-butter); position: relative; aspect-ratio: 16 / 9; border-radius: var(--wr-radius-xs); overflow: hidden; background: var(--wr-paper-tint); }
.wr-wash::before { content: ""; position: absolute; inset: -6%; background: radial-gradient(ellipse 55% 60% at 22% 30%, var(--a), transparent 70%), radial-gradient(ellipse 50% 55% at 78% 70%, var(--b), transparent 70%), radial-gradient(ellipse 40% 45% at 60% 18%, var(--c), transparent 70%); filter: url(#wr-bleed); opacity: .9; }
.wr-wash > svg { position: relative; width: 100%; height: 100%; stroke: var(--wr-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wr-wash--rose { --a: var(--wr-rose); --b: var(--wr-butter); --c: var(--wr-lilac); }
.wr-wash--moss { --a: var(--wr-moss); --b: var(--wr-sea); --c: var(--wr-butter); }
.wr-wash--lilac { --a: var(--wr-lilac); --b: var(--wr-rose); --c: var(--wr-sea); }
.wr-wash--tall { aspect-ratio: 4 / 3; }
.wr-wash__chip { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--wr-radius); background: rgba(255, 255, 255, .82); color: var(--wr-ink); font-size: 14px; font-weight: var(--wr-weight-strong); white-space: nowrap; text-decoration: none; }
.wr-figure figcaption { margin-top: 8px; }

/* Tags and the fave / reply / share row */
.wr-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.wr-tag { display: inline-block; padding: 3px 8px; border: var(--wr-outline); border-radius: var(--wr-radius-xs); color: var(--wr-ink-soft); font-family: var(--wr-mono); font-size: var(--wr-text-tag); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
a.wr-tag:hover { border-color: var(--wr-berry); color: var(--wr-berry); }
.wr-tag--berry { border-color: var(--wr-berry); color: var(--wr-berry); }
.wr-react { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; color: var(--wr-ink-soft); }
.wr-react button, .wr-react a { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.wr-react svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wr-react .is-faved { color: var(--wr-berry); }
.wr-react .is-faved svg { fill: currentColor; }

/* Callout: a tinted note with one orb */
.wr-callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: var(--wr-radius-lg); background: var(--wr-paper-tint); }
.wr-callout .wr-orb { --wr-orb: 52px; }
.wr-callout > div > * + * { margin-top: 8px; }

/* Dashed lists: schedules, comparisons, archive rows */
.wr-rows { padding: 0; list-style: none; border-top: var(--wr-dash); }
.wr-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: var(--wr-dash); }
.wr-rows li > :last-child { flex: none; text-align: right; }
.wr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--wr-radius-pill); background: var(--wr-berry-soft); color: var(--wr-berry); font-family: var(--wr-mono); font-size: 12px; white-space: nowrap; }
.wr-badge--plain { background: var(--wr-paper-tint); color: var(--wr-ink-soft); }

/* Quote: a wash stripe down the left side */
.wr-quote { position: relative; padding-left: 22px; font-size: 22px; line-height: 1.45; letter-spacing: -.01em; }
.wr-quote::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 6px; background: linear-gradient(var(--wr-rose), var(--wr-lilac), var(--wr-sea)); }
.wr-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--wr-mono); font-size: var(--wr-text-meta); color: var(--wr-ink-faint); }

/* Pricing: plans as stacked rows with an orb, not boxes in a grid */
.wr-toggle { display: inline-flex; padding: 3px; border: var(--wr-line); border-radius: var(--wr-radius-pill); background: var(--wr-white); }
.wr-toggle button { padding: 7px 14px; border: 0; border-radius: var(--wr-radius-pill); background: none; color: var(--wr-ink-soft); font: inherit; font-size: 15px; cursor: pointer; white-space: nowrap; }
.wr-toggle button[aria-pressed="true"] { background: var(--wr-ink); color: var(--wr-white); }
.wr-plans { display: grid; gap: 14px; }
.wr-plan { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding: 22px; border: var(--wr-dash); border-radius: var(--wr-radius-lg); }
.wr-plan .wr-orb { --wr-orb: 50px; }
.wr-plan.is-picked { border: 1px solid var(--wr-berry); background: var(--wr-white); }
.wr-plan__body > * + * { margin-top: 8px; }
.wr-plan__price { text-align: right; }
.wr-price { font-size: 34px; font-weight: var(--wr-weight-title); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.wr-price small { font-size: 15px; color: var(--wr-ink-faint); letter-spacing: 0; }
.wr-plan .wr-btn { margin-top: 12px; }
.wr-checks { display: grid; gap: 5px; padding: 0; list-style: none; font-size: 15px; color: var(--wr-ink-soft); }
.wr-checks li { position: relative; padding-left: 20px; }
.wr-checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--wr-sea); }
@media (max-width: 560px) {
  .wr-plan { grid-template-columns: auto 1fr; }
  .wr-plan__price { grid-column: 1 / -1; text-align: left; }
}

/* Table */
.wr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wr-table th, .wr-table td { padding: 11px 8px; border-bottom: var(--wr-dash); text-align: left; vertical-align: top; }
.wr-table th { font-family: var(--wr-mono); font-size: 12px; font-weight: 500; color: var(--wr-ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.wr-table td + td, .wr-table th + th { text-align: center; }
.wr-scroll { overflow-x: auto; }

/* FAQ */
.wr-faq { border-top: var(--wr-dash); }
.wr-faq details { border-bottom: var(--wr-dash); }
.wr-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 18px; cursor: pointer; list-style: none; }
.wr-faq summary::-webkit-details-marker { display: none; }
.wr-faq summary::after { content: "+"; font-family: var(--wr-mono); color: var(--wr-ink-faint); }
.wr-faq details[open] summary::after { content: "-"; }
.wr-faq details p { padding-bottom: 16px; color: var(--wr-ink-soft); font-size: 16px; }

/* Forms */
.wr-form { display: grid; gap: 18px; }
.wr-field { display: grid; gap: 6px; }
.wr-label { font-size: 15px; font-weight: var(--wr-weight-strong); }
.wr-input, .wr-select, .wr-textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: var(--wr-line); border-radius: var(--wr-radius); background: var(--wr-white); color: var(--wr-ink); font: inherit; font-size: 17px; transition: border-color var(--wr-speed) var(--wr-ease); }
.wr-textarea { min-height: 110px; resize: vertical; }
.wr-input::placeholder, .wr-textarea::placeholder { color: var(--wr-ink-faint); }
.wr-input:hover, .wr-select:hover, .wr-textarea:hover { border-color: var(--wr-ink-faint); }
.wr-input:focus, .wr-select:focus, .wr-textarea:focus { outline: none; border-color: var(--wr-berry); box-shadow: var(--wr-focus); }
.wr-hint { font-family: var(--wr-mono); font-size: 12px; color: var(--wr-ink-faint); }
.wr-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .wr-row-2 { grid-template-columns: 1fr; } }
.wr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--wr-ink-soft); }
.wr-check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--wr-berry); }
.wr-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wr-choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: var(--wr-dash); border-radius: var(--wr-radius); font-size: 15px; cursor: pointer; }
.wr-choice input { position: absolute; opacity: 0; }
.wr-choice .wr-orb { --wr-orb: 26px; filter: none; }
.wr-choice:has(input:checked) { border: 1px solid var(--wr-berry); background: var(--wr-white); }
.wr-choice:has(input:focus-visible) { box-shadow: var(--wr-focus); }

/* Footer: inside the center column, small and mono */
.wr-foot { margin-top: 40px; padding: 22px 0 36px; border-top: var(--wr-dash); font-family: var(--wr-mono); font-size: 12px; color: var(--wr-ink-faint); }
.wr-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.wr-foot a { text-decoration: none; }
.wr-foot a:hover { text-decoration: underline; }
.wr-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
