/* arieldiaz.com v1 — "night studio" design system.
   Single stylesheet, generated nowhere: this IS the token sheet.
   Source of truth for values: BUILD-SPEC.md § Design tokens.
   Dark is the design target; light pairs via prefers-color-scheme. */

/* ---------- tokens ---------- */

:root {
  color-scheme: dark;

  /* night studio — dark (default design target) */
  --bg: #16110e;
  --surface: #1f1813;
  --text: #f3ece4;
  --muted: #a99c8f;
  --line: #342a23;
  --accent: #f2854c;
  --chip: #2a2018;
  --featured: #241a12;
  --strong: #ffffff; /* titles sitting on photos/rows — boards' "--top" */
  --hero-fade: linear-gradient(180deg, rgba(22, 17, 14, 0) 55%, rgba(22, 17, 14, 0.62) 100%);

  /* brand anchors (DESIGN.md, sampled from the portrait) */
  --brand-ink: #0a0706;
  --brand-warm: #e4651e;
  --brand-cream: #fcefe1;

  /* type — faces are tokens, not commitments (spec §5) */
  --font-display: "Bricolage Grotesque", sans-serif; /* 800, tight tracking */
  --font-text: "Hanken Grotesk", sans-serif;         /* 400–700 */

  /* type scale, mobile first (spec: mobile / desktop) */
  --size-masthead: 37px;      /* 88px desktop */
  --size-page-title: 30px;    /* 56px desktop */
  --size-article-title: 27px; /* 52px desktop */
  --size-stream-title: 15px;  /* 17px desktop */
  --size-body-ui: 15px;
  --size-body-reading: 16px;  /* 17px desktop */
  --leading-reading: 1.65;    /* 1.65–1.7 */
  --size-caps: 11px;          /* 12px desktop */

  /* shape */
  --radius-media: 12px;       /* 10–14px band; media + chips only */
  --radius-chip: 10px;

  /* official platform colors (spec §Design tokens) */
  --platform-youtube: #FF0000;
  --platform-x: var(--text);          /* ink/paper — flips with mode */
  --platform-instagram: #E1306C;
  --platform-substack: #FF6719;
  --platform-linkedin: #0A66C2;
  --platform-github: var(--text);     /* ink — flips with mode */
  --platform-email: var(--accent);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    /* ground sampled from the lit side of the shirt in the portrait —
       near-white with only a trace of warmth, not cream */
    --bg: #fdfaf8;
    --surface: #ffffff;
    --text: #241a12;
    --muted: #7d6a5b;
    --line: #eae1da;
    --accent: #bd470c;
    --chip: #f6efe9;
    --featured: #f7f2ed;
    --strong: #241a12;
    --hero-fade: linear-gradient(180deg, rgba(253, 250, 248, 0) 58%, rgba(253, 250, 248, 0.72) 100%);
  }
}

@media (min-width: 720px) {
  :root {
    --size-masthead: 88px;
    --size-page-title: 56px;
    --size-article-title: 52px;
    --size-stream-title: 17px;
    --size-body-reading: 17px;
    --leading-reading: 1.7;
    --size-caps: 12px;
  }
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--size-body-ui);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* column layout so the footer anchors to the bottom of the viewport on short
   pages instead of floating under the last section */
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > .sitefoot {
  margin-top: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-media);
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- layout primitives ---------- */

/* width: 100% is load-bearing — body is a column flex container, and a flex
   item with auto side margins does not stretch to the cross size on its own */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.measure {
  max-width: 660px; /* reading measure (spec §Essays) */
}

/* ---------- type roles ---------- */

.masthead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-masthead);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-page-title);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-article-title);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.stream-title {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--size-stream-title);
  line-height: 1.35;
  margin: 0;
}

.reading {
  font-size: var(--size-body-reading);
  line-height: var(--leading-reading);
}

.caps {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--size-caps);
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

/* ---------- components ---------- */

