/* The Quarry Press: 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);
}

.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

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

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

.site-nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

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

.site-nav-writer {
  padding-left: 24px;
  border-left: 1px solid #ece8e2;
}

.site-header--dark .site-nav-writer { border-left-color: rgba(255, 255, 255, 0.2); }

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

.site-header--dark .site-logo { color: #fff; }
.site-header--dark .site-nav-links a { color: rgba(255, 255, 255, 0.55); }
.site-header--dark .site-nav-links a:hover,
.site-header--dark .site-nav-links a.is-current { color: #fff; }

/* 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); }

/* Home hero */

.lhero {
  display: flex;
  min-height: 86vh;
  overflow: hidden;
}

.lhero-left {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  background: var(--night);
  padding: clamp(48px, 8vw, 120px) clamp(24px, 5vw, 80px);
}

.lhero-content { max-width: 560px; width: 100%; }

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

.lhero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3vw + 1.4rem, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 2rem;
}

.lhero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.6vw + 0.9rem, 1.4rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.lhero-prompt {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
  line-height: 1.65;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.lhero-deadline {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 2.5rem;
}

.lhero-deadline:has(+ .lhero-prize) { margin-bottom: 0.5rem; }

.lhero-prize {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 2.5rem;
}

.lhero-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  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;
}

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

.lhero-right {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.lhero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lhero-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
  line-height: 1.65;
}
.lhero-text { margin-bottom: 2rem; }
.lhero-winner a { color: #fff; }

/* Home's cover: shorter than the old hero, so the contest band under it
   sits above the fold on a laptop screen too. */
.lhero--cover { min-height: clamp(400px, calc(100vh - 270px), 760px); }
/* Inset like a cover on a page, not edge to edge: margins at the sides only.
   Wider than the contest band's text under it (1072px), so the cover leads. */
.lhero--cover {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}
.lhero--cover .lhero-left { padding-block: clamp(36px, 5vw, 72px); }
.lhero--cover .lhero-eyebrow { margin-bottom: 1.25rem; }
.lhero--cover .lhero-title { margin-bottom: 1.25rem; }
.lhero--cover .lhero-tagline { margin-bottom: 2rem; }
.lhero-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Home's contest band, right under the cover. */
.contest-band { background: var(--paper); border-bottom: 1px solid var(--rule); }
.contest-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(18px, 2vw, 28px) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}
.contest-band-text { min-width: 0; }
.contest-band-kicker { margin: 0 0 6px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contest-band[data-band=open] .contest-band-kicker { color: var(--ink); }
.contest-band-title { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem); font-weight: 400; line-height: 1.15; color: var(--ink); }
.contest-band-prompt { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.contest-band-prompt--hidden { color: var(--muted); }
.contest-band-terms { margin: 0; font-family: var(--font-sans); font-size: 0.85rem; color: var(--muted); }
.contest-band-tally { margin: 0 0 0.35rem; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.contest-band-more { color: var(--muted); }
.contest-band-action { flex: none; }
.contest-band-signup { background: transparent; color: var(--ink); }
.contest-band-signup:hover { background: var(--ink); color: #fff; }

@media (max-width: 767px) {
  .contest-band-inner { flex-direction: column; align-items: flex-start; padding-inline: 16px; }
  .lhero { flex-direction: column; min-height: auto; }
  .lhero--cover { width: calc(100% - 32px); }
  .lhero-right { flex: none; height: 70vw; min-height: 220px; order: -1; }
  .lhero-left { flex: none; }
}

/* Enter page 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; }

/* Writer page: the same framed cover, a little shorter */
.cd-hero--writer { min-height: 62vh; }
.cd-hero--writer .cd-hero-eyebrow { margin: 0 0 1.2rem; font-family: var(--font-sans); }
.cd-hero--writer .cd-panel-prompt { font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem); }
.cd-hero-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-hero-kicker em { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 1rem; }
.writer-news { margin-top: 24px; }
.writer-band .writer-section-heading { text-align: left; }
.writer-page .writer-signout { padding-inline: 0; }

/* 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--winner { 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; }
.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;
}

.manifesto-quote,
.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); }

.why-signature {
  margin-top: clamp(28px, 3vw, 40px);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--faint);
}

/* How it works */

.contest-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contest-step { display: flex; align-items: flex-start; gap: 18px; }

.contest-step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}

.contest-step-content {
  padding-top: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 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 */

.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);
}

