/*
  Design tokens: "Midnight Frost"
  ----------------------------------------------------
  --ink          #05060F   base background (Midnight Canvas), deepest surface
  --ink-soft     #2F343E   elevated surfaces / cards (Steel Plate)
  --ink-softer   #3F4959   hover surfaces / borders / shadow tint (Gridline Blue)
  --bone         #D1E4FA   primary text + accent/links on dark (Frost Glow)
  --bone-dim     #C7D3EA   secondary text on dark (Moon Mist)
  --ember        #D1E4FA   accent — CTAs, highlights (Frost Glow, same as --bone
                            by design: this palette uses one luminous
                            foreground for both body and links)
  --ember-bright #FFFFFF   hover / max-emphasis state (Pure White)
  --pine         #D1E4FA   secondary accent, formerly Surge tier's own hue —
                            unified into the single Frost Glow accent
  --steel        #D1E4FA   secondary accent, formerly Current tier's own hue —
                            unified into the single Frost Glow accent
  ----------------------------------------------------
  Note: the price-hero border animation (ring/bolt/spark/bloom) and the demo
  sub-sites (Kaffe Værk, Studio Nord Hair, Madsen & Søn) intentionally do not
  use these tokens — they're separate, deliberately-scoped color systems.
  ----------------------------------------------------
  Display face: Cormorant Garamond (elegant serif)
  Script face:  Parisienne (flowing accent script)
  Body face:    Archivo (quiet geometric grotesk)
*/

:root {
  --ink: #05060F;
  --ink-soft: #2F343E;
  --ink-softer: #3F4959;
  --bone: #D1E4FA;
  --bone-dim: #C7D3EA;
  --ember: #D1E4FA;
  --ember-bright: #FFFFFF;
  --pine: #D1E4FA;
  --pine-bright: #FFFFFF;
  --steel: #D1E4FA;
  --steel-bright: #FFFFFF;

  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-script: "Parisienne", cursive;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-physical: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-soft: cubic-bezier(0.65, 0, 0.35, 1);

  --container: min(1200px, 92vw);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Hairline elevation — technique borrowed from Linear's design system:
     separate surfaces with a thin inset border instead of a drop shadow,
     kept in Ember & Iron's own bone/ink values rather than Linear's grey. */
  --hairline: rgba(186, 215, 247, 0.16);
  --hairline-bright: rgba(186, 215, 247, 0.32);
  --shadow-sm: 0 2px 6px rgba(63, 73, 89, 0.35);
  --shadow-card: inset 0 0 0 1px var(--hairline), 0 14px 30px -22px rgba(63, 73, 89, 0.7);
  --shadow-card-bright: inset 0 0 0 1px var(--hairline-bright), 0 14px 30px -22px rgba(63, 73, 89, 0.7);
  --shadow-xl: 0 24px 60px -20px rgba(63, 73, 89, 0.55);

  /* Tight tracking at display sizes — same borrowed principle, tuned less
     aggressively than Linear's -0.022em since it's layered onto Archivo,
     not Inter, and only used on the bold uppercase display treatment. */
  --tracking-display: -0.02em;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
}

.font-script {
  font-family: var(--font-script);
  font-weight: 400;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ember);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
