/* The Quarry: carried over from the Ghost "monthly-contest" theme. */

:root {
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body: "EB Garamond", "Cormorant Garamond", Georgia, serif;

  --ink: #1a1a1a;
  --body-ink: #3d3930;
  --muted: #6b6257;
  --faint: #978c80;
  --rule: #d4cec5;
  --paper: #ffffff;
  --off-white: #faf9f7;
  --night: #0d0d0d;
}

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

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

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

a { color: inherit; }

img { max-width: 100%; display: block; }

/* Header */

.site-header {
  border-bottom: 1px solid #ece8e2;
  background: var(--paper);
}

/* The masthead stays at the top of the window as you scroll (Jonathan,
   Nov 18, 2026; masthead_controller.js), over the page and under the
   modals, which sit above everything. The beta line above it scrolls away.
   Once scrolled past it slims: the same one line, closer set. */
.site-header--sticky { position: sticky; top: 0; z-index: 30; }
.site-header--sticky .site-nav { transition: padding 160ms ease; }
.site-header--sticky .site-logo { transition: font-size 160ms ease; }
.site-header--sticky.is-stuck .site-nav { padding-top: 10px; padding-bottom: 10px; }
.site-header--sticky.is-stuck .site-logo { font-size: 1.35rem; }
/* Pinned, the Menu panel can't be scrolled into view with the page, so on a
   short screen (a phone on its side) it scrolls itself (Copilot, #93). 80px
   is the bar at its tallest. */
.site-header--sticky .site-nav--js .site-nav-more {
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (prefers-reduced-motion: reduce) {
  .site-header--sticky .site-nav, .site-header--sticky .site-logo { transition: none; }
}

/* Jumping to an anchor (#beta, a Story Engine part, the Enter form) leaves
   room for the stuck masthead so it doesn't cover the heading. Set on
   html itself, not only once the script runs: a link to an anchor jumps
   as the page loads, before the script starts. */
html { scroll-padding-top: 64px; }

/* The masthead (Jonathan, Nov 12, 2026): the logo (it is the way Home),
   Issues and Story Development, then Submit (what pays for the magazine) and
   "Menu" for the rest. Small caps throughout; no icons, no buttons. */
.site-nav {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px 28px;
}

.site-logo {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-links {
  display: flex;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-links a,
.site-nav-submit,
.site-menu-toggle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
}

.site-nav-links a:hover,
.site-nav-links a.is-current { color: var(--ink); }

/* Submit: after a rule, ink-coloured and underlined. */
.site-nav-submit {
  padding-left: 28px;
  border-left: 1px solid #ece8e2;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-menu-toggle { padding: 0; border: 0; background: none; cursor: pointer; }
.site-menu-toggle:hover, .site-menu-toggle[aria-expanded="true"] { color: var(--ink); }

/* The rest: a panel under the masthead, at the right, once the menu's script
   has started (.site-nav--js). Without JavaScript the toggle hides and every
   link shows in a row. */
.site-nav-more .site-nav-phone-only { display: none; }
.site-nav:not(.site-nav--js) .site-menu-toggle { display: none; }
.site-nav:not(.site-nav--js), .site-nav:not(.site-nav--js) .site-nav-more { flex-wrap: wrap; }
.site-nav--js .site-nav-more {
  display: none;
  position: absolute;
  top: 100%;
  right: 24px;
  z-index: 20;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
  padding: 18px 24px;
  background: var(--paper);
  border: 1px solid #ece8e2;
  border-top: 2px solid var(--ink);
}
.site-nav--js.is-open .site-nav-more { display: flex; }
.site-nav--js .site-nav-more .site-nav-writer { padding-top: 14px; border-top: 1px solid #ece8e2; }
.site-nav--js .site-nav-more .site-nav-writer + .site-nav-writer { padding-top: 0; border-top: 0; }

.site-header--dark {
  background: var(--night);
  border-bottom-color: var(--night);
}

.site-header--dark .site-logo { color: #fff; }
.site-header--dark .site-nav-primary a,
.site-header--dark .site-menu-toggle,
.site-header--dark .site-nav:not(.site-nav--js) .site-nav-more a { color: rgba(255, 255, 255, 0.6); }
.site-header--dark .site-nav-primary a:hover,
.site-header--dark .site-nav-primary a.is-current,
.site-header--dark .site-menu-toggle:hover,
.site-header--dark .site-menu-toggle[aria-expanded="true"] { color: #fff; }
.site-header--dark .site-nav-submit { color: #fff; border-left-color: rgba(255, 255, 255, 0.2); }

/* Phones: the logo, Submit and Menu on one line; Issues and Story
   Development move to the top of the menu, which opens full width. */
@media (max-width: 767px) {
  .site-nav { gap: 12px 18px; padding: 14px 16px; }
  .site-nav-primary { display: none; }
  .site-nav-more .site-nav-phone-only { display: list-item; }
  .site-nav-submit { padding-left: 0; border-left: 0; }
  .site-nav:not(.site-nav--js) .site-nav-more { flex-basis: 100%; }
  .site-nav--js .site-nav-more { left: 0; right: 0; min-width: 0; padding: 18px 16px; }
  .site-header--sticky.is-stuck .site-nav { padding-top: 8px; padding-bottom: 8px; }
  html { scroll-padding-top: 56px; }
}

/* The signup forms' honeypot (SignupGuard): off screen, not display: none, which some bots skip. */
.signup-extra { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.site-footer {
  border-top: 1px solid #ece8e2;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.site-footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 12px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.site-footer-links a { text-decoration: none; }
.site-footer-links a:hover { color: var(--ink); }

/* A contest's page: its hero, after the Ghost theme's contest-details partial */

/* Ghost's l-container: 85% of the window, centred. */
.l-container { width: 85%; margin-inline: auto; }

.cd-hero { display: flex; min-height: 80vh; overflow: hidden; margin-top: 24px; }

@media (max-width: 767px) {
  .l-container { width: auto; margin-inline: 16px; }
}

.cd-hero-left { flex: 0 0 50%; display: flex; flex-direction: column; background: var(--night); }

.cd-hero-image { flex: 0 0 50%; position: relative; overflow: hidden; min-height: 240px; }
.cd-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cd-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 5vw, 72px);
}

.cd-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.6rem;
}

.cd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2vw + 1.2rem, 3.4rem);
  line-height: 1;
  color: #fff;
  margin: 0 0 1.6rem;
}

.cd-hero-prompt {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.cd-hero-right {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  background: var(--off-white);
  padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 96px);
}

.cd-panel-prompt {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw + 1.2rem, 4rem);
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

.cd-panel-deadline { font-family: var(--font-display); font-size: clamp(1.2rem, 0.8vw + 1rem, 1.5rem); color: #888; margin: 0; }
.cd-panel-prize { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6257; margin: 0.75rem 0 0; }
.cd-panel-tally { font-family: var(--font-sans); font-size: 0.85rem; color: #6b6257; margin: 0.35rem 0 0; font-variant-numeric: tabular-nums; }

.cd-hero-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.45);
  color: var(--night);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cd-hero-cta:hover { background: var(--night); border-color: var(--night); color: #fff; }

@media (max-width: 767px) {
  .cd-hero { flex-direction: column; min-height: auto; }
  .cd-hero-left, .cd-hero-right { flex: none; }
  .cd-hero-image { flex: none; height: 56vw; }
}

#enter-form, #upload { scroll-margin-top: 16px; }

/* Issues */

.page--wide { max-width: 1040px; }

.volume-shelf { margin: 0 0 56px; }
.volume-shelf-heading {
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.volume-shelf-heading em { font-family: var(--font-display); font-size: 1.1rem; text-transform: none; letter-spacing: 0; color: var(--ink); }

.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.issue-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.issue-card-cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--night); }
.issue-card-label { margin-top: 6px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.issue-card-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.issue-card-winner { font-family: var(--font-body); font-style: italic; color: var(--body-ink); }
.issue-card:hover .issue-card-title { text-decoration: underline; text-underline-offset: 4px; }

.cd-hero--issue .cd-hero-title { font-size: clamp(2.4rem, 2.4vw + 1.4rem, 3.8rem); }

.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ece8e2; }
.contents-item { padding: 24px 0; border-bottom: 1px solid #ece8e2; }
.contents-placement {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}
.contents-placement--first { background: var(--ink); color: #fff; }
.contents-link { display: block; text-decoration: none; color: var(--ink); }
.contents-title { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 1vw + 1.2rem, 2.1rem); line-height: 1.15; }
.contents-link:hover .contents-title { text-decoration: underline; text-underline-offset: 4px; }
.contents-byline { display: block; margin-top: 4px; font-family: var(--font-body); font-style: italic; color: var(--muted); font-size: 1.1rem; }
.contents-opening { margin: 10px 0 0; font-family: var(--font-body); font-size: 1.1rem; line-height: 1.6; color: var(--body-ink); }
.next-prompt { margin: 12px 0 24px !important; }
.issue-footer { margin: 32px 0 64px; text-align: center; font-family: var(--font-body); font-style: italic; }
.issue-footer a { color: var(--muted); }

/* A story's reading page */

.story { max-width: 640px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.story-kicker { margin: 0 0 1.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.story-kicker a { color: inherit; text-decoration: none; }
.story-kicker a:hover { color: var(--ink); }
.story-placement { color: var(--ink); font-weight: 600; }
.story-title { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 3vw + 1.4rem, 4rem); font-weight: 400; line-height: 1.05; }
.story-byline { margin: 0.8rem 0 clamp(32px, 4vw, 48px); font-family: var(--font-body); font-size: 1.3rem; font-style: italic; color: var(--muted); }
.story-body { font-size: clamp(1.2rem, 0.4vw + 1.1rem, 1.35rem); line-height: 1.8; }
/* A scene break (StoryText): a line's height of white space, or the writer's
   own mark, centered, as typed. The paragraph after it starts flush. */
.story-body .scene-break { height: 1.8em; height: 1lh; margin: 0; }
.story-body .scene-break--mark { height: auto; margin: 0 0 1.25rem; text-align: center; }
.story-body .scene-break + p { text-indent: 0; }
.story-bio { margin-top: 48px; padding: 20px 22px; background: var(--off-white); border-left: 2px solid var(--rule); font-family: var(--font-body); font-size: 1.1rem; color: var(--body-ink); }
.story-bio p { margin: 0; }
.story-bio-heading { margin: 0 0 6px !important; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.story-tags { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.story-tag { padding: 2px 10px; border: 1px solid var(--rule); font-size: 0.8rem; color: var(--muted); }

/* Sections */

.l-section {
  padding: clamp(64px, 9vw, 128px) 0;
  background: var(--section-bg, transparent);
}

.l-section-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.l-section--center .l-section-inner { text-align: center; }
.l-section--off-white { --section-bg: var(--off-white); }

.l-section-rule {
  width: 48px;
  height: 1px;
  border: none;
  background: var(--rule);
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.l-section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5vw + 1.2rem, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 clamp(24px, 3vw, 40px);
}

.l-section-body p {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.3rem);
  line-height: 1.75;
  color: var(--body-ink);
  margin: 0 0 1.25rem;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.text-link {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* Long-form pages (About, Rubric, Rules) */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px clamp(64px, 9vw, 120px);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2.5vw + 1.4rem, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 clamp(32px, 4vw, 48px);
}

.prose {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.3rem);
  line-height: 1.75;
  color: var(--body-ink);
}

.prose p, .prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--ink); font-weight: 500; }

.prose h2, .prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.prose h2 { font-size: clamp(1.8rem, 1vw + 1.3rem, 2.2rem); margin: 3rem 0 1.25rem; }
.prose h3 { font-size: clamp(1.4rem, 0.6vw + 1.1rem, 1.6rem); margin: 2.5rem 0 1rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose hr {
  width: 48px;
  height: 1px;
  border: none;
  background: var(--rule);
  margin: 3rem auto;
}

.prose .signature { font-style: italic; color: var(--muted); }

/* Story Development and shared page furniture */

.page-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-eyebrow a { color: var(--muted); text-decoration: none; }
.page-eyebrow a:hover { color: var(--ink); }

.page-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 0.8vw + 1rem, 1.6rem);
  font-style: italic;
  color: var(--muted);
  margin: -1rem 0 clamp(32px, 4vw, 48px);
}

/* A contest's page: the blind-judging line under the lead, set off by rules like a printed notice. */
.blind-line { margin: calc(-1 * clamp(16px, 2vw, 24px)) 0 clamp(32px, 4vw, 48px); padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.blind-line strong { font-variant: small-caps; letter-spacing: 0.04em; }

/* A contest's page: its calendar, set like a printed table, and its placed stories. */
.contest-facts { margin: 0 0 24px; border-top: 1px solid var(--rule); }
.contest-facts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 0 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.contest-facts dt { font-variant: small-caps; letter-spacing: 0.04em; color: var(--muted); }
.contest-facts dd { margin: 0; font-variant-numeric: oldstyle-nums; }
.contest-placed { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--rule); }
.contest-placed li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.contest-placed-place { display: block; font-variant: small-caps; letter-spacing: 0.04em; color: var(--muted); }
.contest-placed-byline { font-style: italic; }

/* The list of contests (/contests): the Issues shelf's head, then each group
   between rules, its name in the margin, like a printed contents page. */
.contest-list { --smallcaps-spacing: 0.14em; max-width: 1040px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) 24px clamp(56px, 7vw, 96px); font-family: var(--font-body); font-size: 1.15rem; line-height: 1.5; color: var(--body-ink); }
.contest-list-group { display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-top: 1px solid var(--ink); }
.contest-list-heading { margin: 0; padding-top: 18px; font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: var(--smallcaps-spacing); color: var(--muted); }
.contest-list-row { padding: 16px 0 22px; }
.contest-list-row + .contest-list-row { border-top: 1px solid var(--rule); }
.contest-list-row p { margin: 6px 0 0; }
.contest-list-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 1vw + 1.2rem, 2.2rem); font-weight: 400; line-height: 1.15; color: var(--ink); }
.contest-list-title a { text-decoration: none; }
.contest-list-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contest-list-prompt { font-family: var(--font-display); font-size: clamp(1.3rem, 0.8vw + 1rem, 1.6rem); font-style: italic; line-height: 1.25; color: var(--ink); }
.contest-list-when { font-variant-numeric: oldstyle-nums; color: var(--muted); }
.contest-list-enter, .contest-list-news a { font-style: italic; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.contest-list-enter:hover, .contest-list-news a:hover { border-bottom-width: 2px; }
.contest-list .contest-placed { margin: 14px 0 0; }
.contest-list .contest-placed li:last-child { border-bottom: 0; padding-bottom: 0; }
.contest-list-empty { margin: 0; font-style: italic; text-align: center; }
@media (max-width: 767px) {
  .contest-list { padding-inline: 16px; }
  .contest-list-group { display: block; }
  .contest-list-heading { padding-top: 12px; }
}
.form-lead { margin: 0 0 24px; font-family: var(--font-body); font-size: 1.2rem; line-height: 1.5; color: var(--body-ink); }

/* The Story Engine: thesis, diagram, then the parts set like a printed glossary. */

.engine-thesis > p:first-child:not(.tk)::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-display);
  font-size: 4.2em;
  line-height: 0.8;
  color: var(--ink);
}

.engine-thesis a, .engine-part a, .engine-more a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rule); }
.engine-thesis a:hover, .engine-part a:hover, .engine-more a:hover { text-decoration-color: var(--ink); }

