/* ─────────────────────────────────────────────────────────────
   The Open Clearing — stylesheet
   Design tokens and patterns are carried over from findthepause.com
   (The Pause): EB Garamond throughout, the same palette, Roman-numeral
   section markers, letterspaced eyebrows and the forest-deep footer.
   This site is quieter: no motion, no scripts, one photograph.
   ───────────────────────────────────────────────────────────── */

/* EB Garamond, self-hosted (SIL Open Font License 1.1).
   Variable files, wght axis 400–800. latin-ext is only downloaded if a
   glyph in its unicode-range appears on the page. */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin.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 800;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-ext.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 800;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-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 800;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-ext-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;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:         #EEE9DF;
  --cream-soft:    #E5DFD1;
  --linen:         #F3EEE3;
  --forest-deep:   #1F2A1E;
  --forest:        #324032;
  --forest-mid:    #5C6C57;
  --forest-lt:     #8A9A80;
  --ink:           #22271F;
  --ink-soft:      #4F554C;
  --wood:          #8D5F3C;
  --wood-deep:     #6B4729;
  --rule:          rgba(34,39,31,0.15);
  --on-dark:       rgba(238,233,223,0.92);
  --on-dark-soft:  rgba(238,233,223,0.72);
  --serif:         'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --gutter:        64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  font-size: 20px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--cream);
  color: var(--forest-deep);
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  z-index: 200;
}
.skip-link:focus { left: 12px; }

/* Visible focus for keyboard nav */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}
.on-dark a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--cream); }

/* Anchored sections land with a little air above them */
section[id] { scroll-margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ─── Header + hero: one forest-deep band ─── */
.masthead {
  background: var(--forest-deep);
  color: var(--on-dark);
}
.site-header {
  /* Header shares the 1100px column with the hero below it, so the
     wordmark and the hero text start on the same left edge. */
  padding: 28px max(var(--gutter), calc((100% - 1100px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
/* Wordmark: same treatment as "The Pause" — 500 weight, slight tracking,
   tight leading, never wraps. */
.wordmark {
  font-family: var(--serif);
  font-size: 48px; font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(240,236,226,1);
  text-decoration: none;
}
.header-links {
  display: flex; gap: 40px; list-style: none;
}
.header-links a {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-bottom-color 0.3s;
  white-space: nowrap;
}
.header-links a:hover { color: #D8B48F; border-bottom-color: currentColor; }

.hero {
  padding: 120px var(--gutter) 130px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: rgba(240,236,226,0.98);
  max-width: 860px;
  margin: 32px 0 48px;
  text-wrap: balance;
}

/* ─── Numeral marker + section eyebrow ─── */
.num-rule {
  display: inline-flex; align-items: baseline; gap: 16px;
  font-style: italic;
  font-size: 1.25rem; font-weight: 500;
  color: var(--forest-mid);
}
.num-rule::after {
  content: ''; display: block;
  width: 52px; height: 1px;
  background: var(--forest-lt);
  align-self: center;
  transform: translateY(3px);
}
.on-dark .num-rule { color: rgba(238,233,223,0.72); }
.on-dark .num-rule::after { background: rgba(238,233,223,0.4); }

.section-label {
  display: block;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--wood);
  margin-top: 22px;
}
.on-dark .section-label { color: #D8B48F; }

/* ─── Arrow link (findthepause's quiet secondary link) ─── */
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--wood);
  text-decoration: none;
  transition: gap 0.3s, color 0.3s;
}
.arrow-link:hover { gap: 22px; color: var(--wood-deep); }
.on-dark .arrow-link { color: #D8B48F; }
.on-dark .arrow-link:hover { color: var(--cream); }
@media (prefers-reduced-motion: reduce) {
  .arrow-link { transition: none; }
}

/* ─── Sections ─── */
.sec { padding: 140px var(--gutter); }
.sec-inner { max-width: 1100px; margin: 0 auto; }
.sec-head { margin-bottom: 48px; }
.sec-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 400;
  line-height: 1.16;
  color: var(--forest-deep);
  letter-spacing: -0.005em;
  margin-top: 28px;
}
/* An eyebrow that is also the section's heading (Founders). */
.sec-head h2.section-label {
  font-size: 12px; font-weight: 500; line-height: inherit;
  letter-spacing: 0.3em; margin-top: 22px;
}
.prose { max-width: 760px; }
.prose p {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
}
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--forest-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--forest-lt);
}
.prose a:hover { color: var(--wood); text-decoration-color: currentColor; }

.company { background: var(--cream); }
.founders { background: var(--cream-soft); }
.contact { background: var(--linen); }

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.bio h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.1rem);
  font-weight: 400;
  color: var(--forest-deep);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.bio-role {
  display: block;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--wood);
  margin-bottom: 22px;
}
.bio p {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 80px;
  max-width: 900px;
}
.contact-grid dt {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 10px;
}
.contact-grid dd {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}
.contact-grid dd address { font-style: normal; }
.contact-grid a {
  color: var(--forest-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--forest-lt);
  overflow-wrap: anywhere;
}
.contact-grid a:hover { color: var(--wood); text-decoration-color: currentColor; }

