/* Oracular's privacy and terms pages (scripts/legal.mjs), on getoracular.com and in the app. The landing
   page's world: the navy field with its violet light and faint terminal grid, Inter, the violet accent.
   A reading page, so the type is the point: a 68ch column, a numbered section rail on wide screens, and
   the one section that matters most (Not financial advice) set apart. Standalone: no other stylesheet. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #080a12;
  --bg-deep: #05060a;
  --surface: #10121b;
  --surface-2: #171a26;
  --ink: #eceef4;
  --body: #c9cfdb;
  --muted: #a4acbc;
  --faint: #6c7486;
  --line: #242838;
  --accent: #8b7dff;
  --accent-hi: #a59aff;
  --accent-ink: #0a0b12;
  --radius: 6px;
  --m: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg-deep); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100svh; color: var(--body); background: transparent; position: relative;
  font: 400 17px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; }
body::before {
  background: radial-gradient(70% 50% at 20% -10%, rgba(139, 125, 255, .14), rgba(139, 125, 255, 0) 70%), radial-gradient(50% 45% at 100% 100%, rgba(63, 208, 181, .05), rgba(63, 208, 181, 0) 70%), linear-gradient(180deg, #0c1020 0%, #080a12 45%, #05060a 100%); /* taste-skill-ignore: the landing page's gradient field */
}
body::after {
  z-index: -1;
  background-image: linear-gradient(rgba(170, 180, 230, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(170, 180, 230, .04) 1px, transparent 1px); /* taste-skill-ignore: the terminal grid */
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, 0) 85%); /* taste-skill-ignore: fades the grid */
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, 0) 85%); /* taste-skill-ignore: fades the grid */
}
a { color: var(--accent-hi); text-decoration: underline; text-decoration-color: rgba(165, 154, 255, .4); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: #c4bcff; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: #3d3591; color: #f1efff; }
h1, h2 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: normal; color: var(--muted); }

.lg-skip { position: absolute; left: var(--m); top: -60px; z-index: 20; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.lg-skip:focus { top: 12px; }

/* ---- the bar ---- */
.lg-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--m); background: rgba(8, 10, 18, .78); border-bottom: 1px solid rgba(36, 40, 56, .7);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.lg-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.lg-mark:hover { color: #fff; }
.lg-top nav { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.lg-top nav a:not(.lg-btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius); }
.lg-top nav a:not(.lg-btn):hover { color: var(--ink); background: rgba(139, 125, 255, .08); }
.lg-top nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.lg-btn {
  display: inline-flex; align-items: center; height: 40px; margin-left: 10px; padding: 0 16px;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
  font: 600 15px/1 Inter, sans-serif; letter-spacing: -0.01em; text-decoration: none; transition: transform .18s var(--ease), background-color .18s;
}
.lg-btn:hover { background: var(--accent-hi); color: var(--accent-ink); }
.lg-btn:active { transform: scale(.97); }

/* ---- the title ---- */
.lg { max-width: 1120px; margin: 0 auto; padding: 0 var(--m); }
.lg-head { padding: clamp(48px, 9vw, 104px) 0 clamp(36px, 6vw, 64px); max-width: 52rem; }
.lg-kicker { font-size: 14px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums slashed-zero; }
.lg-kicker span { color: var(--accent-hi); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-right: 8px; }
.lg-head h1 { margin-top: 14px; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.045em; }
.lg-lede { margin-top: 24px; max-width: 40rem; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); }

/* ---- the text, with its rail ---- */
.lg-body { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: clamp(32px, 6vw, 88px); padding-bottom: 32px; border-top: 1px solid var(--line); }
.lg-toc { position: sticky; top: 88px; align-self: start; padding-top: 36px; font-size: 14px; }
.lg-toc p { color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: flex; gap: 10px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.lg-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--faint); font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum", "zero"; }
.lg-toc a:hover { color: var(--ink); border-left-color: var(--accent); }

article section { padding: 36px 0 34px; border-bottom: 1px solid var(--line); }
article section:last-child { border-bottom: 0; }
article h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(22px, 2vw, 27px); line-height: 1.2; margin-bottom: 16px; }
.lg-n { flex: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum", "zero"; transform: translateY(-3px); }
article p + p, article p + ul, article ul + p { margin-top: 14px; }
article ul { margin: 0; padding: 0; list-style: none; }
article li { position: relative; padding-left: 22px; }
article li + li { margin-top: 12px; }
article li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: .85; }
article li p { margin-top: 10px; }
article li ul { margin-top: 10px; }
article li li { padding-left: 18px; }
article li li + li { margin-top: 6px; }
article li li::before { width: 8px; height: 1px; top: .85em; border-radius: 0; background: var(--faint); }

/* the section that matters most: set apart, the accent along its edge */
article section.lg-key {
  margin-top: 36px; padding: 28px clamp(20px, 3vw, 32px); border: 1px solid rgba(139, 125, 255, .35); border-radius: 10px;
  background: linear-gradient(180deg, rgba(139, 125, 255, .1), rgba(139, 125, 255, .03)); /* taste-skill-ignore: a faint violet wash on the key section */
}
article section.lg-key + section { border-top: 0; }

/* ---- the foot ---- */
.lg-foot { margin-top: 56px; padding: 28px var(--m) 32px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: baseline; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.lg-foot nav { display: flex; gap: 24px; }
.lg-foot nav a { color: var(--ink); text-decoration: none; }
.lg-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lg-end { text-align: right; }

/* ---- narrower: the rail folds away, one column ---- */
@media (max-width: 900px) {
  .lg-body { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { display: none; }
  article section:first-child { padding-top: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.65; }
  .lg-top { padding: 8px var(--m); }
  .lg-mark { font-size: 17px; }
  .lg-mark img { width: 24px; height: 24px; }
  .lg-btn { display: none; }
  .lg-top nav a:not(.lg-btn) { padding: 8px 10px; }
  .lg-head { padding: 40px 0 28px; }
  .lg-lede { margin-top: 18px; }
  article section { padding: 28px 0 26px; }
  article section.lg-key { margin-top: 24px; }
  .lg-foot { grid-template-columns: 1fr; gap: 14px; text-align: left; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .lg-foot nav { gap: 20px; flex-wrap: wrap; }
  .lg-foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .lg-end { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lg-btn, a { transition: none; }
}
