/* Component-specific styles for the UI kit. Tokens come from colors_and_type.css */
@import url('../../colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-serif);
  color: var(--fg);
  background: var(--bg-page);
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.ph { padding: 22px 48px; border-bottom: 1px solid var(--ink); background: var(--cream); position: sticky; top: 0; z-index: 50; }
.ph-inner { max-width: var(--measure); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.ph-mark { font-family: var(--font-serif); font-size: 20px; font-weight: 400; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); font-variation-settings: "opsz" 24; }
.ph-mark em { font-style: italic; font-weight: 500; color: var(--forest); }
.ph-nav { display: flex; gap: 28px; align-items: center; }
.ph-nav a { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color 150ms, border-color 150ms; }
.ph-nav a:hover { color: var(--forest); border-bottom-color: var(--brass); }
.ph-nav a.active { color: var(--forest); border-bottom-color: var(--forest); }
.ph-meta { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-muted); }

/* --- Hero --- */
.hero { padding: 110px 48px 96px; background: var(--cream); border-bottom: 1px solid var(--ink); }
.hero-in { max-width: var(--measure); margin: 0 auto; }
.hero-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--forest); margin-bottom: 28px; }
.hero-title { font-size: 132px; font-weight: 300; letter-spacing: -0.045em; line-height: 0.9; margin: 0 0 36px; font-variation-settings: "opsz" 72; max-width: 1100px; }
.hero-title em { font-style: italic; font-weight: 500; color: var(--forest); }
.hero-pitch { font-size: 22px; line-height: 1.5; max-width: 720px; color: var(--ink-soft); font-weight: 300; font-variation-settings: "opsz" 24; margin: 0 0 40px; }
.hero-pitch em { font-style: italic; color: var(--forest); font-weight: 400; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Primitives --- */
.btn { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; padding: 14px 26px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; display: inline-block; cursor: pointer; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.btn.primary { background: var(--forest); color: var(--cream); border-color: var(--forest); box-shadow: 4px 4px 0 var(--brass); }
.btn.primary:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--brass); }
.btn.primary:active { transform: translate(1px,1px); box-shadow: 0 0 0 var(--brass); }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px,1px); box-shadow: none; }

.kicker { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--forest); margin-bottom: 16px; }
.section-title { font-size: 52px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; margin: 0 0 48px; font-variation-settings: "opsz" 72; }
.section-title em { font-style: italic; font-weight: 500; color: var(--forest); }

.section { padding: 96px 48px; border-bottom: 1px solid var(--ink); }
.section-in { max-width: var(--measure); margin: 0 auto; }
.section.dark { background: var(--forest-deep); color: var(--cream); }
.section.dark .kicker { color: var(--brass-soft); }
.section.dark .section-title em { color: var(--brass-soft); }

/* --- Essay index row --- */
.eidx { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.eidx-row { display: grid; grid-template-columns: 120px 1fr 180px; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--rule); align-items: baseline; text-decoration: none; color: var(--ink); transition: background 150ms, padding 200ms var(--ease); }
.eidx-row:hover { background: rgba(184,149,74,0.06); padding-left: 12px; padding-right: 12px; }
.eidx-no { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--brass); }
.eidx-ttl { font-size: 32px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; font-variation-settings: "opsz" 48; }
.eidx-ttl em { font-style: italic; font-weight: 500; color: var(--forest); }
.eidx-ttl .dek { display: block; font-size: 15px; font-style: italic; font-weight: 300; color: var(--ink-muted); margin-top: 10px; line-height: 1.5; font-variation-settings: "opsz" 16; }
.eidx-date { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-muted); text-align: right; line-height: 1.6; }