/* The printer's "to come": a placeholder until the real text is in. */
.tk { padding-left: 14px; border-left: 2px solid var(--ink); font-style: italic; color: var(--muted); }
.tk-mark { font-family: var(--font-sans); font-size: 0.7rem; font-style: normal; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); }

.engine-diagram {
  width: min(960px, calc(100vw - 32px));
  margin: clamp(32px, 5vw, 56px) 0;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
}

.engine-diagram img { display: block; width: 100%; height: auto; }

.engine-parts-kicker {
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.engine-parts dl { margin: 0; }

.engine-part {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0 28px;
  padding: 22px 0 6px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.engine-part dt { display: flex; flex-direction: column; gap: 4px; }
.engine-part-number { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--muted); }
.engine-part-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; font-variant: small-caps; letter-spacing: 0.03em; line-height: 1.1; color: var(--ink); }
.engine-part-gloss { font-family: var(--font-body); font-size: 1rem; font-style: italic; line-height: 1.35; color: var(--muted); }
.engine-part dd { margin: 0; font-size: clamp(1.1rem, 0.4vw + 1rem, 1.2rem); line-height: 1.65; }
.engine-part dd blockquote { margin: 0.5rem 0 1.25rem; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 1.35rem; text-align: center; }
.engine-part dd blockquote strong { font-weight: 500; }

@media (max-width: 640px) {
  .engine-part { grid-template-columns: 1fr; }
  .engine-part dt { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
  .engine-part-gloss { flex-basis: 100%; }
}

.engine-more {
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding-top: 24px;
  border-top: 3px double var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  text-align: center;
  color: var(--muted);
}

.prose blockquote p { margin: 0; }

.essay-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid #ece8e2;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
}

.essay-pager a { color: var(--muted); text-decoration: none; }
.essay-pager a:hover { color: var(--ink); }
.essay-pager-next { margin-left: auto; text-align: right; }

/* Flash, forms and buttons */

.flash {
  max-width: 680px;
  margin: 24px auto 0;
  padding: 14px 20px;
  font-size: 0.95rem;
  background: var(--off-white);
  border-left: 2px solid var(--ink);
}

.flash--alert { border-left-color: #8a3b2e; color: #5c271e; }

.button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: 500 0.8rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #fff; color: var(--ink); }

.stack-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1.5rem;
}

.stack-form label { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }

.stack-form input[type="email"],
.stack-form input[type="text"] {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  font: inherit;
  font-size: 1rem;
}

.stack-form input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.stack-form .button { margin-top: 8px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.checkbox input { margin-top: 4px; }

.disclosure {
  margin: 16px 0 4px;
  padding: 14px 18px;
  background: var(--off-white);
  border-left: 2px solid var(--rule);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--body-ink);
}

.form-errors p { margin: 0; }

