@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Respect the HTML5 [hidden] attribute even when components set display:flex/grid.
   Without this, modals and slide-in sheets that ship with `display:flex` ignore
   the boolean attribute and appear permanently. */
[hidden] { display: none !important; }

body {
  font-family: var(--font-ui);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--char-700);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--char-400); opacity: 1; }

a { color: var(--ink-700); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--ink-800); }

h1, h2, h3, h4, h5, h6 { color: var(--char-900); margin: 0 0 var(--s-3); line-height: 1.2; font-weight: 500; }
h1 { font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 500; }
h3 { font-size: var(--t-lg); font-weight: 600; font-family: var(--font-ui); }
h4 { font-size: var(--t-md); font-weight: 600; font-family: var(--font-ui); }
p  { margin: 0 0 var(--s-3); }

small, .text-sm { font-size: var(--t-sm); }
.text-xs { font-size: var(--t-xs); }
.text-md { font-size: var(--t-md); }

.muted    { color: var(--char-500); }
.subtle   { color: var(--char-400); }
.brand    { color: var(--gold-700); }
.ink      { color: var(--ink-800); }

.eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--char-500);
  margin-bottom: var(--s-2);
}

.serif   { font-family: var(--font-display); }
.sans    { font-family: var(--font-ui); }

::selection { background: var(--ink-100); color: var(--ink-900); }

:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--r-sm); }

hr { border: none; border-top: var(--border-hair); margin: var(--s-5) 0; }

code, kbd, pre {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* 2026-08-01: Motion is decorative throughout the workspace. Honour the
   operating-system preference without changing any functional visibility. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
