/* Ardverran House: tokens, type, motion primitives. Spec section 3. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0C1A20;          /* ground: sound ink, deep Atlantic blue-green */
  --ink-lift: #122630;     /* raised surfaces, greybox placeholders */
  --spindrift: #EAF1EF;    /* primary text, cold sea-white */
  --fog: #9FB3B3;          /* secondary text */
  --gorse: #F0B90B;        /* THE accent. links, CTAs, focus, waypoints. nothing else */
  --gorse-deep: #D9A50A;   /* hover state */
  --ease-surge: cubic-bezier(0.16, 0.84, 0.24, 1); /* gentle lift, slow settle */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--ink);
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variation-settings: 'wght' 430, 'wdth' 100;
  color: var(--spindrift);
  background: var(--ink);
}

[hidden] { display: none !important; }

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

h1 {
  font-size: clamp(1.95rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  font-variation-settings: 'wght' 760, 'wdth' 124;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
  font-variation-settings: 'wght' 730, 'wdth' 120;
}

/* the type rhythm breaks exactly twice: two quiet narrow headings
   (#weather, #plan) against the heavy expanded ones */
.h-quiet {
  font-variation-settings: 'wght' 500, 'wdth' 78;
  letter-spacing: 0.01em;
}

.card-title {
  font-size: 1.25rem;
  font-variation-settings: 'wght' 640, 'wdth' 116;
}

p { max-width: 62ch; }
.fog { color: var(--fog); }

.caps {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-variation-settings: 'wght' 560, 'wdth' 110;
  color: var(--fog);
}

.wordmark {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-variation-settings: 'wght' 640, 'wdth' 122;
  color: var(--spindrift);
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid rgba(234, 241, 239, 0.35);
  padding-bottom: 6px;
}

a { color: var(--gorse); }

/* Buttons: two styles, locked page-wide */
.btn-primary {
  display: inline-block;
  background: var(--gorse);
  color: var(--ink);
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  font-variation-settings: 'wght' 640, 'wdth' 112;
  transition: background 0.25s var(--ease-surge), transform 0.25s var(--ease-surge);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--gorse-deep); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(234, 241, 239, 0.55);
  color: var(--spindrift);
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  font-variation-settings: 'wght' 640, 'wdth' 112;
  transition: border-color 0.25s var(--ease-surge), color 0.25s var(--ease-surge);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--gorse); color: var(--gorse); }
.btn-ghost:active { transform: scale(0.98); }

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

/* Surge reveal primitive (promoted by JS; reduced motion rests visible) */
.surge { opacity: 0; transform: translateY(26px); }
.surge.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-surge), transform 0.9s var(--ease-surge);
  transition-delay: calc(var(--i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .surge { opacity: 1; transform: none; }
}

/* Haar veil primitive */
.veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(12, 26, 32, 0) 38%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .veil { opacity: 0; }
}
