/* attunely.io · LAB subpages (blog, privacy, terms, the /k invite): the homepage's nav, footer, type and colours on
   reading pages. Loads after lab.css and adds only what those pages need: where you are in the nav, the reading
   column, the legal head. Same rules as the homepage: one ground, ink rules, acid only for the one action. */

:root { --link: #1F2BFF; --reading: 760px; --top: calc(var(--navh) + env(safe-area-inset-top)); }
:root[data-theme="dark"] { --link: #A9AEFF; }

/* nav: the homepage's bar. English subpages keep the longer "Download" label, so on the narrowest phones the mark
   stands alone (the homepage hides its wordmark at 360 px for the same reason) */
@media (max-width: 409px) { :root[lang="en"] .nav__word { display: none; } }
@media (min-width: 1024px) {
  .nav__links a[aria-current="page"], .nav__links a.is-current { background: #26262a; box-shadow: inset 0 -2.5px 0 #F4F2EC; border-radius: 8px 8px 0 0; }
}

/* headlines in the homepage's classical serif, self-hosted. lab.css keeps .d in the grotesk off the homepage because
   its serif file has only the homepage's glyphs, so each page group carries a subset of its own headline glyphs
   (Noto Serif TC 900, rebuild rule in home/lab/font/FONTS.md). A browser fetches a face only on the pages that use it. */
@font-face { font-family: "Attunely Serif Legal"; src: url("/home/lab/font/serif-legal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Attunely Serif Invite"; src: url("/home/lab/font/serif-invite.woff2") format("woff2"); font-weight: 900; font-display: swap; }
:root[lang] .legal-hero .d, :root[lang] .inv .d { letter-spacing: -.02em; line-height: 1.04; -webkit-text-stroke: 0; font-synthesis: none; }   /* beats lab.css's :root[lang="en"] .d */
.legal-hero .d { font-family: "Attunely Serif Legal", var(--serif); }
.inv .d { font-family: "Attunely Serif Invite", var(--serif); }

/* kicker without a number: the mono label and its rule */
.kicker--c { justify-content: center; }
.kicker--c::before { content: ""; width: 56px; height: 2px; background: var(--line); }

/* long-form text shared by legal pages and articles: square bullets (the homepage's keys), ink markers */
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: calc(.875em - 4px); width: 8px; height: 8px; background: var(--ink); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol > li::marker { color: var(--ink); font-weight: 800; font-family: var(--grot); }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { text-decoration-color: currentColor; } }
.prose code { padding: .1em .4em; border: 1.5px solid var(--hair); border-radius: 6px; background: var(--mist); color: var(--ink); font: 600 .86em/1 var(--mono); overflow-wrap: anywhere; }
.prose strong { color: var(--ink); font-weight: 800; }

/* ---------- legal: privacy and terms ---------- */
.legal-hero { position: relative; overflow: hidden; padding: calc(var(--top) + 40px) 0 40px; }
.legal-hero-inner { position: relative; z-index: 2; width: 100%; max-width: calc(var(--reading) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.legal-hero h1 { margin-top: 18px; font-size: clamp(54px, 16vw, 104px); }
.last-updated { margin-top: 18px; color: var(--mute); font: 600 12px/1.4 var(--mono); letter-spacing: .06em; }
.legal-intro { margin-top: 18px; max-width: 36em; color: var(--ink-2); font-size: 17px; line-height: 1.7; line-break: strict; }
/* one object beside the headline: a faint halftone plate (tablet and up; phones keep the head plain) */
.legal-art { display: none; position: absolute; z-index: 1; pointer-events: none; }
.legal-page { position: relative; width: 100%; max-width: calc(var(--reading) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 96px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.legal-page::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; border-top: var(--b) solid var(--line); }
.legal-section { padding: 36px 0 6px; }
.legal-section + .legal-section { border-top: 1.5px dashed var(--hair); }
.legal-section h2 { color: var(--ink); font: 900 clamp(24px, 6.4vw, 32px)/1.15 var(--grot); letter-spacing: -.035em; -webkit-text-stroke: .015em currentColor; paint-order: stroke fill; line-break: strict; scroll-margin-top: calc(var(--top) + 16px); }
:root[lang="en"] .legal-section h2 { -webkit-text-stroke: 0; }
.legal-section p, .legal-section ul, .legal-section ol { margin: 16px 0; }
.legal-section li { margin: 9px 0; }
.legal-section > :last-child { margin-bottom: 26px; }

/* ---------- the shared ink footer, as on the homepage ---------- */
.foot__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (min-width: 700px) {
  /* the art sits at the reading column's right edge; the words keep clear of it */
  .legal-art { display: block; right: calc(max(0px, (100% - var(--reading)) / 2 - var(--gut)) + var(--gut)); top: calc(var(--top) + 28px); width: 210px; height: 236px; }
  .legal-hero h1, .last-updated { max-width: calc(100% - 226px); }
  .legal-intro { max-width: min(36em, calc(100% - 226px)); }
  .legal-art .plate { left: 50%; top: 50%; width: 100%; transform: translate(-50%, -50%); opacity: calc(var(--plate-op) * .5); -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
}
@media (min-width: 1024px) {
  .legal-hero { padding: calc(var(--top) + 76px) 0 60px; }
  .legal-art { top: calc(var(--top) + 40px); width: 250px; height: 280px; }
  .legal-hero h1, .last-updated { max-width: calc(100% - 270px); }
  .legal-intro { max-width: min(36em, calc(100% - 270px)); }
  .legal-page { font-size: 18px; }
}
