/* Privacy and delete-account pages: X1 Wide Open language. Black poster hero, one reading column, cards. */
:root {
  --black: #080808;
  --paper: #f7f7f5;
  --ink: #111111;
  --muted: #4a4a48;
  --line: #d2d2ce;
  --card: #ffffff;
  --red: #f02e40;
  --display: "Barlow Condensed", sans-serif;
  --body: "Barlow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --col: 760px;
  color-scheme: light;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
b { font-weight: 700; }

.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }

.skip { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 12px 18px; background: var(--red); color: var(--black); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header and hero share one black field so the page opens like the home page. */
.top { background: var(--black); color: var(--paper); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 28px; }
.brand span { font: 800 25px/1 var(--display); text-transform: uppercase; }
.top nav { display: flex; gap: 32px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--red); }

.hero { background: var(--black); color: var(--paper); }
.hero .wrap { padding-block: 28px 56px; }
.hero h1 { font: 800 clamp(88px, 15vw, 200px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.dot { color: var(--red); }
.date { margin-top: 18px; font: 500 13px/1.4 var(--mono); color: #b8b8b6; }

.facts { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #3a3a3a; }
.facts li { padding: 20px 20px 0 0; font-size: 15px; line-height: 1.5; color: #cfcfcc; counter-increment: f; }
.facts li + li { padding-left: 20px; border-left: 1px solid #3a3a3a; }
.facts li::before { content: counter(f, decimal-leading-zero); display: block; margin-bottom: 10px; font: 500 12px/1 var(--mono); color: var(--red); }
.facts b { display: block; margin-bottom: 6px; font: 700 23px/1.1 var(--display); text-transform: uppercase; color: var(--paper); }
.facts a { color: var(--paper); }

.sash { display: grid; gap: 5px; padding-bottom: 5px; background: var(--paper); }
.sash i { display: block; height: 18px; background: var(--red); }
.sash i + i { height: 5px; }

/* One column for everything in the document, so text, cards and rules share one right edge. */
.layout { display: grid; grid-template-columns: 200px minmax(0, var(--col)); gap: 72px; padding-block: 56px 96px; }

.toc { position: sticky; top: 24px; align-self: start; }
.label { margin-bottom: 14px; font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.35; text-decoration: none; color: var(--muted); }
.toc a::before { content: counter(t, decimal-leading-zero); font: 500 12px/1.6 var(--mono); color: var(--ink); }
.toc a:hover { color: var(--ink); }

.doc section { padding-top: 40px; margin-top: 40px; border-top: 2px solid var(--ink); }
.doc section:first-child { margin-top: 0; }
.doc h2 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; font: 700 40px/1.05 var(--display); text-transform: uppercase; }
.n { font: 500 15px/1 var(--mono); color: var(--red); }
.doc h3 { margin: 28px 0 10px; font: 700 22px/1.2 var(--display); text-transform: uppercase; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 16px; }

.doc ul { list-style: none; margin: 16px 0 0; padding: 0; }
.doc li { position: relative; padding-left: 22px; }
.doc li + li { margin-top: 10px; }
.doc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--red); }

/* Feature cards: name and default on one line, then the three facts a reader looks for. */
.cards { display: grid; gap: 16px; margin-top: 28px; }
.card { padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink); }
.card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card h3 { margin: 0; font-size: 25px; }
.chip { flex-shrink: 0; padding: 5px 10px; border: 2px solid var(--ink); font: 600 12px/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.chip.on { background: var(--red); border-color: var(--red); color: var(--black); }
.card:has(.chip.on) { border-left-color: var(--red); }
.card dl { border-top: 1px solid var(--line); }
.card dl > div, .rows > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.card dt { font: 600 12px/1.9 var(--mono); text-transform: uppercase; color: var(--muted); }
.card > p { margin-top: 14px; font-size: 15px; color: var(--muted); }
.card ul { font-size: 15px; color: var(--muted); }

.rows { margin-top: 8px; border-top: 1px solid var(--line); }
.rows > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); font-size: 16px; }
.rows dt { font-weight: 600; }

.to-contents { display: none; }

.foot { background: var(--black); color: var(--paper); border-top: 6px solid var(--red); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; font-size: 14px; }
.foot-name { font: 800 20px/1 var(--display); text-transform: uppercase; }
.foot nav { display: flex; gap: 28px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .facts { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .facts li:nth-child(4) { padding-left: 0; border-left: 0; }
  .layout { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .top-in { flex-wrap: wrap; gap: 4px; min-height: 0; padding-block: 16px 4px; }
  .top nav { width: 100%; justify-content: space-between; gap: 12px; }
  .top nav a { font-size: 14px; }
  .hero .wrap { padding-block: 20px 36px; }
  .hero h1 { font-size: 96px; }
  .facts { grid-template-columns: 1fr; margin-top: 32px; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid #3a3a3a; }
  .facts li::before { display: inline-block; width: 30px; margin: 0; }
  .facts b { display: inline; }
  .facts b::after { content: ""; display: block; height: 4px; }
  .facts b { font-size: 21px; }

  .layout { display: block; padding-block: 28px 64px; }
  .toc { position: static; margin-bottom: 8px; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .toc a { padding: 10px 0; min-height: 44px; }

  .doc h2 { font-size: 32px; gap: 12px; }
  .card { padding: 18px 16px; }
  .card h3 { font-size: 22px; }
  .card header { align-items: flex-start; }
  .card dl > div { grid-template-columns: 1fr; gap: 2px; }
  .card dt { line-height: 1.6; }
  .rows > div { grid-template-columns: 1fr; gap: 2px; }

  .to-contents {
    display: inline-flex; align-items: center; position: fixed; z-index: 20; right: 16px; bottom: 16px;
    min-height: 44px; padding: 0 16px; background: var(--black); color: var(--paper);
    border-bottom: 3px solid var(--red); font: 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  }

  .foot-in { flex-direction: column; align-items: flex-start; padding-block: 24px; gap: 4px; }
  .foot nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 13px; }
}

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

/* Delete-account page: the two ways sit in the black hero, the outcome lists below. */
.layout.single { grid-template-columns: minmax(0, var(--col)); justify-content: center; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border-top: 1px solid #3a3a3a; }
.ways section { padding: 28px 32px 8px 0; color: #cfcfcc; }
.ways section + section { padding-left: 32px; border-left: 1px solid #3a3a3a; }
.ways h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; font: 700 34px/1.05 var(--display); text-transform: uppercase; color: var(--paper); }
.ways ol { margin: 0 0 16px; padding-left: 22px; }
.ways li + li { margin-top: 6px; }
.ways b { color: var(--paper); }
.button { display: inline-flex; align-items: center; min-height: 52px; margin: 18px 0 14px; padding: 0 24px; background: var(--red); color: var(--black); font: 700 17px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.button:hover { background: var(--paper); }
.small { font-size: 14px; color: #b8b8b6; }

@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; margin-top: 28px; }
  .ways section, .ways section + section { padding: 24px 0 8px; border-left: 0; }
  .ways section + section { border-top: 1px solid #3a3a3a; }
  .ways h2 { font-size: 30px; }
  .button { width: 100%; justify-content: center; }
}

/* Where supported, the Contents button appears only after the hero has scrolled away. */
@supports (animation-timeline: scroll()) {
  @media (max-width: 760px) {
    .to-contents { animation: show-contents linear both; animation-timeline: scroll(root); animation-range: 0 1200px; }
  }
  @keyframes show-contents { 0%, 95% { opacity: 0; visibility: hidden; } 100% { opacity: 1; visibility: visible; } }
}
