/* =====================================================================
   Girum Systems — styles.css
   One page. Light, editorial, restrained. The restraint is the signal.
   Sections, top to bottom: corner brand → hero → problem → what we do
   → proof (windowed panel) → audit → book + calendar → footer.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette — off-white base, near-black text, muted gray, ONE accent. */
  --bg:        #FBFBFA;   /* off-white, not pure white */
  --text:      #121314;   /* near-black */
  --muted:     #6b6f73;   /* secondary copy — must pass AA on bg */
  --rule:      #e6e6e3;   /* very light hairline */

  /* Accent: warm amber. Used ONLY on CTA, links, and emphasis marks. */
  /* TODO: confirm final accent hex with owner. */
  --accent:    #a9651a;   /* restrained warm amber */
  --accent-2:  #8a5214;   /* hover/pressed state */

  /* Type */
  --sans:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;

  /* Scale */
  --hero:    clamp(2.4rem, 5.5vw, 3.75rem);
  --h2:      clamp(1.5rem, 3vw, 1.875rem);
  --body:    1.125rem;

  /* Layout */
  --frame:   1100px;   /* full page frame */
  --prose:   680px;    /* text blocks */
  --gap:     clamp(64px, 10vw, 128px); /* section breathing room */
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3. Corner brand ---------- */
.corner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 32px 24px 0;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);     /* wordmark stays neutral, not accent */
}
.wordmark:hover { text-decoration: none; }

.corner-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---------- 4. Layout primitives ---------- */
main {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  max-width: var(--prose);
  margin: 0 auto;
  padding-top: var(--gap);
}
.section > p,
.section .lede,
.section .outcomes { margin-top: 1.25rem; }
.section p + p { margin-top: 1.1rem; }

/* Mono bracket kicker — the operator/technical signal. On every section. */
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.section-heading {
  font-size: var(--h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.muted { color: var(--muted); }
.lede { font-size: 1.2rem; line-height: 1.55; }

.emphasis { color: var(--accent); font-weight: 500; }

/* ---------- 5. Hero ---------- */
.hero {
  max-width: var(--prose);
  margin: 0 auto;
  padding: clamp(72px, 14vw, 128px) 0 var(--gap);
}
.hero-headline {
  font-size: var(--hero);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.hero-subhead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 2.5rem;
  max-width: 36ch;
}

/* ---------- 6. CTA ---------- */
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cta:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  text-decoration: none;
}
.cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.cta-secondary { background: transparent; color: var(--accent); }
.cta-secondary:hover { background: var(--accent); color: var(--bg); }

/* ---------- 7. Anchor line (the "two-week vacation" line) ---------- */
.anchor-line {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* ---------- 8. Outcomes list (Section 3) ---------- */
.outcomes {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}
.outcomes li { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.outcomes h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.muted-tag { color: var(--muted); font-weight: 400; }
.outcomes p { margin: 0; }

.section-close {
  margin-top: 2.25rem;
  font-size: 1.05rem;
  color: var(--text);
}

/* Note under the proof panel — quiet, ties the demo to the pattern. */
.panel-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* ---------- 9. The windowed panel (Proof — used ONCE) ---------- */
.window {
  margin-top: 2rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--rule);
  overflow: hidden;
}
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #f4f4f1;
  border-bottom: 1px solid var(--rule);
}
.window-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
/* faux corner ticks (middots, not em dashes) */
.window-ticks::before { content: "·  ·  ·"; color: var(--rule); letter-spacing: 0.3em; }
.window-body { padding: 1.5rem; }

.teardown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.step-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.step-body { margin: 0; font-size: 1rem; line-height: 1.55; }
.teardown-arrow { display: none; color: var(--muted); text-align: center; }

/* ---------- 10. Audit questions ---------- */
.audit-questions {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.audit-questions li { margin-bottom: 0.6rem; }

/* ---------- 11. Book section + calendar ---------- */
.section-book {
  text-align: center;
  border-top: 1px solid var(--rule);
  padding-top: var(--gap);
  max-width: var(--prose);
}
.section-book .section-heading { max-width: 18ch; margin-inline: auto; }

.cal-embed {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* calendar spans full column width on mobile */
  gap: 1rem;
  min-height: 480px; /* reserve space so layout doesn't jump when calendar loads */
}
/* Cal.com inline injects an iframe into #my-cal-inline — keep it responsive. */
.cal-inline { width: 100%; min-height: 480px; }
.cal-embed iframe {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
}
.embed-fallback { font-size: 0.9rem; text-align: center; }

/* ---------- 12. Footer ---------- */
.footer {
  max-width: var(--frame);
  margin: var(--gap) auto 0;
  padding: 0 24px 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}
.wordmark-footer { font-size: 1rem; margin: 0; }
.footer .muted { font-size: 0.9rem; margin: 0; }

/* ---------- 13. Responsive ---------- */
@media (min-width: 760px) {
  /* Teardown becomes a horizontal before → build → after flow */
  .teardown {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
  }
  .teardown-arrow {
    display: block;
    align-self: center;
    font-size: 1.25rem;
    padding-top: 1.4rem; /* align with step label offset */
  }
}

@media (max-width: 600px) {
  .corner { padding-top: 24px; }
  .corner-link { display: none; } /* keep CTA uncluttered on phones */
  .footer { flex-direction: column; gap: 0.5rem; }
  .anchor-line { font-size: 1.3rem; padding-left: 0.75rem; }
}

/* ---------- 14. Motion / accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
