:root {
  --ink: #1c140f;
  --paper: #f3ecdf;
  --card: #fffaf3;
  --red: #9d1020;
  --red-deep: #6e0b16;
  --blue: #16315c;
  --green: #1f6b3a;
  --line: rgba(28, 20, 15, 0.16);
  --shadow: 0 18px 40px rgba(28, 20, 15, 0.12);
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  --display: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(157, 16, 32, 0.16), transparent 32%),
    linear-gradient(180deg, #d9c7ae 0%, var(--paper) 220px);
  background-color: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--blue);
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

[data-focus]:focus,
main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  color: #fffaf3;
  background: var(--blue);
  font-family: var(--sans);
}

.skip-link:focus {
  top: 12px;
}

/* Masthead and navigation */

.masthead {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 8px;
  text-align: center;
}

.edition {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead h1 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.masthead h1 a {
  color: inherit;
  text-decoration: none;
}

.masthead h1 em {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.42em;
}

.masthead-small h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.rule {
  height: 8px;
  margin: 16px auto 0;
  border-top: 2px solid var(--ink);
  border-bottom: 5px solid var(--ink);
}

.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  display: block;
  padding: 10px 10px 8px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

.site-nav ul a:hover {
  border-bottom-color: var(--line);
}

.site-nav ul a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.search {
  display: flex;
  flex: 1 1 220px;
  max-width: 320px;
}

.search input {
  min-width: 0;
  padding: 8px 12px;
}

.search button {
  padding: 8px 14px;
  color: #fffaf3;
  background: var(--blue);
  border: 0;
  cursor: pointer;
}

/* Layout */

.paper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 40px;
  display: grid;
  gap: 28px;
}

