/* Graerose Consulting. Tokens come from the Graerose design system (tokens.json). */

@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --wine: #7a2e3f;
  --graphite: #23252b;
  --blush: #f0d9d8;
  --rose: #e9b9c0;
  --fog: #eceae7;

  --surface-page: #eceae7;
  --surface-card: #ffffff;
  --ink: #23252b;
  --ink-secondary: #3f434b;
  --ink-muted: #5c616b;
  --border: #d5d2cd;
  --accent: #7a2e3f;
  --on-accent: #ffffff;
  --accent-tint: #f0d9d8;

  /* The dark band and the wine band keep their colors in both themes. */
  --band: #23252b;
  --band-ink: #eceae7;
  --band-ink-secondary: #d4d2ce;
  --band-border: #454850;
  --band-accent: #e9b9c0;

  --font-sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-7: 28px;
  --space-12: 48px;
  --space-20: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: #17181c;
    --surface-card: #23252b;
    --ink: #eceae7;
    --ink-secondary: #c9cbd1;
    --ink-muted: #9da2ac;
    --border: #3a3d45;
    --accent: #e9b9c0;
    --on-accent: #23252b;
    --accent-tint: #4a2a32;
    --band: #23252b;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-card); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 10; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 { font-size: clamp(40px, 6.4vw, 66px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.em { color: var(--accent); }
.lead { font-size: 18px; line-height: 1.65; font-weight: 300; color: var(--ink-secondary); max-width: 62ch; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-7); padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.brand svg { width: 42px; height: 42px; color: var(--accent); flex: none; }
.brand-name { font-size: 23px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.brand-name span { font-weight: 300; color: var(--ink-muted); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-nav a { display: inline-block; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta { color: var(--accent); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface-page); }

/* Hero */
.hero .wrap { display: grid; gap: var(--space-12); align-items: center; padding-top: 40px; padding-bottom: var(--space-20); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-mark { color: var(--accent); width: min(300px, 70%); margin: 0 auto; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding-top: 56px; }
  .hero-mark { width: 100%; max-width: 340px; }
}

/* Sections */
.section { padding: var(--space-20) 0; }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-12); max-width: 70ch; }
.section-head p { color: var(--ink-secondary); }

.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-accent); }
.band .section-head p { color: var(--band-ink-secondary); }

.grid { display: grid; gap: var(--space-4); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

.card { background: var(--surface-card); border-radius: var(--radius-md); padding: var(--space-7); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--ink-secondary); }
.card .meta, .outline .meta { font-family: var(--font-mono); font-size: 13px; line-height: 1.4; color: var(--ink-muted); }

.outline { border: 1px solid var(--band-border); border-radius: var(--radius-md); padding: var(--space-7); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.outline .num, .outline .meta-accent { font-family: var(--font-mono); font-size: 13px; color: var(--band-accent); }
.outline h3 { font-size: 26px; }
.outline p { color: var(--band-ink-secondary); }
.outline .meta { color: #b6b9c0; }
.outline ul { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; color: var(--band-ink-secondary); }
.outline li { padding-left: 18px; position: relative; }
.outline li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--band-accent); }

.checks { margin-top: var(--space-4); border: 1px solid var(--band-border); border-radius: var(--radius-md); padding: 18px 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; color: var(--band-ink-secondary); overflow-x: auto; }
.checks span { color: var(--band-accent); margin-right: 8px; }

/* About */
.about { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.about-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.about-copy p { color: var(--ink-secondary); }
.note { background: var(--accent-tint); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.note .eyebrow { color: var(--ink); }
.note p { color: var(--ink); font-size: 17px; line-height: 1.55; }
.timeline { border-top: 1px solid var(--border); }
.timeline li { display: grid; gap: 4px var(--space-7); padding: 20px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 560px) { .timeline li { grid-template-columns: 130px minmax(0, 1fr); } }
.timeline .when { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); padding-top: 4px; }
.timeline h3 { font-size: 19px; }
.timeline p { color: var(--ink-secondary); }
.skills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-7); }
.skills li { font-family: var(--font-mono); font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink-secondary); }

/* Contact */
.contact { padding: 0 0 var(--space-20); }
.contact-band { background: var(--wine); color: #ffffff; border-radius: var(--radius-md); padding: 56px var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-7); align-items: center; justify-content: space-between; }
@media (min-width: 720px) { .contact-band { padding: 56px var(--space-12); } }
.contact-band > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.contact-band p { font-size: 17px; font-weight: 300; color: #f6e4e6; }
.contact-band .btn { background: #ffffff; color: var(--wine); overflow-wrap: anywhere; }
.contact-band .btn:hover { background: var(--blush); }

/* Footer */
.site-footer { padding: 0 0 32px; font-size: 13px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: var(--space-20) 0; }

.sprite { position: absolute; }
