/* SkiWith site — Alpenglow (see /DESIGN.md).
   Light "snow paper" and dark "night snow" palettes follow the system setting.
   One accent, no boxed cards, no shadows, the only gradient is the scrim over the photo. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/InstrumentSans_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/InstrumentSans_600SemiBold.ttf") format("truetype");
}

:root {
  --bg: #F6F1E8;
  --surface: #EDE6DA;
  --surface-strong: #E2D9CB;
  --line: #DCD3C6;
  --ink: #1B1713;
  --ink2: #6B625A;
  --ink3: #9E948A;
  --accent: #BD3F1B;
  --on-accent: #FFFFFF;
  --success: #2E6B3F;
  --danger: #B3261E;
  --on-photo: #FFFFFF;
  --scrim: rgba(20, 16, 12, 0.78);

  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: 20px;
  --max: 640px;
  --radius-sm: 10px;
  --radius-md: 16px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120F;
    --surface: #1F1A15;
    --surface-strong: #2B241D;
    --line: #2E2823;
    --ink: #F3EDE3;
    --ink2: #A79E93;
    --ink3: #6F665C;
    --accent: #FF6A3D;
    --on-accent: #15120F;
    --success: #7FD39A;
    --danger: #FF7B72;
    --scrim: rgba(10, 8, 6, 0.82);
  }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

/* ---------- type scale ---------- */

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

.display {
  font-size: 34px;
  line-height: 38px;
  letter-spacing: -0.9px;
}

.title {
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.6px;
}

.heading {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.3px;
}

.body-lg {
  font-size: 17px;
  line-height: 26px;
}

.muted {
  color: var(--ink2);
}

.caption {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink2);
}

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 0 0 12px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}

.section .heading {
  margin-bottom: 12px;
}

.stack > * + * {
  margin-top: 12px;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-top: 8px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.topbar nav a {
  margin-left: 20px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--ink);
}

/* ---------- hero (photo + scrim) ---------- */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-strong);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, var(--scrim) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 32px;
  color: var(--on-photo);
}

.hero .wordmark,
.hero .eyebrow {
  color: var(--on-photo);
}

.hero .eyebrow {
  opacity: 0.85;
}

.hero h1 {
  font-size: 44px;
  line-height: 46px;
  letter-spacing: -1.2px;
  margin: 0 0 12px;
}

.hero p {
  font-size: 17px;
  line-height: 26px;
  max-width: 34ch;
  margin: 0;
}

@media (min-width: 640px) {
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 56px;
    line-height: 58px;
    letter-spacing: -1.5px;
  }
}

/* ---------- pitch rows ---------- */

.pitch {
  padding-top: 32px;
}

.pitch-row + .pitch-row {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}

.pitch-row .heading {
  margin-bottom: 4px;
}

.pitch-row p {
  margin: 0;
  color: var(--ink2);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.button[disabled] {
  opacity: 0.6;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .button:active {
    transform: none;
  }
}

/* ---------- form ---------- */

.form {
  margin-top: 8px;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  margin-bottom: 8px;
}

.field {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 16px;
  line-height: 24px;
}

.field::placeholder {
  color: var(--ink3);
}

.field:focus {
  outline: none;
  border-color: var(--accent);
}

.status {
  min-height: 24px;
  margin-top: 12px;
  margin-bottom: 0;
}

.status.ok {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- document pages ---------- */

.doc {
  padding-top: 24px;
  padding-bottom: 40px;
}

.doc .title {
  margin-bottom: 8px;
}

.notice {
  display: inline-block;
  margin: 16px 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
}

.placeholder {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 18px;
}

.footer p {
  margin: 0 0 8px;
}

.footer a {
  color: var(--ink2);
}

.footer a:hover {
  color: var(--ink);
}

.footer nav a + a {
  margin-left: 16px;
}

/* ---------- utilities ---------- */

.hidden {
  display: none !important;
}

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