/* ==========================================================================
   Texas AI Lab — site styles
   Lifted 1:1 from the design reference (Texas AI Lab.html). Tokens, type, and
   layout match the locked spec.
   ========================================================================== */

/* ---------- Self-hosted fonts (Latin subset) ---------- */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Newsreader-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/Newsreader-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Newsreader-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/Newsreader-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/Newsreader-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/Inter-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Inter-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/Inter-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Inter-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Inter-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/JetBrainsMono-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/JetBrainsMono-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Caveat-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/Caveat-500-normal.woff2') format('woff2'); }

/* ---------- Design tokens ---------- */
:root {
  --paper:       #F6EFE0;
  --paper-2:     #F0E6D0;
  --paper-3:     #EFE5D2;
  --card:        #FFFFFF;
  --card-border: rgba(70,40,20,0.12);
  --ink:        #2A211B;
  --ink-2:      #4A4038;
  --ink-3:      #7A6E63;
  --rule:       #E0D5BF;
  --rule-2:     #D6C9AE;
  --terra:      #C24A22;
  --terra-2:    #A33C18;
  --terra-soft: #E8B59A;
  --ember:      #E07142;
  --gold:       #B8843E;
  --footer:     #2D241D;
  --coal:       #1F1611;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
  --hand:  "Caveat", cursive;

  --card-shadow:
    0 1px 0 rgba(70,40,20,0.04),
    0 18px 40px -22px rgba(70,40,20,0.18),
    0 2px 6px -2px rgba(70,40,20,0.06);
  --portrait-shadow: 0 12px 30px -18px rgba(70,40,20,0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--terra); color: var(--paper); }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(120,100,70,0.04) 0 0.5px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(120,100,70,0.05) 0 0.5px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(120,100,70,0.03) 0 0.5px, transparent 1px);
  background-size: 3px 3px, 5px 5px, 7px 7px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--rule-2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--ink);
}

/* ---------- Brand wordmark ---------- */
.brand {
  display: inline-flex; align-items: baseline; gap: 0.18em;
  font-family: var(--serif); line-height: 1;
}
.brand-place { font-style: italic; color: var(--terra); font-weight: 400; }
.brand-tail  { font-style: normal; color: var(--ink);   font-weight: 400; }
.nav .logo .brand  { font-size: 22px; }
.foot .logo .brand { font-size: 26px; }
.foot .brand .brand-place { color: var(--ember); }
.foot .brand .brand-tail  { color: var(--paper); }
.navlinks { display: flex; gap: 30px; align-items: center; }
.navlinks a {
  color: var(--ink-2); text-decoration: none;
  font-size: 14px; font-weight: 400;
  transition: color .2s ease;
}
.navlinks a:hover { color: var(--ink); }
.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terra); color: var(--paper);
  padding: 10px 18px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.nav .cta:hover { background: var(--terra-2); transform: translateY(-1px); }
@media (max-width: 880px) { .navlinks > a:not(.cta) { display: none; } }

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero { padding: 60px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 60px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

h1.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
h1.display .it { font-style: italic; color: var(--terra); font-weight: 400; }

.lede {
  font-size: 16.5px; line-height: 1.65; color: var(--ink-2);
  max-width: 52ch; margin: 0 0 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 6px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-2); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { background: var(--paper-2); border-color: var(--ink-3); }
.btn .arrow { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arrow { transform: translateX(3px); }

.next-event {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2);
}
.next-event .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--terra);
  box-shadow: 0 0 0 0 rgba(194,74,34,.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(194,74,34,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(194,74,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,74,34,0); }
}
.next-event b { color: var(--ink); font-weight: 500; }

/* ---------- AI Clinic card (hero right) ---------- */
.clinic-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 28px 30px 26px;
  box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; gap: 20px;
  overflow: hidden;
}
.clinic-card > * { position: relative; }

