/* Essay pages. Loaded after site.css, so every token, face and theme is shared;
   this file only lays out long-form reading. */
.essay-page .chrome::before { opacity: 1; }
.essay {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--gutter), 700px);
  margin: 0 auto;
  padding: clamp(150px, 22vh, 220px) 0 clamp(90px, 14vh, 140px);
}
.essay-head { margin-bottom: clamp(48px, 8vh, 80px); }
.essay-head .label { margin-bottom: 30px; }
.essay-title {
  font: 360 clamp(42px, 5.4vw, 80px)/0.98 var(--serif);
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.essay-title em {
  display: block; font-style: italic; font-weight: 300;
  background-image: linear-gradient(180deg, var(--bronze-hi) 8%, var(--brass) 58%, var(--bronze-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.06em;
}
.essay-dek {
  margin-top: 30px;
  font: italic 340 clamp(20px, 1.8vw, 25px)/1.42 var(--serif);
  color: var(--ink-2);
  max-width: 34ch;
}
.essay-meta {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.essay-meta b { font-weight: 400; color: var(--brass); }

.essay-body { font: 360 clamp(18.5px, 1.4vw, 20.5px)/1.68 var(--serif); color: var(--ink); }
.essay-body p + p { margin-top: 1.05em; }
.essay-body > p:first-child::first-letter {
  float: left; margin: 0.08em 0.1em 0 -0.02em;
  font-size: 4.1em; line-height: 0.82; font-weight: 300;
  color: var(--brass);
}
.essay-body h2 {
  display: flex; gap: 14px; align-items: center;
  margin: 2.4em 0 1em;
  font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.essay-body h2::before { content: ''; width: 28px; height: 1px; background: var(--brass); }
.essay-body i, .essay-body em { font-style: italic; }
.essay-pull {
  margin: 1.8em 0; padding: 1.1em 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: italic 300 clamp(28px, 2.8vw, 40px)/1.15 var(--serif);
  letter-spacing: -0.015em;
  color: var(--brass);
  text-wrap: balance;
}
.essay-close { font-style: italic; color: var(--ink); }

.essay-tie {
  margin-top: clamp(56px, 9vh, 90px); padding-top: 28px; border-top: 1px solid var(--line-strong);
  display: grid; gap: 10px;
}
.essay-tie p { font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }
.essay-tie .door { margin-top: 6px; justify-self: start; }

.essay-next {
  margin-top: clamp(64px, 10vh, 110px);
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.essay-next .label { margin-bottom: 22px; }
.essay-next h2 { font: 360 clamp(32px, 3.4vw, 50px)/1 var(--serif); letter-spacing: -0.03em; }
.essay-next p { margin-top: 18px; max-width: 44ch; color: var(--ink-2); }
.essay-next .ctas { margin-top: 26px; }

.essay-foot {
  width: min(100% - 2 * var(--gutter), 700px); margin: 0 auto; padding: 0 0 48px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.essay-foot a { color: var(--ink-2); text-decoration: none; }
.essay-foot a:hover { color: var(--brass); }
/* the about page opens on "I'm", which a drop cap would split */
.about-page .essay-body > p:first-child::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
/* on phones the convictions are one tap away from the home page; Writing takes their place */
@media (max-width: 860px) { .essay-page .nav a[href$="#worlds"] { display: none; } }
/* four links in the header: keep each on one line, drop the act label before it
   meets the nav, and on small phones let Writing stand in for the story */
.essay-page .mark, .essay-page .nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  .essay-page .chrome { grid-template-columns: 1fr auto; }
  .essay-page .act { display: none; }
}
@media (max-width: 520px) { .essay-page .nav a[href$="story/index.html"] { display: none; } }

/* the About page's Conversations: podcast episodes, newest first, each linking out.
   Cards run wider than the reading column; thumbnails live in about/podcasts/. */
.cv-list {
  width: min(1100px, 100vw - 2 * var(--gutter));
  margin: 1.8em 0 0 calc(50% - min(550px, 50vw - var(--gutter)));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vh, 64px) clamp(24px, 3vw, 40px);
  font-family: var(--sans);
}
.cv-card { display: grid; gap: 0; text-decoration: none; color: var(--ink); }
.cv-thumb {
  display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface);
  transition: border-color 0.6s var(--ease);
}
.cv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.8s var(--ease); }
.cv-meta {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  font: 400 11px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.cv-year { color: var(--brass); font-variant-numeric: tabular-nums; }
.cv-show i { font-style: normal; color: var(--ink-2); margin-left: 0.6em; }
.cv-title { margin-top: 12px; font: 360 clamp(21px, 1.7vw, 25px)/1.2 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.cv-with { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.cv-card:hover .cv-thumb, .cv-card:focus-visible .cv-thumb { border-color: var(--line-strong); }
.cv-card:hover .cv-thumb img, .cv-card:focus-visible .cv-thumb img { transform: scale(1.03); }
.cv-card:hover .cv-title, .cv-card:focus-visible .cv-title { color: var(--brass); }
.cv-card:focus-visible { outline: none; }
.cv-card:focus-visible .cv-thumb { outline: 1.5px solid var(--brass); outline-offset: 5px; }
/* the shows' own artwork is loud beside the bronze; quiet it until it is pointed at */
@media (hover: hover) {
  .cv-thumb img { filter: saturate(0.35) brightness(0.92); }
  .cv-card:hover .cv-thumb img, .cv-card:focus-visible .cv-thumb img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-card:hover .cv-thumb img, .cv-card:focus-visible .cv-thumb img { transform: none; }
}
@media (max-width: 700px) {
  .cv-list { grid-template-columns: minmax(0, 1fr); width: auto; margin-left: 0; }
}


/* v12: the essay speaks the desk's label voice (uppercase Geist), and inside the desk's
   reader its own header steps aside, since the reader window carries the title and the close. */
.chrome .mark, .chrome .nav a { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-weight: 500; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
html.embedded .chrome { display: none; }
html.embedded body { padding-top: 0; }
html.embedded .progress { display: none; }

/* small phones (2026-10-12): the name and the nav ran together ("NIKHIL KALETHE DESK"). The name
   already links to the desk, so the separate desk link steps aside and the rest keeps one line. */
@media (max-width: 520px) {
  .essay-page .nav a[href="/"] { display: none; }
  .essay-page .nav { gap: 16px; }
}
