:root {
  --paper: #f4ead7;
  --paper-2: #fff8e8;
  --ink: #111111;
  --muted: #5c5145;
  --line: #111111;
  --accent: #ff4b1f;
  --accent-2: #d6ff3f;
  --blue: #2357ff;
  --shadow: 12px 12px 0 #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 18px 18px;
}

a,
button {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.masthead,
.front-page,
.section,
.footer,
.ticker {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.masthead {
  min-height: 88px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 4px solid var(--line);
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: var(--accent-2);
  font-weight: 950;
  font-size: 28px;
  box-shadow: 6px 6px 0 var(--line);
}

.identity strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.identity small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  padding: 9px 12px;
  border: 2px solid var(--line);
  background: var(--paper-2);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav a:hover {
  background: var(--accent);
  color: var(--paper-2);
}

.front-page {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px 0;
}

.front-left {
  padding: 28px;
  border: 4px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overline {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 104px);
  line-height: .86;
  letter-spacing: -.08em;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.04em;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: auto;
}

.summary p,
.section-title + p,
.issue-card p,
.rubric-main p,
.rubric-column p,
.editor-card p,
.headline-result p,
.note-strip p,
.footer p {
  color: var(--muted);
  line-height: 1.55;
}

.front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.button.dark {
  color: var(--paper-2);
  background: var(--ink);
}

.button.light {
  color: var(--ink);
  background: var(--accent-2);
}

.cover {
  position: relative;
  min-height: 620px;
  padding: 24px;
  border: 4px solid var(--line);
  background: var(--accent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px solid var(--line);
  pointer-events: none;
}

.cover-top,
.cover-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.cover-top span:first-child {
  font-size: 62px;
  line-height: .8;
  letter-spacing: -.08em;
}

.cover-title {
  position: relative;
  z-index: 2;
  margin-top: 92px;
}

.cover-title p {
  margin-bottom: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.cover-title h2 {
  max-width: 420px;
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 84px);
}

.cover-grid {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 92px;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

.cover-grid div {
  min-height: 86px;
  border: 3px solid var(--line);
  background: rgba(255, 248, 232, .78);
}

.cover-grid div:nth-child(2) {
  background: var(--accent-2);
}

.cover-grid div:nth-child(3) {
  background: var(--blue);
}

.cover-grid div:nth-child(4) {
  background: var(--paper-2);
}

.cover-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.ticker {
  overflow: hidden;
  border-top: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  background: var(--ink);
  color: var(--paper-2);
}

.ticker div {
  width: max-content;
  padding: 14px 0;
  display: flex;
  gap: 30px;
  animation: ticker 18s linear infinite;
}

.ticker span {
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 70px 0;
  border-bottom: 4px solid var(--line);
}

.section-title {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: end;
}

.section-title span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: var(--accent-2);
  font-size: 28px;
  font-weight: 950;
  box-shadow: 6px 6px 0 var(--line);
}

.section-title h2 {
  margin-bottom: 0;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.issue-card {
  min-height: 260px;
  padding: 20px;
  border: 3px solid var(--line);
  background: var(--paper-2);
  text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.issue-card:hover,
.issue-card.is-active {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--line);
  background: var(--accent-2);
}

.issue-card span {
  display: inline-block;
  margin-bottom: 44px;
  padding: 6px 9px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.rubric-layout {
  display: grid;
  grid-template-columns: 1.35fr .85fr .75fr;
  gap: 14px;
}

.rubric-main,
.rubric-column article,
.editor-card,
.headline-controls,
.headline-result,
.note-strip article,
.footer {
  border: 3px solid var(--line);
  background: var(--paper-2);
}

.rubric-main {
  min-height: 420px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.rubric-main h3 {
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 64px);
  line-height: .92;
  letter-spacing: -.06em;
}

.rubric-column {
  display: grid;
  gap: 14px;
}

.rubric-column article,
.editor-card {
  padding: 20px;
}

.rubric-column span,
.editor-card span,
.headline-result span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.editor-card {
  background: var(--ink);
  color: var(--paper-2);
}

.editor-card p {
  color: #ddd2bf;
}

.headline-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
}

.headline-controls {
  padding: 20px;
}

.control + .control {
  margin-top: 18px;
}

.control strong {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.chip {
  margin: 0 7px 8px 0;
  padding: 9px 11px;
  border: 3px solid var(--line);
  background: var(--paper);
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line);
}

.chip.is-active {
  background: var(--accent);
  color: var(--paper-2);
}

.headline-result {
  padding: 24px;
  box-shadow: var(--shadow);
}

.headline-result h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 68px);
  line-height: .92;
  letter-spacing: -.06em;
}

.headline-result small {
  display: block;
  min-height: 18px;
  margin-top: 12px;
  color: var(--muted);
}

.note-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.note-strip article {
  padding: 20px;
}

.note-strip time {
  display: inline-block;
  margin-bottom: 32px;
  padding: 6px 9px;
  background: var(--blue);
  color: var(--paper-2);
  font-size: 12px;
  font-weight: 950;
}

.footer {
  margin: 32px auto 46px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
  color: var(--paper-2);
}

.footer p {
  color: #ddd2bf;
  margin-bottom: 0;
}

@media (max-width: 1060px) {
  .front-page,
  .rubric-layout,
  .headline-layout {
    grid-template-columns: 1fr;
  }

  .issue-grid,
  .note-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover {
    min-height: 560px;
  }
}

@media (max-width: 780px) {
  .masthead {
    grid-template-columns: 1fr;
  }

  .nav {
    overflow-x: auto;
  }

  .summary,
  .issue-grid,
  .note-strip {
    grid-template-columns: 1fr;
  }

  .section-title {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 48px;
  }

  .cover-title {
    margin-top: 70px;
  }

  .cover-grid {
    grid-template-columns: 1fr;
  }
}