/* --- Essay reader --- */
.reader { padding: 80px 48px 120px; background: var(--cream); }
.reader-in { max-width: 860px; margin: 0 auto; }
.reader-back { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); text-decoration: none; margin-bottom: 48px; display: inline-block; }
.reader-back:hover { color: var(--forest); }
.reader-kicker { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--forest); padding-bottom: 8px; border-bottom: 1px solid var(--forest); display: inline-block; padding-right: 32px; margin-bottom: 24px; }
.reader h1 { font-size: 72px; font-weight: 400; line-height: 1; letter-spacing: -0.035em; margin: 0 0 24px; font-variation-settings: "opsz" 72; }
.reader h1 em { font-style: italic; font-weight: 500; color: var(--forest); }
.reader-dek { font-size: 24px; font-style: italic; font-weight: 300; line-height: 1.4; color: var(--ink-soft); margin: 0 0 32px; font-variation-settings: "opsz" 24; max-width: 90%; }
.reader-byline { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; padding-bottom: 24px; border-bottom: 1px solid var(--rule); margin-bottom: 40px; color: var(--ink-muted); }
.reader-byline span { color: var(--forest); font-weight: 500; }
.reader-body { font-size: 18px; line-height: 1.7; font-variation-settings: "opsz" 16; }
.reader-body p { margin: 0 0 16px; }
.reader-body p:first-of-type::first-letter { font-size: 84px; line-height: 0.85; float: left; margin: 8px 10px 0 0; font-weight: 500; color: var(--forest); font-variation-settings: "opsz" 72; }
.reader-body .sub { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--forest); margin: 28px 0 14px; font-weight: 500; }
.reader-body em { font-style: italic; font-weight: 500; color: var(--forest); }
.reader-body .pq { position: relative; font-style: italic; font-size: 26px; line-height: 1.4; padding: 24px 0 24px 40px; border-left: 3px solid var(--forest); margin: 28px 0; font-variation-settings: "opsz" 24; }
.reader-body .pq::before { content: '"'; position: absolute; left: 8px; top: 14px; font-size: 58px; color: var(--brass); line-height: 1; }

/* --- Bio --- */
.bio-card { background: var(--forest); color: var(--cream); padding: 56px; position: relative; overflow: hidden; max-width: 780px; }
.bio-card::before { content:''; position:absolute; top:0; left:0; width:80px; height:2px; background: var(--brass); }
.bio-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; color: var(--brass-soft); text-transform: uppercase; margin-bottom: 32px; }
.bio-head { padding-bottom: 28px; border-bottom: 1px solid var(--moss); margin-bottom: 28px; }
.bio-name { font-size: 48px; font-weight: 400; line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 10px; font-variation-settings: "opsz" 72; }
.bio-name em { font-style: italic; font-weight: 500; color: var(--brass-soft); }
.bio-role { font-style: italic; font-size: 18px; color: var(--sage); font-weight: 300; font-variation-settings: "opsz" 16; }
.bio-body { font-size: 16.5px; line-height: 1.65; margin-bottom: 32px; font-weight: 300; font-variation-settings: "opsz" 16; }
.bio-body em { font-style: italic; color: var(--brass-soft); font-weight: 400; }
.bio-affils { font-family: var(--font-mono); font-size: 11px; line-height: 2.1; color: var(--sage); letter-spacing: 0.02em; }
.bio-affils span { color: var(--brass); margin-right: 14px; font-weight: 500; }
.bio-cred { margin-top: 36px; }
.cred-line { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--moss); border-bottom: 1px solid var(--moss); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--sage); flex-wrap: wrap; }
.cred-line b { color: var(--brass); font-weight: 500; letter-spacing: 0.3em; }
.cred-line .sep { color: var(--moss); }
.cred-line.light { border-color: var(--ink); color: var(--ink-soft); }
.cred-line.light .sep { color: var(--rule); }

