/*
 * BeerPier Brand System — Phase 1A
 * Waterfront travel first. Beer is a warm accent, never the wallpaper.
 */

:root {
  color-scheme: light;

  --harbor-950: #071c25;
  --harbor-900: #0b2733;
  --harbor-800: #123b49;
  --harbor-700: #1d5260;
  --coast-600: #2b91a4;
  --coast-500: #3ea5b7;
  --coast-300: #9bd2dc;
  --coast-100: #dff1f3;
  --shell-50: #fffdf8;
  --shell-100: #fff8e8;
  --sand-200: #e9ddc3;
  --amber-600: #ad5e18;
  --amber-500: #e69a3a;
  --ink: #102f39;
  --muted: #587078;
  --white: #ffffff;

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(.78rem, .76rem + .1vw, .85rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.08rem + .55vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.28rem + 1vw, 2.05rem);
  --step-3: clamp(2rem, 1.56rem + 2vw, 3rem);
  --step-4: clamp(3rem, 2rem + 4.4vw, 5.75rem);

  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: clamp(4rem, 8vw, 7rem);

  --radius-sm: .55rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 1.5rem 4rem rgb(7 28 37 / 12%);
  --shadow-lift: 0 .8rem 2rem rgb(7 28 37 / 16%);
  --content: 74rem;
  --measure: 42rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--shell-50);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--harbor-800);
  text-decoration-color: var(--coast-500);
  text-decoration-thickness: .1em;
  text-underline-offset: .18em;
}

a:hover { color: var(--amber-600); }

h1, h2, h3 {
  margin: 0;
  color: var(--harbor-900);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

.eyebrow {
  margin: 0;
  color: var(--amber-600);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-lockup { width: min(20rem, 68vw); }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--harbor-900);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--harbor-800);
  box-shadow: var(--shadow-lift);
  color: var(--white);
}

.button--secondary {
  border-color: var(--harbor-900);
  background: transparent;
  color: var(--harbor-900);
}

.button--secondary:hover {
  background: var(--coast-100);
  color: var(--harbor-900);
}

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 4px;
}

::selection {
  background: var(--coast-300);
  color: var(--harbor-950);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Phase 1D accessibility refinements */
p, li, h1, h2, h3 { overflow-wrap: break-word; }

@media (forced-colors: active) {
  .button,
  .button--secondary {
    border-color: ButtonText;
  }

  :focus-visible {
    outline-color: Highlight;
  }
}
