/* Material Rumor — isolated from the archive, Tender Oath, and Plain Figure */

:root {
  --paper: #f7f2e8;
  --ink: #12110e;
  --spot: #ff2d14;
  --ultra: #1c3cff;
  --acid: #d9ff12;
  --blush: #ffd5dc;
  --mute: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 18%, transparent);
  --display: "Syne", "Arial Black", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --read: "Newsreader", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(1rem, 4.2vw, 3.5rem);
  --max: 88rem;
  --measure: 38rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --color-time: 520ms;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--read);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition:
    background-color var(--color-time) var(--ease),
    color var(--color-time) var(--ease);
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
fieldset {
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.7rem;
  z-index: 40;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.archive-return {
  position: fixed;
  left: var(--gutter);
  bottom: 0.85rem;
  z-index: 30;
  margin: 0;
  font-family: var(--cond);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-return a {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--ink);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 35;
  height: 4px;
  width: 0%;
  background: var(--spot);
  pointer-events: none;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem var(--gutter) 0.8rem;
  border-bottom: 1px solid var(--ink);
}

.mast__mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.mast nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--cond);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mast nav a {
  text-decoration: none;
}

.mast nav a:hover,
.mast nav a:focus-visible {
  color: var(--spot);
}

.issue,
.featured,
.index,
.visual,
.about,
.letter,
.colophon {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2.4rem, 7vw, 5.5rem) var(--gutter);
  scroll-margin-top: 1rem;
}

.kicker {
  font-family: var(--cond);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spot);
}

.issue {
  position: relative;
  display: grid;
  gap: 1.4rem;
  min-height: min(92vh, 52rem);
  align-content: center;
  padding-top: clamp(1.5rem, 5vw, 3rem);
}

.issue__folio {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(6.5rem, 28vw, 18rem);
  line-height: 0.78;
  letter-spacing: -0.08em;
  color: var(--acid);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.issue h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 11vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  max-width: 14ch;
}

.issue__tag {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  max-width: 22rem;
}

.issue__name {
  font-family: var(--cond);
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 18rem;
}

.issue__name span {
  display: inline-block;
  background: var(--spot);
  color: var(--paper);
  padding: 0.05em 0.2em;
}

.issue__enter {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid var(--ultra);
  width: max-content;
}

.issue__note {
  font-family: var(--cond);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 36rem;
  color: var(--mute);
}

.spine {
  display: none;
}

.featured {
  display: grid;
  gap: 1.4rem;
}

.featured__media {
  position: relative;
}

