/* zonesup.com: the holding page, privacy, support and 404. White page, ink from the logo's navy. Taken from the v5
   design (~/working/zonesup/site-v5); brand values match packages/brand/tokens.json, checked by
   packages/brand/test/site.test.ts. */

@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --wall: #f3f4f2;
  --ink: #0f1720;
  --ink-2: #4a5563;
  --line: #dfe3e7;
  /* brand accent (decision 37) */
  --accent: #0057b7;

  --gutter: clamp(16px, 5vw, 72px);
  --edge: max(var(--gutter), (100% - 1240px) / 2);
  --measure: 34em;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 1.125rem/1.55 "Archivo",
    system-ui,
    sans-serif;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-stretch: 112%;
  font-weight: 780;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(3rem, 8.4vw, 8rem);
  line-height: 0.94;
}
h2 {
  font-size: clamp(2.125rem, 4.6vw, 4rem);
  line-height: 1.02;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--edge);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img:first-child {
  height: 34px;
  width: auto;
}
.brand img:last-child {
  height: 26px;
  width: auto;
}

/* ---------- lists and footer ---------- */

.examples {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 30em;
}
.examples li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}
.examples b {
  color: var(--ink);
  font-weight: 650;
}

.foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px var(--edge) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.foot img {
  height: 22px;
  width: auto;
}

/* ---------- document pages: privacy, support ---------- */

.top-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 1rem;
  font-weight: 550;
}
.top-nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.top-nav a:hover {
  color: var(--ink);
}
.top-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.doc-hero {
  padding: clamp(40px, 9vh, 112px) var(--edge) clamp(40px, 6vh, 72px);
}
.doc-hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.96;
}
.doc-hero .lead {
  margin-top: 24px;
  max-width: 32em;
}
.doc-meta {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1rem;
}

/* The short version: on the wall color, the same lists as the home page. */
.gist {
  background: var(--wall);
  padding: clamp(48px, 8vh, 88px) var(--edge);
}
.gist h2,
.doc-sec h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.gist .examples {
  max-width: 46em;
}
.gist .examples li:first-child {
  border-top: 0;
}

/* Where data is kept: one column per place. */
.where {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 3vw, 48px);
}
.where > li {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.where h3 {
  margin-bottom: 4px;
}
.where .sub {
  color: var(--ink-2);
  font-size: 1rem;
}
.where ul {
  list-style: disc;
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}
.where ul li + li {
  margin-top: 6px;
}
.where .not {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.where .not b {
  color: var(--ink);
  font-weight: 650;
}

.doc {
  padding: clamp(24px, 4vh, 48px) var(--edge) clamp(80px, 12vh, 140px);
}
.doc-sec {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 16px clamp(32px, 5vw, 80px);
  padding: clamp(36px, 6vh, 56px) 0;
  border-top: 1px solid var(--line);
}
.doc-sec:first-child {
  border-top: 0;
}
.doc-body {
  max-width: 38em;
  color: var(--ink-2);
}
.doc-body > * + * {
  margin-top: 0.9em;
}
.doc-body h3 {
  color: var(--ink);
  margin-top: 1.6em;
}
.doc-body h3:first-child {
  margin-top: 0;
}
.doc-body b {
  color: var(--ink);
  font-weight: 650;
}
.doc-body ul,
.doc-body ol {
  padding-left: 1.2em;
  margin-bottom: 0;
}
.doc-body > :first-child {
  margin-top: 0;
}
.doc-body li + li {
  margin-top: 0.4em;
}
.doc-body .examples {
  margin-top: 0.9em;
}

.foot-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.foot-links a {
  text-decoration: none;
}
.foot-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .where {
    grid-template-columns: 1fr;
    max-width: 40em;
  }
}
@media (max-width: 860px) {
  .doc-sec {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .top-nav {
    gap: 16px;
    font-size: 0.9375rem;
  }
  .foot {
    flex-wrap: wrap;
  }
  .foot-links {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .top {
    gap: 12px;
  }
  .brand {
    gap: 10px;
  }
  .brand img:first-child {
    height: 28px;
  }
  .brand img:last-child {
    height: 20px;
  }
}

/* ---------- holding page and 404: one centered screen ---------- */

.hold {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vh, 56px);
  padding: 48px var(--gutter);
  text-align: center;
}
.hold-logo {
  width: min(320px, 70vw);
  height: auto;
}
.hold-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 550;
}
.hold-links a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.hold-links a:hover {
  border-bottom-color: var(--accent);
}
.hold-copy {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.hold h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
}
.hold .lead {
  max-width: 24em;
  margin: 16px auto 0;
  text-wrap: balance;
}
.hold-logo-small {
  width: min(160px, 40vw);
}
