/* ==========================================================================
   Alaska Snowboard Guides
   --------------------------------------------------------------------------
   Palette is taken from the ASG logo (navy + beacon yellow) and from the
   colours the Chugach actually shows at altitude: snow reads faintly blue,
   wind-scoured shadow reads glacier blue.

   Type is one superfamily used at two widths. Archivo Expanded carries the
   display voice; Archivo at normal width carries body copy. The width
   contrast does the work a second family usually would. IBM Plex Mono is
   the "instrument" voice — elevations, snowfall figures, week dates.
   ========================================================================== */

:root {
  /* colour */
  --ink:      #0D1129;   /* deep shadow, page ground for dark bands */
  --navy:     #232A63;   /* ASG logo navy */
  --navy-lo:  #1A1F47;
  --glacier:  #7FA8C9;   /* blue in a wind-scoured snow shadow */
  --glacier-d:#4A7396;
  --beacon:   #EFE449;   /* ASG logo yellow — heli, beacon, accent */
  --snow:     #F2F5F8;   /* snow white, faintly cool */
  --paper:    #FFFFFF;
  --slate:    #59627A;   /* body text on light */
  --rule:     #D6DEE7;

  /* type */
  --display: 'Archivo', system-ui, sans-serif;
  --body:    'Archivo', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* measure */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --narrow: 720px;
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-synthesis-weight: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--glacier-d); }

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

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--beacon); color: var(--ink);
  padding: .7rem 1.1rem; font-weight: 700; border-radius: 3px;
  transition: top .18s ease;
}
.skip:focus { top: .75rem; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.02;
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;            /* Archivo Expanded */
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-stretch: 112%; letter-spacing: 0; }
h4 { font-size: 1.02rem; font-stretch: 100%; letter-spacing: .01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--navy); font-weight: 700; }

/* the instrument voice: elevations, figures, dates, eyebrows */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--glacier-d);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: var(--glacier);
  flex: none;
}

.lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.6; color: var(--navy); }

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--narrow); }

.band { padding-block: clamp(3.75rem, 8vw, 7rem); }
.band--tight { padding-block: clamp(2.75rem, 5vw, 4.25rem); }

.band--dark { background: var(--ink); color: #AFBBD0; }
.band--dark h2, .band--dark h3, .band--dark h4 { color: var(--paper); }
.band--dark strong { color: var(--paper); }
/* :not(.btn) matters — a bare `.band--dark a` rule is more specific than
   `.btn--beacon`, which would paint the CTA label yellow on yellow. */
.band--dark a:not(.btn) { color: var(--beacon); }
.band--dark .eyebrow { color: var(--glacier); }
.band--dark .eyebrow::before { background: var(--glacier-d); }
.band--dark .lede { color: var(--paper); }

.band--snow { background: var(--snow); }

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

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display);
  font-weight: 700; font-stretch: 112%;
  font-size: .93rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--beacon { background: var(--beacon); color: var(--ink); }
.btn--beacon:hover { background: #FFF37A; color: var(--ink); }

.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: var(--navy-lo); color: var(--paper); }

.btn--ghost { border-color: rgba(255,255,255,.42); color: var(--paper); }
.btn--ghost:hover { border-color: var(--beacon); color: var(--beacon); }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* -------------------------------------------------------------- header -- */

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,41,.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127,168,201,.22);
}
.hdr__in {
  max-width: var(--maxw); margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 40px; width: auto; }

.hdr__nav { margin-left: auto; display: flex; align-items: center; gap: 1.55rem; }
.hdr__nav a:not(.btn) {
  font-family: var(--display);
  font-size: .82rem; font-weight: 600; font-stretch: 100%;
  letter-spacing: .1em; text-transform: uppercase;
  color: #C3CDDF; text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.hdr__nav a:not(.btn):hover { color: var(--paper); border-bottom-color: var(--glacier); }
.hdr__nav a:not(.btn)[aria-current="page"] { color: var(--paper); border-bottom-color: var(--beacon); }
.hdr__nav .btn { padding: .6rem 1.15rem; font-size: .8rem; }

.hdr__toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 2px;
  color: var(--paper); padding: .5rem .7rem; cursor: pointer;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
}

@media (max-width: 1020px) {
  .hdr__toggle { display: block; }
  .hdr__nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink);
    border-bottom: 1px solid rgba(127,168,201,.22);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem var(--gutter) 1.25rem;
  }
  .hdr__nav.is-open { display: flex; }
  .hdr__nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .hdr__nav .btn { margin-top: .9rem; justify-content: center; }
}