/* ─── Long-form pages (privacy, 404) ─── */
.page-head { padding: 96px var(--gutter) 88px; }
.page-head .hero-inner { max-width: 760px; }
.page-head h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.14;
  color: rgba(240,236,226,0.98);
  margin-top: 28px;
}
.page-head p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--on-dark-soft);
}
.page-body { padding: 110px var(--gutter) 140px; }
.page-body-inner { max-width: 760px; margin: 0 auto; }
.page-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 400;
  color: var(--forest-deep);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 2.4em 0 0.5em;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li {
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.page-body p { margin-bottom: 1em; }
.page-body ul { list-style: none; margin: 0 0 1.2em; }
.page-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.5em;
}
.page-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.82em;
  width: 14px; height: 1px;
  background: var(--forest-lt);
}
.page-body strong { font-weight: 600; color: var(--forest-deep); }
.page-body a {
  color: var(--forest-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--forest-lt);
  overflow-wrap: anywhere;
}
.page-body a:hover { color: var(--wood); text-decoration-color: currentColor; }

/* Unresolved facts. Deliberately loud so none ship unnoticed. */
.todo {
  background: #FFE9A8;
  color: #3A2C00;
  font-style: normal;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.75em;
  padding: 1px 6px;
  border-radius: 2px;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--forest-deep);
  padding: 90px var(--gutter) 56px;
  color: rgba(238,233,223,0.68);
  text-align: center;
}
.footer-word {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(238,233,223,0.9);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.footer-rule {
  width: 90px; height: 1px;
  margin: 9px auto 18px;
  border: 0;
  background: #6E7566;
}
.footer-tagline {
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: #A3AA99;
  line-height: 1;
  text-indent: 0.34em;
  margin-bottom: 48px;
}
.site-footer p {
  font-size: 14px; line-height: 2;
  letter-spacing: 0.02em;
}
.site-footer p + p { margin-top: 6px; }
.site-footer a {
  color: rgba(238,233,223,0.85);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(238,233,223,0.35);
  transition: text-decoration-color 0.2s ease;
}
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer .footer-word { text-decoration: none; }
.nowrap { white-space: nowrap; }

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .wordmark { font-size: 42px; }
  .header-links { gap: 28px; }
  .header-links a { font-size: 13px; letter-spacing: 0.18em; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  body { font-size: 18.5px; }
  .site-header { padding-top: 24px; padding-bottom: 24px; }
  .hero { padding-top: 80px; padding-bottom: 96px; }
  .sec { padding-top: 100px; padding-bottom: 100px; }
  .founders-grid { grid-template-columns: 1fr; gap: 56px; }
  .page-head { padding-top: 64px; padding-bottom: 64px; }
  .page-body { padding-top: 80px; padding-bottom: 100px; }
  .site-footer { padding-top: 64px; padding-bottom: 44px; }
}

@media (max-width: 560px) {
  body { font-size: 17.5px; }
  /* Wordmark on its own line; anchor links sit beneath it. */
  .wordmark { font-size: 36px; }
  .header-links { gap: 22px; }
  .header-links a { font-size: 12px; letter-spacing: 0.16em; }
  .hero { padding-top: 48px; padding-bottom: 80px; }
  .hero h1 { font-size: 2.1rem; }
  .footer-word { font-size: 2rem; white-space: normal; line-height: 1.15; }
  .footer-tagline { font-size: 12px; letter-spacing: 0.26em; text-indent: 0.26em; }
}

/* Arrow links inside long-form copy keep their own styling */
.page-body a.arrow-link { color: var(--wood); text-decoration: none; }
.page-body a.arrow-link:hover { color: var(--wood-deep); }
.page-body .back-link { margin-top: 32px; }

/* cream-soft is a shade darker than cream, which drops wood and forest-mid
   just under AA for small text. Step each down one tone in that section. */
.founders .section-label,
.founders .bio-role { color: var(--wood-deep); }
.founders .num-rule { color: var(--forest); }

/* ─── Privacy policy: subsection headings and provider table ───
   Copied from findthepause so the shared policy renders the same. */
.page-body h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--forest-deep);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 1.8em 0 0.5em;
}
.page-body h3[id] { scroll-margin-top: 24px; }
/* The table wrapper scrolls rather than the page, so the viewport never
   scrolls sideways on a phone. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.6em;
}
.table-scroll:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 4px;
}
.prose-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.prose-table th,
.prose-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--rule);
}
.prose-table th {
  font-weight: 600;
  color: var(--forest-deep);
}
.prose-table tbody tr:last-child td { border-bottom: 0; }
