/* The Map and the Compass: fill-in forms for Threshold clients.
   Same look as dylanmoscovitch.com (tokens copied from its styles.css). Fonts self-hosted beside this file. */
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-roman.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-italic.woff2') format('woff2'); font-style: italic; font-weight: 300 400; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('fonts/cinzel.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 300 600; font-display: swap; }

:root {
  --ground: #16120F; --ground-2: #1F1913;
  --cream: #EEE7DA; --cream-dim: rgba(238, 231, 218, 0.8); --muted: #A59A8C;
  --parch: #F0EADD; --parch-2: #F7F3EA; --ink: #221C16; --ink-soft: #52483C;
  --clay: #C9A961; --clay-deep: #7A5F22;
  --line: rgba(238, 231, 218, 0.16); --line-ink: rgba(34, 28, 22, 0.18);
  --header-h: 72px; --pad: clamp(22px, 5vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--cream-dim);
  font-family: 'Inter', system-ui, sans-serif; font-weight: 300; font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: url('img/grain.svg'); opacity: 0.09; mix-blend-mode: overlay;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 400; color: var(--cream); line-height: 1.08; }
h1 { font-size: clamp(44px, 5.5vw, 78px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--cream); max-width: 34em; }
.label { font-size: 14px; color: var(--muted); margin: 0 0 14px; letter-spacing: 0.01em; }
.small { font-size: 14px; }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: -0.1em; height: 0.2em; background: url('img/stroke.svg') center / 100% 100% no-repeat; }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(22, 18, 15, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand span { font-family: 'Cinzel', serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; font-size: 17px; color: var(--cream); white-space: nowrap; }
.head-links { display: flex; gap: 26px; font-size: 15px; }
.head-links a { text-decoration: none; color: var(--cream); opacity: .85; border-bottom: 1px solid transparent; padding: 6px 0; transition: opacity 250ms ease, border-color 250ms ease; }
.head-links a:hover, .head-links a[aria-current] { opacity: 1; border-color: var(--clay); }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-family: inherit; font-weight: 500; font-size: 15px; padding: 15px 28px; background: var(--cream); color: var(--ground); border: 0; border-radius: 2px; cursor: pointer; transition: background 250ms ease; }
.btn:hover { background: #fff; }
.btn-ink { background: var(--ink); color: var(--parch); }
.btn-ink:hover { background: #000; }
.tlink { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--clay); padding-bottom: 2px; font-weight: 400; }
.tlink:hover { color: var(--clay); }

/* intro band */
.intro { padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 80px); }
.intro h1 { margin: 0 0 22px; }
.intro .lead { margin-bottom: 0; }

