:root {
  --paper: #f5f2ea;
  --paper-2: #ece7db;
  --ink: #111c2e;
  --ink-soft: #3c4658;
  --muted: #6a7282;
  --rule: #d8d1c1;
  --gold: #8a6a2f;
  --gold-light: #c9a45c;
  --navy: #0f1b2d;
  --navy-2: #18263b;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.status {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 96px);
  padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 96px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lede {
  margin: 32px 0 0;
  max-width: 34em;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* What's coming */
.coming {
  margin-top: clamp(48px, 7vw, 72px);
}

.coming h2 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.coming ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coming li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 8px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}

.coming li:last-child { border-bottom: 1px solid var(--rule); }

.num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1rem;
  padding-top: 2px;
}

.coming h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.3;
}

.coming p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Signup card */
.join {
  position: sticky;
  top: 32px;
  background: var(--navy);
  color: #efe9dc;
  padding: clamp(28px, 4vw, 44px);
}

.join h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: #fbf8f1;
}

.join > p {
  margin: 0 0 28px;
  color: #c4c9d2;
  font-size: 0.98rem;
}

.join label.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aab2bf;
}

.join input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: #fbf8f1;
  background: var(--navy-2);
  border: 1px solid #334158;
  border-radius: 0;
  outline: none;
}

.join input[type="email"]::placeholder { color: #7d8797; }
.join input[type="email"]:focus { border-color: var(--gold-light); }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin: 18px 0 24px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #c4c9d2;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold-light);
}

.consent a:hover { color: var(--gold-light); }

.btn {
  width: 100%;
  padding: 15px 20px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--gold-light);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: #d8b673; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.form-msg.ok { color: var(--gold-light); }
.form-msg.err { color: #f2a6a0; }

.follow {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #2a384e;
  font-size: 0.88rem;
  color: #aab2bf;
}

.follow a { color: #fbf8f1; }
.follow a:hover { color: var(--gold-light); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 32px 48px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.footer-row nav { display: flex; gap: 20px; flex-wrap: wrap; }

.disclaimer {
  max-width: 62em;
  margin: 0;
  line-height: 1.55;
}

/* Simple text pages */
.page {
  max-width: 44em;
  padding-block: clamp(48px, 8vw, 88px);
}

.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; }

.page h2 {
  margin: 40px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
}

.page p, .page li { color: var(--ink-soft); }
.page .updated { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .join { position: static; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .status { font-size: 0.66rem; letter-spacing: 0.12em; }
  .brand span:last-child { display: none; }
}

.form-msg:empty { min-height: 0; margin: 0; }

/* Navigation (pages beyond the home page) */
.site-nav { display: flex; gap: 22px; font-size: 0.86rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--gold); }

/* Notes archive */
.notes-index .lede { font-size: 1.12rem; margin-bottom: 40px; }

.note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }

.note-item {
  display: grid;
  gap: 4px;
  padding-block: 26px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.note-item time {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
}

.note-item:hover .note-title { color: var(--gold); }
.note-summary { color: var(--ink-soft); font-size: 0.98rem; }

/* A single note */
.note h1 { margin-bottom: 10px; }
.note .updated { margin: 0 0 36px; }
.note p { font-family: var(--serif); font-size: 1.14rem; line-height: 1.65; }
.note li { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; margin-bottom: 8px; }
.note ul, .note ol { padding-left: 1.2em; }
.note h2 { margin-top: 44px; }
.note h3 { margin: 32px 0 6px; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.note hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

.note blockquote {
  margin: 32px 0;
  padding-left: 22px;
  border-left: 2px solid var(--gold-light);
}

.note blockquote p { font-style: italic; color: var(--ink-soft); }
.note code { font-size: 0.92em; background: var(--paper-2); padding: 1px 5px; }
.note-linkedin { font-size: 0.95rem; color: var(--muted); }

.note-cta { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }

.btn-link {
  display: inline-block;
  padding: 13px 24px;
  background: var(--navy);
  color: #fbf8f1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-link:hover { background: var(--navy-2); color: var(--gold-light); }

.notes-index .note-cta { border-top: 0; padding-top: 0; margin-top: 36px; }
.note .eyebrow a { text-decoration: none; }

/* Home: links into the Notes section */
.coming h3 a { text-decoration: none; }
.coming h3 a:hover { color: var(--gold); }
.coming .more { white-space: nowrap; color: var(--gold); text-decoration: none; font-weight: 600; }
.coming .more::after { content: " \2192"; }
.coming .more:hover { text-decoration: underline; }
.coming h3 a::after { content: " \2192"; color: var(--gold); font-size: 0.82em; }

.note-figure { margin: 34px 0 40px; }
.note-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.note-figure figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }

/* Home byline: portrait, name and role */
.byline { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.byline-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.byline-role {
  margin: 2px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
h1.statement {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 15em;
}

/* Notes archive: thumbnails and a featured first note */
.note-item { grid-template-columns: 1fr; }
.note-text { display: grid; gap: 4px; }

.note-thumb {
  display: block;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--rule);
}

.note-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.note-item:hover .note-thumb img { transform: scale(1.03); }

.note-item.featured { gap: 20px; padding-block: 30px 34px; }
.note-item.featured .note-thumb { height: 300px; }
.note-item.featured .note-title { font-size: 1.85rem; }
.note-item.featured .note-summary { font-size: 1.04rem; max-width: 46em; }

.note-item.has-thumb {
  grid-template-columns: minmax(0, 1fr) 210px;
  column-gap: 30px;
  align-items: start;
}

.note-item.has-thumb .note-thumb { height: 128px; }

@media (max-width: 680px) {
  .note-item.has-thumb { grid-template-columns: 1fr; gap: 14px; }
  .note-item.has-thumb .note-thumb { height: 150px; order: -1; }
  .note-item.featured .note-thumb { height: 200px; }
  .note-item.featured .note-title { font-size: 1.5rem; }
}

.notes-intro {
  margin: 0 0 36px;
  font-size: 0.95rem;
  color: var(--muted);
}

.notes-intro a { color: var(--ink-soft); }
.notes-intro a:hover { color: var(--gold); }

.note.undated h1 { margin-bottom: 28px; }



.note-attachment { margin: 36px 0 0; }

.note-attachment .btn-link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--navy);
  font-size: 0.92rem;
  padding: 12px 22px;
}

.note-attachment .btn-link::before { content: "\2193  "; color: var(--gold); }
.note-attachment .btn-link:hover { background: var(--navy); color: #fbf8f1; }

/* ---------------------------------------------------------------- Gate */

[hidden] { display: none !important; }

.gate {
  margin: 44px 0 8px;
  padding: clamp(26px, 4vw, 40px);
  background: var(--navy);
  color: #efe9dc;
}

.page .gate h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.15;
  color: #fbf8f1;
}

.page .gate > p {
  margin: 0 0 26px;
  max-width: 54ch;
  color: #c4c9d2;
  font-size: 0.98rem;
}

.gate-form { max-width: 420px; }

.gate label.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aab2bf;
}

.gate input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: #fbf8f1;
  background: var(--navy-2);
  border: 1px solid #334158;
  border-radius: 0;
  outline: none;
}

.gate input[type="email"]::placeholder { color: #7d8797; }
.gate input[type="email"]:focus { border-color: var(--gold-light); }

.page .gate .gate-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #2a384e;
  font-size: 0.88rem;
  color: #aab2bf;
}

.page .gate .gate-note a { color: var(--gold-light); }

.access-error {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  font-size: 0.94rem;
}

.page.access .lede { max-width: 58ch; }
