/* The Anomaly look. Sizes and gaps step by 1.6: 16, 26, 41, 66. */
:root {
  color-scheme: dark;
  --bg: #111112;
  --tile: #1f1f22;
  --line: #2e2e32;
  --gold: #deaa48;
  --text: #f2f0ec;
  --muted: #aeaca7;
  --gutter: clamp(16px, 4.5vw, 66px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2 { margin: 0; font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(41px, 4.7vw, 66px); text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(26px, 2.9vw, 41px); }

.wrap { width: min(100% - 2 * var(--gutter), 1190px); margin-inline: auto; }

/* Header sits over the hero so the picture runs up behind it */
.top { position: absolute; inset: 0 0 auto; z-index: 1; }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 26px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: auto; }
.wordmark { display: grid; line-height: 1.15; }
.wordmark b { font-size: 15px; font-weight: 600; letter-spacing: .24em; }
.wordmark small { font-size: 12px; font-weight: 600; color: var(--muted); }
nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
nav a { padding-block: 8px; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }

/* Hero: text on the left third, the typewriter's centre on the right third */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 48vw, 780px); padding-block: 96px 41px; overflow: hidden; }
.hero-text { position: relative; z-index: 1; width: 44%; }
.hero-img {
  position: absolute;
  top: 0;
  left: 67%;
  width: auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  max-width: none;
  transform: translateX(-50%);
  /* Melts the picture's edges into the page; also hides its corner logo, since the header has the mark */
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 86%, transparent);
  mask-image: radial-gradient(ellipse closest-side, #000 86%, transparent);
}
.lede { margin: 26px 0 0; max-width: 34em; font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.btn { display: inline-block; padding: 10px 22px; border: 1px solid var(--gold); border-radius: 6px; background: var(--gold); color: #17140c; font-weight: 700; text-decoration: none; }
.btn:hover { background: #ecbe63; border-color: #ecbe63; }
.btn-quiet { background: transparent; border-color: #5a5a60; color: var(--text); }
.btn-quiet:hover { background: var(--tile); border-color: #5a5a60; }

.facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 26px; padding-block: 16px; border-block: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--muted); }

.band { padding-block: clamp(41px, 6vw, 66px); }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { margin-bottom: 26px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 16px; }
.card { display: block; text-decoration: none; }
.card img { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--tile); }
.card strong { display: block; font-weight: 600; line-height: 1.3; }
.card span { display: block; font-size: 14px; color: var(--muted); }
.card i { font-style: normal; font-weight: 700; color: var(--gold); }
a.card:hover img { filter: brightness(1.15); }
a.card:hover strong { color: var(--gold); }
.more { margin: 26px 0 0; color: var(--muted); }

/* Heading on the left, text on the shared third line */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 0 16px; }
.split p { margin: 0; max-width: 40em; }
.split .actions { margin-top: 16px; }

.stores { display: flex; flex-wrap: wrap; gap: 16px; }
.stores li { flex: 1 1 220px; }
.stores a { display: block; padding: 16px 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--tile); text-decoration: none; }
.stores a:hover { border-color: var(--gold); }
.stores strong { display: block; font-size: 26px; font-weight: 900; line-height: 1.3; }
.stores span { color: var(--muted); }

.foot { padding-block: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Phone and tablet: text first, then the prop, big. Below 830 px the side-by-side paper would run under the nav. */
@media (max-width: 900px) {
  .top { position: static; }
  .hero { display: block; min-height: 0; padding-block: 16px 0; }
  .hero-text { width: auto; }
  .hero-img {
    position: static;
    width: 100%;
    height: max(75vw, min(100vw, 560px)); /* 4:3 or tighter, so the corner logo is always cropped off */
    aspect-ratio: auto;
    margin-top: 16px;
    object-fit: cover;
    transform: none;
    -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; }
}
