/* ============================================================
   Aaron Nesmith-Beck — site styles
   Single-stylesheet, no preprocessor needed.
   ============================================================ */

/* -- Tokens ------------------------------------------------- */
:root {
  --bg: #141312;
  --fg: #ece8de;
  --fg-muted: #cac4b6;
  --fg-faint: #7c776d;
  --hairline: rgba(235, 230, 220, 0.10);
  --accent: oklch(0.72 0.10 45);
  --accent-strong: oklch(0.72 0.10 45);
  --link-underline: rgba(235, 230, 220, 0.45);
  --link-underline-hover: rgba(235, 230, 220, 0.9);
  --highlight: rgba(196, 135, 80, 0.06);
  --focus-ring: oklch(0.72 0.10 45);

  --font-sans: 'Geist', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'Geist Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-serif: Georgia, 'Times New Roman', serif;

  --shell-max: 720px;
  --content-max: 640px;

  color-scheme: dark;
}

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

@font-face {
  font-family: 'General Sans';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/GeneralSans-MediumItalic.woff2') format('woff2');
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* font-synthesis: default `auto` — let browser synthesize italic for Geist (no native italic face) */
}

html {
  /* Hanging-punctuation: lets the quotation marks in testimonials hang outside */
  hanging-punctuation: first last;
}

::selection { background: rgba(235, 232, 225, 0.18); color: var(--fg); }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -- Shell --------------------------------------------------- */
.site-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 40px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.page { max-width: var(--content-max); }

/* -- Nav ---------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 0;
  margin-bottom: 96px;
  position: relative;
}

.nav-brand {
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  z-index: 30;
  position: relative;
  transition: color 0.15s ease;
}
.nav-brand:hover { color: var(--fg); }

.nav-links-desktop {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--fg); }
.nav-link[aria-current="page"] { color: var(--fg); }

.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: var(--fg);
  z-index: 30;
  position: relative;
}
.nav-burger svg line { transition: transform 0.2s ease, opacity 0.15s ease; transform-origin: 11px 7px; }
.nav-burger[aria-expanded="true"] .burger-top    { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-middle { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-bottom { transform: translateY(-6px) rotate(-45deg); }

.nav-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-sheet[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}
.nav-sheet-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 120px 28px 48px;
  height: 100%;
}
.nav-sheet a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
}
.nav-sheet a:hover { color: var(--fg); }
.nav-sheet a[aria-current="page"] { color: var(--fg); }
.nav-sheet a[aria-current="page"]::after {
  content: "●";
  font-size: 14px;
  color: var(--fg-faint);
}

/* -- Typography --------------------------------------------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }

.h1 {
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.2;
  margin: 0 0 28px;
  color: var(--fg);
}

.h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  margin: 64px 0 24px;
  color: var(--fg);
}

.lede {
  font-family: 'General Sans', 'Geist', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 40px;
  text-wrap: pretty;
}

p, .body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 1.2em;
  text-wrap: pretty;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  margin-bottom: 16px;
  display: block;
}

a.inline,
.body a,
.list a,
p a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
a.inline:hover,
.body a:hover,
.list a:hover,
p a:hover { text-decoration-color: var(--link-underline-hover); }

/* -- Lists -------------------------------------------------- */
.list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 1.4em;
}
.list li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 0.6em;
}
.list .sub {
  list-style: circle;
  padding-left: 20px;
  margin: 0.4em 0 0;
}
.list .sub li {
  font-size: 16px;
  color: var(--fg-muted);
  margin: 0;
}

/* -- Home headshot ----------------------------------------- */
.home-headshot {
  width: 140px;
  height: 170px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  margin-bottom: 48px;
}

/* -- Highlight box (coaching outcomes) --------------------- */
.highlight-box {
  margin: 0 0 56px;
  padding: 24px 28px;
  background: var(--highlight);
  border-left: 2px solid var(--accent-strong);
  border-radius: 0 4px 4px 0;
}
.highlight-box .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.highlight-box li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  padding: 6px 0;
}
.highlight-box li::before {
  content: "—";
  color: var(--accent-strong);
  font-family: var(--font-mono);
}