.clinic-tag {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 7px 12px;
  background: rgba(194, 74, 34, 0.08);
  border: 1px solid rgba(194, 74, 34, 0.25);
  border-radius: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--terra); font-weight: 500;
}
.clinic-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--terra);
  box-shadow: 0 0 0 0 rgba(194,74,34,.55);
  animation: clinicPulse 2s ease-out infinite;
}
@keyframes clinicPulse {
  0%   { box-shadow: 0 0 0 0 rgba(194,74,34,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(194,74,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,74,34,0); }
}

.clinic-head {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
}
.clinic-date {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 14px 12px;
  border: 1px solid var(--rule-2); border-radius: 6px;
  background: var(--paper-2);
  min-width: 90px;
}
.clinic-date .dow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 2px;
}
.clinic-date .day {
  font-family: var(--serif); font-weight: 400;
  font-size: 52px; line-height: 1; color: var(--terra);
  letter-spacing: -0.03em;
}
.clinic-date .month {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--ink-2); text-transform: uppercase; margin-top: 4px;
}
.clinic-headline { padding-top: 2px; }
.clinic-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 10px;
  text-wrap: pretty;
}
.clinic-title .it { font-style: italic; color: var(--terra); }
.clinic-when {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
}
.clinic-when svg { color: var(--terra); }
.clinic-when .dot-sep { color: var(--ink-3); margin: 0 2px; }

.clinic-desc {
  font-family: var(--serif); font-size: 17px; line-height: 1.5;
  color: var(--ink-2); margin: 0;
  text-wrap: pretty;
}

.clinic-bring {
  list-style: none; margin: 0; padding: 16px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  display: flex; flex-direction: column; gap: 10px;
}
.clinic-bring li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
}
.clinic-bring .b-num {
  font-family: var(--mono); font-size: 11px; color: var(--terra);
  letter-spacing: 0.08em;
}

.clinic-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--terra); color: #fff;
  padding: 14px 22px; border-radius: 6px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  align-self: stretch;
}
.clinic-cta:hover { background: var(--terra-2); transform: translateY(-1px); }
.clinic-cta .arrow { transition: transform .2s ease; }
.clinic-cta:hover .arrow { transform: translateX(3px); }

.clinic-meta {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-2);
}
.seats { display: flex; align-items: center; gap: 12px; }
.seats-bar {
  flex: 1 1 auto; height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden;
  position: relative;
}
.seats-fill {
  display: block; height: 100%; width: var(--pct, 50%);
  background: linear-gradient(90deg, var(--terra), var(--ember));
  border-radius: 2px;
}
.seats-text { white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }
.seats-text b { color: var(--ink); font-weight: 500; }
.cadence { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }

.clinic-host {
  display: flex; align-items: center; gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
}
.host-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule-2);
}
.host-meta { display: flex; flex-direction: column; line-height: 1.25; }
.host-name { font-family: var(--sans); font-size: 13px; color: var(--ink); font-weight: 500; }
.host-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }

/* ---------- Section ---------- */
section { position: relative; }
.section-eyebrow { display: inline-block; margin-bottom: 14px; }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}
.section-title .it { font-style: italic; color: var(--terra); }

/* ---------- Events ---------- */
.events { padding: 70px 0; border-top: 1px solid var(--rule); }
.events-head {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; margin-bottom: 36px;
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  padding: 7px 14px; border-radius: 6px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { background: var(--paper-2); }
.chip.active { background: var(--terra); color: #fff; border-color: var(--terra); }

.events-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 48px;
  border: 1px solid var(--card-border); border-radius: 6px;
  background: var(--card); padding: 32px;
  box-shadow: var(--card-shadow);
}
@media (max-width: 1080px) { .events-grid { grid-template-columns: 1fr; gap: 28px; padding: 22px; } }

/* Calendar */
.calendar {
  padding: 22px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--paper-2);
}
@media (max-width: 1080px) { .calendar { padding: 18px; } }
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.cal-month {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
}
.cal-nav { display: inline-flex; gap: 6px; }
.cal-nav button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--paper); cursor: pointer; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  transition: all .2s ease;
}
.cal-nav button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-3);
  text-align: center; padding: 8px 0 12px;
  text-transform: uppercase;
}
.cal-cell {
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  border-radius: 6px;
  cursor: default;
  transition: background .15s ease;
}
.cal-cell.muted { color: var(--ink-3); opacity: 0.35; }
.cal-cell.has-event {
  cursor: pointer;
  font-weight: 500;
  background: var(--terra);
  color: #fff;
  border-radius: 6px;
}
.cal-cell.has-event:hover { background: var(--terra-2); }
/* Selected-day click: slightly darker tile + inner ring so it reads as picked. */
.cal-cell.has-event.is-event {
  background: var(--terra-2);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55);
}
/* Out-of-month days that still carry an event: peach-tinted tile so the day
   reads as "an event happens then, but not this month". */
.cal-cell.muted.has-event {
  background: rgba(194,74,34,0.35);
  color: #fff;
  opacity: 1;
}
.cal-cell.muted.has-event:hover { background: rgba(194,74,34,0.5); }

