:root {
  --paper: #eee7d9;
  --paper-deep: #d8cbb6;
  --ink: #17130f;
  --muted-ink: #5c5145;
  --rule: #2d261f;
  --signal: #c13f2e;
  --facebook: #0866ff;
  --shadow: rgba(23, 19, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #17130f;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:
    repeating-linear-gradient(112deg, rgba(238, 231, 217, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #17130f 0%, #231e18 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(238, 231, 217, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 217, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.front-page {
  position: relative;
  width: min(100%, 980px);
  min-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(22px, 5vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 19, 15, 0.08) 1px, transparent 1px) 0 0 / 82px 100%,
    linear-gradient(180deg, rgba(23, 19, 15, 0.08) 1px, transparent 1px) 0 0 / 100% 82px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 34%),
    var(--paper);
  box-shadow: 0 34px 110px var(--shadow);
  isolation: isolate;
}

.front-page::before,
.front-page::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.front-page::before {
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(23, 19, 15, 0.045) 0 1px,
      transparent 1px 6px
    );
  mix-blend-mode: multiply;
}

.front-page::after {
  right: 0;
  bottom: 0;
  width: 38%;
  height: 12px;
  background: var(--signal);
}

.brand-mark {
  position: absolute;
  top: 16%;
  right: -8%;
  z-index: -1;
  width: min(46vw, 530px);
  height: auto;
  opacity: 0.78;
  filter: saturate(0.82);
}

.kicker-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-block: 11px;
  border-block: 2px solid var(--rule);
  font-family: "Gill Sans", "Avenir Next", Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.kicker-row span:nth-child(2) {
  text-align: center;
}

.kicker-row span:last-child {
  text-align: right;
}

.masthead {
  align-self: end;
  max-width: 780px;
}

.edition {
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 10px 5px;
  color: var(--paper);
  background: var(--ink);
  font-family: "Gill Sans", "Avenir Next", Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: 9.4rem;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dek {
  max-width: 38rem;
  margin: clamp(22px, 4vw, 34px) 0 0;
  color: var(--muted-ink);
  font-size: 1.32rem;
  line-height: 1.36;
}

.facebook-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label mark"
    "rule mark"
    "note mark";
  gap: 12px 22px;
  align-items: center;
  width: min(100%, 660px);
  min-height: 160px;
  padding: clamp(20px, 4vw, 34px);
  border: 2px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(8, 102, 255, 0.16), transparent 56%),
    rgba(238, 231, 217, 0.86);
  box-shadow: 10px 10px 0 var(--rule);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.facebook-tile:hover,
.facebook-tile:focus-visible {
  transform: translate(-4px, -4px);
  border-color: var(--facebook);
  box-shadow: 16px 16px 0 var(--facebook);
  outline: none;
}

.facebook-tile:active {
  transform: translate(0, 0);
  box-shadow: 6px 6px 0 var(--facebook);
}

.tile-label {
  grid-area: label;
  max-width: 17ch;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tile-mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: clamp(72px, 13vw, 116px);
  aspect-ratio: 1;
  color: #fff;
  background: var(--facebook);
  border-radius: 50%;
  font-family: "Gill Sans", "Avenir Next", Helvetica, sans-serif;
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1;
}

.tile-rule {
  grid-area: rule;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.tile-note {
  grid-area: note;
  font-family: "Gill Sans", "Avenir Next", Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted-ink);
}

@media (max-width: 900px) {
  h1 {
    font-size: 7.2rem;
  }

  .tile-label {
    font-size: 3.1rem;
  }
}

@media (max-width: 660px) {
  .page-shell {
    align-items: stretch;
    padding: 0;
  }

  .front-page {
    min-height: 100vh;
    width: 100%;
    box-shadow: none;
  }

  .front-page::after {
    width: 58%;
  }

  .brand-mark {
    top: 26%;
    right: -42%;
    width: 92vw;
  }

  .kicker-row {
    grid-template-columns: 1fr;
  }

  .kicker-row span,
  .kicker-row span:nth-child(2),
  .kicker-row span:last-child {
    text-align: left;
  }

  .facebook-tile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mark"
      "label"
      "rule"
      "note";
    justify-items: start;
    min-height: 0;
    box-shadow: 7px 7px 0 var(--rule);
  }

  .facebook-tile:hover,
  .facebook-tile:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--facebook);
  }

  .tile-label {
    max-width: 12ch;
    font-size: 2.45rem;
  }

  .tile-mark {
    font-size: 4.3rem;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 4.55rem;
  }

  .dek {
    font-size: 1.12rem;
  }

  .kicker-row,
  .edition,
  .tile-note {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
