/* =========================================================
   Adam C. Higdon — hub design system
   Aesthetic: refined editorial. Warm paper, deep ink,
   one cool petrol accent. Fraunces display + Newsreader
   body + JetBrains Mono labels.
   ========================================================= */

:root {
  --paper:    #FAF7F0;
  --paper-2:  #F1EBDF;
  --ink:      #17150F;
  --ink-2:    #423C30;
  --muted:    #7C7565;
  --accent:   #1C4B47;
  --accent-2: #2C6B65;
  --line:     rgba(23, 21, 15, 0.12);
  --line-2:   rgba(23, 21, 15, 0.06);

  --maxw: 1140px;
  --readw: 660px;

  --f-display: "Fraunces", Georgia, serif;
  --f-body:    "Newsreader", Georgia, serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }

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

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.lead { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--ink); line-height: 1.5; }

.readcol { max-width: var(--readw); }
.readcol p + p { margin-top: 1.2em; }

/* ---------- Header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: var(--maxw); margin: 0 auto; }
.brand { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(80px, 14vh, 150px) 0 84px; }
.hero h1 { margin: 18px 0 26px; }
.hero .lead { max-width: 620px; }
.hero-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 4px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Grids / cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 34px 30px; transition: background .25s ease; }
.card:hover { background: var(--paper-2); }
.card .eyebrow { display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1rem; color: var(--ink-2); }
.card .more { display: inline-block; margin-top: 16px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* list rows (articles / speaking) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row .meta { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.row h3 { font-size: 1.25rem; }
.row p { font-size: 0.98rem; margin-top: 4px; }
.row .where { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

/* two-column editorial split */
.split { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 64px; align-items: start; }
.split .label { position: sticky; top: 110px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 60px 0 70px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--ink); text-decoration: none; }
.foot-note { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 8px; }

/* ---------- Load animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  section { padding: 66px 0; }
  .nav { padding: 16px 22px; }
  .wrap { padding: 0 22px; }
  .nav-links { gap: 18px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 22px 22px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; background: none; border: 0; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .label { position: static; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row .where { white-space: normal; }
}