.featured__media img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.featured__panel {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.featured h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.featured__dek {
  font-size: 1.12rem;
  max-width: 34rem;
}

.featured__go {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  width: max-content;
  border-bottom: 3px solid var(--spot);
}

.fig {
  display: grid;
  gap: 0.4rem;
}

.fig figcaption,
.credit {
  font-family: var(--cond);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.index-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.index-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.filters {
  border: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filters legend {
  font-family: var(--cond);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.filters button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.28rem 0.65rem;
  font-family: var(--cond);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.filter-live {
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.listings {
  list-style: none;
  padding: 0;
  display: grid;
}

.listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--ink);
  min-width: 0;
}

.listing a {
  text-decoration: none;
}

.listing h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 4.4vw, 3.1rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.listing:hover h3,
.listing:focus-within h3 {
  color: var(--spot);
}

.listing p {
  max-width: 36rem;
}

.listing__type {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--spot);
}

.listing.is-off {
  display: none;
}

.visual h2,
.about h2,
.letter h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0.35rem 0 1.2rem;
}

.essay {
  display: grid;
  gap: 1.75rem;
}

.essay figure img {
  width: 100%;
  object-fit: cover;
  max-height: 70vh;
}

.about__copy {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  font-size: 1.12rem;
}

.about__aside {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.25;
  max-width: 22rem;
}

.letter form {
  display: grid;
  gap: 0.85rem;
  max-width: 26rem;
  margin-top: 1rem;
}

.letter label {
  display: grid;
  gap: 0.3rem;
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.letter input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 0.45rem 0;
  font-family: var(--read);
  font-size: 1.1rem;
}

.letter button,
.btn-type {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  width: max-content;
}

.letter__limit {
  max-width: 36rem;
  color: var(--mute);
}

.notice {
  display: none;
  margin-top: 1.1rem;
  padding: 1rem 0;
  border-top: 3px solid var(--spot);
  max-width: 36rem;
}

.notice.is-open {
  display: grid;
  gap: 0.55rem;
}

.notice a {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.colophon {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid var(--ink);
  padding-bottom: 4.5rem;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.colophon strong {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  text-transform: none;
}

.story-shell {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4.5rem;
  min-width: 0;
}

.story-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.story-tools a {
  text-decoration: none;
  border-bottom: 2px solid var(--spot);
}

.story-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0.4rem 0 0.8rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.story-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.story-hero img {
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
  margin: 0.4rem 0 0.5rem;
}

.story-body {
  display: grid;
  gap: 1.15rem;
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
}

html.is-large-type .story-body {
  font-size: 1.32rem;
}

.story-body > p:first-of-type::first-line {
  font-weight: 600;
}

.pull {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.25;
  font-style: italic;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 4px solid var(--ultra);
  max-width: 36rem;
}

.story-body figure {
  margin: 0.6rem 0;
}

.arrive {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    linear-gradient(118deg, #ff2d14 0 32%, #1c3cff 32% 64%, #e2ff14 64% 100%);
}

html.is-awaiting-issue .arrive {
  display: block;
  animation: issue-in 820ms var(--ease) forwards;
}

.arrive p {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42%;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  letter-spacing: -0.05em;
  color: #12110e;
}

@keyframes issue-in {
  0% {
    opacity: 1;
  }
  62% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (min-width: 760px) {
  .issue {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "folio folio"
      "title tag"
      "name enter"
      "note note";
    column-gap: 2rem;
  }

  .issue__folio {
    grid-area: folio;
  }

  .issue h1 {
    grid-area: title;
  }

  .issue__tag {
    grid-area: tag;
    align-self: end;
  }

  .issue__name {
    grid-area: name;
  }

  .issue__enter {
    grid-area: enter;
    align-self: center;
  }

  .issue__note {
    grid-area: note;
  }

  .spine {
    display: block;
    position: absolute;
    right: var(--gutter);
    top: 30%;
    font-family: var(--cond);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.92rem;
  }

  .featured {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    align-items: end;
    column-gap: 1.5rem;
  }

  .featured__panel {
    padding-bottom: 0.6rem;
  }

  .listing:nth-child(odd) {
    padding-right: 12%;
  }

  .listing:nth-child(even) {
    padding-left: 12%;
  }

  .essay {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .essay figure:first-child {
    grid-row: span 2;
  }

  .essay figure:nth-child(4) {
    grid-column: 1 / -1;
  }

  .essay figure:nth-child(2) img {
    max-height: 38vh;
  }

  .about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 2rem;
    align-items: start;
  }

  .about h2,
  .about .kicker {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .issue h1 {
    margin-top: -1.2rem;
  }

  .featured__panel {
    margin-left: -12%;
    background: var(--paper);
    padding: 1.1rem 1.1rem 1.1rem 0;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 759px) {
  .mast {
    flex-direction: column;
    align-items: flex-start;
  }

  .issue__folio {
    font-size: clamp(5.2rem, 34vw, 9rem);
  }

  .featured h2,
  .listing h3 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
  }

  .story-hero h1 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .story-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-hero__meta {
    display: grid;
    gap: 0.2rem;
    max-width: 100%;
  }

  .fig figcaption {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :root {
    --color-time: 0ms;
  }

  body,
  .arrive,
  html.is-awaiting-issue .arrive {
    transition: none;
    animation: none;
  }

  html.is-awaiting-issue .arrive {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --mute: var(--ink);
    --rule: var(--ink);
  }
}