.button--quiet { background: #fff; color: var(--ink); }
.button--quiet:hover { background: var(--ink); color: #fff; }

.stack-form input[type="file"] { font: inherit; font-size: 0.95rem; }

/* Results news at the top of the writer page */

.news-card {
  margin: 0 0 8px;
  padding: 22px 24px;
  border: 1px solid #ece8e2;
  background: var(--off-white);
}

.news-card--won { background: var(--night); border-color: var(--night); color: #fff; }

.news-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-card--won .news-eyebrow { color: rgba(255, 255, 255, 0.55); }

.news-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.5vw + 1.2rem, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
}

.news-body { margin: 0 0 16px; font-family: var(--font-body); font-size: 1.15rem; line-height: 1.6; }
.news-card--won .news-body strong { color: #fff; }

.button--inverse { background: #fff; color: var(--night); border-color: #fff; }
.button--inverse:hover { background: transparent; color: #fff; }


.entry-download { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.entry-download::after { content: " ↓"; }
.entry-download:hover { color: var(--ink); text-decoration-color: var(--ink); }


.entry-form { margin-top: 20px; padding-top: 4px; }
.entry-form-heading { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }



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

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  font: inherit;
  font-size: 1rem;
}

.newsletter-message { margin: 20px auto 0; max-width: 460px; font-size: 0.95rem; color: var(--body-ink); }
.newsletter-message--alert { color: #8a3b2e; }

.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

.inline-form { display: inline; }

.link-button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Writer page */



.notice {
  padding: 16px 20px;
  background: var(--off-white);
  border-left: 2px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Home: the latest issue */

.entry-story-link { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* Tester invite */
.invite .news-card { margin: 0 0 28px; }
.test-card { margin: 10px 0; padding: 12px 16px; background: var(--off-white); border: 1px solid #ece8e2; font-family: var(--font-sans); font-size: 0.95rem; }
.test-card p { margin: 0 0 4px; }
.test-card span { display: inline-block; min-width: 110px; color: var(--muted); }
.test-card code { font-size: 1rem; color: var(--ink); }
/* The public beta's line, atop every page while it runs (Beta) */
.beta-line { margin: 0; padding: 8px 16px; background: #fff8e6; border-bottom: 1px solid #ecdcae; font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.45; text-align: center; color: var(--ink); }
.beta-line a { color: inherit; text-decoration: underline; white-space: nowrap; }
.test-mode-note { margin: 0 0 16px; padding: 12px 16px; background: #fff8e6; border-left: 2px solid #c9a227; font-size: 0.95rem; }
.invite-note { padding: 14px 18px; background: var(--off-white); border-left: 2px solid var(--ink); font-style: italic; }

/* Owner tools on the writer page */
.copy-field { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.invite-link-field { flex: 1 1 280px; min-width: 0; padding: 8px 10px; font-family: var(--font-sans); font-size: 0.9rem; border: 1px solid #d8d2c8; background: #fff; color: var(--ink); }

/* Upload warnings on the writer page */
.upload-check { margin: 0 0 24px; padding: 18px 20px; background: #fdf6e9; border-left: 3px solid #b7791f; }
.upload-check-heading { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.25rem; }
.upload-check ul { margin: 0 0 14px; padding-left: 20px; }
.upload-check li { margin: 0 0 6px; }
.upload-check-form { margin: 0 0 8px; }

/* More than one contest open on the writer page */
.also-open { margin: 14px 0 0; font-family: var(--font-sans); font-size: 0.9rem; color: var(--muted); text-align: center; }
.call + .call { margin-top: 36px; }
.call-details { margin: 0 0 18px; color: var(--muted); }

/* Admin (/admin): Jonathan's pages. Plain and dense; the site's type and colors. */
.admin { padding-top: 32px; padding-bottom: 64px; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-bottom: 12px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.admin-nav-label { margin: 0; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.admin-nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-family: var(--font-sans); font-size: 0.9rem; }
.admin-nav-links a { color: var(--body-ink); text-decoration: none; }
.admin-nav-links a.is-current { color: var(--ink); font-weight: 600; }
.admin-title { margin: 0 0 24px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 2vw + 1.4rem, 2.8rem); }
.admin-section { margin-bottom: 40px; }
.admin-heading { margin: 0 0 12px; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.admin-note, .admin-empty { margin: 0 0 12px; font-family: var(--font-sans); font-size: 0.85rem; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.88rem; }
.admin-section:has(.admin-table) { overflow-x: auto; }
.admin-table th { text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--muted); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); }
.admin-table td { vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.admin-table tr.is-stale td { color: var(--faint); }
.admin-sub, .admin-when { color: var(--muted); font-size: 0.8rem; }
.admin-list { margin: 0; padding-left: 1.1rem; font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.5; }
.admin-list li { margin-bottom: 6px; }
.admin-list--attention li::marker { color: #a5442b; }
.admin-badge { display: inline-block; white-space: nowrap; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; border: 1px solid var(--rule); }
.admin-badge--scheduled { background: #eef4ec; border-color: #c9dcc4; }
.admin-badge--planned { background: #fbf1e6; border-color: #ecd3b4; }
.admin-button { margin-left: 6px; padding: 1px 10px; font: inherit; font-size: 0.75rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.admin-button:hover { border-color: var(--muted); }
.admin-crumb { margin: 0 0 8px; font-family: var(--font-sans); font-size: 0.85rem; color: var(--muted); }
.admin-crumb a, .admin-tabs a { color: var(--body-ink); }
.admin-actions { margin: -12px 0 24px; }
.admin-button--link { display: inline-block; margin-left: 0; text-decoration: none; font-family: var(--font-sans); font-size: 0.85rem; padding: 3px 12px; }
.admin-button--strong { border-color: var(--ink); font-weight: 600; }
.admin-badge--published { background: #eceff4; border-color: #c4ccdc; }
.admin-badge--undated { color: var(--muted); }
.admin-state { margin: 0 0 12px; font-family: var(--font-sans); font-size: 0.9rem; }
.admin-warning { margin: 0 0 12px; font-family: var(--font-sans); font-size: 0.88rem; color: #a5442b; }
.admin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.admin-controls .admin-button { margin-left: 0; }
.admin-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; font-family: var(--font-sans); font-size: 0.88rem; }
.admin-form--inline { align-items: center; gap: 8px 10px; }
.admin-field { display: flex; flex-direction: column; gap: 4px; }
.admin-field--wide { flex: 1 1 280px; }
.admin-field label { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.admin-form input:not([type=submit]), .admin-form select { font: inherit; padding: 5px 8px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; max-width: 100%; }
.admin-form input:disabled, .admin-form select:disabled { color: var(--muted); }
.admin-form .admin-note { flex-basis: 100%; margin: 0; }
.admin-form-actions { flex-basis: 100%; }
.admin-form .admin-button { margin-left: 0; padding: 4px 14px; font-size: 0.85rem; }
.admin-cover { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; }
.admin-cover-image { width: 160px; height: auto; border: 1px solid var(--rule); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 16px; font-family: var(--font-sans); font-size: 0.88rem; }
.admin-tabs a { text-decoration: none; }
.admin-tabs a.is-current { color: var(--ink); font-weight: 600; text-decoration: underline; }
.admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; font-family: var(--font-sans); font-size: 0.88rem; }
.admin-facts dt { font-weight: 600; color: var(--muted); }
.admin-facts dd { margin: 0; }
.admin-email-frame { width: 100%; max-width: 680px; height: 720px; border: 1px solid var(--rule); background: #fff; }
.admin-email-text { max-width: 680px; white-space: pre-wrap; font-size: 0.82rem; padding: 12px; border: 1px solid var(--rule); background: var(--paper); }
.admin-flag { color: #a5442b; }
.admin-feedback summary { cursor: pointer; }
.admin-feedback-text { max-width: 560px; margin-top: 6px; font-size: 0.85rem; line-height: 1.5; color: var(--body-ink); }
.admin-submissions-form .admin-form { margin-top: 16px; }
/* Admin: contests */
.admin-badge--open { background: #eef4ec; border-color: #c9dcc4; }
.admin-badge--coming-soon { background: #fbf1e6; border-color: #ecd3b4; }
.admin-badge--unannounced { color: var(--muted); border-style: dashed; }
.admin-badge--results { background: #eceff4; border-color: #c4ccdc; }
.admin-badge--full { background: #f6e8e4; border-color: #e2bdb2; }
.admin-badge--closed { color: var(--muted); }
.admin-badge--running { background: #eef4ec; border-color: #c9dcc4; }
.admin-badge--ended { color: var(--muted); }
.admin-form textarea { font: inherit; padding: 5px 8px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; width: 100%; }
.admin-subheading { flex-basis: 100%; margin: 12px 0 0; font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.admin-field--full { flex-basis: 100%; }
.admin-field--check { flex-direction: row; align-items: center; gap: 8px; flex-basis: 100%; }
.admin-field--choices { margin: 0; padding: 0; border: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.admin-field--choices legend { padding: 0; margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.admin-errors { flex-basis: 100%; padding: 10px 14px; border: 1px solid #e2bdb2; border-radius: 4px; background: #fbf3f0; color: #a5442b; }
.admin-errors p { margin: 0 0 4px; font-weight: 600; }
.admin-errors ul { margin: 0; padding-left: 1.1rem; }
.admin-form .field_with_errors { display: contents; }
.admin-form .field_with_errors input, .admin-form .field_with_errors select { border-color: #a5442b; }
.admin-nowrap { white-space: nowrap; }
.admin-form input[type=number] { width: 7em; }

/* /admin/writers */
.admin-inline-form { display: inline; margin: 0; }
.admin-table--spaced { margin-top: 20px; }
.admin-section .admin-subheading { margin: 20px 0 8px; font-family: var(--font-sans); }
.entry-disqualified { margin: 8px 0 0; font-family: var(--font-sans); font-size: 0.88rem; color: #a5442b; }

/* Home's announcements strip (SiteNews), below the contest band. One
   standard row: "News" label, heading, text, link; lined up with the band's
   text (1120px, 24px padding). */
.news-strip { border-bottom: 1px solid var(--rule); }
.news-strip-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; font-family: var(--font-sans); font-size: 0.92rem; color: var(--body-ink); }
.news-strip-kicker { flex: none; min-width: 6.5em; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.news-strip-list { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.news-strip-item { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.news-strip-heading { flex: none; font-weight: 600; color: var(--ink); }
.news-strip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.news-strip-link { flex: none; display: inline; margin: 0; font-size: 0.88rem; white-space: nowrap; }
/* More than one: they rotate in the same spot (rotate_controller.js). All
   items share one grid cell, so the strip keeps the tallest one's height and
   doesn't jump; the others fade out. Without the script they list. */
.news-strip--rotating .news-strip-list { gap: 0; }
.news-strip--rotating .news-strip-item { grid-area: 1 / 1; align-self: center; transition: opacity 0.4s ease; }
.news-strip--rotating .news-strip-item.is-off { opacity: 0; visibility: hidden; }
.news-strip-dots { flex: none; display: flex; gap: 8px; }
.news-strip-dot { width: 8px; height: 8px; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; cursor: pointer; }
.news-strip-dot[aria-current="true"] { background: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .news-strip--rotating .news-strip-item { transition: none; } }
@media (max-width: 767px) {
  .news-strip-inner { padding: 12px 16px; align-items: flex-start; }
  .news-strip-kicker { padding-top: 3px; }
  .news-strip-item { flex-wrap: wrap; gap: 2px 10px; }
  .news-strip-heading { flex: 0 1 auto; }
  .news-strip-text { white-space: normal; flex-basis: 100%; }
  .news-strip-dots { padding-top: 6px; }
}
.news-strip-dots { display: flex; justify-content: center; gap: 8px; padding: 0 0 12px; }
.news-strip-dot { width: 8px; height: 8px; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; cursor: pointer; }
.news-strip-dot[aria-current="true"] { background: var(--ink); border-color: var(--ink); }

.admin-entry-nav { align-items: baseline; }
.admin-manuscript { max-width: 640px; padding: 20px 24px; border: 1px solid var(--rule); background: var(--paper); white-space: pre-wrap; font-family: var(--font-body); font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.admin-manuscript-title { margin: 0 0 12px; font-size: 1.15rem; white-space: normal; }
.admin-feedback-preview { max-width: 640px; padding: 12px 16px; margin-bottom: 12px; border: 1px dashed var(--rule); }
.admin-feedback-form textarea { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; max-width: 640px; }
.admin-story-form textarea { max-width: 720px; }
.admin-story-form #story_body { font-family: var(--font-body); font-size: 1rem; line-height: 1.55; }
.admin-story-preview { max-width: 720px; padding: 16px 24px; border: 1px dashed var(--rule); margin: 0; }
.admin-order { font-family: var(--font-sans); }
.admin-order .admin-button { margin-left: 4px; }
.admin-actions-row { margin: 16px 0 0; font-family: var(--font-sans); font-size: 0.88rem; }
.admin-actions-row .admin-button { margin-right: 8px; }
/* Admin: emails */
.admin-badge--sent { background: #eef4ec; border-color: #c9dcc4; }
.admin-badge--failed { background: #f8ebe7; border-color: #e2c1b6; color: #a5442b; }
.admin-badge--sending { color: var(--muted); }

/* Admin: social posts */
.admin-social-thumbs { white-space: nowrap; }
.admin-social-thumb { width: 56px; height: 70px; object-fit: cover; border: 1px solid var(--rule, #ddd); margin-right: 4px; vertical-align: middle; }
.admin-social-platforms { font-family: var(--font-sans); font-size: 0.85rem; }
.admin-social-done { color: #2f6b2a; }
.admin-social-failed { color: #a5442b; font-weight: 600; }
.admin-social-link { width: 20em; max-width: 100%; }
.admin-social-unknown { color: #8a5a14; font-weight: 600; }
.admin-social-preview { margin: 4px 0 0; padding: 10px 12px; white-space: pre-wrap; font: inherit; font-size: 0.9rem; background: var(--off-white); border: 1px solid var(--rule); }
.admin-social-waiting { color: var(--muted); }
.admin-social-error { margin: 4px 0 0; color: #a5442b; font-size: 0.8rem; max-width: 28em; }
.admin-social-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-social-gallery figure { margin: 0; width: 160px; }
.admin-social-gallery figcaption { font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.admin-social-image { width: 160px; height: 200px; object-fit: cover; border: 1px solid var(--rule, #ddd); }
.admin-check { display: inline-flex; gap: 6px; align-items: center; margin-right: 16px; font-family: var(--font-sans); font-size: 0.9rem; }
.admin-social-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.admin-social-select-all { font-family: var(--font-sans); font-size: 0.9rem; }
@media (max-width: 640px) { .admin-social-table th:nth-child(2), .admin-social-table td:nth-child(2) { display: none; } }
/* Editor's notes: Home's latest (below the strip) and /notes. A newspaper
   item: a rule, the dateline in small capitals, the headline, the blurb,
   the signature. */
.editors-note-section { border-bottom: 1px solid var(--rule); }
.editors-note-inner { max-width: 720px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 24px clamp(36px, 4vw, 52px); }
.editors-note { border-top: 3px double var(--ink); padding-top: 14px; }
.editors-note + .editors-note { margin-top: clamp(40px, 5vw, 56px); }
.editors-note-kicker { margin: 0 0 12px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.editors-note-kicker time { font-weight: 500; }
.editors-note-headline { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.3rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
h1.editors-note-headline { font-size: clamp(2rem, 2vw + 1.2rem, 3rem); font-weight: 400; line-height: 1.08; }
.editors-note-headline a { text-decoration: none; }
.editors-note-headline a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.editors-note-blurb p { margin: 0 0 1rem; font-family: var(--font-body); font-size: clamp(1.1rem, 0.4vw + 1rem, 1.25rem); line-height: 1.65; color: var(--body-ink); }
.editors-note-blurb a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.editors-note-blurb a:hover { text-decoration-color: var(--ink); }
.editors-note-signature { margin: 0; font-family: var(--font-body); font-size: 1.1rem; font-style: italic; color: var(--muted); }
.editors-note-archive { display: inline-block; margin-top: 20px; font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.editors-note-archive:hover { color: var(--ink); border-color: var(--ink); }
.editors-notes-page { max-width: 720px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) 24px clamp(64px, 8vw, 112px); }
.editors-notes-title { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(2.2rem, 2vw + 1.4rem, 3.2rem); font-weight: 400; line-height: 1.1; }
.editors-notes-intro { margin: 0 0 clamp(32px, 4vw, 48px); font-family: var(--font-body); font-size: 1.2rem; font-style: italic; color: var(--muted); }
.editors-notes-empty { font-family: var(--font-body); font-size: 1.15rem; color: var(--body-ink); }
.editors-notes-crumb { margin: 0 0 20px; font-family: var(--font-sans); font-size: 0.8rem; }
.editors-notes-crumb a { color: var(--muted); }
.editors-note-preview { max-width: 720px; padding: 16px 24px 20px; border: 1px dashed var(--rule); }
.admin-badge--draft { color: var(--muted); border-style: dashed; }
@media (max-width: 767px) {
  .editors-note-inner, .editors-notes-page { padding-inline: 16px; }
}

/* Privacy deletions: deleting an account, and story files that are gone */
.admin-button--danger { border-color: #a5442b; color: #a5442b; font-weight: 600; }
.admin-button--danger:hover { border-color: #7d321f; color: #7d321f; }
.entry-file-note { font-size: 0.85rem; color: var(--muted); }

/* Writer page: a placed entry's byline, bio and PayPal email (PublicationDetails) */
.entry-details .stack-form { margin-top: 8px; }
.entry-details textarea { width: 100%; max-width: 420px; padding: 12px 14px; border: 1px solid var(--rule); font: inherit; font-size: 1rem; }

/* Sharing: a placed writer's share card and post, an issue's share row, our profiles in the footer */
.entry-share { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece8e2; }
.entry-share-heading { margin: 0 0 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.entry-share-card { margin: 0 0 16px; max-width: 280px; }
.entry-share-card img { width: 100%; height: auto; border: 1px solid var(--rule); }
.entry-share-card figcaption { margin-top: 10px; }
.entry-share-post { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.entry-share-post label { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }
.entry-share-post textarea { width: 100%; max-width: 520px; padding: 12px 14px; border: 1px solid var(--rule); font: inherit; font-size: 0.95rem; line-height: 1.5; resize: vertical; }
.entry-share-links { margin: 12px 0 4px; font-size: 0.9rem; }
.entry-share-links a, .issue-share a { color: var(--ink); text-underline-offset: 3px; }
.issue-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 48px auto 0; max-width: 720px; font-size: 0.9rem; }
.issue-share-heading { flex-basis: 100%; margin: 0; text-align: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.issue-share input { flex: 1 1 260px; min-width: 0; max-width: 380px; padding: 10px 12px; border: 1px solid var(--rule); font: inherit; font-size: 0.85rem; color: var(--muted); }
.site-footer .follow-links { margin: 14px 0 0; font-size: 1.1rem; color: var(--muted); }
.site-footer .follow-links a { color: inherit; text-decoration: none; }
.site-footer .follow-links a:hover { color: var(--ink); }

/* Home as the magazine (app/views/magazine, pages/_band, _editorial,
   _subscribe): paper and ink, serif type with small-caps kickers, rules and
   columns. Typography is the art; real images only where they exist. */
.cover, .contest-band, .front-page, .editorial, .subscribe { --smallcaps-spacing: 0.14em; }

/* The cover, as an object on the page: the image, the nameplate printed
   across its top, the issue line between rules, cover lines down the left.
   Without JavaScript this height holds; fit_cover_controller.js replaces it
   with the room left above the band and strip (and adds .cover--fitted). */
.cover {
  position: relative;
  display: flex;
  width: min(1280px, calc(100% - 48px));
  min-height: clamp(460px, calc(100vh - 200px), 760px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  box-shadow: 0 22px 40px -28px rgba(0, 0, 0, 0.55);
}
.cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A cover's phone crop (HasCover#cover_phone_style): where the cover stacks,
   its box is nearly as tall as a portrait photo, so a cover can zoom in
   around a point down it. Laptops keep the plain crop. */
@media (max-width: 767px) {
  .cover-image { transform: scale(var(--phone-zoom, 1)); transform-origin: 50% var(--phone-focus, 50%); }
}
.cover-print {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 36px) clamp(20px, 3.4vw, 48px) clamp(20px, 2.6vw, 32px);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 34%),
    linear-gradient(to right, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0) 68%);
}
.cover--fitted .cover-print { padding-block: clamp(16px, 2.4vh, 32px); }
.cover-head { text-align: center; }
.cover-nameplate {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
.cover-issue-line {
  display: flex;
  justify-content: space-between;
  gap: 4px 16px;
  margin: clamp(10px, 1.2vw, 16px) 0 0;
  padding: 5px 2px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.4vw + 0.85rem, 1.2rem);
  font-variant-caps: all-small-caps;
  letter-spacing: var(--smallcaps-spacing);
}
.cover-lines {
  display: grid;
  gap: clamp(14px, 2.4vh, 28px);
  max-width: 400px;
  margin: auto 0;
  padding: clamp(20px, 3vh, 36px) 0;
  list-style: none;
}
.cover-line { display: grid; gap: 2px; }
.cover-line a { color: inherit; text-decoration: none; }
.cover-line a:hover .cover-line-title, .cover-line-also:hover em, a.cover-line-also:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.cover-line-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
}
.cover-line-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2.4vw + 1.1rem, 3.6rem);
  font-style: italic;
  line-height: 1;
  text-wrap: balance;
}
.cover-line--lead .cover-line-byline { display: block; margin-top: 6px; font-size: 1.2rem; }
.cover-line-byline { font-family: var(--font-body); font-style: italic; color: rgba(255, 255, 255, 0.82); }
.cover-line-also { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; }
.cover-line-also .cover-line-byline { font-size: 1.05rem; }
.cover-foot { margin: 0; }
.cover-read { font-family: var(--font-body); font-size: 1.1rem; font-style: italic; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.55); }
.cover-read:hover { border-color: #fff; }

/* The contest band: one line under the cover. */
.contest-band { background: var(--paper); border-bottom: 1px solid var(--rule); }
.contest-band-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--body-ink);
  text-align: center;
}
.contest-band-kicker { font-variant-caps: all-small-caps; letter-spacing: var(--smallcaps-spacing); font-weight: 500; color: var(--muted); }
.contest-band[data-band=open] .contest-band-kicker { color: var(--ink); }
.contest-band-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.contest-band-count, .contest-band-when { font-variant-numeric: oldstyle-nums; }
.contest-band-count::before, .contest-band-when::before { content: "·"; margin-right: 12px; color: var(--faint); }
.contest-band-link { font-style: italic; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.contest-band-link:hover { border-bottom-width: 2px; }

/* "This issue": the front page in columns. */
.front-page { background: var(--off-white); }
.front-page-inner { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 24px clamp(48px, 6vw, 88px); }
.front-page-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding: 8px 0 6px;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
}
.front-kicker, .front-dateline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: var(--smallcaps-spacing);
  color: var(--ink);
}
.front-dateline { text-align: right; font-weight: 400; color: var(--muted); }
.front-numeral { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 3vw + 1.2rem, 4.2rem); font-weight: 400; line-height: 0.95; color: var(--ink); }
.front-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.front-columns--no-note { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.front-column { padding-inline: clamp(18px, 2.2vw, 34px); }
.front-column:first-child { padding-left: 0; }
.front-column:last-child { padding-right: 0; }
.front-column + .front-column { border-left: 1px solid var(--rule); }
.front-column--note .editors-note { border-top: 0; padding-top: 0; }
.front-column--note .editors-note-headline { font-size: clamp(1.8rem, 1.6vw + 1.1rem, 2.6rem); font-weight: 400; line-height: 1.08; }
.front-column--note .editors-note-blurb p:first-child::first-letter,
.editorial-lede::first-letter {
  float: left;
  margin: 0.06em 0.08em 0 0;
  font-family: var(--font-display);
  font-size: 4.4em;
  line-height: 0.78;
  color: var(--ink);
}
.department + .department { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.department-kicker {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: var(--smallcaps-spacing);
  color: var(--muted);
}
.pull-quote { margin: 0 0 10px; padding: 12px 0 14px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pull-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 0.7vw + 1.05rem, 1.7rem); font-style: italic; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.by-the-numbers { margin: 0; }
.by-the-numbers-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--faint); }
.by-the-numbers dt { font-family: var(--font-body); font-size: 1.08rem; color: var(--body-ink); }
.by-the-numbers dd { margin: 0; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; color: var(--ink); font-variant-numeric: oldstyle-nums; }
.placer + .placer { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.placer-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 1.3vw + 1.1rem, 2.4rem); font-weight: 400; line-height: 1.05; color: var(--ink); text-wrap: balance; }
.placer-title a { text-decoration: none; }
.placer-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.placer-byline { margin: 6px 0 10px; font-family: var(--font-body); font-size: 1.15rem; font-style: italic; color: var(--muted); }
.placer-blind { margin: 0 0 18px; font-family: var(--font-body); font-size: 1rem; font-style: italic; color: var(--muted); }
.placer-opening { margin: 0 0 8px; font-family: var(--font-body); font-size: 1.12rem; line-height: 1.6; color: var(--body-ink); }
.placer-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.front-more { display: inline-block; margin-top: 6px; font-family: var(--font-body); font-size: 1.08rem; font-style: italic; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.front-more:hover { color: var(--ink); border-color: var(--ink); }

/* The editorial: one signed piece, like a newspaper's opinion page. */
.editorial { padding: clamp(56px, 7vw, 104px) 24px; background: var(--paper); border-top: 1px solid var(--rule); }
.editorial::before { content: "⁂"; display: block; margin: 0 auto clamp(28px, 3vw, 40px); font-family: var(--font-display); font-size: 1.6rem; line-height: 1; text-align: center; color: var(--muted); }
.editorial-inner { max-width: 680px; margin: 0 auto; }
.editorial-kicker { margin: 0 0 10px; font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: var(--smallcaps-spacing); text-align: center; color: var(--muted); }
.editorial-headline { margin: 0 0 clamp(24px, 3vw, 36px); font-family: var(--font-display); font-size: clamp(2.3rem, 2.4vw + 1.3rem, 3.6rem); font-weight: 400; line-height: 1.04; text-align: center; color: var(--ink); text-wrap: balance; }
.editorial-body p { margin: 0 0 1.15rem; font-family: var(--font-body); font-size: clamp(1.15rem, 0.4vw + 1rem, 1.3rem); line-height: 1.72; color: var(--body-ink); }
.editorial-body a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.editorial-body a:hover { text-decoration-color: var(--ink); }
.editorial-body .pull-quote--editorial { margin: 1.8rem 0; text-align: center; }
.editorial-body .pull-quote--editorial p { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.2rem); line-height: 1.25; color: var(--ink); }
.editorial-signature { margin: 1.5rem 0 0; font-family: var(--font-body); font-size: 1.15rem; font-style: italic; text-align: right; color: var(--muted); }
.editorial-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 28px 0 0; }

/* The newsletter signup. */
.subscribe { padding: clamp(48px, 6vw, 88px) 24px; background: var(--off-white); border-top: 3px double var(--ink); text-align: center; }
.subscribe-inner { max-width: 620px; margin: 0 auto; }
.subscribe-heading { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(2rem, 1.6vw + 1.3rem, 2.8rem); font-weight: 400; line-height: 1.1; color: var(--ink); }
.subscribe-text { margin: 0; font-family: var(--font-body); font-size: clamp(1.12rem, 0.4vw + 1rem, 1.25rem); line-height: 1.6; color: var(--body-ink); }

/* The colophon, in the footer of every page. */
.site-footer-colophon { margin: 0 0 14px; font-family: var(--font-body); font-size: 1rem; font-style: italic; color: var(--muted); }

@media (max-width: 1023px) {
  .front-columns, .front-columns--no-note { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .front-column--note { grid-column: 1 / -1; padding-inline: 0; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
  .front-column--note + .front-column { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
  .cover { width: calc(100% - 32px); min-height: 0; }
  .cover-print { padding: 16px 16px 20px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.82)); }
  .cover-nameplate { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .cover-issue-line { flex-wrap: wrap; justify-content: center; font-size: 0.95rem; }
  .cover-lines { margin: 38vw 0 0; padding: 0 0 18px; max-width: none; }
  .cover-line-title { font-size: 2.3rem; }
  .contest-band-line { padding: 12px 16px; }
  .front-page-inner { padding-inline: 16px; }
  .front-page-head { grid-template-columns: 1fr; text-align: center; }
  .front-numeral { order: -1; }
  .front-dateline { text-align: center; }
  .front-columns, .front-columns--no-note { grid-template-columns: 1fr; }
  .front-column, .front-column + .front-column { padding-inline: 0; border-left: 0; }
  .front-column + .front-column { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
  .front-column--note { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  .editorial, .subscribe { padding-inline: 16px; }
}
.front-column--note .editors-note-kicker { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; font-variant-caps: all-small-caps; text-transform: none; letter-spacing: var(--smallcaps-spacing); }
.front-column--note .editors-note-kicker time { font-weight: 400; }
/* A short laptop window: set the cover a little tighter so the band and
   strip still fit under it on the first screen. */
@media (min-width: 768px) and (max-height: 820px) {
  .cover-nameplate { font-size: clamp(3rem, 10.5vh, 5.6rem); }
  .cover-issue-line { margin-top: 8px; padding-block: 3px 4px; }
  .cover-lines { gap: 12px; padding-block: 12px; }
  .cover-line-title { font-size: clamp(2rem, 5.4vh, 2.8rem); }
  .cover-line-also { font-size: 1.25rem; }
  .cover--fitted .cover-print { padding-block: 14px 16px; }
}

/* Writer page: an editor's desk. Behind the counter, so more practical than
   the magazine: a ledger, manuscripts on the desk, letters
   from the editor, the contributor's card. Paper, ink and rules throughout. */
.office { max-width: 920px; padding-top: 40px; padding-bottom: 64px; --typed: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.office-name { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem); font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }

/* The tabs: Desk, Letters, Stories, Settings. Plain words in the site's
   small caps on a rule, the current one ruled underneath (Jonathan, Nov 19,
   2026); no pills. */
.office-masthead { border-bottom: 1px solid var(--ink); }
.office-tabs { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 18px; }
.office-tab { padding: 6px 0 8px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1.3rem; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; }
.office-tab:hover { color: var(--ink); }
.office-tab[aria-current] { border-bottom-color: var(--ink); color: var(--ink); }
.office-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A link to a whole tab (#settings, after saving there) lands with the tabs
   still in view above it, below the sticky masthead. */
.office-panel { padding-top: 8px; scroll-margin-top: 72px; }
.office-panel[hidden] { display: none; }

.office-ledger { padding-bottom: 24px; border-bottom: 3px double var(--ink); }
.ledger-figures { display: flex; flex-wrap: wrap; gap: 0; margin: 22px 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ledger-figure { flex: 0 1 200px; padding: 10px 18px 10px 0; }
.ledger-figure + .ledger-figure { padding-left: 18px; border-left: 1px solid var(--rule); }
.ledger-figure dt { font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1.05rem; letter-spacing: 0.08em; color: var(--muted); }
.ledger-figure dd { margin: 0; font-family: var(--typed); font-size: 2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ledger-buy { margin: 12px 0 0; font-family: var(--font-body); font-size: 1.1rem; color: var(--body-ink); }
.ledger-buy a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
/* "Buy another" is a POST (it starts Checkout) dressed as the link it was. */
.ledger-buy-form { display: inline; }
.ledger-buy-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Before a first purchase (or new Terms) the link opens the Terms box in a modal (writers/_purchase). */
.ledger-buy-host .purchase-details { display: inline-block; }
summary.ledger-buy-link { display: inline; list-style: none; }
summary.ledger-buy-link::-webkit-details-marker { display: none; }

.office .office-news { margin: 20px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--rule); background: none; color: var(--ink); }
.office .office-news .news-eyebrow { margin: 0 0 4px; color: var(--muted); }
.office .office-news .news-title { margin: 0 0 6px; font-size: clamp(1.5rem, 1vw + 1.2rem, 1.9rem); }
.office .office-news .news-body { margin: 0; font-size: 1.1rem; }
.office .office-news a { color: var(--ink); text-underline-offset: 3px; }

.office-section { padding: 32px 0 8px; }
.office-section + .office-section, .office-account { border-top: 1px solid var(--ink); }
.office-heading { margin: 0 0 18px; font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1.6rem; font-weight: 500; letter-spacing: 0.06em; }
.office-empty { margin: 0 0 24px; font-family: var(--font-body); font-size: 1.15rem; font-style: italic; color: var(--body-ink); }
.office-note { margin: 14px 0 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--body-ink); }
.office-note a { color: var(--ink); text-underline-offset: 3px; }

/* A manuscript's or letter's state (Received, a placing, Disqualified): the
   site's small caps, no stamp or badge (Jonathan, Nov 19, 2026). */
.office-mark { display: inline-block; font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1.1rem; letter-spacing: 0.08em; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.office-mark.entry-placement { color: var(--ink); }

/* On the editor's desk */
.desk-contest + .desk-contest { margin-top: 32px; }
.desk-dateline { margin: 0 0 14px; font-family: var(--typed); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted); }
.desk-dateline em { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; letter-spacing: 0; color: var(--ink); }
.desk-prompt { margin: -6px 0 16px; font-family: var(--font-display); font-size: 1.4rem; font-style: italic; line-height: 1.3; }
.letter-ps { margin: 12px 0 0; font-family: var(--font-body); font-size: 1.05rem; font-style: italic; color: var(--body-ink); }
.desk-manuscripts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.manuscript { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 210px; padding: 18px 18px 14px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 3px 3px 0 var(--off-white), 4px 4px 0 var(--rule); }
.manuscript .office-mark { align-self: flex-end; }
.manuscript-title { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.manuscript-meta { margin: 0; font-family: var(--typed); font-size: 0.75rem; line-height: 1.5; text-align: center; color: var(--muted); }
.manuscript-note { margin: 0; font-size: 0.85rem; color: var(--body-ink); }
.manuscript-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--off-white); font-size: 0.9rem; }
.manuscript-actions .entry-replace[open] { flex-basis: 100%; }
.entry-replace summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); list-style: none; text-align: center; }
.entry-replace summary::-webkit-details-marker { display: none; }

.desk-enter { grid-column: 1 / -1; }
.desk-enter:not([open]) { grid-column: auto; }
.desk-enter-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 210px; padding: 18px; border: 1px dashed var(--muted); cursor: pointer; list-style: none; text-align: center; color: var(--ink); }
.desk-enter-tile::-webkit-details-marker { display: none; }
.desk-enter-tile:hover { background: var(--off-white); }
/* The Enter box that buys the credits first: a button (or a summary) dressed as the same tile. */
.desk-enter-buy-form { display: block; margin: 0; }
button.desk-enter-tile { width: 100%; background: none; font: inherit; }
.desk-enter--buy summary.desk-enter-tile { box-sizing: border-box; }
.desk-enter[open] .desk-enter-tile { min-height: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; border-style: dashed; border-bottom: 0; }
.desk-enter-plus { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.desk-enter[open] .desk-enter-plus { font-size: 1.4rem; }
.desk-enter-label { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; }
.desk-enter-when { font-family: var(--typed); font-size: 0.75rem; color: var(--muted); }

/* The desk's forms (writers/_form_dialog): Replace and Enter another story
   open as a sheet of paper laid over the page, ruled like the blow-in card
   but square to the page. The host wraps no box of its own, so the tile
   stays the desk's grid item. On phones the card fills most of the screen
   and scrolls. */
.form-dialog-host { display: contents; }
.form-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  text-align: left;
}
.form-dialog::backdrop { background: rgb(26 26 26 / 0.4); }
.form-dialog-card {
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 34px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--off-white), 5px 5px 0 var(--rule), 0 18px 40px rgb(0 0 0 / 0.2);
}
.form-dialog-head { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.form-dialog-kicker { margin: 0 0 4px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: 0.14em; color: var(--muted); }
.form-dialog-heading { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 1vw + 1.3rem, 2.1rem); font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
.form-dialog-dateline { margin: 8px 0 0; font-family: var(--typed); font-size: 0.75rem; color: var(--muted); }
.form-dialog-alert { margin: 16px 0 0; padding: 10px 14px; border-left: 2px solid #8a3b2e; background: var(--off-white); font-family: var(--font-body); font-size: 1.05rem; color: #5c271e; }
.form-dialog .stack-form { margin-top: 16px; }
.form-dialog .stack-form input[type="text"], .form-dialog .stack-form select { max-width: none; }
.form-dialog .stack-form > p.form-note:first-of-type { margin-top: 0; }
.form-dialog-close { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--off-white); text-align: center; font-family: var(--font-body); font-size: 0.98rem; color: var(--muted); }
.form-dialog :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Without JavaScript the dialog stays inside its <details> and opens in place. */
details[open] > .form-dialog { display: block; position: static; width: auto; max-height: none; }
details > .form-dialog .form-dialog-card { max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: none; }
details > .form-dialog .form-dialog-head, details > .form-dialog .form-dialog-close { display: none; }
.entry-replace .stack-form { margin-top: 10px; text-align: left; }
.desk-enter > .form-dialog .form-dialog-card { padding: 4px 20px 22px; border: 1px dashed var(--muted); border-top: 0; }

@media (max-width: 640px) {
  .form-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .form-dialog-card { max-height: calc(100dvh - 24px); padding: 22px 20px 16px; }
}
.rules-line a { color: var(--ink); text-underline-offset: 3px; }
.office .stack-form input[type="file"], .office .stack-form .button { max-width: 100%; white-space: normal; }

.coming-up-line { margin: 0 0 24px; font-family: var(--font-body); font-size: 1.15rem; color: var(--body-ink); }
.coming-up-line em { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }

/* Letters from the editor */
.letter { margin: 0 0 22px; padding: 22px 26px 18px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); }
.letter--placed { border-color: var(--ink); }
.letter-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.letter-re { margin: 0; font-family: var(--typed); font-size: 0.85rem; line-height: 1.5; color: var(--body-ink); }
.letter-re em { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--ink); }
.letter-date { margin: 2px 0 0; font-family: var(--typed); font-size: 0.75rem; color: var(--muted); }
.letter-head .office-mark { flex: none; margin-top: 2px; }
.letter-text { margin-top: 14px; }
.letter-fold { cursor: pointer; font-size: 0.9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.letter-text[open] .letter-fold { display: none; }
.letter-salutation { margin: 0 0 10px; font-family: var(--font-body); font-size: 1.15rem; }
.letter-text .prose { font-size: 1.1rem; }
.letter-signature { margin: 14px 0 0; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; text-align: right; }
.letter-signature::before { content: "— "; }
.letter-enclosures { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--off-white); font-size: 0.9rem; }
.letter-enclosures a { color: var(--ink); text-underline-offset: 3px; }

/* The contributor's card */
.contributor-card { margin: 0 0 22px; padding: 20px 24px; border: 1px solid var(--ink); outline: 1px solid var(--rule); outline-offset: 4px; background: var(--paper); }
.contributor-card-head { margin: 0 0 6px; font-family: var(--typed); font-size: 0.85rem; color: var(--body-ink); }
.contributor-card-head em { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.contributor-card-missing { display: block; margin-top: 4px; font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--ink); }
.contributor-card-byline { margin: 8px 0 0; font-family: var(--font-display); font-size: 1.3rem; }
.contributor-card-bio { margin: 4px 0 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--body-ink); }
.contributor-card .stack-form { margin-top: 8px; }
.feature-switch { margin: 0 0 20px; }
.feature-switch strong { color: var(--ink); font-weight: 600; }
.feature-switch .link-button { color: var(--ink); }
.contributor-card textarea { width: 100%; max-width: 420px; padding: 12px 14px; border: 1px solid var(--rule); font: inherit; font-size: 1rem; }

/* The account line */
.office-account { margin-top: 32px; padding-top: 16px; font-size: 0.9rem; color: var(--muted); }
.account-line { display: flex; flex-wrap: wrap; gap: 6px 0; }
.account-item { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--rule); }
.account-item:last-child { border-right: 0; }
.account-item a, .account-item .link-button { color: var(--ink); }
.account-newsletter strong { color: var(--ink); font-weight: 600; }

/* Letters: the short list by contest above the letters */
.letters-index { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.letters-index li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.letters-index-contest { font-family: var(--typed); font-size: 0.8rem; color: var(--muted); }
.letters-index-entries { font-family: var(--font-display); font-size: 1.15rem; }
.letters-index a { color: var(--ink); text-underline-offset: 3px; }

/* Stories: every entry's history */
.stories-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; color: var(--body-ink); }
.stories-table thead th { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--ink); font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1rem; font-weight: 500; letter-spacing: 0.06em; text-align: left; color: var(--muted); }
.stories-table tbody th, .stories-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.stories-table tbody th em { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.stories-table td:nth-child(3) { white-space: nowrap; font-family: var(--typed); font-size: 0.8rem; }
.stories-table a { color: var(--ink); text-underline-offset: 3px; }
.stories-byline { color: var(--muted); }

/* Settings: the profile */
.profile-form { margin-bottom: 32px; }
.profile-form fieldset { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.profile-form legend { padding: 0; font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1.15rem; letter-spacing: 0.06em; }
.profile-form textarea { width: 100%; max-width: 420px; padding: 12px 14px; border: 1px solid var(--rule); font: inherit; font-size: 1rem; }
/* A hint sits with the field above it, and each label starts a new group. */
.profile-form .form-note, .contributor-card .stack-form .form-note { margin: 0; }
.profile-form label:not(.checkbox), .contributor-card .stack-form label:not(.checkbox) { margin-top: 12px; }
.profile-form > label:first-of-type, .contributor-card .stack-form > label:first-of-type { margin-top: 0; }
/* On a phone the fields run the width of the text. */
@media (max-width: 640px) {
  .stack-form input[type="email"], .stack-form input[type="text"], .stack-form select,
  .profile-form textarea, .contributor-card textarea { max-width: none; }
}
.profile-update-published { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.account-newsletter .link-button { color: var(--ink); }
.ledger-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.9rem; color: var(--body-ink); }
.ledger-table th { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--ink); font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; font-size: 1rem; font-weight: 500; letter-spacing: 0.06em; text-align: left; color: var(--muted); }
.ledger-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--off-white); vertical-align: top; }
.ledger-table td:first-child { white-space: nowrap; font-family: var(--typed); font-size: 0.8rem; }
.ledger-table .num { text-align: right; font-family: var(--typed); font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 600px) {
  .office { padding-top: 24px; }
  .office-tabs { gap: 0 18px; }
  .office-tab { font-size: 1.15rem; }
  /* Stories: each entry a short block of lines instead of a wide table. */
  .stories-table thead { display: none; }
  .stories-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .stories-table tbody th, .stories-table td { display: block; padding: 2px 0; border: 0; }
  .stories-table td::before { content: attr(data-label) " · "; font-family: var(--font-display); font-variant: small-caps; text-transform: lowercase; color: var(--muted); }
  .letter { padding: 18px 16px 14px; }
  .contributor-card { padding: 16px; }
  .ledger-figure { flex: 1 1 0; }
  .letter-head { flex-wrap: wrap; }
}
/* The contest's pitch, the band's first line. */
.contest-band-pitch { margin: 0; padding: 12px 24px 0; font-family: var(--font-display); font-size: 1.3rem; font-style: italic; line-height: 1.3; text-align: center; color: var(--ink); }
.contest-band-pitch + .contest-band-line { padding-top: 2px; }
.front-more-row { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }

/* The blow-in card (layouts/_blow_in): the subscription card that falls out
   of a print magazine. Cream stock, a ruled border, serif type; it sits a
   little crooked on the page, like a card that's just dropped out. On phones
   it rests near the bottom of the screen, where a thumb reaches it. */
.blow-in {
  --smallcaps-spacing: 0.14em;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.blow-in::backdrop { background: rgb(26 26 26 / 0.35); }
.blow-in[open] { animation: blow-in-drop 260ms ease-out; }
@keyframes blow-in-drop { from { opacity: 0; transform: translateY(12px) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .blow-in[open] { animation: none; } }

.blow-in-card {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 30px 32px 22px;
  background: #f4efe2;
  border: 1px solid #cfc5ae;
  outline: 3px double var(--ink);
  outline-offset: -11px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.22), 0 2px 6px rgb(0 0 0 / 0.12);
  text-align: center;
  transform: rotate(-0.6deg);
}
.blow-in-kicker { margin: 0 0 6px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: var(--smallcaps-spacing); color: var(--muted); }
.blow-in-heading { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(1.9rem, 1.2vw + 1.4rem, 2.3rem); font-weight: 400; line-height: 1.08; color: var(--ink); }
.blow-in-text, .blow-in-promise { margin: 0; font-family: var(--font-body); font-size: 1.08rem; line-height: 1.5; color: var(--body-ink); }
.blow-in-submit { margin: 18px 0 0; }
.blow-in-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--muted); }
.blow-in-or::before, .blow-in-or::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
.blow-in-subhead { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.15; color: var(--ink); }
.blow-in-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.blow-in-form input[type="email"] { flex: 1 1 200px; min-width: 0; padding: 11px 12px; border: 1px solid var(--ink); background: #fffdf8; font: inherit; font-family: var(--font-body); font-size: 1.05rem; }
.blow-in-form[hidden], .blow-in-message:empty { display: none; }
.blow-in-message { margin: 12px 0 0; font-family: var(--font-body); font-size: 1.02rem; color: var(--body-ink); }
.blow-in-message--alert { color: #8a3b2e; }
.blow-in-close { margin: 16px 0 0; font-family: var(--font-body); font-size: 0.98rem; color: var(--muted); }
.blow-in-close .link-button { text-underline-offset: 3px; }
.blow-in :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 640px) {
  .blow-in { margin: auto auto 16px; }
  .blow-in-card { padding: 24px 22px 18px; transform: none; }
  .blow-in-heading { font-size: 1.8rem; }
}

/* Promote the placers: the writer's bio and one printed line of where to
   find them. On the issue's contents, Home's second and third place, and
   the story's "About the author". */
.placer-contributor { margin: 10px 0 8px; }
.placer-contributor .placer-bio { margin-top: 0; }
.placer-bio + .contributor-links { padding-left: 13px; }
.contributor-links { margin: 6px 0 0; font-family: var(--font-sans); font-size: 0.78rem; line-height: 1.6; letter-spacing: 0.02em; color: var(--muted); overflow-wrap: anywhere; }
.contributor-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contributor-links a:hover { text-decoration-color: var(--ink); }
.contributor-links-item { display: inline-block; max-width: 100%; }
.contributor-links-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.story-bio .contributor-links { margin-top: 12px !important; }

/* The writer page's part of the contributor card. */
.contributor-card-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; margin: 14px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--rule); }
.contributor-card-links legend { padding: 0; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Admin: the marketing playbook, read as a page and edited as Markdown. */
.admin-playbook { max-width: 720px; margin: 28px 0 48px; padding-top: 24px; border-top: 1px solid var(--ink); }
.admin-playbook table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.45; }
.admin-playbook th { text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--ink); }
.admin-playbook td { vertical-align: top; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); }
.admin-playbook code { font-size: 0.8em; overflow-wrap: anywhere; }
.admin-playbook-text { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 0.85rem !important; line-height: 1.5; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); }
.admin-playbook-source { margin: 0 0 40px; font-family: var(--font-sans); font-size: 0.85rem; }
.admin-playbook-source summary { cursor: pointer; color: var(--muted); }
.admin-playbook-source pre { max-width: none; }

/* The playbook's monthly rhythm drawn as a month (admin/playbook/_rhythm,
   PlaybookRhythm): phase bars over days in rows of seven, each day tinted
   by its kind, optional days dashed. Ink tints mixed into whatever is
   behind them, so they stay soft on the paper; square, ruled, no cards. */
.rhythm { max-width: 960px; margin-top: 28px; font-family: var(--font-sans); }
.rhythm-kind-1 { --tint: #a0752e; } /* ochre */
.rhythm-kind-2 { --tint: #2f5d6b; } /* slate blue */
.rhythm-kind-3 { --tint: #4f7a46; } /* moss */
.rhythm-kind-4 { --tint: #9a3b4b; } /* madder */
.rhythm-kind-5 { --tint: #5b4f7a; } /* dusk */
.rhythm-kind-6 { --tint: #6b6257; } /* stone */
.rhythm-phases { display: grid; gap: 0 4px; margin: 4px 0 6px; }
.rhythm-phase { min-width: 0; padding: 4px 0 4px; border-top: 3px solid var(--ink); font-size: 0.7rem; line-height: 1.3; }
.rhythm-phase-name { display: block; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; overflow-wrap: anywhere; }
.rhythm-phase-days { display: block; color: var(--muted); font-variant-numeric: lining-nums; }
.rhythm-grid { border-top: 1px solid var(--ink); }
.rhythm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rhythm-day { position: relative; min-height: 92px; min-width: 0; padding: 5px 7px 8px; font-size: 0.78rem; line-height: 1.3;
  background: color-mix(in srgb, var(--tint, transparent) 22%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--tint, var(--rule)) 80%, transparent);
  border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.rhythm-day.is-optional { outline: 1px dashed var(--ink); outline-offset: -5px; border-left-style: dashed; }
.rhythm-day.is-missing { background: none; border-left-color: transparent; }
.rhythm-day-number { display: block; margin-bottom: 3px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: lining-nums; }
.rhythm-day-post { display: block; color: var(--ink); overflow-wrap: anywhere; }
/* The kind and "optional" are said, not shown, on a wide screen (the tint
   and the key show them); a screen reader still hears them (Copilot, #95). */
.rhythm-day-kind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; color: var(--muted); font-size: 0.7rem; }
.rhythm-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--body-ink); }
.rhythm-key-item { display: flex; align-items: center; gap: 7px; }
.rhythm-swatch { display: inline-block; width: 18px; height: 14px;
  background: color-mix(in srgb, var(--tint, transparent) 22%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--tint, var(--rule)) 80%, transparent); }
.rhythm-swatch.is-optional { border: 1px dashed var(--ink); }
.rhythm-count { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* A phone: one day a line, its kind spelled out; the phase bars stack. */
@media (max-width: 720px) {
  .rhythm-phases { display: block; }
  .rhythm-phase { margin-bottom: 6px; border-top-width: 2px; }
  .rhythm-phase-name, .rhythm-phase-days { display: inline; }
  .rhythm-phase-days::before { content: " · "; }
  .rhythm-week { display: block; }
  .rhythm-day { min-height: 0; border-right: 0; padding: 7px 10px; }
  .rhythm-day.is-missing { display: none; }
  .rhythm-day-number { display: inline; margin-right: 6px; }
  .rhythm-day-post { display: inline; }
  .rhythm-day-kind { position: static; display: block; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
}

/* Admin: social posts on a month calendar. Ruled like a printed diary:
   hairlines between days, small caps for weekdays and statuses, and a rule
   down each post's left edge in its status's ink. */
.admin-calendar-nav { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-family: var(--font-sans); font-size: 0.88rem; }
.admin-calendar-nav a { color: var(--body-ink); text-decoration: none; }
.admin-calendar-nav a:hover { text-decoration: underline; }
.admin-calendar-month { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.admin-calendar { font-family: var(--font-sans); font-size: 0.78rem; margin-bottom: 12px; }
.admin-calendar-weekdays, .admin-calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.admin-calendar-weekdays span { padding: 6px 6px 4px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.admin-calendar-day { min-height: 96px; padding: 4px 6px 8px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.admin-calendar-day:last-child { border-right: 0; }
.admin-calendar-day.is-outside { background: color-mix(in srgb, var(--rule) 25%, transparent); }
.admin-calendar-day.is-outside .admin-calendar-date { color: var(--faint); }
.admin-calendar-date { margin: 0 0 4px; font-variant-numeric: lining-nums; color: var(--muted); }
.admin-calendar-weekday { display: none; }
.admin-calendar-day.is-today .admin-calendar-date { color: var(--ink); font-weight: 600; }
.admin-calendar-today { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.admin-calendar-post { display: block; margin: 0 0 6px; padding: 1px 0 1px 6px; border-left: 2px solid var(--ink); color: var(--ink); text-decoration: none; line-height: 1.3; }
.admin-calendar-post:hover .admin-calendar-label { text-decoration: underline; }
.admin-calendar-time { display: block; color: var(--muted); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.admin-calendar-label { display: block; overflow-wrap: anywhere; }
.admin-calendar-meta { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 1px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.admin-calendar-platform { text-decoration: none; font-weight: 400; }
.admin-calendar-platform.is-posted { color: var(--ink); }
.admin-calendar-platform.is-failed { color: #a5442b; text-decoration: line-through; }
.admin-calendar-post--draft { border-left-style: dashed; border-left-color: var(--muted); }
.admin-calendar-post--draft .admin-calendar-label { color: var(--body-ink); }
.admin-calendar-post--approved { border-left-color: #4f7a46; }
.admin-calendar-post--approved .admin-calendar-status { color: #4f7a46; }
.admin-calendar-post--paused { border-left-style: dotted; border-left-color: var(--muted); }
.admin-calendar-post--publishing { border-left-color: var(--muted); }
.admin-calendar-post--posted { border-left-color: var(--ink); }
.admin-calendar-post--posted .admin-calendar-status { color: var(--ink); }
.admin-calendar-platform.is-unknown { color: #8a5a14; }
.admin-calendar-post--unconfirmed { border-left-color: #8a5a14; }
.admin-calendar-post--unconfirmed .admin-calendar-status { color: #8a5a14; }
.admin-calendar-post--failed { border-left-color: #a5442b; }
.admin-calendar-post--failed .admin-calendar-status { color: #a5442b; }

/* A phone: the days as a list, empty ones left out. */
@media (max-width: 720px) {
  .admin-calendar-weekdays { display: none; }
  .admin-calendar-week { display: block; }
  .admin-calendar-day { min-height: 0; border-right: 0; padding: 8px 0; }
  .admin-calendar-day.is-empty:not(.is-today), .admin-calendar-day.is-outside { display: none; }
  .admin-calendar-weekday { display: inline; }
}

/* Following The Quarry on social (shared/_follow_links): one quiet
   small-caps line of text links, no icons. */
.follow-links { margin: 20px 0 0; font-family: var(--font-body); font-size: 1.05rem; font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--muted); }
.follow-links a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.follow-links a:hover { text-decoration-thickness: 2px; }
.prose .follow-links { margin: 0 0 1.2em; font-size: 0.85em; }

/* Admin: the email audit (/admin/emails). The writer's journey as a numbered
   list, then one email at a time at phone width, with Jonathan's verdict. */
.email-built-with { margin: 0 0 24px; font-family: var(--font-sans); font-size: 0.88rem; color: var(--muted); }
.email-built-with summary { cursor: pointer; list-style: none; }
.email-built-with summary::-webkit-details-marker { display: none; }
.email-built-with-change { color: var(--body-ink); text-decoration: underline; }
.email-built-with[open] summary { margin-bottom: 12px; }
.email-audit-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-family: var(--font-sans); font-size: 0.95rem; }
.email-audit-progress p { margin: 0; }
.email-audit-progress .admin-button { margin-left: 0; }
.email-journey { margin: 0; padding: 0; list-style: none; max-width: 760px; font-family: var(--font-sans); }
.email-journey li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.email-journey li:first-child { border-top: 1px solid var(--rule); }
.email-journey-number { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--muted); text-align: right; }
.email-journey li.is-reviewed .email-journey-number { color: var(--ink); }
.email-journey-body p { margin: 0; }
.email-journey-name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; font-size: 1.02rem; font-weight: 600; }
.email-journey-name a { color: var(--ink); text-decoration: none; }
.email-journey-name a:hover { text-decoration: underline; }
.email-journey-when { margin-top: 2px !important; font-size: 0.9rem; color: var(--body-ink); }
.email-journey-subject { margin-top: 4px !important; font-size: 0.8rem; color: var(--muted); }
.email-journey-note { margin-top: 6px !important; font-size: 0.82rem; font-style: italic; color: var(--body-ink); }
.email-verdict { font-variant: small-caps; font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: lowercase; color: var(--ink); }
.email-title { margin-bottom: 8px; }
.email-count { color: var(--muted); }
.email-goes-to { margin: 0 0 8px; font-family: var(--font-sans); font-size: 1rem; color: var(--body-ink); }
.email-steps { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 0 0 24px; max-width: 820px; }
.email-steps #next { margin-left: auto; }
.email-desk { display: grid; grid-template-columns: minmax(0, 412px) minmax(0, 360px); gap: 32px 48px; align-items: start; }
.email-read { min-width: 0; }
.email-subject { margin: 0 0 10px; font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); }
.email-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.email-phone { display: block; width: 390px; max-width: 100%; height: 760px; max-height: 80vh; border: 1px solid var(--rule); border-radius: 0; background: #fff; }
.email-plain { margin: 12px 0; font-family: var(--font-sans); font-size: 0.88rem; }
.email-plain summary { cursor: pointer; color: var(--body-ink); }
.email-plain .admin-email-text { margin-top: 8px; max-width: 390px; }
.email-audit { position: sticky; top: 96px; font-family: var(--font-sans); }
.email-audit-form { display: flex; flex-direction: column; gap: 10px; }
.email-verdicts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; border: 0; font-size: 1.05rem; }
.email-verdicts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-variant: small-caps; letter-spacing: 0.04em; }
.email-verdict-none { color: var(--muted); }
.email-audit-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.email-audit textarea { font: inherit; font-size: 0.95rem; line-height: 1.5; padding: 8px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 0; width: 100%; box-sizing: border-box; resize: vertical; }
.email-audit-actions { display: flex; gap: 10px; margin: 0; }
.email-audit-actions .admin-button { margin-left: 0; padding: 4px 14px; font-size: 0.88rem; }
@media (max-width: 860px) {
  .email-desk { grid-template-columns: minmax(0, 1fr); }
  .email-audit { position: static; }
}