/* -- Accordion --------------------------------------------- */
.accordion-group {
  margin: 0 0 24px;
  border-top: 1px solid var(--hairline);
}
.accordion {
  border-bottom: 1px solid var(--hairline);
}
.accordion-button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  gap: 20px;
  padding: 20px 0;
  width: 100%;
  align-items: baseline;
  text-align: left;
  color: inherit;
  transition: background 0.15s ease;
}
.accordion-button:hover .accordion-lead { color: var(--fg); }
.accordion-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  font-family: var(--font-mono);
}
.accordion-lead {
  font-size: 17px;
  line-height: 1.4;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  transition: color 0.15s ease;
}
.accordion-icon {
  font-size: 14px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
  text-align: right;
  align-self: center;
}
.accordion-button[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }

.accordion-panel {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  gap: 20px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion[data-open="true"] .accordion-panel {
  max-height: 800px;
  padding: 0 0 24px;
}
.accordion-panel-inner > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 0.9em;
}
.accordion-panel-inner > p:last-child { margin-bottom: 0; }

/* -- Endorsement card -------------------------------------- */
.endorsement-card {
  margin: 64px 0;
  padding: 36px 36px 32px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
}
.endorsement-quote {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.endorsement-quote .q {
  color: var(--fg-faint);
  font-family: var(--font-serif);
  font-style: italic;
}
.endorsement-author {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
}
.endorsement-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.endorsement-name {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.3;
}
.endorsement-role {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* -- Timeline (background page) ---------------------------- */
.timeline {
  margin: 0 0 32px;
  border-top: 1px solid var(--hairline);
}
.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.timeline-when {
  font-size: 12px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.timeline-when.muted { color: var(--fg-faint); }
.timeline-body {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.6;
  text-wrap: pretty;
}
.timeline-body.muted { color: var(--fg-muted); }

/* -- Disclosure (collapsible "didn't work out") ----------- */
.disclosure {
  margin: 8px 0 32px;
  border-bottom: 1px solid var(--hairline);
}
.disclosure-button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  color: inherit;
  text-align: left;
}
.disclosure-button > span:first-child {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.disclosure-button .accordion-icon { font-size: 18px; align-self: auto; }
.disclosure-button[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.disclosure-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.disclosure[data-open="true"] .disclosure-panel {
  max-height: 1600px;
  padding-bottom: 24px;
}

/* -- Section heading with hairline above ------------------ */
.h2--bordered {
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.h2--bordered + * { margin-top: 0; }

/* -- Project list ----------------------------------------- */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
.project-list li { margin-bottom: 22px; }
.project-list a {
  font-size: 18px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 4px;
}
.project-desc {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* -- Cal.com embed wrapper -------------------------------- */
.cal-embed {
  width: 100%;
  min-height: 640px;
  overflow: auto;
}
.cal-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -- Footer ----------------------------------------------- */
.site-footer {
  margin-top: 160px;
  padding: 28px 0 56px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-faint);
}
.site-footer .footer-links { display: flex; gap: 24px; }
.site-footer a {
  color: var(--fg-faint);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--fg-muted); }

/* -- Skip link (a11y) ------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

/* -- Responsive ------------------------------------------- */
@media (max-width: 720px) {
  .site-shell { padding: 0 24px; }
  .site-nav { margin-bottom: 56px; }
  .nav-links-desktop { display: none; }
  .nav-burger { display: inline-flex; align-items: center; }
  .nav-sheet { display: block; }
  .site-footer {
    margin-top: 88px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .endorsement-card { padding: 28px 22px 24px; margin: 48px 0; }
  .highlight-box { padding: 20px 22px; margin: 0 0 40px; }
  .cal-embed { min-height: 0; }
  .cal-embed > * { margin-top: 0 !important; margin-bottom: 0 !important; }
  .timeline-row { grid-template-columns: 90px 1fr; gap: 16px; }
  .accordion-button,
  .accordion-panel { grid-template-columns: 40px 1fr 18px; gap: 14px; }
}

@media (max-width: 480px) {
  .site-shell { padding: 0 20px; }
  .endorsement-author { grid-template-columns: 40px 1fr; }
}

/* -- Print ------------------------------------------------- */
@media print {
  .nav-burger, .nav-sheet, .cal-embed, .accordion-icon { display: none; }
  .accordion[data-open="false"] .accordion-panel,
  .disclosure[data-open="false"] .disclosure-panel { max-height: none; padding: 0 0 12px; }
  body { background: white; color: black; }
}