/* landing cards */
.choices-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.choices-band .choices { border: 0; }
.choices-band .choice:first-child { padding-left: 0; }
@media (max-width: 860px) { .choices-band .choice { padding-left: 0; padding-right: 0; } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.choice { background: var(--ground); padding: clamp(36px, 4.5vw, 60px) clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; text-decoration: none; transition: background 300ms var(--ease); }
.choice:hover { background: var(--ground-2); }
.choice .n { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 44px; line-height: 1; color: var(--clay); margin: 0 0 18px; }
.choice h2 { margin: 0 0 6px; }
.choice .sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: #D6C9B2; margin: 0 0 18px; }
.choice p { max-width: 28em; }
.choice .go { margin-top: auto; padding-top: 14px; color: var(--cream); font-weight: 400; }
.choice .go span { border-bottom: 1px solid var(--clay); padding-bottom: 2px; }
.after { padding: 44px 0 80px; }
.after p { max-width: 40em; }

/* the form, on parchment */
.sheet { background: var(--parch); color: var(--ink-soft); padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.sheet h2, .sheet h3 { color: var(--ink); }
.sheet .label { color: var(--clay-deep); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px; padding: 44px 0; border-top: 1px solid var(--line-ink); }
.you + .step { border-top: 0; }
.step .n { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 46px; line-height: .9; color: var(--clay-deep); }
.step h2 { margin: 0 0 10px; }
.step .hint { color: var(--ink-soft); max-width: 36em; }
.quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.4; color: var(--ink); max-width: 30em; }

.field { margin: 0 0 26px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .q { display: block; font-weight: 500; font-size: 15px; color: var(--ink); margin: 0 0 4px; }
.field .note { display: block; font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.6;
  background: var(--parch-2); border: 1px solid var(--line-ink); border-radius: 2px; padding: 12px 14px;
  transition: border-color 200ms ease, background 200ms ease;
}
textarea { min-height: 120px; resize: vertical; }
textarea.short { min-height: 84px; }
input:focus, textarea:focus { outline: none; border-color: var(--clay-deep); background: #fff; }
::placeholder { color: #9A8F80; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cols3 .field > label { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 22px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card { border-top: 1px solid var(--clay-deep); padding: 18px 0 6px; margin: 0 0 18px; }
.card .title { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.card .cue { font-size: 14px; color: var(--clay-deep); font-weight: 500; margin: 0 0 8px; }

.stage { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-ink); }
.stage:last-child { border-bottom: 1px solid var(--line-ink); }
.stage .nm { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); line-height: 1.4; }
.stage .nm small { display: block; font-family: 'Cormorant Garamond', serif; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--ink-soft); }

.uselive { margin: 0; padding: 0 0 0 1.1em; }
.uselive li { margin: 0 0 8px; }

.you { background: var(--parch-2); border: 1px solid var(--line-ink); padding: 28px clamp(20px, 3vw, 32px); margin: 0 0 8px; }
.you h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 6px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 16px 0 0; font-size: 15px; color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--clay-deep); }
.check em { display: block; font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--ink-soft); }

