/* Quiet Paws website – a printed field guide, not a SaaS landing page.
   Paper, ink, one violet, gold only for money - the same palette as the game. Serif headlines, thin rules, real game pictures. No badges, no glow. */
:root {
  /* the game's own palette (scripts/ui_theme.gd, studio/brand/brand.json): lavender surfaces, deep plum ink, one violet, gold only for coins */
  --paper: #f4f1ff;
  --paper-2: #e9e3fc;
  --ink: #2b2542;
  --soft: #6a6489;
  --rule: #d9d2f1;
  --violet: #6354e0;
  --violet-bright: #6c5fd8;
  --violet-soft: #e6e1fb;
  --gold: #f6b73c;
  --card: #ffffff;
  --frame: #2b2542;
  --glow: rgba(255, 255, 255, .7);
  --shadow: rgba(29, 26, 44, .45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.read { max-width: 680px; }

/* masthead */
.mast { border-bottom: 1px solid var(--ink); }
.mast .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 14px; }
.mark { display: flex; align-items: center; gap: 10px; font: italic 700 26px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.mark img { width: 32px; height: 32px; border-radius: 8px; }
.mast nav { display: flex; align-items: center; }
.mast nav a { font: 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; margin-left: 26px; white-space: nowrap; }
.mast nav a:hover { color: var(--violet); }
.theme { background: none; border: 1px solid var(--rule); color: var(--ink); width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer; margin-left: 22px; font-size: 15px; line-height: 1; }
.theme:hover { border-color: var(--violet); }

.eyebrow { font: 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(52px, 9vw, 104px); }
h1 em, h2 em, .tagline em { font-style: italic; color: var(--violet); font-weight: 600; }
h2 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 18px; }
h3 { font-size: 24px; line-height: 1.15; }
p { margin: 0 0 1em; }
.lede { font-size: 20px; line-height: 1.55; color: var(--soft); max-width: 31em; }
.fine { font-size: 15px; color: var(--soft); }

/* hero: centred, then the creatures across */
.hero { text-align: center; padding: 64px 0 0; }
.hero-icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 30px; box-shadow: 0 14px 26px -12px var(--shadow); }
.hero h1 { margin-bottom: 14px; }
.tagline { font: 600 clamp(22px, 3vw, 30px)/1.3 var(--serif); margin: 0 auto 22px; max-width: 22em; }
.hero .lede { margin: 0 auto; }
.cta { margin-top: 32px; display: flex; gap: 18px 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--violet-bright); color: #fff; font: 600 16px/1.25 var(--sans); padding: 16px 26px; border-radius: 6px; text-decoration: none; text-align: center; }
.btn:hover { background: var(--violet); color: #fff; }
.textlink { font: 600 16px/1 var(--sans); }
.hero .fine { margin-top: 20px; }
.lineup { margin: 46px auto 0; width: 100%; max-width: 980px; }

/* rules and sections */
section { border-top: 1px solid var(--ink); padding: 76px 0 84px; }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 30px; margin-bottom: 50px; }
.sec-head .eyebrow { margin: 10px 0 0; }
.sec-head p { max-width: 36em; color: var(--soft); font-size: 20px; }

/* phone frames */
.shot { background: var(--frame); border-radius: 30px; padding: 7px; }
.shot img { border-radius: 23px; width: 100%; }

/* how a session works: three steps */
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.story figure { margin: 0; }
.story .shot { max-width: 300px; }
.story figure:nth-child(2) { margin-top: 44px; }
.story figure:nth-child(3) { margin-top: 18px; }
.story .num { font: italic 700 54px/1 var(--serif); color: var(--violet); margin: 18px 0 2px; }
.story figcaption { font-size: 16px; line-height: 1.55; color: var(--soft); max-width: 22em; }
.story figcaption b { display: block; color: var(--ink); font: 700 21px/1.2 var(--serif); margin-bottom: 6px; }

