/* And Said Star · andsaidstar.co
   The Star card look: warm ivory paper, fine antique gold line work, a periwinkle sky orb,
   small four-point stars in gold, lavender, teal and rose. Nunito only. */
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --paper: #fffdf8; --paper-2: #faf5e9; --paper-3: #f4ecda;
  --gold: #b8923a; --gold-deep: #8f6e22; --gold-soft: rgba(184, 146, 58, 0.38); --gold-faint: rgba(184, 146, 58, 0.16);
  --ink: #3f3122; --ink-soft: #6e5c3d;
  --peri: #8fa2e8; --peri-soft: #c9d1fa; --plum: #3a2350;
  --rose: #e98aa4; --lav: #b07fe0; --teal: #3bb3ad; --star: #f0c060;
  --skywash: linear-gradient(165deg, #6FA8F5 0%, #9C9FE0 38%, #B9A0D6 62%, #DBA4B8 100%);
  --namewash: linear-gradient(90deg, #d4506f 0%, #a86fd8 50%, #2c9f99 100%);
  --font: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }

/* paper texture and faint cosmology behind everything */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90vmax 60vmax at 50% -10%, rgba(201, 209, 250, 0.45), transparent 60%),
    radial-gradient(60vmax 50vmax at 100% 60%, rgba(243, 206, 222, 0.28), transparent 60%),
    radial-gradient(60vmax 50vmax at 0% 90%, rgba(190, 236, 232, 0.25), transparent 60%),
    var(--paper); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* type */
.caps { text-transform: uppercase; letter-spacing: 0.32em; font-weight: 600; font-size: 12px; color: var(--gold-deep); }
.display { text-transform: uppercase; letter-spacing: 0.22em; font-weight: 300; line-height: 1.15; }
.wash { background: var(--namewash); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); font-weight: 400; }
.small { font-size: 14px; color: var(--ink-soft); }

/* gold rule with a star, from the card */
.rule { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--gold); margin: 18px auto; max-width: 260px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); }
.rule svg { width: 14px; height: 14px; flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 253, 248, 0.78); border-bottom: 1px solid var(--gold-faint); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 22px; height: 22px; }
.brand span { text-transform: uppercase; letter-spacing: 0.34em; font-size: 13px; font-weight: 600; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--ink-soft); font-size: 14px; letter-spacing: 0.04em; }
.nav nav a:hover { color: var(--gold-deep); }
@media (max-width: 760px) { .nav nav a.hide-sm { display: none; } .nav nav { gap: 14px; } .brand span { letter-spacing: 0.24em; font-size: 12px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 12.5px/1 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: #fff; background: var(--skywash);
  box-shadow: 0 10px 30px rgba(111, 140, 230, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.5); transition: transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(111, 140, 230, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.btn.ghost { background: transparent; color: var(--gold-deep); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.ghost:hover { background: rgba(184, 146, 58, 0.07); }
.btn.sm { padding: 11px 18px; font-size: 11px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* hero */
.hero { text-align: center; padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 8vw, 100px); }
.orb { width: min(360px, 78vw); aspect-ratio: 1; margin: 0 auto 30px; position: relative; }
.orb svg { width: 100%; height: 100%; overflow: visible; }
.orb .spin { animation: spin 160s linear infinite; transform-origin: 200px 200px; }
.orb .spin-r { animation: spin 220s linear infinite reverse; transform-origin: 200px 200px; }
.orb .pulse { animation: pulse 6s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.05); } }
.hero h1 { font-size: clamp(38px, 7.4vw, 82px); }
.hero .tag { margin-top: 14px; font-size: clamp(19px, 2.6vw, 26px); font-weight: 300; font-style: italic; color: var(--ink-soft); }
.hero .lede { max-width: 36em; margin: 22px auto 34px; }
.hero .note { margin-top: 18px; }

/* sections */
section { padding: clamp(56px, 9vw, 110px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(30px, 5vw, 54px); }
.sec-head h2 { font-size: clamp(26px, 4.2vw, 44px); margin-top: 10px; }
.sec-head p { max-width: 38em; margin: 16px auto 0; }

/* framed panel: fine double gold frame, dashed inner ring, starred corners */
.panel { position: relative; background: rgba(255, 253, 248, 0.86); border-radius: 26px; padding: 28px 26px; box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold-soft), 0 18px 50px rgba(120, 96, 40, 0.08); }
.panel::after { content: ""; position: absolute; inset: 11px; border-radius: 18px; border: 1px dashed var(--gold-faint); pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
.corner { position: absolute; width: 12px; height: 12px; color: var(--gold); z-index: 2; }
.corner.tl { top: -6px; left: -6px; } .corner.tr { top: -6px; right: -6px; } .corner.bl { bottom: -6px; left: -6px; } .corner.br { bottom: -6px; right: -6px; }

/* worlds grid */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.world h3 { text-transform: uppercase; letter-spacing: 0.18em; font-size: 15px; font-weight: 700; margin: 10px 0 2px; }
.world .sys { font-size: 13px; letter-spacing: 0.08em; color: var(--gold-deep); font-weight: 600; }
.world p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 0 14px currentColor; background: currentColor; }

/* window into the temple */
.window { border-radius: 26px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--gold), 0 30px 80px rgba(90, 80, 150, 0.18); background: var(--paper-2); }
.window img { width: 100%; height: auto; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.features { display: grid; gap: 18px; }
.feature { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.feature svg { width: 20px; height: 20px; margin-top: 4px; color: var(--gold); }
.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
.feature p { font-size: 15.5px; color: var(--ink-soft); }

/* demo chart facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.fact { padding: 16px 18px; border-radius: 18px; background: rgba(201, 209, 250, 0.22); box-shadow: inset 0 0 0 1px rgba(143, 162, 232, 0.35); }
.fact .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.fact .v { font-size: 16px; margin-top: 4px; }

/* polarity */
.polarity { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; text-align: center; margin: 30px auto 6px; max-width: 560px; }
.polarity .pole { font-size: clamp(20px, 3.6vw, 34px); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 300; min-width: 0; }
@media (max-width: 480px) { .polarity { gap: 10px; } .polarity .pole { letter-spacing: 0.1em; } .polarity .axis { width: 40px; } .polarity .pole small { letter-spacing: 0.1em; } }
.polarity .pole small { display: block; font-size: 12px; letter-spacing: 0.2em; color: var(--gold-deep); font-weight: 600; margin-top: 4px; }
.polarity .axis { width: 64px; height: 2px; background: linear-gradient(90deg, var(--rose), var(--peri), var(--teal)); position: relative; }
.polarity .axis::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--gold); transform: translate(-50%, -50%); animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { left: 12%; } 50% { left: 88%; } }

/* tones */
.tones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.tone { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gold-soft); font-size: 14px; background: rgba(255,255,255,.6); }
.tone b { font-weight: 700; letter-spacing: 0.06em; }

