@import url('/shared-ui.css');

:root {
  --paper: #f4ecdd;
  --paper-light: #fbf6eb;
  --paper-deep: #e8dbc4;
  --ink: #24221d;
  --muted: #6f675a;
  --line: #877154;
  --line-light: rgba(111, 89, 57, .24);
  --indigo: #24434b;
  --indigo-deep: #182f35;
  --vermilion: #78372c;
  --mist: #dce0d7;
  --focus: #9f4c2f;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 19%, rgba(87,65,39,.075) 0 1px, transparent 1.4px),
    radial-gradient(circle at 86% 32%, rgba(87,65,39,.05) 0 1px, transparent 1.4px),
    linear-gradient(125deg, rgba(255,255,255,.38), transparent 38%, rgba(90,68,45,.055));
  background-size: 23px 21px, 31px 35px, 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
}
body::before { position: fixed; z-index: -1; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(78,60,37,.015) 7px 8px); content: ""; pointer-events: none; }
main, footer { width: min(100% - 40px, 680px); margin: 0 auto; }
.section { position: relative; padding: 100px 0 104px; }
.section + .section { border-top: 1px solid var(--line-light); }

.hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(200px,.7fr); gap: 28px; align-items: center; min-height: 646px; padding-top: 44px; border-top: 8px double var(--ink); }
.hero-copy { position: relative; padding: 12px 0 4px; }
.hero-copy::before { position: absolute; top: 92px; left: -16px; width: 5px; height: 64px; background: var(--vermilion); content: ""; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--vermilion); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow::before, .section-kicker::before { content: "— "; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: .08em; line-height: 1.42; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(34px,5vw,46px); letter-spacing: .05em; word-break: keep-all; overflow-wrap: normal; }
h1 span { display: block; margin-top: 16px; color: var(--indigo); font-size: .58em; letter-spacing: .07em; word-break: keep-all; }
h2 { margin: 0 0 34px; font-size: clamp(30px,5.5vw,40px); }
h3 { margin: 0; font-size: 21px; }
.lead { max-width: 28em; margin: 32px 0 30px; letter-spacing: .025em; }
.caption { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.text-link, .article-link, footer a { color: var(--indigo); text-decoration-color: rgba(38,61,69,.5); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link { display: inline-block; margin-top: 20px; font-weight: 600; }
.hero-figure { position: relative; margin: 0; padding: 8px; border: 1px solid rgba(75,56,34,.7); background: var(--paper-light); box-shadow: 7px 8px 0 rgba(105,80,48,.11); }.hero-image { display: block; width: 100%; height: auto; outline: 1px solid rgba(75,56,34,.52); object-fit: cover; filter: sepia(.12) contrast(1.02) saturate(.9); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 22px; border: 1px solid transparent; border-radius: 0; font: inherit; font-weight: 700; letter-spacing: .045em; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.button:hover { box-shadow: 3px 4px 0 rgba(42,34,23,.28); transform: translate(-1px,-1px); }
.button:active { box-shadow: none; transform: translate(1px,1px); }
.button:focus-visible, .action-card:focus-visible, details summary:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.button-primary { background: var(--indigo); color: #f9f3e7; box-shadow: 2px 3px 0 rgba(42,34,23,.22); }
.button-primary:hover { background: var(--indigo-deep); }
.button-secondary { border-color: var(--indigo); background: transparent; color: var(--indigo); }
.button-secondary:hover { background: rgba(38,61,69,.08); }

.section-rule { border-top: 1px solid rgba(80,61,39,.46); }
.axis-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.axis-card { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; align-items: start; min-height: 0; padding: 27px 8px 29px 0; border-bottom: 1px solid var(--line); }
.axis-card h3 { grid-column: 2; margin: 1px 0 5px; }.axis-card p:not(.axis-number) { grid-column: 2; margin: 0; }
.axis-number { grid-row: 1 / span 2; width: 42px; height: 42px; margin: 0 !important; border: 1px solid var(--vermilion); color: var(--vermilion); font-family: var(--serif); font-size: 12px; line-height: 40px; text-align: center; transform: rotate(-6deg); }
.note { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

.worksheet { margin-inline: 0; padding-inline: 36px; background-color: var(--paper-light); background-image: linear-gradient(90deg, transparent 0 13%, rgba(120,77,49,.18) 13% calc(13% + 1px), transparent calc(13% + 1px) 100%); }
.worksheet > * { max-width: 680px; margin-inline: auto; }
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { padding: 18px 0; color: var(--indigo); cursor: pointer; font-family: var(--serif); font-weight: 700; letter-spacing: .06em; }.example-box { margin-bottom: 20px; padding: 8px 20px 22px; border-left: 3px solid var(--vermilion); background: rgba(232,219,196,.28); }.example-box p { margin: 9px 0; }
.privacy-note { margin: 32px auto !important; padding: 18px 20px 18px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 4px solid var(--indigo); background: rgba(220,224,215,.68); font-size: 14px; }
form { margin-top: 34px; }.field { margin: 0 0 34px; padding: 0; border: 0; }
.field label, .field legend { display: block; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.field p { margin: 5px 0 10px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.field textarea { width: 100%; min-height: 130px; resize: vertical; padding: 13px 16px; border: 1px solid var(--line); border-radius: 0; background: rgba(255,253,247,.8); background-image: repeating-linear-gradient(transparent 0 31px, rgba(120,98,71,.15) 32px 33px); color: var(--ink); font: inherit; line-height: 1.9; box-shadow: inset 0 0 0 3px rgba(255,255,255,.28); transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }.field textarea:focus { border-color: var(--indigo); background-color: #fffdf7; box-shadow: inset 0 0 0 3px rgba(36,67,75,.08); }
.field input[type="text"], .field input[type="email"] { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 0; background: rgba(255,253,247,.8); color: var(--ink); font: inherit; line-height: 1.9; box-shadow: inset 0 0 0 3px rgba(255,255,255,.28); transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }.field input[type="text"]:focus, .field input[type="email"]:focus { border-color: var(--indigo); background-color: #fffdf7; box-shadow: inset 0 0 0 3px rgba(36,67,75,.08); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.check-grid label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 36px 8px 13px; border: 1px solid var(--line); background: rgba(255,253,247,.72); font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }.check-grid label:hover { border-color: var(--indigo); transform: translateY(-1px); }.check-grid label:has(input:checked) { border-color: var(--indigo); background: rgba(220,224,215,.78); }.check-grid label:has(input:checked)::after { position: absolute; right: 13px; color: var(--vermilion); content: "✓"; font-family: var(--serif); font-size: 20px; font-weight: 700; }.check-grid input { width: 19px; height: 19px; accent-color: var(--vermilion); }.unknown-option { grid-column: 1 / -1; }.button-stack { display: grid; gap: 12px; }.form-error { margin: 0 0 16px; color: var(--vermilion); font-weight: 700; }

.summary, .next-step { margin-top: 46px; padding: 32px 0 0; border-top: 3px double var(--ink); }.summary h3, .next-step h3 { margin-top: 0; }.summary pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.9; }
.noscript-sheet { margin-top: 46px; padding: 28px 0 0; border-top: 3px double var(--ink); }.noscript-sheet p { color: var(--muted); font-size: 14px; }.noscript-sheet pre { margin: 0; padding: 18px; border: 1px solid var(--line); background: rgba(255,253,247,.74); white-space: pre-wrap; font: inherit; line-height: 1.9; }
.action-list { display: grid; gap: 12px; }.action-card { position: relative; width: 100%; padding: 19px 42px 19px 26px; border: 1px solid var(--line); border-radius: 0; background: rgba(255,253,247,.72); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }.action-card::before { position: absolute; top: 16px; bottom: 16px; left: 9px; width: 3px; background: transparent; content: ""; }.action-card::after { position: absolute; top: 50%; right: 18px; color: transparent; content: "✓"; font-family: var(--serif); font-size: 22px; font-weight: 700; transform: translateY(-50%); }.action-card:hover { border-color: var(--indigo); transform: translateX(3px); }.action-card[aria-checked="true"] { border-color: var(--indigo); background: rgba(220,224,215,.84); box-shadow: 4px 5px 0 rgba(65,74,67,.12); }.action-card[aria-checked="true"]::before { background: var(--vermilion); }.action-card[aria-checked="true"]::after { color: var(--vermilion); }.action-card span { display: block; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .045em; }.action-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.68; }.copy-status { min-height: 1.8em; color: var(--indigo); font-weight: 700; }.copy-fallback { margin-top: 16px; }.copy-fallback textarea { width: 100%; padding: 12px; border: 1px solid var(--line); background: #fffdf7; font: inherit; line-height: 1.65; }

.offer-section { border-top: 1px solid rgba(80,61,39,.46); }.offer-intro p { max-width: 30em; margin: 0 0 14px; }.offer-intro p:last-child { margin-bottom: 30px; }.pr-label { padding: 16px 18px; border-block: 1px solid var(--line); background: rgba(255,253,247,.58); font-size: 14px; }.pr-label strong { color: var(--vermilion); letter-spacing: .1em; }.offer-list { display: grid; gap: 18px; margin-top: 22px; }.offer-card { padding: 26px; border-left: 5px solid var(--indigo); background: rgba(255,253,247,.7); box-shadow: 5px 7px 0 rgba(105,80,48,.12); }.offer-card h3 { margin: 0 0 14px; }.offer-card p { margin: 8px 0; font-size: 15px; }.offer-card .button { width: 100%; margin-top: 16px; }.offer-cta-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.about { padding-bottom: 92px; }.about h2 { position: relative; }.about h2::after { display: block; width: 46px; height: 2px; margin-top: 24px; background: var(--vermilion); content: ""; }.article-link { display: inline-block; font-family: var(--serif); font-weight: 700; letter-spacing: .04em; }.article-link span { margin-left: 4px; }
.privacy-page { max-width: 620px; }.privacy-page h2 { margin-top: 62px; margin-bottom: 18px; font-size: clamp(24px, 4.5vw, 31px); }.privacy-page p { max-width: 34em; }.privacy-promise { display: grid; gap: 1px; margin: 34px 0; border: 1px solid var(--line); background: var(--line); }.privacy-promise p { margin: 0; padding: 18px 20px; background: var(--paper-light); }.privacy-promise strong { color: var(--indigo); font-family: var(--serif); letter-spacing: .08em; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 42px; border-top: 1px solid rgba(80,61,39,.46); color: var(--muted); font-size: 14px; } footer p { margin: 0; font-family: var(--serif); letter-spacing: .15em; } footer nav { display: flex; align-items: center; gap: 18px; } footer .icon-link { display: inline-flex; align-items: center; gap: 6px; } footer .icon-link img { display: block; width: 16px; height: 16px; border-radius: 3px; opacity: .82; }

@media (max-width: 600px) { body { font-size: 17px; }.section { padding: 70px 0 76px; }.hero { grid-template-columns: 1fr; min-height: 0; gap: 34px; padding-top: 30px; border-top-width: 5px; }.hero-copy { padding-bottom: 0; }.hero-copy::before { top: 52px; left: -8px; height: 50px; }.hero-figure { max-width: 340px; margin-inline: auto; }.hero-image { max-height: 340px; object-position: center; }.worksheet { padding-inline: 20px; margin-inline: 0; }.check-grid { grid-template-columns: 1fr; }.unknown-option { grid-column: auto; } h1 { max-width: 100%; font-size: clamp(29px, 8.2vw, 32px); letter-spacing: .02em; word-break: normal; overflow-wrap: anywhere; } h1 span { word-break: normal; overflow-wrap: anywhere; }.lead { margin: 24px 0 25px; } footer { align-items: flex-start; flex-direction: column; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.button { transition: none; } }

/* Move the single memo action to the selected destination, without worksheet tail. */
.worksheet:has(#next-step:not([hidden])) { padding-bottom: 26px; }
.next-step { margin-top: 32px; padding-top: 24px; }
.copy-status:empty { display: none; }
.selected-copy { margin: 22px 0 28px; padding: 16px 20px 18px; border-left: 3px solid var(--indigo); background: rgba(220,224,215,.42); }
.selected-copy > p:first-child { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.selected-copy .copy-status:not(:empty) { margin: 10px 0 0; }
.copy-slot:empty { display: none; }
@media (max-width: 600px) { .worksheet:has(#next-step:not([hidden])) { padding-bottom: 18px; } .selected-copy { padding: 14px 16px 16px; } }