/* the nine buddies: a field-guide plate */
.guide { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.plates li { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper-2); background-image: radial-gradient(circle at 50% 58%, var(--glow) 0, transparent 62%); padding: 18px 10px 12px; text-align: center; }
.plates img { height: clamp(120px, 15vw, 190px); width: auto; margin: 0 auto 10px; }
.plates span { font: 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.guide h3 { margin-bottom: 12px; }
.guide p { color: var(--soft); }

/* rooms and outfits */
.wide { margin: 0 0 48px; }
.wide img { border-radius: 14px; width: 100%; }
.wide figcaption, .screens figcaption { font-size: 15px; color: var(--soft); margin-top: 12px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.screens figure { margin: 0; }
.screens .shot { max-width: 280px; }
.screens figcaption b { display: block; color: var(--ink); font: 700 20px/1.2 var(--serif); margin: 6px 0 4px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--rule); }
.facts h3 { font-size: 21px; margin-bottom: 8px; }
.facts p { color: var(--soft); font-size: 16px; margin: 0; }
.coin { color: var(--ink); background: linear-gradient(transparent 62%, rgba(246, 183, 60, .45) 62%); }

/* privacy in one line */
.sec-head .oneline { color: var(--ink); font: 700 clamp(26px, 3.6vw, 40px)/1.25 var(--serif); letter-spacing: -0.01em; max-width: 24em; margin: 0 0 18px; }
.sec-head .oneline em { font-style: italic; color: var(--violet); font-weight: 600; }

/* study with me + follow */
.study { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.study a.thumb { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 36px -22px var(--shadow); }
.study p { color: var(--soft); }
.study .cta { justify-content: flex-start; margin-top: 26px; }

footer { border-top: 1px solid var(--ink); padding: 34px 0 60px; font-size: 15px; color: var(--soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; align-items: baseline; }
footer a { color: var(--ink); margin-right: 22px; }

/* text pages */
.doc { padding: 58px 0 90px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 8px; }
.doc .date { font: 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 38px; }
.doc h2 { font-size: 27px; margin: 42px 0 10px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font: 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border-bottom-color: var(--ink); }
.note { border-left: 4px solid var(--violet-bright); background: var(--paper-2); padding: 14px 20px; margin: 22px 0; }
.todo { background: #ffe58a; color: #3d2f00; padding: 0 5px; font-weight: 600; }
details { border-top: 1px solid var(--rule); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font: 700 21px/1.3 var(--serif); }
details p { margin: 10px 0 2px; color: var(--soft); }

@media (max-width: 900px) {
  .guide, .study { grid-template-columns: 1fr; gap: 36px; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 34px; }
  .story, .screens { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .story figure:nth-child(n) { margin-top: 0; }
  .facts { grid-template-columns: 1fr; gap: 26px; }
  .mast nav a { margin-left: 18px; }
  .theme { margin-left: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .doc { padding: 40px 16px 70px; }
  .mast .wrap { padding-top: 14px; padding-bottom: 12px; }
  .mark { font-size: 21px; gap: 8px; }
  .mark img { width: 28px; height: 28px; }
  .mast nav a { font-size: 11.5px; letter-spacing: .04em; margin-left: 14px; }
  .mast nav .opt { display: none; }
  .theme { margin-left: 12px; width: 32px; height: 32px; }
  .hero { padding-top: 44px; }
  .hero-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 24px; }
  .lede, .sec-head p { font-size: 18px; }
  .btn { width: 100%; }
  section { padding: 56px 0 62px; }
  .story, .screens { grid-template-columns: 1fr; gap: 40px; }
  .story figure, .screens figure { display: grid; grid-template-columns: 138px 1fr; column-gap: 20px; align-content: start; }
  .story .shot, .screens .shot { grid-row: 1 / span 2; max-width: none; border-radius: 20px; padding: 5px; }
  .story .shot img, .screens .shot img { border-radius: 16px; }
  .story .num { font-size: 40px; margin: 0 0 6px; }
  .screens figcaption { margin-top: 0; }
  .screens figcaption b { margin-top: 0; }
  .plates img { height: 104px; }
  .plates li { padding: 12px 4px 10px; }
  .plates span { font-size: 10.5px; letter-spacing: .05em; }
}

/* dark mode: follows the phone / computer setting, and the little switch in the header overrides it */
:root[data-theme="dark"] {
  --paper: #171428;
  --paper-2: #221d3b;
  --ink: #f1eeff;
  --soft: #a9a3cb;
  --rule: #342f57;
  --violet: #a99dff;
  --violet-bright: #6c5fd8;
  --violet-soft: #2c2650;
  --card: #26213f;
  --frame: #0d0b18;
  --glow: rgba(150, 130, 255, .20);
  --shadow: rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171428;
    --paper-2: #221d3b;
    --ink: #f1eeff;
    --soft: #a9a3cb;
    --rule: #342f57;
    --violet: #a99dff;
    --violet-bright: #6c5fd8;
    --violet-soft: #2c2650;
    --card: #26213f;
    --frame: #0d0b18;
    --glow: rgba(150, 130, 255, .20);
    --shadow: rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .shot { box-shadow: 0 0 0 1px #3b3563; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot { box-shadow: 0 0 0 1px #3b3563; }
}