.essay-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ece8e2; }
.essay-list li { border-bottom: 1px solid #ece8e2; }

.essay-list-link {
  display: block;
  padding: 24px 0;
  text-decoration: none;
}

.essay-list-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.8vw + 1.2rem, 1.9rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.essay-list-link:hover .essay-list-title { text-decoration: underline; text-underline-offset: 4px; }

.essay-list-summary {
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--body-ink);
}

.essay img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 2px;
}

.essay a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rule); }
.essay a:hover { text-decoration-color: var(--ink); }

.essay pre {
  overflow-x: auto;
  padding: 18px 20px;
  background: var(--off-white);
  border: 1px solid #ece8e2;
  font-size: 0.85rem;
  line-height: 1.55;
}

.essay code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.essay pre code { font-size: inherit; color: var(--body-ink); }

.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; }

.entry-card {
  margin: 16px 0;
  padding: 16px 20px;
  border: 1px solid #ece8e2;
  background: var(--off-white);
}

.entry-card-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.entry-card-meta { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* 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-card--runner-up { background: #fff; border: 2px solid var(--ink); }

.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:not(.news-card--won):not(.news-card--runner-up) .news-body { margin: 0; }
.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; }

/* This month: credits beside the upload */

.credits-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid #ece8e2;
}

.credits-bar .writer-credits { margin: 0; font-size: 1.2rem; }
.credits-bar .writer-credits strong { font-size: 1.6rem; }

/* Past entries */

.contest-group { margin: 0 0 24px; }
.contest-group-heading {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.entry-card--winner { border: 2px solid var(--ink); background: #fff; }
.entry-card--runner-up { border-color: var(--ink); background: #fff; }

.entry-placement {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}

.entry-placement--winner { background: var(--ink); color: #fff; }

.entry-feedback { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece8e2; font-size: 1.05rem; }
.entry-feedback-heading { margin: 0 0 8px; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.entry-feedback:not([open]) .entry-feedback-heading::after { content: " · Read feedback"; text-transform: none; letter-spacing: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.entry-feedback .prose { font-size: 1.05rem; }

.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-replace { margin-top: 12px; }
.entry-replace summary { cursor: pointer; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }

.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; }

.writer-credits {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.writer-credits strong { font-size: 2.2rem; font-weight: 500; margin-right: 4px; }

.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 */

.writer-section { padding: 28px 0; border-top: 1px solid #ece8e2; }

.writer-section-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.writer-empty { margin: 0 0 1.25rem; font-family: var(--font-body); font-size: 1.15rem; color: var(--body-ink); }

.writer-signout {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #ece8e2;
  font-size: 0.85rem;
  color: var(--muted);
}

.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 */

.contest-group-link { color: inherit; text-decoration: none; }
.contest-group-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.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 */
.current-contest + .current-contest { margin-top: 28px; }
.writer-contest-status { margin: -4px 0 12px; color: var(--muted); font-size: 0.95rem; }
.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-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); }

/* Home: the cover issue's contents */
.issue-contents { list-style: none; margin: 0 auto 24px; padding: 0; max-width: 560px; display: grid; gap: 14px; }
.issue-contents-item { display: grid; gap: 2px; }
.issue-contents-placement { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.issue-contents-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.issue-contents-byline { font-family: var(--font-body); font-style: italic; color: var(--body-ink); }
.issue-contents-all { margin-left: 20px; }

/* Home's contest terms */

.news-kicker { margin: 0 0 8px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.news-heading { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); font-weight: 400; line-height: 1.15; color: var(--ink); }
.news-prompt { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.news-text, .news-text p { margin: 0 0 12px; font-family: var(--font-body); font-size: 1.1rem; line-height: 1.65; color: var(--body-ink); }
.news-terms { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; font-family: var(--font-sans); font-size: 0.88rem; }
.news-terms dt { font-weight: 600; color: var(--muted); }
.news-terms dd { margin: 0; color: var(--ink); }
.news-link { margin-top: 8px; }
.news-enter { display: inline-block; margin-top: 8px; text-decoration: none; }
@media (max-width: 480px) { .news-terms { grid-template-columns: 1fr; gap: 2px; } .news-terms dd { margin-bottom: 8px; } }
.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); }
#kinds .admin-tabs { margin-bottom: 10px; }

/* 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-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-gone { color: var(--muted); }
.entry-file-note { font-size: 0.85rem; color: var(--muted); }

/* Writer page: a placed entry's byline, bio and PayPal email (PublicationDetails) */
.entry-details { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece8e2; }
.entry-details:not([open]) .entry-feedback-heading::after { content: " · Change"; text-transform: none; letter-spacing: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.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-social { display: flex; justify-content: center; gap: 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.site-footer-social a { text-decoration: none; }
.site-footer-social a:hover { color: var(--ink); }
