/* ─────────────────────────────────────────────────────────────
   Ported from the AI Marketing Day deck: same palette, same type.
   cream · ink · gold
   ───────────────────────────────────────────────────────────── */
:root {
  --paper:     #faf7f1;
  --paper-2:   #f4efe5;
  --ink:       #0f1729;
  --ink-2:     #33405c;
  --ink-3:     #6b7590;
  --gold:      #d4a017;
  --gold-text: #8a6508;
  --cream:     #f6f1e6;
  --line:      #e2dacb;
  --line-2:    #d3c9b5;
  --red:       #a8341f;

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Literata', Georgia, serif;
  --label:   'Manrope', system-ui, sans-serif;

  --measure: 34rem;      /* one column of reading, ~68ch */
  --gutter:  clamp(1.25rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.72;
  font-optical-sizing: auto;
}

/* ── the thesis header, on every page (notes §2.6 #10) ───────── */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.masthead .in {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.6rem var(--gutter) 1.5rem;
}
.wordmark {
  font-family: var(--label);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.thesis {
  margin: .7rem 0 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ── links ───────────────────────────────────────────────────── */
a { color: var(--gold-text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
a:hover { border-bottom-color: var(--gold); }
a.plain { border-bottom: none; }

/* ── the page ────────────────────────────────────────────────── */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter) 2rem;
}

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 1.5rem;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  line-height: 1.22;
  margin: 3rem 0 1rem;
}
h1 em, h2 em { font-style: italic; color: var(--gold-text); }

p { margin: 0 0 1.35rem; }
strong { font-weight: 600; }

.kicker {
  font-family: var(--label);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 1rem;
}

/* the preamble line: "this was an email first" (notes §5.1) */
.preamble {
  font-family: var(--label);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-3);
  border-left: 2px solid var(--gold);
  padding: .1rem 0 .1rem .9rem;
  margin: 0 0 2.2rem;
}

.lede { font-size: 1.14em; line-height: 1.62; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--ink-2);
}
blockquote p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ── the numbered reading path ───────────────────────────────── */
.path { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: p; }
.path li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.path li::before {
  content: counter(p);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.1;
}
/* Everything else sits in column two. Without this, grid auto-placement
   drops the description into the 2.4rem number column and it wraps one
   word per line. */
.path li > * { grid-column: 2; }
.path h3 { font-family: var(--body); font-size: 1.02rem; font-weight: 600; margin: 0 0 .3rem; }
.path p  { margin: 0; font-size: .93rem; color: var(--ink-3); line-height: 1.55; }
.path .soon { color: var(--ink-3); font-style: italic; }

/* ── forms ───────────────────────────────────────────────────── */
form { margin: 2rem 0 0; }
label {
  display: block;
  font-family: var(--label);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 1.2rem 0 .4rem;
}
input, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: .75rem .85rem;
  line-height: 1.5;
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
button {
  margin-top: 1.5rem;
  font-family: var(--label);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: 3px;
  padding: .95rem 1.6rem;
  cursor: pointer;
}
button:hover { background: var(--gold-text); }
button[disabled] { opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; }   /* honeypot */

.note   { font-size: .88rem; color: var(--ink-3); margin-top: 1rem; }
.status { font-family: var(--label); font-size: .9rem; margin-top: 1.1rem; min-height: 1.4rem; }
.status.ok  { color: var(--gold-text); font-weight: 700; }
.status.err { color: var(--red); font-weight: 700; }

/* ── the two exits at the end of every artifact (notes §6.2) ─── */
.exits { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.ps {
  font-style: italic;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
}
.next {
  font-family: var(--label);
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 1.2rem;
}
.quiet { font-size: .93rem; color: var(--ink-3); margin: 0; }

.sig {
  margin-top: 2.5rem;
  font-family: var(--label);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* ── footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  background: var(--paper-2);
}
footer .in {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  font-family: var(--label);
  font-size: .78rem;
  line-height: 1.9;
  color: var(--ink-3);
}
footer a { color: var(--ink-2); }

@media (max-width: 480px) {
  .path li { grid-template-columns: 1.8rem 1fr; gap: 0 .7rem; }
}

/* ── the portrait ────────────────────────────────────────────── */
.portrait {
  margin: 2.5rem 0 .8rem;
  max-width: 19rem;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  filter: grayscale(1) contrast(1.04);
}
.portrait figcaption {
  font-family: var(--label);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .8rem;
  border-left: 2px solid var(--gold);
  padding-left: .7rem;
}

/* small, beside a line of text */
.byline {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 2.5rem 0 0;
}
.byline img {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(1) contrast(1.04);
  flex: none;
}
.byline p {
  margin: 0;
  font-family: var(--label);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-3);
}
