/* Hallmark · v2.0.0 · theme: midnight-club (custom) · genre: atmospheric · scope: landing + app · built 2026-11-13 */
/* Critique: near-black warm charcoal, ivory type, brass signal; quiet late-night chess room. */

:root {
  color-scheme: dark;

  --paper: #0F0E0C;
  --paper-2: #15130F;
  --paper-3: #1C1813;
  --surface: #1B1712;
  --ink: #EDE6D6;
  --ink-2: #D6CDBB;
  --muted: #A69C8A;
  --rule: #332E27;
  --rule-2: #4A4338;
  --field-border: #756B5A;
  --accent: #C9A25A;
  --accent-dark: #A9823F;
  --accent-soft: #3A2E1C;
  --accent-ink: #17130D;
  --green: #7FA98E;
  --green-soft: #1E2A23;
  --gold: #C9A25A;
  --danger: #D07A62;
  --danger-dark: #B85F49;
  --stone-dark: #0A0908;
  --stone-light: #EDE6D6;
  --board: #24201A;
  --board-line: #6B5F4C;
  --board-highlight: #2C2720;
  --hero-glow: rgba(201, 162, 90, .15);
  --header-bg: #0F0E0C;
  --caption-bg: #171410;
  --scrim: rgba(0, 0, 0, .68);
  --mobile-nav-bg: #0F0E0C;

  --font-display: "Bodoni Moda", "Noto Serif TC", ui-serif, Georgia, serif;
  --font-body: "Libre Franklin", "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 2px;
  --radius-pill: 999px;
  --border: 1px solid var(--rule);
  --border-strong: 1px solid var(--ink);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 68px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;

  --focus: 2px solid var(--accent);
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  overflow-x: clip;
  margin: 0;
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(201, 162, 90, .10), transparent 62%),
    radial-gradient(900px 600px at 0% 30%, rgba(127, 169, 142, .035), transparent 65%),
    var(--paper);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration-color: var(--accent);
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: .98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
}

p {
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
