/* Flashcards pages (/cards, /cards/<guide>, /cards/privacy, and the share pages
   /cards/d|c|j/<code> rendered by cards_server/functions/cards_api/page.ts).
   Lyravant brand: Night #101436, Vega #F3D27A, Line #7D86E8, Paper #F7F7F9,
   Ink #0E1230, Instrument Sans. No JS. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --night: #101436;
  --vega: #f3d27a;
  --line: #7d86e8;
  --bg: #f7f7f9;
  --card: #ffffff;
  --ink: #0e1230;
  --muted: #4d5170;
  --rule: #e2e3ec;
  --link: #3b43b8;
  --ok: #1f6b45;
  --ok-bg: #e5f4ec;
  --no: #9a3412;
  --no-bg: #fbeee6;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e26;
    --card: #151a42;
    --ink: #eef0fa;
    --muted: #b3b7d6;
    --rule: #262c5c;
    --link: #b9beff;
    --ok: #8fe0b4;
    --ok-bg: #143327;
    --no: #f4b28c;
    --no-bg: #3a2216;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
p { margin: 0 0 1em; }
.c-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.c-skip { position: absolute; left: -999px; }
.c-skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 2; }

.c-top { background: var(--night); color: #fff; }
.c-top .c-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.c-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 650; text-decoration: none; font-size: 1.05rem; }
.c-brand svg { height: 26px; width: auto; flex: none; }
.c-brand span { color: var(--vega); font-weight: 500; }
.c-nav { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.c-nav a { color: #dfe2ff; text-decoration: none; }
.c-nav a:hover { color: var(--vega); }

.c-main { padding-top: 28px; padding-bottom: 48px; }
.c-hero { background: var(--night); color: #fff; border-radius: 20px; padding: 28px 22px; margin-bottom: 24px; }
.c-hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3rem); }
.c-hero a:not(.c-btn) { color: var(--vega); }
.c-eyebrow { color: var(--vega); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.c-lede { font-size: 1.15rem; color: #e6e8ff; max-width: 38em; }

.c-btn {
  display: inline-block; background: var(--vega); color: var(--night); font-weight: 650;
  padding: 11px 18px; border-radius: 999px; text-decoration: none; margin: 4px 8px 4px 0;
}
.c-btn:hover { filter: brightness(1.05); }
.c-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.c-btn-off { cursor: default; background: transparent; color: #e6e8ff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.c-cta { margin: 18px 0 14px; }

.c-card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.c-card h2 { margin-top: 0; }
.c-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.c-tags li { background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 12px; }


.c-feats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 0; list-style: none; }
.c-feats li { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.c-feats strong { display: block; }

.c-foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; padding: 22px 0 36px; }
.c-foot p { margin: 0 0 0.6em; }
.c-foot a { color: var(--muted); }

/* Flashcards additions: teal accent (the app's), card lists, tables, FAQ. */
:root { --teal: #0e7469; --teal-bg: #ddf1ee; }
@media (prefers-color-scheme: dark) { :root { --teal: #5cc9b9; --teal-bg: #163330; } }
.c-answer { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; font-size: 1.08rem; }
.c-checked { color: var(--muted); font-size: 0.9rem; }
.c-cards { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.c-cards li { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; }
.c-front { font-weight: 600; margin: 0 0 4px; }
.c-back { margin: 0; color: var(--muted); }
.c-gap { color: var(--teal); font-weight: 700; letter-spacing: 0.05em; }
main .c-note { color: var(--muted); }
.c-hero .c-note { color: #c9cdf4; }
.c-steps { padding-left: 1.3em; }
.c-steps li { margin-bottom: 0.5em; }
.c-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.95rem; background: var(--card); border-radius: 12px; overflow: hidden; }
.c-table th, .c-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.c-table th { background: var(--teal-bg); color: var(--ink); font-weight: 650; }
.c-scroll { overflow-x: auto; }
.c-faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; margin: 8px 0; }
.c-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.c-faq details p { padding: 0 16px 4px; }
.c-guides { list-style: none; padding: 0; display: grid; gap: 10px; }
.c-guides a { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.c-guides a:hover { border-color: var(--teal); }
.c-guides span { display: block; color: var(--muted); font-weight: 400; font-size: 0.92rem; }