.front-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 22px;
  background: rgba(243, 236, 223, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-head p,
.form-note {
  margin: 0;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.view-body {
  margin-top: 18px;
}

.intro {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.colophon {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-align: center;
}

.colophon p {
  max-width: 62ch;
  margin: 0 auto 8px;
  line-height: 1.5;
}

/* Comments */

.comments .box-title {
  font-size: 1.3rem;
}

.comment-list {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
}

.comment,
.moderation-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.comment p,
.moderation-item p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.comment-meta {
  margin-bottom: 4px !important;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.comment-meta strong {
  color: var(--red);
}

.comment-form {
  max-width: 640px;
  margin-top: 0;
}

.comment-rules {
  margin: 0;
  padding: 10px 12px;
  background: var(--card);
  border-left: 4px solid var(--red);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
}

.comment-name {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.comment-form textarea {
  min-height: 110px;
}

.comment-count {
  justify-self: end;
}

/* Hidden from people (a trap field that only spam bots fill in). */
.comment-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.moderation-body {
  margin: 6px 0 10px !important;
  padding: 10px 12px;
  background: var(--card);
  font-size: 1.05rem;
}

.story-actions {
  margin-top: 20px;
}

.noscript {
  max-width: 1080px;
  margin: 16px auto;
  padding: 14px 18px;
  color: #fffaf3;
  background: var(--red);
  font-family: var(--sans);
}

.about h3 {
  margin: 1.4em 0 0.3em;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-credit {
  margin: 6px 0 0;
  color: rgba(28, 20, 15, 0.7);
  font-family: var(--sans);
  font-size: 0.75rem;
}

/* Sidebar boxes */

.sidebar {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.box {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
}

.box p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.box-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.box-fact {
  border-top-color: var(--red);
}

.box-fact p {
  font-size: 1.1rem;
}

.box-quiz {
  border-top-color: var(--blue);
}

.box-note {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.spotlight,
.character-card {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.spotlight strong,
.character-card strong {
  display: block;
  font-size: 1.15rem;
}

.spotlight span span,
.character-card span span {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.spotlight:hover strong,
.character-card:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.callout .box-title {
  margin-bottom: 8px;
}

.link-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.1rem;
}

.link-list a::after {
  content: " →";
}

/* Stories */

.empty {
  margin: 0;
  padding: 28px 8px 12px;
  color: var(--blue);
  font-size: 1.2rem;
}

.kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.kicker a:hover {
  text-decoration: underline;
}

.lead h3,
.story h3,
.article h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.lead h3,
.article-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lead h3 a,
.story h3 a {
  color: inherit;
  text-decoration: none;
}

.lead h3 a:hover,
.story h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.12em;
}

.lead {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.lead.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.lead-image,
.card-image {
  display: block;
}

.card-image .media {
  margin-bottom: 12px;
}

/* Picture frame with web placeholder art; a picture, when there is one, covers the art. */
.media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    repeating-conic-gradient(from 0deg at 50% 115%, rgba(255, 250, 243, 0.16) 0deg 1deg, transparent 1deg 15deg),
    repeating-radial-gradient(circle at 50% 115%, transparent 0 34px, rgba(255, 250, 243, 0.14) 35px 36px),
    linear-gradient(160deg, var(--red) 0%, var(--red-deep) 55%, var(--blue) 100%);
}

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

.media-label {
  padding: 0 12px;
  color: #fffaf3;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.main-column {
  display: grid;
  gap: 28px;
  min-width: 0;
}

/* Web Wire picture cards */

.wire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.wire-card a {
  display: block;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}

.wire-card .media {
  margin-bottom: 10px;
}

.wire-card .media-label {
  font-size: 0.9rem;
}

.wire-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.wire-card a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.wire-summary {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Videos: a thumbnail button until clicked, then the YouTube player */

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 0;
  cursor: pointer;
}

.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.video-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fffaf3;
}

button.video:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-slot {
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  padding: 6px 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(28, 20, 15, 0.28);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.chip:hover {
  border-color: var(--red);
}

.featured-movie {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.featured-movie h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.featured-movie p {
  line-height: 1.5;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.movie-card .timeline-meta {
  margin: 4px 0 0;
}

.movie-card .media {
  aspect-ratio: 16 / 9;
}

.box-caption {
  margin-top: 4px;
}

/* AI stories */

.ai-tag {
  padding: 1px 6px;
  color: var(--blue);
  border: 1px solid var(--blue);
  letter-spacing: 0.08em;
}

.source-note {
  max-width: 68ch;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--card);
  border-left: 4px solid var(--blue);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.source-note p {
  margin: 0 0 6px;
}

.excerpt {
  margin: 10px 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.lead .excerpt {
  font-size: 1.2rem;
}

.read-more,
.back-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link {
  margin: 0 0 18px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.story {
  padding-top: 14px;
  border-top: 3px solid var(--ink);
}

.story-figure {
  margin: 18px 0 0;
}

.story-figure img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--card);
}

.story-figure figcaption {
  margin-top: 8px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.body {
  max-width: 68ch;
  margin-top: 14px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.body p {
  margin: 0 0 0.8em;
}

/* Web Wire and search results */

.wire-list,
.result-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wire-item,
.result-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.wire-item h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.wire-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.wire-item h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.wire-item p:last-child,
.result-list p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.wire-list.compact .wire-item {
  padding: 10px 0;
}

.wire-list.compact .wire-item h3 {
  font-size: 1rem;
}

.wire-list.compact .kicker {
  font-size: 0.68rem;
}

.result-heading {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view-body > .result-heading:first-child {
  margin-top: 0;
}

.result-list a {
  font-size: 1.2rem;
}

/* Spider-Man 101 */

.tile-grid,
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
}

.tile strong {
  font-size: 1.2rem;
}

.tile span {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.tile:hover {
  border-left-color: var(--blue);
}

.character-card {
  height: 100%;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fffaf3;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 250, 243, 0.18) 0deg 2deg, transparent 2deg 45deg),
    radial-gradient(circle, transparent 38%, rgba(255, 250, 243, 0.14) 39% 41%, transparent 42% 64%, rgba(255, 250, 243, 0.14) 65% 67%, transparent 68%),
    var(--red);
}

.badge-villain {
  background-color: var(--ink);
  background-image:
    repeating-conic-gradient(from 0deg, rgba(255, 250, 243, 0.14) 0deg 2deg, transparent 2deg 45deg),
    radial-gradient(circle, transparent 38%, rgba(255, 250, 243, 0.1) 39% 41%, transparent 42% 64%, rgba(255, 250, 243, 0.1) 65% 67%, transparent 68%);
}

.profile-head {
  display: flex;
  gap: 18px;
  align-items: center;
}

.profile-name {
  margin: 6px 0 0;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 1.05rem;
}

.profile-head .badge {
  width: 84px;
  height: 84px;
  font-size: 1.8rem;
}

.facts-table {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  max-width: 68ch;
  margin: 18px 0 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.facts-table dt {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.2em;
}

.facts-table dd {
  margin: 0;
}

.bullet-list {
  max-width: 68ch;
  margin: 0;
  padding-left: 1.2em;
  font-size: 1.05rem;
  line-height: 1.6;
}

.timeline,
.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--red);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline h3,
.guide-list h3 {
  margin: 0;
  font-size: 1.25rem;
}

.timeline p,
.guide-list p {
  margin: 4px 0 0;
  line-height: 1.5;
}

.timeline-meta {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.timeline .upcoming .timeline-year {
  color: var(--blue);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  color: #fffaf3;
  background: var(--blue);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.guide-list {
  counter-reset: guide;
}

.guide-list li {
  position: relative;
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--line);
  counter-increment: guide;
}

.guide-list li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fffaf3;
  background: var(--red);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
}

.guide-year {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
}

/* Quiz */

.quiz {
  max-width: 640px;
}

.quiz-progress {
  margin: 0;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.quiz-question {
  margin: 10px 0 18px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.quiz-choices {
  display: grid;
  gap: 10px;
}

.quiz-choice {
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  cursor: pointer;
  font-size: 1.1rem;
}

.quiz-choice:hover:not(:disabled) {
  border-color: var(--blue);
}

.quiz-choice:disabled {
  opacity: 1;
  cursor: default;
}

.quiz-choice.correct {
  color: #fffaf3;
  background: var(--green);
  border-color: var(--green);
}

.quiz-choice.correct::after {
  content: "  ✓";
}

.quiz-choice.wrong {
  color: #fffaf3;
  background: var(--red);
  border-color: var(--red);
}

.quiz-choice.wrong::after {
  content: "  ✗";
}

.quiz-feedback {
  min-height: 1.5em;
  margin: 16px 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.quiz-big {
  margin: 0;
  color: var(--red);
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 700;
}

.quiz-result p {
  font-size: 1.2rem;
}

/* Forms and buttons */

form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.search {
  margin: 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field small {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.8rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(28, 20, 15, 0.22);
  border-radius: 2px;
}

input[readonly] {
  color: rgba(28, 20, 15, 0.6);
  background: transparent;
}

textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button-primary,
.button-quiet {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  text-decoration: none;
}

.button-primary {
  color: #fffaf3;
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-deep);
}

.button-quiet {
  padding: 8px 14px;
  color: var(--ink);
  background: transparent;
  border-color: rgba(28, 20, 15, 0.28);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

[hidden] {
  display: none !important;
}

/* Copy desk */

.desk-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
}

.list-panel {
  grid-row: span 2;
}

.list-panel .desk-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.story-list {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.story-list button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.story-list button:hover {
  border-color: var(--line);
}

.story-list button[aria-current="true"] {
  background: var(--card);
  border-color: var(--red);
}

.story-list span {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.drafts {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.drafts .panel-head h2 {
  font-size: 1.15rem;
}

.drafts > .form-note {
  margin-top: 6px;
  font-size: 0.82rem;
}

.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--card);
  border: 2px solid var(--red);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}

.check-field input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--red);
}

.source-info {
  margin: 0;
  padding: 10px 12px;
  background: var(--card);
  border-left: 4px solid var(--blue);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.image-field {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(28, 20, 15, 0.3);
}

.image-field img {
  max-height: 180px;
  width: auto;
}

.preview-panel .view-body {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .front-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 720px) {
  .masthead,
  .paper,
  .colophon,
  .site-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .site-nav ul a {
    white-space: nowrap;
  }

  .search {
    max-width: none;
  }

  .panel {
    padding: 18px 16px;
  }

  .masthead h1 em {
    letter-spacing: 0.28em;
  }

  .lead.has-image,
  .featured-movie {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .facts-table {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .facts-table dd {
    margin-bottom: 8px;
  }

  .desk-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-panel {
    grid-row: auto;
  }
}
