/* Catbeam site v2: design system. Tokens mirror Mirr/Core/Theme.swift (paper, ink, brand, night). Fonts are self-hosted (OFL). */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/mirr-site/assets/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/mirr-site/assets/fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/mirr-site/assets/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/mirr-site/assets/fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/mirr-site/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/mirr-site/assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400; font-display: swap; src: url(/mirr-site/assets/fonts/cinzel-latin-400.woff2) format("woff2"); }

:root {
  color-scheme: light dark;
  /* colour tokens (light) */
  --paper: #fff6ea; --paper-2: #f5e8d6; --paper-3: #ecd9c0; --surface: #ffffff;
  --ink: #3a2a20; --ink-soft: rgba(58,42,32,.74); --ink-faint: rgba(58,42,32,.5); --hair: rgba(58,42,32,.12);
  --brand: #16a585; --brand-ink: #0e7f66; --beam: #3dd0aa; --btn-text: #0b2a22;
  --food: #ff9636; --play: #45adff; --love: #ff6b9e; --xp: #ffc233; --alert: #e5533f;
  --peach: #f4b58f; --terracotta: #de8a68; --night: #1d2145; --night-deep: #111329;
  --glass: rgba(255,246,234,.78); --shadow: 0 30px 60px -34px rgba(58,42,32,.55);
  /* type + space scale */
  --serif: "Instrument Serif", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif KR", "AppleMyungjo", "Songti TC", "Noto Serif TC", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Apple SD Gothic Neo", "PingFang TC", "Noto Sans CJK JP", sans-serif;
  --cinzel: "Cinzel", "Instrument Serif", Georgia, serif;
  --fs-0: clamp(.9rem, .88rem + .1vw, .98rem); --fs-1: clamp(1.02rem, .98rem + .2vw, 1.14rem);
  --fs-2: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); --fs-3: clamp(2.1rem, 1.5rem + 3vw, 4rem); --fs-4: clamp(2.8rem, 1.6rem + 6vw, 6.6rem);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: clamp(80px, 12vw, 160px);
  --gutter: max(16px, env(safe-area-inset-left), min(5vw, 56px)); --maxw: 1200px; --radius: 26px; --radius-s: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1); --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1512; --paper-2: #261f1a; --paper-3: #342a22; --surface: #2e2620;
    --ink: #f8ecdf; --ink-soft: rgba(248,236,223,.76); --ink-faint: rgba(248,236,223,.5); --hair: rgba(248,236,223,.14);
    --brand: #3dd0aa; --brand-ink: #62ddbd; --glass: rgba(38,31,26,.78); --shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; } html.lenis { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 var(--fs-1)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; } ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; } button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
em { font-style: italic; color: var(--brand-ink); }
:lang(ja) em, :lang(ko) em, :lang(zh-Hant) em { font-style: normal; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(zh-Hant) h1, :lang(zh-Hant) h2 { letter-spacing: 0 !important; line-break: strict; word-break: keep-all; overflow-wrap: break-word; font-weight: 600; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { word-break: normal; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: top .2s; }
.skip:focus { top: 10px; }

/* buttons */
.btn { --bg: var(--beam); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--bg); color: var(--btn-text);
  font: 800 1rem/1 var(--sans); text-decoration: none; letter-spacing: -.005em; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 28px -12px rgba(22,165,133,.7); will-change: transform; transition: box-shadow .3s var(--ease), background .3s; touch-action: manipulation; }
.btn:hover { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 36px -12px rgba(22,165,133,.85); }
.btn .ap { width: 18px; height: 18px; flex: none; margin-top: -2px; } .btn span { display: inline-block; }
.btn.lg { min-height: 58px; padding: 0 32px; font-size: 1.08rem; } .btn.sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn.ghost { background: transparent; color: inherit; box-shadow: 0 0 0 1.5px currentColor inset; opacity: .9; } .btn.ghost svg { width: 18px; height: 18px; }
.btn.alt { background: var(--ink); color: var(--paper); box-shadow: none; }
.kick { font: 700 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); }
:lang(ja) .kick, :lang(ko) .kick, :lang(zh-Hant) .kick { letter-spacing: .08em; text-transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