/* ---------------------------------------------------------------- hero -- */
/* The signature. The left rule is a true elevation scale: every tick is
   positioned at its real height on a 0–9,000 ft axis, so the first thing
   the page shows is the measurement the sport is actually sold on. */

.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(13,17,41,.94) 0%, rgba(13,17,41,.74) 44%, rgba(13,17,41,.30) 78%, rgba(13,17,41,.52) 100%);
}
.hero__in {
  position: relative;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 7.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: stretch;
  min-height: min(76vh, 660px);
}

/* the elevation axis */
.axis { position: relative; border-left: 1px solid rgba(127,168,201,.5); }
.axis__tick {
  position: absolute; left: 0; right: 0;
  bottom: calc(var(--ft) / 9000 * 100%);
  transform: translateY(50%);
  padding-left: .85rem;
}
.axis__tick::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: .6rem; height: 1px; background: var(--glacier);
}
.axis__tick--major::before { width: 1.1rem; height: 2px; background: var(--beacon); margin-top: -.5px; }
.axis__ft {
  display: block;
  font-family: var(--mono); font-size: .95rem; font-weight: 500;
  color: var(--paper); font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.axis__tick--major .axis__ft { color: var(--beacon); font-size: 1.1rem; }
.axis__lbl {
  display: block;
  font-family: var(--mono); font-size: .63rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--glacier); margin-top: .2rem;
  line-height: 1.25;
}

.hero__copy { align-self: center; max-width: 42ch; padding-block: 1rem; }
.hero h1 { color: var(--paper); }
.hero h1 em {
  font-style: normal;
  color: var(--beacon);
  display: block;
}
.hero__sub {
  color: #C6D2E4; font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  margin: 1.4rem 0 2rem; max-width: 40ch; line-height: 1.6;
}
.hero .btn-row { gap: .75rem; }

@media (max-width: 780px) {
  /* At this width the photo's bright half sits directly behind the copy, so
     the wash goes vertical and much heavier to keep the text legible. */
  .hero__wash {
    background: linear-gradient(180deg, rgba(13,17,41,.88) 0%, rgba(13,17,41,.70) 42%, rgba(13,17,41,.92) 100%);
  }
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { max-width: none; }
  /* the axis stops being a scale drawing at this width — becomes a strip */
  .axis {
    order: 2; border-left: 0; border-top: 1px solid rgba(127,168,201,.5);
    display: flex; flex-wrap: wrap; gap: 1.1rem 2rem;
    padding-top: 1.15rem; margin-top: 1.25rem; height: auto;
  }
  .axis__tick {
    position: static; transform: none; padding-left: 0;
    bottom: auto;
  }
  .axis__tick::before { display: none; }
  .axis__ft { font-size: 1rem; }
  .axis__lbl { color: #B9CBDD; }
}

/* --------------------------------------------------------- page banner -- */

.banner { position: relative; background: var(--ink); overflow: hidden; }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__wash {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,17,41,.93) 0%, rgba(13,17,41,.72) 55%, rgba(13,17,41,.42) 100%);
}
.banner__in {
  position: relative;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(3rem, 6.5vw, 5.5rem) var(--gutter);
}
.banner h1 { color: var(--paper); max-width: 22ch; font-size: clamp(2.2rem, 5.2vw, 4rem); }
.banner__sub { color: #C6D2E4; max-width: 58ch; margin-top: 1.2rem; font-size: 1.1rem; }
.banner .eyebrow { color: var(--glacier); }
.banner .eyebrow::before { background: var(--glacier-d); }

/* --------------------------------------------------------------- prose -- */

.prose h2 { margin-top: 2.6rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; margin-bottom: .7rem; }
.prose ul { margin: 0 0 1.15em; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: .5rem;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .5rem; height: 2px; background: var(--beacon);
}
.band--dark .prose ul li::before { background: var(--beacon); }

/* --------------------------------------------------------------- cols -- */

.cols { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); grid-template-columns: 1fr; }
/* auto-fit would silently give --2 three columns at desktop widths, so the
   counts are explicit and the class name means what it says. */
@media (min-width: 720px) { .cols--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .cols--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }

/* three pillars — hairline rules, no icon chrome */
.pillar { border-top: 2px solid var(--navy); padding-top: 1.15rem; }
.pillar h3 { margin-bottom: .5rem; }
.band--dark .pillar { border-top-color: var(--beacon); }

/* ------------------------------------------------------------- figures -- */
/* the numbers band: these are the operating figures, in the mono voice */