/* --- Speaker --- */
.spk-card { background: var(--paper); border: 1px solid var(--ink); padding: 48px; box-shadow: 6px 6px 0 var(--moss); max-width: 680px; }
.spk-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; color: var(--forest); text-transform: uppercase; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--forest); }
.spk-name { font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.025em; margin: 0 0 8px; font-variation-settings: "opsz" 72; }
.spk-name em { font-style: italic; font-weight: 500; color: var(--forest); }
.spk-title { font-style: italic; font-size: 17px; color: var(--ink-soft); margin-bottom: 28px; font-variation-settings: "opsz" 16; }
.spk-q { font-style: italic; font-size: 22px; line-height: 1.4; padding: 20px 0 20px 32px; border-left: 3px solid var(--forest); margin: 24px 0; position: relative; font-variation-settings: "opsz" 24; }
.spk-q::before { content: '"'; position: absolute; left: 6px; top: 12px; font-size: 58px; color: var(--brass); line-height: 1; }
.spk-cred { font-family: var(--font-mono); font-size: 11px; line-height: 2; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.spk-cred span { color: var(--forest); font-weight: 500; margin-right: 8px; }

/* --- Brand ecosystem (inverse) --- */
.eco { border: 1px solid var(--moss); display: grid; grid-template-columns: repeat(3, 1fr); }
.eco-cell { padding: 40px; border-right: 1px solid var(--moss); }
.eco-cell:last-child { border-right: none; }
.eco-cell.center { background: rgba(184,149,74,0.05); }
.eco-sw { display: flex; gap: 6px; margin-bottom: 24px; }
.eco-sw div { width: 26px; height: 26px; border: 1px solid rgba(242,239,230,0.15); }
.eco-name { font-size: 30px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 4px; font-variation-settings: "opsz" 72; }
.eco-name em { font-style: italic; font-weight: 500; color: var(--brass-soft); }
.eco-role { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--brass-soft); margin-bottom: 20px; }
.eco-body { font-size: 15px; line-height: 1.55; color: var(--sage); font-weight: 300; font-variation-settings: "opsz" 16; }
.eco-body em { color: var(--brass-soft); font-style: italic; font-weight: 400; }

/* --- Footer --- */
.pf { padding: 64px 48px; background: var(--cream); text-align: center; }
.pf p { font-style: italic; font-size: 18px; max-width: 640px; margin: 0 auto 24px; line-height: 1.5; color: var(--ink-soft); font-weight: 300; font-variation-settings: "opsz" 24; }
.pf .m { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-muted); }

/* --- Subscribe drawer --- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(20,32,26,0.4); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease); }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 90vw; background: var(--paper); border-left: 1px solid var(--ink); box-shadow: -10px 0 0 var(--forest); z-index: 101; padding: 48px; transform: translateX(110%); transition: transform 280ms var(--ease); overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--forest); padding-bottom: 12px; border-bottom: 1px solid var(--forest); margin-bottom: 32px; display: flex; justify-content: space-between; align-items: baseline; }
.drawer-close { background: none; border: none; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); cursor: pointer; letter-spacing: 0.1em; }
.drawer-close:hover { color: var(--forest); }
.drawer h2 { font-size: 40px; font-weight: 400; letter-spacing: -0.025em; line-height: 1; margin: 0 0 16px; font-variation-settings: "opsz" 72; }
.drawer h2 em { font-style: italic; font-weight: 500; color: var(--forest); }
.drawer p.lede { font-size: 17px; font-style: italic; font-weight: 300; color: var(--ink-soft); margin: 0 0 32px; line-height: 1.5; font-variation-settings: "opsz" 24; }
.drawer label { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--forest); margin-bottom: 8px; }
.drawer input { width: 100%; padding: 14px 16px; border: 1px solid var(--ink); background: var(--cream); font-family: var(--font-serif); font-size: 17px; color: var(--ink); margin-bottom: 20px; outline: none; transition: box-shadow 150ms; font-variation-settings: "opsz" 16; }
.drawer input:focus { box-shadow: 3px 3px 0 var(--brass); }
.drawer .done { background: var(--paper); border: 1px solid var(--forest); padding: 32px; margin-top: 24px; }
.drawer .done .k { color: var(--brass); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 12px; }

/* --- Speaking venues --- */
.venues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); margin-top: 56px; }
.venue { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 80px 1fr 120px; gap: 16px; align-items: baseline; }
.venue:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--rule); }
.venue:nth-child(even) { padding-left: 32px; }
.venue .n { font-family: var(--font-mono); font-size: 11px; color: var(--brass); letter-spacing: 0.18em; }
.venue .v { font-size: 18px; font-weight: 400; font-variation-settings: "opsz" 24; }
.venue .v em { font-style: italic; font-weight: 500; color: var(--forest); }
.venue .d { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.15em; text-align: right; }

/* Active nav */
