/* Taste v2: landing-page type, palette and chrome with a legal reading measure.
   Document text and links remain in the preserved static HTML. */
:root {
  color-scheme: light;
  --page: #f7f5f0;
  --surface: #eeebe3;
  --ink: #031a29;
  --muted: #505e64;
  --line: #d2d2c9;
  --accent: #a84129;
  --selection: #dad2bf;
  --font-body: 'Albert Sans', sans-serif;
  --font-display: var(--font-body);
  --font-mono: var(--font-body);
  --gutter: 48px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 12px;
  --radius-lg: 12px;
  /* Compatibility names used by the preserved document stylesheet. */
  --bg: var(--page);
  --bg-a85: var(--page);
  --surf: var(--surface);
  --surf-2: var(--surface);
  --ink-2: var(--muted);
  --ink-3: var(--muted);
  --line-strong: var(--line);
  --lime: var(--accent);
  --lime-deep: var(--accent);
  --on-lime: var(--page);
  --lime-a25: var(--line);
  --lime-a40: color-mix(in srgb, var(--accent) 50%, transparent);
  --ink-a06: var(--surface);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #201f22;
  --surface: #2c2a2e;
  --ink: #f3efe9;
  --muted: #c4bec2;
  --line: #49464c;
  --accent: #f0ad8f;
  --selection: #52454b;
}
html {
  scrollbar-color: var(--muted) var(--page);
}
.lg-body {
  --lg-read: color-mix(in srgb, var(--ink) 88%, var(--page));
  --lg-head-h: 80px;
  --lg-measure: 68ch;
  isolation: isolate;
  min-height: 100dvh;
  font-size: 17px;
  line-height: 1.65;
}
.lg-body .container {
  width: min(1216px, calc(100% - var(--gutter) * 2));
  max-width: none;
  padding-inline: 0;
}
.lg-body .legal-container {
  max-width: var(--lg-measure);
}
.lg-head {
  background: var(--page);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lg-head-inner {
  min-height: var(--lg-head-h);
  padding-block: 0;
  gap: 24px;
  flex-wrap: nowrap;
}
.wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
}
.lg-mark {
  font-size: 29px;
}
.wordmark-ring {
  color: currentColor;
}
.lg-head-inner .theme-toggle {
  margin-inline-start: auto;
}
.lg-nav {
  gap: 28px;
  flex-wrap: nowrap;
}
.lg-nav-link,
.lg-foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lg-nav-link {
  position: relative;
  font-size: 14px;
  white-space: nowrap;
}
.lg-nav-link[aria-current='page'] {
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--accent);
}
.lg-nav-link[aria-current='page']::before,
.legal-kicker::before {
  display: none;
}
.legal {
  padding-block: 72px 96px;
  line-height: 1.7;
  scroll-margin-top: calc(var(--lg-head-h) + 24px);
}
.legal-kicker {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.legal-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-variation-settings: normal;
  hyphens: manual;
  overflow-wrap: normal;
}
.legal .legal-updated {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}
.lg-rule {
  height: 1px;
  margin-top: 32px;
  background: var(--line);
}
.legal-intro {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.65;
}
.legal h2 {
  margin-block: 48px 16px;
  font-family: var(--font-body);
  font-size: clamp(24px, 2.1vw, 28px);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variation-settings: normal;
}
.legal h3 {
  margin-block: 28px 12px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 550;
  line-height: 1.3;
  font-variation-settings: normal;
}
.legal h2,
.legal h3 {
  scroll-margin-top: calc(var(--lg-head-h) + 32px);
}
.legal p + p {
  margin-top: 16px;
}
.legal code {
  font-size: 1em;
}
.legal-box {
  margin-block: 24px;
  padding: 24px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
}
.legal-box--accent {
  border-inline-start: 3px solid var(--accent);
}
.legal-toc {
  margin-top: 36px;
  padding: 24px 0;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.legal .legal-toc-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
}
.legal-toc ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 4px 32px;
  margin-top: 16px;
}
.legal .legal-toc a {
  display: flex;
  align-items: baseline;
  min-height: 44px;
  padding-block: 10px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.legal .legal-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.legal-toc-n {
  min-width: 1.5em;
  color: var(--muted);
}
.legal .para-num {
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  margin-right: 8px;
}
.lg-foot {
  padding-block: 0 32px;
  font-size: 14px;
}
.lg-foot-meta {
  margin: 0;
  padding-top: 28px;
  gap: 24px 32px;
}
.lg-foot-mark {
  font-size: 29px;
}
.lg-foot-links {
  gap: 12px 24px;
  margin-inline-start: auto;
}
.lg-foot-links a {
  text-decoration: none;
}
.lg-foot-links a:hover {
  text-decoration: underline;
}
.lg-foot-meta > span:last-child {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
}
.lg-foot-line,
.lg-foot-rule,
.lg-foot-lang {
  display: none;
}
::selection {
  color: var(--ink);
  background: var(--selection);
}
:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.legal:focus {
  outline: none;
}

/* Same still 21st.dev atmosphere as src/page-atmosphere.css. */
.page-atmosphere {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(100% 100% at 0% 0%, #49434670 0%, #201f2200 75%),
    radial-gradient(75% 90% at 100% 100%, #70544624 0%, #201f2200 80%);
}
[data-theme='dark'] .page-atmosphere {
  display: block;
}
.page-atmosphere::before,
.page-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-atmosphere::before {
  opacity: 0.07;
  background: linear-gradient(#e3d8ce, #e3d8ce00 85%);
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 20%,
    transparent 36%,
    #000 55%,
    #0002 67%,
    transparent 90%
  );
  transform: skewX(45deg);
}
.page-atmosphere::after {
  opacity: 0.035;
  background: url('/assets/21st-grain.png') repeat;
  background-size: 150px;
}
@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
  }
}
@media (max-width: 700px) {
  :root {
    --gutter: 24px;
  }
  .lg-body {
    --lg-head-h: 120px;
  }
  .lg-head-inner {
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-block: 12px 8px;
  }
  .lg-head-inner .lg-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .lg-mark {
    font-size: 27px;
  }
  .legal {
    padding-block: 40px 64px;
    font-size: 16px;
  }
  .legal-title {
    font-size: clamp(32px, 7vw, 44px);
  }
  .legal-intro {
    font-size: 17px;
  }
  .legal h2 {
    margin-top: 40px;
  }
  .legal-box {
    padding: 20px;
  }
  .legal-toc ol {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .lg-foot-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .lg-foot-links {
    flex-direction: row;
    margin-inline-start: 0;
    gap: 8px 24px;
  }
}
@media (max-width: 380px) {
  :root {
    --gutter: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (forced-colors: active) {
  .page-atmosphere {
    display: none;
  }
}
@media print {
  :root,
  :root[data-theme='dark'] {
    --page: #fff;
    --surface: #fff;
    --ink: #000;
    --muted: #444;
    --accent: #000;
    --line: #999;
  }
  .page-atmosphere {
    display: none !important;
  }
  .lg-body .legal-container {
    width: 100%;
    max-width: none;
  }
  .legal {
    padding-block: 0;
    font-size: 11pt;
  }
  .legal-title {
    font-size: 26pt;
  }
  .legal h2 {
    margin-top: 24pt;
    font-size: 16pt;
  }
  .legal h3 {
    font-size: 13pt;
  }
  .legal-box {
    border: 1px solid var(--line);
  }
}