.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.25rem 1.75rem; }
.fig { border-top: 1px solid rgba(127,168,201,.32); padding-top: 1.1rem; }
.fig__n {
  display: block;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  color: var(--beacon); line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.fig__u { font-size: .5em; color: var(--glacier); margin-left: .2em; letter-spacing: 0; }
.fig__l {
  display: block; margin-top: .7rem;
  font-size: .93rem; color: #A9B6CC; line-height: 1.45;
}

/* --------------------------------------------------------- split media -- */

.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.split__body h2 { margin-bottom: 1.1rem; }

/* ---------------------------------------------------------------- quote -- */

.quote { position: relative; background: var(--navy); overflow: hidden; }
.quote__media { position: absolute; inset: 0; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; }
.quote__wash { position: absolute; inset: 0; background: rgba(26,31,71,.68); }
.quote__in {
  position: relative; max-width: 940px; margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.16;
  color: var(--paper); letter-spacing: -.01em; text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--beacon);
}
.quote figcaption span { display: block; color: var(--glacier); margin-top: .35rem; letter-spacing: .1em; }

/* --------------------------------------------------------------- cards -- */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 1.5rem 1.5rem 1.65rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .6rem; }
.card__body p { font-size: .99rem; }
.card__price {
  font-family: var(--mono); font-size: 1.35rem; color: var(--navy);
  font-variant-numeric: tabular-nums; margin: 1.1rem 0 .25rem;
  display: block; font-weight: 500;
}
.card__price small {
  display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--glacier-d); margin-top: .4rem; line-height: 1.4;
}
.card__foot { margin-top: auto; padding-top: 1.3rem; }

/* --------------------------------------------------------------- table -- */

.sched { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .95rem; }
.sched th, .sched td { text-align: left; padding: .78rem .9rem; border-bottom: 1px solid var(--rule); }
.sched th {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--glacier-d); font-weight: 500;
}
.sched td { color: var(--navy); font-variant-numeric: tabular-nums; }
.sched tbody tr:hover { background: var(--snow); }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------- notice -- */

.notice {
  border-left: 3px solid var(--beacon);
  background: var(--snow);
  padding: 1.1rem 1.35rem;
  font-size: .97rem;
  border-radius: 0 3px 3px 0;
}
.notice strong { display: block; margin-bottom: .3rem; }
.band--dark .notice { background: rgba(255,255,255,.05); color: #C6D2E4; }

/* -------------------------------------------------------------- gallery -- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 3px; }
.gallery img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem .95rem .8rem;
  background: linear-gradient(to top, rgba(13,17,41,.88), transparent);
  color: var(--paper);
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: 3 / 4; height: 100%; }

/* ----------------------------------------------------------------- faq -- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--display); font-weight: 700; font-stretch: 112%;
  color: var(--navy); font-size: 1.05rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 1rem;
  font-family: var(--mono); font-size: 1.3rem; color: var(--glacier-d);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--glacier-d); }
.faq__a { padding: 0 0 1.4rem; font-size: .99rem; }

/* -------------------------------------------------------------- contact -- */

.contact-grid { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.15fr 1fr; } }

.dl { margin: 0; }
.dl div { padding: .95rem 0; border-bottom: 1px solid rgba(127,168,201,.28); }
.dl dt {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--glacier); margin-bottom: .35rem;
}
.dl dd { margin: 0; font-size: 1.08rem; color: var(--paper); }
.dl dd a { color: var(--paper); text-decoration-color: rgba(255,255,255,.4); }
.dl dd a:hover { color: var(--beacon); }

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

.ftr { background: var(--ink); color: #8E9CB5; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.ftr__top { display: grid; gap: 2.5rem; }
@media (min-width: 780px) { .ftr__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr img.ftr__logo { height: 52px; width: auto; margin-bottom: 1.2rem; }
.ftr h4 {
  color: var(--paper); font-family: var(--mono); font-size: .72rem;
  font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1rem; font-stretch: normal;
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: .55rem; }
.ftr a { color: #B3C0D6; text-decoration: none; font-size: .97rem; }
.ftr a:hover { color: var(--beacon); }
.ftr__bar {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(127,168,201,.18);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; font-family: var(--mono); letter-spacing: .04em;
}

/* ------------------------------------------------------------ next link -- */

.nextlink {
  display: inline-flex; align-items: baseline; gap: .7rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none; color: var(--glacier-d);
}
.nextlink b {
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: 1.15rem; letter-spacing: -.01em; color: var(--navy);
  text-transform: none;
}
.nextlink:hover b { color: var(--glacier-d); }
.band--dark .nextlink { color: var(--glacier); }
.band--dark .nextlink b { color: var(--paper); }
.band--dark .nextlink:hover b { color: var(--beacon); }