.cal-legend {
  display: flex; gap: 18px; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-3);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--terra);
  display: inline-block;
}
.cal-legend .l-online i { background: var(--gold); }
.cal-legend .l-work i { background: var(--ink); }

/* Events list */
.events-list { display: flex; flex-direction: column; }
.event {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 24px; align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background .25s ease;
}
.event:first-child { padding-top: 0; }
.event:last-child { border-bottom: 0; }
.event-date {
  text-align: left; font-family: var(--mono);
  color: var(--ink-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.3;
}
.event-date .d {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink); display: block;
  margin-top: 2px;
}
.event-body { min-width: 0; }
.event-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 8px;
}
.event[data-type="qa"] .event-meta,
.event[data-type="clinic"] .event-meta { color: var(--gold); }
.event[data-type="workshop"] .event-meta { color: var(--ink); }
.event-meta .sep { color: var(--rule-2); }
.event-meta .time { color: var(--ink-3); letter-spacing: 0.06em; }
.event-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.event-blurb { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 60ch; line-height: 1.55; }
.event-rsvp {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--terra); text-decoration: none;
  align-self: center;
  transition: color .2s ease;
}
.event-rsvp:hover { color: var(--terra-2); text-decoration: underline; }
.event.is-hidden { display: none; }
@media (max-width: 600px) {
  .event { grid-template-columns: 50px 1fr; }
  .event-rsvp { grid-column: 2; margin-top: 4px; }
}

.events-empty {
  padding: 60px 24px; text-align: center; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
}
.events-empty p { margin: 0; max-width: 48ch; }
.events-empty p.serif {
  font-family: var(--serif); font-size: 22px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink);
}
.events-empty p.meta {
  font-family: var(--sans); font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
}