/* promise */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.promise .panel { text-align: center; }
.promise h3 { text-transform: uppercase; letter-spacing: 0.2em; font-size: 14px; font-weight: 700; margin-top: 8px; }
.promise p { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.promise svg { width: 22px; height: 22px; color: var(--gold); margin: 0 auto; }

/* maker */
.maker { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.maker .seal { width: 120px; height: 120px; }
@media (max-width: 640px) { .maker { grid-template-columns: 1fr; text-align: center; } .maker .seal { margin: 0 auto; } }
.quote { font-size: clamp(20px, 2.8vw, 26px); font-weight: 300; font-style: italic; line-height: 1.4; }

/* list form */
.list { text-align: center; }
.list form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.list input[type=email], .list input[type=text] { flex: 1 1 220px; max-width: 320px; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--gold-soft); background: #fff; font: 16px var(--font); color: var(--ink); }
.list input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--peri); }
.list .msg { margin-top: 14px; min-height: 1.6em; font-size: 15px; color: var(--gold-deep); }
.hp { position: absolute; left: -5000px; }

/* fine print and footer */
.fine { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
footer { padding: 50px 0 60px; border-top: 1px solid var(--gold-faint); text-align: center; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 14px 0 18px; }
footer .links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
footer .links a:hover { color: var(--gold-deep); }
footer .fine { max-width: 46em; margin: 0 auto 10px; }

/* legal pages */
.legal { padding: 50px 0 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 46px); text-align: center; }
.legal .updated { text-align: center; margin-top: 10px; }
.legal h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 700; color: var(--gold-deep); margin: 40px 0 10px; }
.legal p, .legal li { font-size: 16.5px; color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* layout balance: nine worlds as three by three, eight facts as four by two */
.worlds { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .worlds { grid-template-columns: 1fr; } }
#demo .narrow { width: min(1040px, 100% - 32px); }
#demo .sec-head p { max-width: 36em; }
.facts { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }
.nav nav a.btn, .nav nav a.btn:hover { color: #fff; }