/* flat ruled row — the system's structural unit (hairline rules, not boxes) */
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-height: 44px; /* tap target floor */
}

.row:last-child {
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-block;
  background: var(--chip);
  border-radius: var(--radius-chip);
  padding: 4px 10px;
}

/* featured stream item — tinted block inside the column, never breaking its edge */
.featured-block {
  background: var(--featured);
  border-radius: var(--radius-media);
  padding: 16px;
}

/* platform glyph slot — 44px official-color targets (spec §Home mobile) */
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-chip);
  color: inherit;
  cursor: pointer;
}

/* ---------- interior chrome (pre-P2 top bar + footer) ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.topbar-name,
.topbar-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target floor */
}

.topbar-name {
  color: var(--text);
}

.topbar-nav {
  display: flex;
  gap: 22px;
}

/* footer: signature centered over the line, anchored to the bottom of the page.
   The rule is full-bleed; only the padding keeps it off the edges. */
.sitefoot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 20px 22px;
  margin-top: 48px;
  text-align: center;
}

.foot-sig {
  width: 104px;
  height: 46px;
  opacity: 0.9;
}

.foot-line {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- article page (spec §Essays) ---------- */

.article {
  padding-top: 28px;
}

.article-header {
  margin-bottom: 28px;
}

.article-title {
  margin-top: 10px;
  max-width: 820px;
}

.article-dek {
  margin: 14px 0 0;
}

.article-byline {
  margin: 18px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-byline a,
.article-header .kicker a {
  color: inherit;
}

/* mobile: rail stacks above the body as a single ruled block */
.article-rail {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.rail-item {
  display: grid;
  gap: 3px;
}

.rail-value {
  font-size: var(--size-body-ui);
}

@media (min-width: 960px) {
  .article-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 660px);
    gap: 56px;
  }

  .article-rail {
    border-bottom: 0;
    padding: 6px 0 0;
    position: sticky;
    top: 24px;
    align-self: start;
    margin-bottom: 0;
  }
}

.article-body > :first-child {
  margin-top: 0;
}

/* ---------- video reference page ---------- */

.video-page {
  padding-top: 28px;
}

.video-hero {
  max-width: 920px;
}

.video-dek {
  max-width: 720px;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.4;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-media);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.video-section > h2 {
  max-width: 820px;
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.video-thesis {
  margin-top: 56px;
}

.layer-diagram {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.layer {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) minmax(180px, 2fr);
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.layer span,
.layer small {
  color: var(--muted);
}

.layer strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.layer-human strong {
  color: var(--accent);
}

.load-chart {
  display: grid;
  gap: 18px;
  max-width: 850px;
  padding: 26px 0 8px;
}

.load-row {
  display: grid;
  grid-template-columns: 130px minmax(120px, 1fr);
  gap: 8px 18px;
  align-items: center;
}

.load-row b {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.load-track {
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--chip);
}

.load-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.chart-note,
.transcript-note {
  color: var(--muted);
  font-size: 13px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  color: var(--accent);
}

.metric-strip span {
  color: var(--muted);
}

.snippet-list {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.snippet {
  display: grid;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.snippet-copy h3 {
  margin: 5px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}

.snippet-copy blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.transcript-section details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transcript-section summary {
  min-height: 44px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
}

.transcript {
  display: grid;
  gap: 12px;
  max-width: 760px;
  padding: 8px 0 30px;
  list-style: none;
}

.transcript li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  line-height: 1.55;
}

.transcript-time {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.transcript-download {
  margin-top: 18px;
}

.video-source {
  padding: 12px 0 56px;
}

@media (min-width: 760px) {
  .snippet {
    grid-template-columns: minmax(280px, 42%) 1fr;
    align-items: center;
  }
}

@media (max-width: 620px) {
  .layer {
    grid-template-columns: 32px 1fr;
  }

  .layer small {
    grid-column: 2;
  }

  .load-row {
    grid-template-columns: 1fr;
  }

  .load-row b {
    grid-column: 1;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }
}

.article-body p {
  margin: 0 0 1.15em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1.7em 0 0.6em;
}

.article-body h2 {
  font-size: 24px;
}

.article-body h3 {
  font-size: 19px;
}

.article-body h4 {
  font-size: 17px;
}

.article-body img {
  margin: 28px 0;
}

.article-body blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
  margin: 0 0 1.15em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body code {
  background: var(--chip);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  padding: 16px;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.article-tags .chip {
  text-decoration: none;
}

.article-back {
  margin-top: 40px;
}

.article-back a {
  text-decoration: none;
}

/* ---------- index pages (essays / guides) ---------- */

.page-header {
  padding-top: 28px;
  margin-bottom: 36px;
}

.page-header .reading {
  margin: 14px 0 0;
}

.list-year {
  margin-bottom: 40px;
}

.year-heading {
  margin: 0 0 6px;
}

.list-row {
  text-decoration: none;
}

.list-date {
  flex: 0 0 118px;
}

@media (max-width: 480px) {
  .list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .list-date {
    flex-basis: auto;
  }
}

/* ---------- home (P2: boards 27.01 / 28.01–28.02) + menu (27.02) ---------- */

/* breakpoint 900px, per the round-28 boards */
@media (min-width: 900px) {
  .m-only {
    display: none !important;
  }
}

@media (max-width: 899.98px) {
  .d-only {
    display: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* signature + AD mark: masked SVGs so they take the accent tint */
.sig {
  display: block;
  background: var(--accent);
  -webkit-mask: url('/images/ariel-signature.svg') center / contain no-repeat;
  mask: url('/images/ariel-signature.svg') center / contain no-repeat;
}

.admark {
  display: block;
  width: 32px;
  height: 32px;
  background: var(--accent);
  -webkit-mask: url('/images/ariel-mark.svg') center / contain no-repeat;
  mask: url('/images/ariel-mark.svg') center / contain no-repeat;
}

.brandrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brandrow b {
  font-size: 15px;
  font-weight: 700;
  color: var(--strong);
}

/* circular menu button — burger in the hero, ✕ in the menu, same circle */
.circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 7, 6, 0.52);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.burger {
  display: grid;
  gap: 4px;
  width: 18px;
}

.burger i {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* the ✕ is the burger's own bars crossed: same 18px box, same 2px stroke, so
   the control does not jump or resize between open and closed */
.xmark {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.xmark i {
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.xmark i:first-child {
  transform: rotate(45deg);
}

.xmark i:last-child {
  transform: rotate(-45deg);
}

/* --- mobile hero (27.01) --- */

.home-hero {
  position: relative;
  height: clamp(230px, 64vw, 430px);
  overflow: hidden;
}

.home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 0;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-fade);
}

.home-hero .sig {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2;
  width: 126px;
  height: 60px;
}

.home-hero .circle {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
}

.home-name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(37px, 6.5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--strong);
}

.home-intro {
  padding-top: 16px;
}

.home-kick {
  margin: 0;
  letter-spacing: 0.1em;
}

.home-mission {
  margin: 8px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.home-nav2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-nav2 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.home-follow {
  display: flex;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px solid var(--line);
}

/* "Follow" holds the left edge, the glyphs pack in from the right */
.home-follow .caps,
.topfollow .caps {
  margin-right: 8px;
}

.home-follow .glyphrow,
.topfollow .glyphrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

/* email capture (Resend) — revealed by the envelope in the follow row */
.capture-wrap {
  padding-bottom: 4px;
}

.capture[hidden] {
  display: none;
}

.capture {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}

.capture input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chip);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.capture button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.capture-msg {
  flex: 1 0 100%;
  margin: 0;
  min-height: 1.2em;
  font-size: 14px;
  color: var(--muted);
}

/* latest video module */
.home-latest {
  padding-top: 20px;
}

.latest-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--featured);
  text-decoration: none;
}

.latest-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.latest-body {
  display: grid;
  gap: 4px;
}

.latest-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--strong);
}

.latest-meta {
  color: var(--muted);
  letter-spacing: 0.08em;
}

@media (max-width: 520px) {
  .latest-card {
    grid-template-columns: 1fr;
  }
}

/* platform glyphs — official colors (spec §Design tokens) */
.glyph-ic {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.glyph-ic-sm {
  width: 18px;
  height: 18px;
}

.glyph-substack { color: var(--platform-substack); }
.glyph-youtube { color: var(--platform-youtube); }
.glyph-x { color: var(--platform-x); }
.glyph-instagram { color: var(--platform-instagram); }
.glyph-linkedin { color: var(--platform-linkedin); }
.glyph-github { color: var(--platform-github); }
.glyph-email { color: var(--platform-email); }

/* --- desktop topbar + hero grid (28.01/28.02) --- */

/* sticky header. The rule sits on this full-bleed wrapper, not on the inner
   header, so it runs edge to edge while the contents stay in the container. */
.sitehead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* mobile bar — every page but home, where the hero photo carries the burger */
.mobilebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 14px, not the container's 20px, so the burger lands on the same x as the
     hero burger and the fixed ✕ */
  padding-right: 14px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.mobilebar .circle {
  background: var(--chip);
  color: var(--text);
}

.home-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  /* the 44px glyph buttons set the height; the padding only breathes */
  padding-top: 4px;
  padding-bottom: 4px;
}

.toplinks {
  display: flex;
  gap: 30px;
}

.toplinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.topfollow {
  display: flex;
  align-items: center;
}

.home-heroD {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0 36px;
}

.home-name-d {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 6.4vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--strong);
}

.home-kick-d {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.home-mission-d {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 430px;
}

.home-heronav {
  display: flex;
  gap: 34px;
  margin-top: 22px;
}

.home-heronav a {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.home-plate {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10.6;
}

.home-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 0;
}

.home-plate .sig {
  position: absolute;
  left: 20px;
  top: 16px;
  width: 158px;
  height: 76px;
}

/* --- content grid: essays list + guides rail --- */

.home-grid {
  display: grid;
  gap: 36px;
  padding: 20px 0 8px;
}

@media (min-width: 900px) {
  .home-grid {
    grid-template-columns: 2fr 1fr;
    gap: 56px;
    padding-top: 8px;
  }
}

.h-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.h-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.home-items {
  border-bottom: 1px solid var(--line);
}

.home-it {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.home-it-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.home-it-t {
  display: block;
  color: var(--strong);
}

.home-it-m {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.hl-table {
  border-bottom: 1px solid var(--line);
}

.hl-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.hl-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.hl-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--strong);
}

/* --- menu overlay (27.02) --- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  overflow-y: auto;
}

html.menu-locked {
  overflow: hidden;
}

.menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: 10px;
  padding-bottom: 24px;
}

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 14px;
}

/* pinned to the burger's exact coordinates (hero .circle: right 14px, top
   12px), so open and close occupy the same spot at the same size */
.menu .circle {
  position: fixed;
  right: 14px;
  top: 12px;
  z-index: 3;
  background: var(--chip);
  color: var(--text);
}

.menu-links {
  display: grid;
}

.menu-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  color: var(--strong);
  text-decoration: none;
}

.menu-links small {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
}

.menu-sig {
  width: 88px;
  height: 42px;
}

/* no published guides yet: single column, essays at a comfortable measure */
@media (min-width: 900px) {
  .home-grid.no-rail {
    grid-template-columns: minmax(0, 720px);
  }
}

/* narrow phones: the label plus seven 44px targets overflow, so the row keeps
   the label on the left and the glyphs tighten toward the right edge */
@media (max-width: 429.98px) {
  .home-follow .glyph {
    width: 40px;
  }
}