.events-foot { text-align: center; padding-top: 28px; }
.events-foot a {
  color: var(--terra); text-decoration: none; font-weight: 500; font-size: 14px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---------- Services ---------- */
.services { padding: 80px 0; border-top: 1px solid var(--rule); }
.services-head { margin-bottom: 40px; }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.svc-icon { width: 26px; height: 26px; color: var(--ink-2); margin-bottom: 14px; }
.svc-title {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px;
  color: var(--ink);
}
.svc-price {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  color: var(--terra); letter-spacing: -0.01em;
  display: block; margin-bottom: 2px; line-height: 1;
}
.svc-price.compact { font-size: 24px; line-height: 1.2; }
.svc-price-unit {
  font-family: var(--sans); font-size: 13px; color: var(--ink-3);
  margin-bottom: 18px; display: block;
}
.svc-list {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: 13.5px; color: var(--ink-2);
}
.svc-list li {
  padding: 7px 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.svc-list li::before {
  content: ""; width: 14px; height: 14px; flex: 0 0 auto; margin-top: 3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23C24A22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='2 7 6 11 12 3'/></svg>") center/contain no-repeat;
}
.svc-cta {
  background: var(--terra); color: #fff;
  padding: 11px 18px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background .25s ease, transform .25s ease;
}
.svc-cta:hover { background: var(--terra-2); transform: translateY(-1px); }
.svc-cta.outline {
  background: transparent; color: var(--terra); border: 1px solid var(--terra);
}
.svc-cta.outline:hover { background: var(--terra); color: #fff; }

/* ---------- Chapters ---------- */
.chapters { padding: 80px 0; border-top: 1px solid var(--rule); }
.chap-head { margin-bottom: 36px; }
.chap-head .desc {
  font-size: 16px; color: var(--ink-2); max-width: 64ch; margin: 14px 0 0;
}
.chap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .chap-grid { grid-template-columns: 1fr; } }
.chap {
  text-decoration: none; color: inherit; display: block;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.chap:hover { transform: translateY(-4px); }
.chap-photo {
  width: 100%; aspect-ratio: 5/3.6; border-radius: 6px;
  overflow: hidden; position: relative;
  margin-bottom: 18px;
  background: var(--paper-2);
}
.chap-photo svg, .chap-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chap-name {
  font-size: 22px;
  letter-spacing: -0.01em; margin: 0 0 4px;
}
.chap-cities { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.chap-link {
  font-size: 13.5px; font-weight: 500; color: var(--terra);
  border-bottom: 1px solid var(--terra); padding-bottom: 2px;
  display: inline-block;
}

/* ---------- Articles ---------- */
.articles { padding: 80px 0; border-top: 1px solid var(--rule); }
.art-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 36px; gap: 20px; flex-wrap: wrap;
}
.art-head .more {
  color: var(--terra); font-weight: 500; font-size: 14px;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .art-grid { grid-template-columns: 1fr; } }
.art { display: block; text-decoration: none; color: inherit; }
.art-thumb {
  width: 100%; aspect-ratio: 16/10; border-radius: 6px;
  overflow: hidden; position: relative;
  margin-bottom: 18px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  padding: 24px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.art:hover .art-thumb { transform: translateY(-3px); }
.art-thumb svg, .art-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.art-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 14px; margin-bottom: 10px;
}
.art-meta .cat { color: var(--terra); }
.art-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px;
}
.art-excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
.art-read {
  font-size: 13.5px; color: var(--terra); font-weight: 500;
  border-bottom: 1px solid var(--terra); padding-bottom: 2px;
}

/* ---------- Founder ---------- */
.founder { padding: 80px 0; border-top: 1px solid var(--rule); }
.founder-head { margin-bottom: 32px; }
.founder-head .eyebrow { display: block; margin-bottom: 8px; }
.founder-name {
  font-family: var(--serif); font-size: 44px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1; margin: 0 0 4px;
}
.founder-tagline {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--ink-3);
}
.founder-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .founder-grid { grid-template-columns: 1fr; gap: 32px; } }
.portrait {
  aspect-ratio: 1/1; width: 100%; max-width: 280px;
  border-radius: 50%; overflow: hidden;
  background: var(--paper-2);
  position: relative;
  border: 1px solid var(--rule-2);
  box-shadow: var(--portrait-shadow);
}
.portrait img, .portrait svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.founder p {
  color: var(--ink-2); font-size: 16px; line-height: 1.7;
  margin: 0 0 16px;
}
.founder p:first-of-type { margin-top: 0; }
.founder-links {
  margin-top: 18px; display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.founder-links a { color: var(--ink-2); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.founder-links a:hover { color: var(--terra); }
.founder-links svg { width: 14px; height: 14px; flex: 0 0 auto; }

.pullquote { border-left: 2px solid var(--terra); padding: 4px 0 4px 22px; }
.pullquote p {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  line-height: 1.35; color: var(--ink); margin: 0 0 14px;
}
.pullquote .attr {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Footer ---------- */
footer.foot {
  background: var(--footer); color: #C8B89E;
  padding: 64px 0 28px; margin-top: 60px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(200,184,158,0.18);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot .logo { margin-bottom: 14px; }
.foot p.tag { color: #B0A088; font-size: 13.5px; line-height: 1.6; max-width: 32ch; }
.foot h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #F5EEE0; margin: 0 0 16px;
}
.foot a {
  color: #C8B89E; text-decoration: none; display: block;
  padding: 5px 0; font-size: 14px;
  transition: color .2s ease;
}
.foot a:hover { color: var(--terra-soft); }
.news-form { display: flex; gap: 8px; margin-top: 12px; max-width: 360px; }
.news-form input {
  flex: 1; background: transparent;
  border: 1px solid rgba(200,184,158,0.28);
  border-radius: 6px; padding: 11px 14px;
  color: #F5EEE0; font-family: var(--sans); font-size: 13.5px; outline: none;
  transition: border-color .2s ease;
}
.news-form input::placeholder { color: rgba(200,184,158,0.5); }
.news-form input:focus { border-color: var(--terra-soft); }
.news-form button {
  background: var(--terra); color: #fff;
  border: 0; border-radius: 6px; padding: 11px 18px; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  transition: background .25s ease;
}
.news-form button:hover { background: var(--terra-2); }
.foot-newsletter-tag { font-size: 12.5px; color: #8E8068; margin-top: 10px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #8E8068;
}
.foot-socials { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.foot-socials a {
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid rgba(200,184,158,0.22);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.foot-socials a:hover { border-color: var(--terra-soft); color: var(--terra-soft); }
.foot-socials svg { width: 14px; height: 14px; }

.back-to-top {
  background: var(--terra); color: #fff; border-radius: 6px;
  padding: 8px 16px; font-size: 12px; font-weight: 500; cursor: pointer; border: 0;
  text-decoration: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Article (long-form post) ---------- */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 60px 0 80px; }
.article-back {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terra); text-decoration: none;
}
.article-eyebrow { display: block; margin: 36px 0 14px; }
.article-hero {
  margin: 28px 0 0;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  position: relative;
  padding: 24px;
}
.article-hero img { width: 100%; height: 100%; display: block; object-fit: contain; }
.article-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 22px; color: var(--ink);
  text-wrap: balance;
}
.article-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 36px;
}
.article-body { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.article-body p, .article-body ul, .article-body ol { font-family: var(--serif); margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.015em;
  margin: 44px 0 14px; color: var(--ink);
}
.article-body h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  margin: 36px 0 12px; color: var(--ink);
}
.article-body a { color: var(--terra); text-decoration: underline; text-decoration-color: rgba(194,74,34,0.35); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--terra); }
.article-body blockquote {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  border-left: 2px solid var(--terra);
  padding: 4px 0 4px 22px; margin: 32px 0; color: var(--ink);
}
.article-body strong, .article-body b { font-weight: 600; color: var(--ink); }
.article-body em, .article-body i { font-style: italic; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif); float: left;
  font-size: 64px; line-height: 0.85;
  font-weight: 500; color: var(--terra);
  padding: 6px 10px 0 0; margin-top: 4px;
}
.article-author {
  margin-top: 56px; padding: 24px;
  border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper-2);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.article-author img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--rule-2);
}
.article-author .ab-name { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.article-author .ab-bio { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 60ch; }

/* ---------- Articles index (magazine layout) ---------- */
.articles-index { padding: 60px 0 80px; }
.articles-index .ix-head { margin-bottom: 36px; }

/* Tier 1: featured */
.ix-featured { margin: 36px 0 56px; }
.ix-featured-link {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px;
  align-items: stretch;
  text-decoration: none; color: inherit;
}
.ix-featured-illo {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%;
  max-height: 480px;
  padding: 40px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.ix-featured-illo img { width: 100%; max-width: 480px; height: auto; display: block; }
.ix-featured-text { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.ix-featured-eyebrow { color: var(--terra); }
.ix-featured-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.6vw, 48px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0; color: var(--ink);
  text-wrap: balance;
}
.ix-featured-lede {
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
}
.ix-featured-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.ix-featured-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terra);
  margin-top: 4px;
}
.ix-featured-link:hover .ix-featured-title { color: var(--terra); }
@media (max-width: 880px) {
  .ix-featured-link { grid-template-columns: 1fr; gap: 20px; }
  .ix-featured-illo { aspect-ratio: 1.6 / 1; min-height: 0; max-height: none; padding: 28px; }
}

