/* Frisket Letters. Fonts are served from this site (OFL, via Fontsource), never from a third party. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-500-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/eb-garamond-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/instrument-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/instrument-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/instrument-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --paper: #f4ecdc;
  --sheet: #fdf9f1;
  --field: #fffdf8;
  --panel: #fbf7ee;
  --ink: #302b47;
  --text: #3d3450;
  --soft: #4a4060;
  --muted: #5e5468;
  --accent: #a33b4b;
  --accent-deep: #7a2e3b;
  --error: #9c2f3f;
  --focus: #3f6d9e;
  --line: #e4d8c2;
  --line-strong: #b9a888;
  --rule: #dccfb6;
  --plum: #302b47;
  --vellum: #f9f2e4;
  --rose-light: #eaa7ae;
  --on-plum: #ddd2c2;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 4px;
}

/* Card colours, matching the PNG cards. */
.theme-vellum { --t-bg: #f9f2e4; --t-ink: #302b47; --t-body: #3d3450; --t-muted: #5e5468; --t-accent: #a33b4b; --t-rule: #dccbab; }
.theme-plum { --t-bg: #302b47; --t-ink: #f9f2e4; --t-body: #e9dfcf; --t-muted: #cfc3d6; --t-accent: #eaa7ae; --t-rule: #4d4566; }
.theme-blush { --t-bg: #f6e4e1; --t-ink: #3b2337; --t-body: #48304a; --t-muted: #6a4f62; --t-accent: #9c3446; --t-rule: #e0c3bf; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 12px 18px; background: var(--plum); color: var(--vellum); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; color: var(--vellum); }
.dev-banner { margin: 0; padding: 8px 16px; background: var(--focus); color: #fff; font-size: 14px; font-weight: 500; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.icon { flex: none; }
.muted { color: var(--muted); }

/* Header and footer */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { display: block; }
.brand__name { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.brand__name em { font-style: italic; font-weight: 500; color: var(--accent); }
.brand--small .brand__name { font-size: 24px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 500; }
.site-nav a:not(.button) { padding-block: 10px; color: var(--ink); text-decoration: none; }
.site-nav a:not(.button):hover, .site-nav a:not(.button)[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; padding-block: 36px 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; margin: 0; }
.site-footer__brand img { display: block; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer__nav a { padding-block: 12px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--plum); border-radius: 24px; background: var(--plum); color: var(--vellum); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: #241f38; color: var(--vellum); }
.button--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.button--large { min-height: 52px; padding: 0 30px; font-size: 17px; }
.button--ghost { background: transparent; color: var(--plum); }
.button--ghost:hover { background: rgba(48, 43, 71, 0.07); color: var(--plum); }
.button--light { border-color: var(--vellum); background: var(--vellum); color: var(--plum); }
.button--light:hover { background: #fff; color: var(--plum); }
.button--danger { border-color: var(--error); background: transparent; color: var(--error); }
.button--danger:hover { background: rgba(156, 47, 63, 0.08); color: var(--error); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 28px; }
.link-button { padding: 10px 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; text-decoration: underline; cursor: pointer; }

/* Gallery */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 48px; padding-block: 48px; }
.hero__text { flex: 999 1 540px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--muted { margin: 0; color: var(--muted); }
.hero__title { margin: 0; font-family: var(--display); font-size: clamp(46px, 7vw, 92px); font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.lede { margin: 22px 0 0; max-width: 620px; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--soft); }
.search { flex: 1 1 340px; min-width: 0; padding: 24px; background: var(--panel); border: 1px solid #e2d5bd; border-radius: var(--radius); }
.search__label { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.15; }
.search__hint { margin: 6px 0 16px; font-size: 15px; color: var(--muted); }
.search__row { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.search__row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(63, 109, 158, 0.4); }
.search__row input[type='search'] { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; outline: none; }

.letters { padding-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 28px; border-top: 1px solid var(--rule); }
.section-head h2 { margin: 0; font-family: var(--display); font-size: 42px; font-weight: 500; line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip, .chip-radio label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--panel); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.chip:hover, .chip-radio label:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current], .chip-radio input:checked + label { border-color: var(--plum); background: var(--plum); color: var(--vellum); }
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.chip-radio input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.swatch { display: block; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; }
.swatch--vellum { background: #f9f2e4; }
.swatch--plum { background: #302b47; }
.swatch--blush { background: #f6e4e1; }
.chip[aria-current] .swatch, .chip-radio input:checked + label .swatch { border-color: var(--vellum); }

.letter-grid { columns: 3 320px; column-gap: 24px; margin-top: 32px; }
.letter { break-inside: avoid; width: 100%; margin: 0 0 24px; padding: 28px 30px 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 0 rgba(48, 43, 71, 0.06); }
.letter__prompt { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.letter__to { margin: 14px 0 0; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.letter__to a { color: var(--ink); text-decoration: none; }
.letter__to a:hover { text-decoration: underline; }
.letter__body { margin: 12px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.letter__from { margin: 16px 0 0; font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--muted); }
.letter__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 6px; border-top: 1px solid #ece2cf; }
.action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 4px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.action:hover { color: var(--ink); text-decoration: underline; }
.action--icon { justify-content: center; width: 44px; color: var(--muted); }
.empty { margin-top: 32px; padding: 40px 32px; text-align: center; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty__title { margin: 0 0 8px; font-family: var(--display); font-size: 32px; }
.empty p { color: var(--muted); }
.empty .button { margin-top: 12px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-weight: 500; }
.pager a { padding-block: 12px; }

.how { margin-top: 56px; background: var(--plum); color: var(--vellum); }
.how__inner { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 72px; }
.how__intro { flex: 1 1 360px; min-width: 0; }
.how h2 { margin: 0; font-family: var(--display); font-size: clamp(40px, 4.6vw, 60px); font-weight: 500; line-height: 1.02; }
.how__intro p { margin: 20px 0 28px; max-width: 460px; font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--on-plum); }
.steps { flex: 999 1 540px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps__n { display: block; font-family: var(--display); font-size: 48px; line-height: 1; color: var(--rose-light); }
.steps h3 { margin: 12px 0 0; font-size: 19px; font-weight: 600; }
.steps p { margin: 8px 0 0; line-height: 1.55; color: var(--on-plum); }

/* One letter */
.letter-view { padding-block: 16px 48px; }
.back-link { margin: 0 0 16px; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }
.letter-view__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.letter-sheet { flex: 999 1 560px; min-width: 0; padding: clamp(28px, 6vw, 72px); background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--t-rule); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(48, 43, 71, 0.1), 0 18px 40px rgba(48, 43, 71, 0.08); }
.letter-sheet__prompt { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-accent); }
.letter-sheet__to { margin: 20px 0 0; font-family: var(--display); font-size: clamp(44px, 6vw, 72px); font-weight: 600; line-height: 1.02; overflow-wrap: anywhere; }
.letter-sheet__body { margin-top: 24px; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.6; color: var(--t-body); }
.letter-sheet__body p { margin: 0 0 0.9em; white-space: pre-line; overflow-wrap: anywhere; }
.letter-sheet__from { margin: 8px 0 0; font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--t-muted); }
.letter-sheet__date { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--t-rule); font-size: 14px; color: var(--t-muted); }
.share { flex: 1 1 340px; min-width: 0; max-width: 460px; }
.share h2 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; }
.share > p { margin: 8px 0 16px; color: var(--muted); }
.share__card { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 2px rgba(48, 43, 71, 0.12), 0 12px 32px rgba(48, 43, 71, 0.1); }
.share__label { display: block; margin: 20px 0 0; font-weight: 600; }
.share .chips { margin-top: 10px; }
.share .button-row { margin-top: 20px; }
.share__status { min-height: 1.5em; margin: 8px 0 0; color: var(--muted); }
.share__link { width: 100%; height: 48px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); color: var(--ink); font: inherit; font-size: 15px; }
.letter-view__more { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.cta-card { flex: 0 1 460px; padding: 28px; background: var(--plum); color: var(--vellum); border-radius: var(--radius); }
.cta-card h2 { margin: 0; font-family: var(--display); font-size: 32px; font-weight: 500; line-height: 1.1; }
.cta-card p { color: var(--on-plum); }
.cta-card .button { border-color: var(--vellum); background: var(--vellum); color: var(--plum); }

/* Write */
.write { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 56px; padding-block: 32px 64px; }
.write__main { flex: 999 1 560px; min-width: 0; }
.write__aside { flex: 1 1 340px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.page-title { margin: 0; font-family: var(--display); font-size: clamp(42px, 5.4vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.write-form { display: flex; flex-direction: column; gap: 32px; margin-top: 36px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { display: block; padding: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.field__label--small { margin-top: 16px; font-size: 16px; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { margin: 4px 0 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.field__error { margin: 6px 0 8px; font-size: 15px; font-weight: 600; color: var(--error); }
.field__count { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--muted); text-align: right; }
.field__count.is-over { color: var(--error); }
input[type='text'], input[type='email'], input[type='password'], input[type='search'], textarea { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); color: var(--ink); font: inherit; font-size: 18px; }
textarea { height: auto; min-height: 260px; padding: 14px 16px; font-family: var(--serif); font-size: 20px; line-height: 1.55; resize: vertical; }
.report-form textarea { min-height: 120px; }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border: 2px solid var(--error); }
.input--medium { max-width: 420px; }
.dear-row { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 30px; font-weight: 600; }
.dear-row input { flex: 1; min-width: 0; font-family: var(--serif); font-size: 22px; }
input:disabled { background: #efe7d6; cursor: not-allowed; }
.place-picker__box { position: relative; max-width: 420px; }
.place-picker__options { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(48, 43, 71, 0.16); }
.place-picker__options li { padding: 10px 12px; border-radius: 3px; font-size: 16px; line-height: 1.35; cursor: pointer; }
.place-picker__options li:hover, .place-picker__options li[aria-selected='true'] { background: var(--plum); color: var(--vellum); }
.field--box { padding: 20px 22px; background: var(--panel); border: 1px solid #e2d5bd; border-radius: var(--radius); }
.check { display: flex; align-items: flex-start; gap: 14px; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--plum); }
.check label { font-size: 17px; line-height: 1.45; }
.print-details { margin: 14px 0 0 36px; }
.write-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.write-form__submit .field__hint { flex: 1 1 240px; margin: 0; }
.error-summary { margin-top: 28px; padding: 20px 24px; border: 2px solid var(--error); border-radius: var(--radius); background: #fff8f6; }
.error-summary h2 { margin: 0 0 8px; font-size: 19px; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 600; }

.preview-card { position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; padding: 34px 32px 22px; overflow: hidden; background: var(--t-bg); color: var(--t-ink); border-radius: 3px; box-shadow: 0 1px 2px rgba(48, 43, 71, 0.12), 0 12px 32px rgba(48, 43, 71, 0.1); }
.preview-card::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--t-rule); border-radius: 3px; pointer-events: none; }
.preview-card__prompt { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-accent); }
.preview-card__to { margin: 14px 0 0; font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1.05; overflow-wrap: anywhere; }
.preview-card__body { flex: 0 1 auto; min-height: 0; margin: 14px 0; overflow: hidden; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--t-body); white-space: pre-line; overflow-wrap: anywhere; }
.preview-card__body.is-medium { font-size: 18px; }
.preview-card__body.is-small { font-size: 15px; }
.preview-card__body.is-placeholder { color: var(--t-muted); font-style: italic; }
.preview-card__from { margin: -4px 0 14px; font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--t-muted); }
.preview-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--t-rule); font-size: 12px; color: var(--t-muted); }
.preview-card__brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--t-ink); }
.preview-card__brand img { display: block; }
.rules-box { padding: 22px 24px; background: var(--panel); border: 1px solid #e2d5bd; border-radius: var(--radius); }
.rules-box h2 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 600; }
.rules-box ul { margin: 12px 0 0; padding-left: 20px; color: var(--soft); line-height: 1.5; }
.rules-box li + li { margin-top: 6px; }
.rules-box p { margin: 12px 0 0; }

/* Messages, reports and prose */
.message { padding-block: 64px 80px; }
.quote-card { margin: 24px 0; padding: 20px 24px; background: var(--sheet); border: 1px solid var(--line); border-radius: 3px; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--text); }
.quote-card p { margin: 0; }
.quote-card .quote-card__to { margin: 0 0 6px; font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--ink); }
.report-form { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 24px; }
.report-form .field { align-self: stretch; }
.radios { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.radio input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--plum); }
.radio label { font-size: 17px; }
.prose { padding-block: 40px 64px; }
.prose h2 { margin: 36px 0 8px; font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.15; }
.prose p, .prose li { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose .lede { color: var(--soft); }
.draft-note { margin: 0 0 24px; padding: 12px 16px; background: #fff3cd; border: 1px solid #e0c46c; border-radius: var(--radius); color: #5c4a12; font-size: 15px; }

/* Moderation */
.admin-bar { background: var(--plum); color: var(--vellum); }
.admin-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 10px; }
.admin-bar .brand { color: var(--vellum); }
.admin-bar .brand__name em { color: var(--rose-light); }
.admin-bar__tag { padding: 2px 10px; border: 1px solid rgba(249, 242, 228, 0.45); border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-nav { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 0 20px; }
.admin-nav a { padding-block: 12px; color: var(--vellum); font-weight: 500; text-decoration: none; }
.admin-nav a:hover, .admin-nav a[aria-current] { color: var(--vellum); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.count { display: inline-block; min-width: 24px; padding: 0 7px; border-radius: 12px; background: var(--rose-light); color: var(--plum); font-size: 13px; font-weight: 600; text-align: center; }
.admin-main { padding-block: 32px 64px; }
.page-title--admin { margin-bottom: 16px; font-size: 44px; }
.admin-lede { margin: 0 0 20px; color: var(--muted); }
.flash { margin: 0 0 20px; padding: 12px 16px; background: #e8f1e4; border: 1px solid #9cc28a; border-radius: var(--radius); color: #24451a; font-weight: 500; }
.mod-card { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; padding: 24px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.mod-card__letter { flex: 999 1 420px; min-width: 0; }
.mod-card__letter .letter__to { font-size: 30px; }
.mod-card__side { flex: 1 1 260px; min-width: 0; }
.mod-card__side p { margin: 12px 0 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.flags { margin: 16px 0 0; padding: 12px 14px 12px 32px; background: #fff3cd; border: 1px solid #e0c46c; border-radius: var(--radius); color: #5c4a12; font-size: 15px; }
.status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.status--hidden { background: #f3d9dc; color: #7a1f2c; }
.status--published { background: #e8f1e4; color: #24451a; }
.report-list { margin: 12px 0 0; padding-left: 20px; font-size: 15px; }
.report-list li + li { margin-top: 6px; }
.mod-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mod-card__actions form { margin: 0; }
.empty-admin { padding: 32px; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.admin-login { padding-block: 64px; }
.admin-login form { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 24px; }
.admin-login .field { align-self: stretch; }

/* Frisket home page (frisket.au) */
.home-hero { padding-bottom: 32px; }
.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-bottom: 56px; }
.family__card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 rgba(48, 43, 71, 0.06); }
.family__card:hover { border-color: var(--ink); color: var(--ink); }
.family__kind { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.family__name { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.family__text { flex: 1; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--text); }
.family__go { margin-top: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.home-app { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding-block: 56px 72px; border-top: 1px solid var(--rule); }
.home-app__text { flex: 1 1 380px; min-width: 0; }
.home-app h2, .home-letters h2 { margin: 0; font-family: var(--display); font-size: clamp(40px, 4.6vw, 60px); font-weight: 500; line-height: 1.02; }
.home-app .lede code { padding: 0 0.25em; border-radius: 3px; background: rgba(120, 100, 70, 0.1); font-family: 'Cascadia Code', Consolas, monospace; font-size: 0.82em; }
.ticks { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--text); }
.ticks li::before { content: ''; position: absolute; top: 0.6em; left: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.small-print { max-width: 560px; margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.home-app__shots { position: relative; flex: 999 1 560px; min-width: 0; margin: 0; }
.home-app__shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 4px rgba(48, 43, 71, 0.08), 0 24px 48px rgba(48, 43, 71, 0.14); }
.home-app__shots .home-app__dark { position: relative; width: 62%; margin: -22% 0 0 auto; }
.home-app__shots figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: right; }
.how__intro p.eyebrow { margin: 0 0 16px; font-family: var(--sans); font-size: 14px; }
.eyebrow--light { color: var(--rose-light); }
.button--outline-light { border-color: var(--vellum); background: transparent; color: var(--vellum); }
.button--outline-light:hover { background: rgba(249, 242, 228, 0.1); color: var(--vellum); }
.home-letters { align-items: center; }
.home-letters .button-row { margin-top: 0; }
.home-letters__card { flex: 1 1 320px; min-width: 0; max-width: 400px; margin: 0 auto; }
.home-letters__card figcaption { margin-top: 10px; font-size: 14px; color: var(--on-plum); text-align: center; }
.site-footer__note { width: 100%; margin: 0; font-size: 14px; }

@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 28px 36px; }
  .lede { font-size: 19px; }
  .search { padding: 20px 16px; }
  .section-head h2 { font-size: 34px; }
  .letter { padding: 24px 20px 10px; }
  .how__inner { padding-block: 56px; }
  .print-details { margin-left: 0; }
  .dear-row { font-size: 26px; }
  .mod-card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  .chip[aria-current], .chip-radio input:checked + label { outline: 2px solid CanvasText; }
}