.send { padding-top: 40px; border-top: 1px solid var(--line-ink); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.saved { font-size: 14px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* thanks */
.done { min-height: calc(100vh - var(--header-h) - 120px); display: flex; align-items: center; padding: 80px 0; }
.done h1 { margin: 0 0 20px; }

/* footer */
.site-footer { background: #0F0C0A; border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--cream); text-decoration: none; opacity: .88; }
.site-footer a:hover { color: var(--clay); opacity: 1; }

@media (max-width: 860px) {
  .head-links { display: none; }
  .brand span { font-size: 14px; letter-spacing: 0.18em; }
  .brand img { height: 22px; }
  .choices, .cols3, .cols2 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step .n { font-size: 38px; }
  .stage { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .choice, input, textarea { transition: none; } }

/* reflective pacing (copy round 2) */
.intro .pause { margin: 22px 0 0; max-width: 36em; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: #D6C9B2; }
.card .cue { font-weight: 400; color: var(--ink-soft); font-size: 15px; }
.card .title + .cue { margin-top: -4px; }
.stage .nm .line { display: block; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin-top: 4px; font-weight: 300; }
.stage { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.stage input { margin-top: 4px; }

/* login gate */
.gate { min-height: calc(100vh - var(--header-h) - 110px); display: flex; align-items: center; padding: clamp(64px, 9vw, 120px) 0; }
.gate-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(36px, 7vw, 96px); align-items: center; width: 100%; }
.gate h1 { margin: 0 0 22px; }
.gate-card { background: var(--ground-2); border: 1px solid var(--line); padding: clamp(28px, 3.5vw, 44px); }
.gate-card label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 10px; letter-spacing: .01em; }
.gate-card input[type=password] { width: 100%; background: rgba(238,231,218,.06); color: var(--cream); border: 1px solid var(--line); font-size: 18px; letter-spacing: .08em; padding: 14px 16px; }
.gate-card input[type=password]:focus { background: rgba(238,231,218,.1); border-color: var(--clay); }
.gate-card .btn { width: 100%; margin-top: 18px; }
.gate-msg { min-height: 0; margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--cream-dim); }
.gate-msg:empty { margin: 0; }
.gate-msg.is-error { color: #E0C87A; }
.gate-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .gate-grid { grid-template-columns: 1fr; } }

/* ---------- version 2 (2026-11-15) ---------- */
/* name and email now sit just above the send button */
.hp + .step { border-top: 0; }
.you { margin: 0 0 8px; }
.step + .you { margin-top: 8px; }

/* one step per screen (only when the script runs; without it the form is one long page) */
.paged > .step:not(.is-current), .paged > .you:not(.is-current), .paged > .send:not(.is-current) { display: none; }
.paged > .step.is-current { border-top: 0; padding-top: 28px; }
.paged > .step[data-page="send"].is-current { padding-bottom: 32px; }
.paged h2:focus { outline: none; }
.path { scroll-margin-top: calc(var(--header-h) + 16px); margin: 0 0 8px; position: relative; }
.path-track { position: absolute; left: 9px; right: 9px; top: 9px; height: 1px; background: var(--line-ink); }
.path-fill { height: 1px; width: 0; background: var(--clay-deep); transition: width 700ms var(--ease); }
.path-nodes { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.path-node { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; color: var(--ink-soft); }
.path-dot { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line-ink); background: var(--parch); transition: background 400ms ease, border-color 400ms ease; }
.path-label { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; line-height: 1; }
.is-done .path-dot { background: var(--clay-deep); border-color: var(--clay-deep); }
.is-now .path-dot { border-color: var(--clay-deep); box-shadow: inset 0 0 0 4px var(--parch), inset 0 0 0 10px var(--clay-deep); }
.is-now .path-label { color: var(--ink); }
.path-here { margin: 18px 0 0; font-size: 14px; color: var(--clay-deep); letter-spacing: .01em; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-ink); }
.pager [hidden] { display: none; }
.pager .btn-ink:only-child, .pager .btn-ink { margin-left: auto; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-ink); }
.btn-line:hover { background: var(--parch-2); }
.paged > .send.is-current { border-top: 0; padding-top: 12px; }

/* three slow breaths */
.breath { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0; }
.step.breathing > div:last-child > :not(.breath) { display: none; }
.step.breathing > .n { visibility: hidden; }
.breath-ring { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--clay-deep); margin: 0 0 30px; transform: scale(.55); transition: transform 4500ms cubic-bezier(.45, 0, .55, 1); }
.breath-ring.in { transform: scale(1); }
.breath-ring.out { transform: scale(.55); transition-duration: 5500ms; }
.breath-word { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 30px; color: var(--ink); margin: 0 0 4px; }
.breath-count { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; }
.breath-skip { background: none; border: 0; border-bottom: 1px solid var(--line-ink); padding: 2px 0; font: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.breath-skip:hover { color: var(--ink); border-color: var(--clay-deep); }
.step.arrived > div:last-child { animation: arrive 900ms var(--ease) both; }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

/* the Map's sent copy, and the Compass pairing cards */
.copy { margin: 4px 0 26px; }
.copy-label { font-size: 14px; color: var(--clay-deep); margin: 0 0 10px; }
.copy-item, .pair { border-left: 1px solid var(--clay-deep); padding: 4px 0 4px 16px; margin: 0 0 16px; }
.copy-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; color: var(--ink); line-height: 1.25; margin: 0 0 4px; }
.copy-text { font-size: 15px; color: var(--ink-soft); white-space: pre-wrap; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.chip { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-ink); background: var(--parch-2); color: var(--ink); cursor: pointer; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip:hover { border-color: var(--clay-deep); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--parch); }
.chips-empty { font-size: 14px; color: var(--ink-soft); font-style: italic; }
.pair-line { font-size: 15px !important; padding: 10px 12px !important; }

/* thank-you page: clear from this device */
.clear { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 34em; }
.clear button { background: none; border: 0; padding: 0 0 2px; border-bottom: 1px solid var(--muted); font: inherit; font-size: 15px; color: var(--cream); cursor: pointer; }
.clear button:hover { color: var(--clay); border-color: var(--clay); }
.clear small { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.clear [data-clear-msg] { display: block; font-size: 14px; color: var(--cream-dim); }

@media (max-width: 860px) {
  .path-label { font-size: 16px; }
  .breath { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .path-fill, .path-dot, .chip { transition: none; }
  .step.arrived > div:last-child { animation: none; }
}

/* thank-you page, APPPE copy (v2) */
.said p { max-width: 34em; }
.said .lead { margin-bottom: 1.1em; }
.said .act { margin: 30px 0 0; }