/* Tier 2: magazine grid */
.ix-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin: 0 0 56px;
}
@media (max-width: 720px) { .ix-grid { grid-template-columns: 1fr; gap: 24px; } }
.ix-grid-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 24px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ix-grid-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.ix-grid-thumb {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  aspect-ratio: 1.6 / 1;
  overflow: hidden;
  position: relative;
  padding: 24px;
  margin-bottom: 8px;
}
.ix-grid-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ix-grid-eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.ix-grid-eyebrow .cat { color: var(--terra); }
.ix-grid-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; line-height: 1.2; letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ix-grid-card:hover .ix-grid-title { color: var(--terra); }
.ix-grid-dek {
  font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ix-grid-read {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  margin-top: auto;
}

/* Tier 3: compact list */
.ix-list { display: flex; flex-direction: column; }
.ix-list-row {
  display: grid; grid-template-columns: 0.8fr 2fr; gap: 32px;
  padding: 24px 0;
  border-top: 1px dashed var(--rule-2);
  text-decoration: none; color: inherit;
  align-items: start;
}
.ix-list-row:last-child { border-bottom: 1px dashed var(--rule-2); }
@media (max-width: 720px) { .ix-list-row { grid-template-columns: 1fr; gap: 8px; } }
.ix-list-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; flex-direction: column; gap: 6px;
}
.ix-list-meta .cat { color: var(--terra); }
.ix-list-body { display: flex; flex-direction: column; gap: 8px; }
.ix-list-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
}
.ix-list-row:hover .ix-list-title { color: var(--terra); }
.ix-list-dek { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 64ch; }
.ix-list-read {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Chapter page ---------- */
.chap-hero {
  padding: 60px 0 40px; border-bottom: 1px solid var(--rule);
}
.chap-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 18px 0 14px;
}
.chap-hero .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.chap-hero p.lede { margin-top: 22px; max-width: 60ch; }
.chap-section { padding: 70px 0; border-top: 1px solid var(--rule); }
