/* Karrie's inner pages (about, trips, events, training, coaching, contact), built by ~/Islands/alpenboxx-pages/build.mjs.
   Same tokens, type, cards and buttons as the homepage (site.css); this file only adds the page blocks. */

.kicker { font: 500 0.8rem/1.3 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.tint { background: var(--paper-2); }
.note { margin-top: 18px; font: 400 0.92rem/1.6 var(--ui); color: var(--ink-2); max-width: 70ch; }
.note--center { margin-inline: auto; text-align: center; }
.nav__links a[aria-current="page"] { color: #ffc79e; }

/* The page hero: her photo, fading into the plum, title over it */
.phero { position: relative; display: grid; min-height: clamp(380px, 62svh, 640px); background: var(--plum); color: #fff; overflow: clip; }
.phero__photo { position: absolute; inset: 0; }
.phero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.phero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(46 26 41 / 0.92) 8%, rgb(46 26 41 / 0.55) 45%, rgb(46 26 41 / 0.12) 80%); }
.phero__in { position: relative; align-self: end; display: grid; gap: 14px; padding-block: 48px clamp(36px, 5vw, 64px); }
.phero .kicker { color: #ffc79e; }
.phero__title { color: #fff; font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1.02; max-width: 18ch; }
.phero__lede { font-size: clamp(1.06rem, 1rem + 0.4vw, 1.28rem); max-width: 50ch; color: rgb(255 255 255 / 0.92); }
.phero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Key facts, under a trip's hero */
.facts { background: var(--plum-2); color: #fff; }
.facts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; margin: 0; background: rgb(255 255 255 / 0.12); }
.facts__list div { display: grid; gap: 4px; padding: 18px clamp(12px, 2vw, 22px); background: var(--plum-2); }
.facts dt { font: 500 0.74rem/1.3 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: #ffc79e; }
.facts dd { margin: 0; font: 600 1.12rem/1.3 var(--head); }

/* Text, alone or beside a photo */
.ptext__in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.ptext__copy { display: grid; gap: 14px; max-width: 64ch; }
.ptext__copy p { color: var(--ink-2); }
.ptext__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.ptext__cta { margin-top: 8px; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; translate: 0 -50%; }
.ticks--no li::before { width: 12px; height: 2px; border: 0; background: var(--ink-2); rotate: 0deg; opacity: 0.6; }

/* A list of short points, as small cards */
.plist__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.plist__grid--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.plist__grid li { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.plist__grid strong { font: 600 1.18rem/1.25 var(--head); color: var(--head-ink); }
.plist__grid span { color: var(--ink-2); font-size: 0.97rem; }

/* Two lists side by side: included and not */
.ppair__in { display: grid; gap: 18px; }
.ppair__col { display: grid; align-content: start; gap: 14px; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ppair__col h3 { font-size: 1.5rem; }

/* The itinerary, one day per row */
.pdays__in { max-width: 900px; }
.pdays__list { display: grid; gap: 8px; }
.pdays details { border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pdays summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 16px 48px 16px 18px; cursor: pointer; list-style: none; position: relative; }
.pdays summary::-webkit-details-marker { display: none; }
.pdays summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: 45deg; translate: 0 -70%; transition: rotate 200ms var(--ease); }
.pdays details[open] summary::after { rotate: 225deg; translate: 0 -20%; }
.pdays__day { font: 500 0.78rem/1.3 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); white-space: nowrap; }
.pdays__t { font: 600 1.22rem/1.25 var(--head); color: var(--head-ink); }
.pdays__body { display: grid; gap: 10px; padding: 0 18px 18px; color: var(--ink-2); }

/* Cards: trips, events, pathways */
.pcards__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pcards__price { font: 600 1.15rem/1.3 var(--head); color: var(--head-ink) !important; }
.pcards__cta { margin-top: clamp(24px, 3vw, 36px); text-align: center; }

/* A strip of her photos */
.pgallery { padding-block: clamp(8px, 1vw, 12px); background: var(--paper); }
.pgallery__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 220px), 1fr)); gap: clamp(6px, 1vw, 10px); padding-inline: clamp(6px, 1vw, 10px); }
.pgallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--r) / 2); }

/* Reviews */
.pquotes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.pquotes .review { margin: 0; }

/* Prices */
.pprice__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; max-width: 980px; margin-inline: auto; }
.pprice__card { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.pprice__card h3 { font-size: 1.3rem; }
.pprice__amt { font: 600 clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem)/1.1 var(--head); color: var(--accent-ink); }
.pprice__card p:not(.pprice__amt) { color: var(--ink-2); font-size: 0.95rem; }

/* Contact */
.pcontact__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.pcontact .card h3 { font-size: 1.4rem; }

@media (min-width: 860px) {
  .ptext--split .ptext__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .ptext--flip .ptext__photo { order: -1; }
  .ptext--flip .ptext__in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .ppair__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════ Phones first (Jacob, 2026-11-24) ═══════════
   Labels read as words (one set of tracked capitals per page: the hero's), the hero photo sits above the words instead
   of under them, and on a phone the lists, days and included/not-included read as a page, not a stack of boxes. */
.kicker { font: italic 500 clamp(1.08rem, 1rem + 0.3vw, 1.22rem)/1.3 var(--head); letter-spacing: 0; text-transform: none; color: var(--accent-ink); }
.phero .kicker { font: 500 0.8rem/1.3 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: #ffc79e; }
.tint .kicker, .section .kicker { text-wrap: balance; }
.pdays__day { font: italic 500 1rem/1.3 var(--head); letter-spacing: 0; text-transform: none; }
.facts dt { font: 500 0.8rem/1.3 var(--ui); letter-spacing: 0.02em; text-transform: none; }

@media (max-width: 959px) {
  /* the homepage's phone hero: her photo on top, melting into the plum, the words on calm ground below */
  .phero { display: block; min-height: 0; }
  .phero__photo { position: relative; inset: auto; height: 40svh; min-height: 240px; max-height: 420px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  .phero__photo::after { display: none; }
  .phero__in { margin-top: -36px; padding-block: 0 40px; }
}
@media (max-width: 640px) {
  .ptext__photo { margin-inline: calc(-1 * var(--gutter)); }
  .ptext__photo img { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
  .plist__grid { gap: 0; border-top: 1px solid var(--line); }
  .plist__grid li { padding: 16px 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); }
  .ppair__in { gap: 36px; }
  .ppair__col { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .pdays__list { gap: 0; border-top: 1px solid var(--line); }
  .pdays details { border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); }
  .pdays summary { padding: 16px 40px 16px 0; }
  .pdays summary::after { right: 6px; }
  .pdays__body { padding: 0 0 18px; }
  .pgallery__row { padding-inline: 0; gap: 4px; }
  .pgallery img { border-radius: 0; }
}
@media (min-width: 960px) {
  /* the words sit on the left: melt the photo into the plum there, as the homepage does, so they never need the snow to be calm */
  .phero__photo::after { background: linear-gradient(to right, rgb(46 26 41 / 0.86) 0%, rgb(46 26 41 / 0.62) 32%, rgb(46 26 41 / 0.12) 62%, transparent 80%),
    linear-gradient(to top, rgb(46 26 41 / 0.7) 0%, transparent 45%); }
  /* four cards read as two rows of two, never three and an orphan */
  .pcards__grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; }
}
.phero__tag { font: italic 500 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.2 var(--head); color: #ffc79e; margin-top: -4px; }
