/* Layout follows the USC chapter site: photo-first bands, centered uppercase
   section titles, four-up article grids, a month calendar. The sunset lives
   in the photography, the warm paper, rust titles and a thin horizon line. */
:root {
  --paper: #fffaf3;
  --sand: #f6ede1;
  --sand-2: #efe3d2;
  --line: #e7d9c6;
  --ink: #1d2232;
  --muted: #6b6e7c;
  --rust: #b34a2c;
  --ember: #e07b4f;
  --amber: #f2ab4c;
  --dusk: #2a3263;
  --night: #141b36;
  --ok: #2d7550;   --ok-bg: #e3f2e8;
  --warn: #9a5418; --warn-bg: #fcebd6;
  --bad: #ac3529;  --bad-bg: #fbe3df;
  --horizon: linear-gradient(90deg, var(--dusk), #7b4660 30%, var(--ember) 62%, var(--amber));

  --font: "Jost", "Futura PT", Futura, "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --track: 0.22em;
  --wrap: 1240px;
  --header-h: 92px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
[hidden] { display: none !important; }
.selectable { user-select: all; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
}
@media (max-width: 640px) { .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); } }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--paper); padding: 10px 16px; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ------------------------------------------------------------- header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(20, 27, 54, 0.97);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-top { background: transparent; box-shadow: none; }
.announce { background: var(--amber); color: var(--night); font-size: .9rem; font-weight: 500; text-align: center; padding-block: 7px; }
.announce a { font-weight: 600; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); transition: height .3s ease; }
.site-header:not(.is-top) .header-inner { height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { width: 64px; height: auto; transition: width .3s ease; filter: drop-shadow(0 3px 10px rgba(0,0,0,.35)); }
.site-header:not(.is-top) .brand img { width: 48px; }
.brand-sub { font-size: .72rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; opacity: .9; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link, .nav-toggle {
  display: inline-block; padding: 10px 16px; border: 0; background: none; cursor: pointer; color: #fff; text-decoration: none;
  font-size: .82rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.nav-link::after, .nav-toggle::after { content: ""; display: block; height: 1.5px; background: var(--amber); transform: scaleX(0); transition: transform .25s ease; margin-top: 4px; }
.nav-link:hover::after, .nav-toggle:hover::after, .nav-item.open > .nav-toggle::after,
.nav-link.active::after, .nav-toggle.active::after { transform: scaleX(1); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 230px; padding: 10px 0;
  background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px -20px rgba(20,27,54,.5);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: 10px 22px; text-decoration: none; font-size: .95rem; letter-spacing: .02em; }
.dropdown a:hover, .dropdown a.active { background: var(--sand); color: var(--rust); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: #fff; }
.burger span { display: block; width: 24px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .burger { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 96px) max(28px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px));
    background: var(--night); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav-link, .nav-toggle { width: 100%; text-align: left; padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-link::after, .nav-toggle::after { display: none; }
  .nav-link.active, .nav-toggle.active { color: var(--amber); }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; display: none; background: none; color: #fff; box-shadow: none; padding: 4px 0 12px 14px; }
  .nav-item.open > .dropdown { display: block; transform: none; }
  .dropdown a { padding: 9px 0; color: rgba(255,255,255,.8); font-size: 1rem; }
  .dropdown a:hover, .dropdown a.active { background: none; color: var(--amber); }
  body.nav-open { overflow: hidden; }
  .brand { position: relative; z-index: 2; }
}

/* -------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; min-height: clamp(560px, 88vh, 900px); display: grid; place-items: center; text-align: center; }
.hero-slides, .hero-slides figure { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero-slides figure { opacity: 0; transition: opacity 1.4s ease; }
.hero-slides figure.on { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero-slides figure.on img { animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,27,54,.72) 0%, rgba(20,27,54,.15) 30%, rgba(20,27,54,.12) 55%, rgba(122,70,96,.45) 85%, rgba(20,27,54,.75) 100%); }
.hero-content { padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 40px) 0 120px; display: grid; gap: 18px; justify-items: center; }
.hero h1 { font-size: clamp(3.4rem, 1.5rem + 8vw, 8.4rem); font-weight: 500; letter-spacing: -0.015em; line-height: .95; text-shadow: 0 6px 40px rgba(20,27,54,.45); }
.hero-sub { font-size: .9rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 26px; }
.hero-caption .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-caption p { font-size: .74rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; opacity: .9; }
.dots { display: flex; gap: 8px; }
.dots button { width: 26px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--amber); }
.dots button::before { content: ""; display: block; height: 20px; margin-top: -9px; }

/* page band (inner pages) */
.band { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; text-align: center; }
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,27,54,.8), rgba(20,27,54,.45) 45%, rgba(122,70,96,.55)); }
.band .wrap { padding-block: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 56px) 72px; display: grid; gap: 14px; justify-items: center; }
.band h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); letter-spacing: -0.01em; }
.band p { max-width: 58ch; font-size: 1.1rem; opacity: .92; }
.band .kicker { font-size: .78rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; color: var(--amber); }
.band .crumbs { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.band .crumbs a { text-decoration: none; } .band .crumbs a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 1.5px solid transparent;
  font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--rust); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--amber); }
.btn-outline { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .74rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.more { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .98rem; color: var(--ink); }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.more:hover { color: var(--rust); }

/* ------------------------------------------------------- sections */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.sand { background: var(--sand); }
.title {
  display: block; width: fit-content; margin: 0 auto 44px; padding-bottom: 8px; text-align: center;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--rust);
  border-image: var(--horizon) 1; border-bottom: 2px solid;
}
.title a { text-decoration: none; }
.lede { text-align: center; color: var(--muted); max-width: 60ch; margin: -24px auto 40px; }

/* albums (USC home galleries) */
.album { padding-block: 34px 6px; }
.album + .album { padding-top: 18px; }
.album-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.album-head h2 { font-size: 1.15rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.album-head span { color: var(--muted); font-size: .9rem; }
.album-ctrl { display: flex; gap: 6px; }
.album-ctrl button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1.1rem; }
.album-ctrl button:hover { border-color: var(--ink); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 34%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.strip::-webkit-scrollbar { display: none; }
.strip button { padding: 0; border: 0; background: var(--sand-2); scroll-snap-align: start; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.strip button.tall { aspect-ratio: auto; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.strip button:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .strip { grid-auto-columns: 82%; } }

/* welcome + subscribe */
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.welcome > * { min-width: 0; }
.welcome-title { text-align: center; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.8rem); font-weight: 500; margin-bottom: clamp(36px, 5vw, 64px); letter-spacing: -0.01em; }
.welcome-copy { display: grid; gap: 20px; font-size: 1.15rem; line-height: 1.75; padding-top: 10px; }
.subscribe h3 { font-size: 1.9rem; font-weight: 500; margin-bottom: 12px; }
.subscribe > p { color: #3e4252; margin-bottom: 22px; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } }

/* post grid (Recent thoughts / Start exploring) */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.post { text-decoration: none; display: grid; gap: 14px; align-content: start; min-width: 0; }
.post figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post:hover figure img { transform: scale(1.04); }
.post h3 { font-size: 1.3rem; font-weight: 400; line-height: 1.3; }
.post p { color: var(--muted); font-size: .98rem; }
.post:hover h3 { color: var(--rust); }
.post .more { font-size: .95rem; }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .posts { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- calendar */
.cal { --cal-gap: 6px; }
.cal-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-bottom: 26px; }
.cal-head h3 { text-align: center; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 600; }
.cal-head button { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 2rem; line-height: 1; color: var(--ink); font-weight: 300; }
.cal-head button:hover { color: var(--rust); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--cal-gap); }
.cal-dow { text-align: center; font-size: .8rem; letter-spacing: .14em; color: var(--muted); padding-bottom: 12px; font-weight: 500; }
.cal-day { position: relative; aspect-ratio: 1; background: var(--sand); overflow: hidden; min-width: 0; }
.cal-day.blank { background: transparent; }
.cal-day.past:not(.has) { opacity: .55; }
.cal-num { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--amber); }
.cal-day.today .cal-num { color: var(--rust); font-weight: 600; }
.cal-day.has .cal-num { background: #fff; color: var(--ink); min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 6px; }
.cal-event { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: #fff; padding: 12px; background: var(--dusk); }
.cal-event img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cal-event::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(20,27,54,.85)); }
.cal-event:hover img { transform: scale(1.06); }
.cal-event span { position: relative; z-index: 1; }
.cal-event .t { font-size: .95rem; font-weight: 500; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cal-event .m { font-size: .76rem; opacity: .85; margin-top: 3px; }
.cal-event .plus { font-size: .72rem; font-weight: 600; color: var(--amber); }
.cal-event.past { filter: saturate(.55); }
.agenda { display: none; margin-top: 22px; border-top: 1px solid var(--line); }
.agenda a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.agenda .d { text-align: center; }
.agenda .d b { display: block; font-size: 1.7rem; font-weight: 500; line-height: 1; }
.agenda .d small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.agenda h4 { font-size: 1.08rem; font-weight: 500; }
.agenda p { color: var(--muted); font-size: .92rem; }
.agenda .none { padding: 18px 0; color: var(--muted); }
@media (max-width: 760px) {
  .cal { --cal-gap: 3px; }
  .cal-dow { font-size: .68rem; letter-spacing: .06em; }
  .cal-num { top: 4px; right: 5px; font-size: .78rem; }
  .cal-day.has .cal-num { min-width: 22px; height: 22px; font-size: .74rem; padding: 0 3px; }
  .cal-event { padding: 0; } .cal-event .t, .cal-event .m, .cal-event .plus { display: none; }
  .cal-event::before { background: rgba(20,27,54,.15); }
  .agenda { display: block; }
}

/* ------------------------------------------------------- trip cards */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 26px; }
.trip-card { text-decoration: none; display: grid; gap: 14px; align-content: start; min-width: 0; }
.trip-card figure { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--dusk); }
.trip-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.trip-card:hover figure img { transform: scale(1.04); }
.trip-card .logo-fill { display: grid; place-items: center; height: 100%; background: var(--horizon); }
.trip-card .logo-fill img { width: 38%; height: auto; object-fit: contain; transform: none !important; }
.trip-card .when { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); font-weight: 500; }
.trip-card h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.trip-card:hover h3 { color: var(--rust); }
.trip-card .tprof { color: var(--muted); font-size: .98rem; }
.chip { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; background: rgba(255,250,243,.96); color: var(--ink); }
.chip.ok { color: var(--ok); } .chip.few { color: var(--warn); } .chip.full { color: var(--bad); } .chip.muted { color: var(--muted); }
.week { position: absolute; right: 12px; top: 12px; z-index: 1; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; background: var(--night); color: var(--amber); }

.tabs { display: flex; justify-content: center; gap: 28px; margin-bottom: 44px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { padding: 0 2px 12px; text-decoration: none; font-size: .82rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-current="page"] { color: var(--ink); border-color: var(--rust); }
.tab:hover { color: var(--ink); }
@media (max-width: 520px) { .tabs { gap: 18px; } .tab { font-size: .72rem; letter-spacing: .12em; } }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); display: grid; gap: 12px; justify-items: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.4rem; }
.skeleton { background: linear-gradient(90deg, var(--sand) 0%, var(--sand-2) 50%, var(--sand) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* -------------------------------------------------------- difficulty */
.peaks { display: inline-flex; align-items: flex-end; gap: 2px; vertical-align: -1px; }
.peaks i { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid var(--line); }
.peaks i.on { border-bottom-color: var(--rust); }
.peaks i:nth-child(2), .peaks i:nth-child(4) { border-bottom-width: 13px; } .peaks i:nth-child(3) { border-bottom-width: 15px; }
.scale { display: grid; gap: 0; border-top: 1px solid var(--line); }
.scale-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.scale-row h4 { font-size: 1.05rem; margin-top: 6px; }
.scale-row p { color: var(--muted); font-size: .98rem; }
.scale-row p b { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .scale-row { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------- trip page */
.trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.trip-layout > * { min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 36px; }
.fact { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.fact dd { margin: 4px 0 0; font-size: 1.12rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.fact dd small { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.prose { display: grid; gap: 16px; font-size: 1.1rem; line-height: 1.75; max-width: 68ch; }
.prose h3 { font-size: 1.5rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--rust); }
.prose a { color: var(--rust); }
.prose strong { font-weight: 600; }
.flyer { margin: 40px 0 0; }
.flyer img { width: 100%; max-width: 520px; box-shadow: 0 30px 60px -30px rgba(20,27,54,.55); }
.flyer figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.notice { padding: 18px 20px; background: var(--warn-bg); color: #5f3412; display: grid; gap: 6px; font-size: 1rem; margin-top: 32px; }
.notice.info { background: #eceef8; color: var(--dusk); }
.notice strong { font-weight: 600; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 18px; }
.photo-row button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; background: var(--sand-2); }
.photo-row img { width: 100%; height: 100%; object-fit: cover; }

.signup { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); background: #fff; border: 1px solid var(--line); }
.signup-head { padding: 22px 24px; background: var(--night); color: #fff; display: grid; gap: 10px; }
.signup-head h2 { font-size: 1.6rem; }
.bar { height: 5px; background: rgba(255,255,255,.18); }
.bar span { display: block; height: 100%; background: var(--horizon); }
.bar-label { display: flex; justify-content: space-between; font-size: .88rem; opacity: .9; font-variant-numeric: tabular-nums; }
.signup-body { padding: 24px; }
@media (max-width: 1000px) { .trip-layout { grid-template-columns: 1fr; } .signup { position: static; } }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: .95rem; font-weight: 500; }
.req { color: var(--rust); }
.hint { font-size: .86rem; color: var(--muted); }
.hint a { color: var(--rust); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 15px; border: 1px solid #d9ccb9; border-radius: 2px; background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(224,123,79,.2); }
.field input::placeholder { color: #a5a39f; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.error { display: none; color: var(--bad); font-size: .86rem; font-weight: 500; }
.field.invalid .error { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 15px; border: 1px solid #d9ccb9; background: #fff; font-size: .95rem; cursor: pointer; transition: all .15s; }
.choice input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.form-sec { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); }
.form-sec:first-child { border: 0; padding: 0; }
.waiver { max-height: 220px; overflow-y: auto; padding: 14px 16px; background: var(--sand); font-size: .84rem; line-height: 1.55; display: grid; gap: 8px; color: #3b3f4f; }
.waiver ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.waiver h4 { font-size: .9rem; font-weight: 600; }
.form-msg { padding: 14px 16px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.done { display: grid; gap: 14px; justify-items: start; }
.done h3 { font-size: 1.6rem; }
.done p { color: #4a4d5c; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- misc pages */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.frame { overflow: hidden; } .frame img { width: 100%; height: 100%; object-fit: cover; }
.timeline { display: grid; border-left: 2px solid; border-image: linear-gradient(var(--amber), var(--dusk)) 1; padding-left: 26px; gap: 26px; }
.timeline time { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); font-weight: 500; }
.timeline h4 { font-size: 1.2rem; }
.timeline h4 a { text-decoration: none; } .timeline h4 a:hover { color: var(--rust); }
.timeline p { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 1.35rem; }
.pillar p { color: var(--muted); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar + .pillar { padding-left: 0; border-left: 0; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 1.2rem; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--rust); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: #4a4d5c; max-width: 68ch; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 40px 26px; }
.person { display: grid; gap: 12px; align-content: start; }
.person figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--horizon); display: grid; place-items: center; }
.person figure img { width: 100%; height: 100%; object-fit: cover; }
.person .initials { font-size: 3.4rem; font-weight: 300; color: #fff; letter-spacing: .04em; }
.person h3 { font-size: 1.3rem; }
.person .role { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); font-weight: 500; }
.person p { color: var(--muted); font-size: .97rem; }
.group-title { font-size: .8rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin: 0 0 22px; font-weight: 500; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line); }
.role { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.role h3 { font-size: 1.2rem; }
.role p { color: var(--muted); }

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-grid a { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sand-2); display: block; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.ig-grid a:hover img { transform: scale(1.05); filter: brightness(.8); }
@media (max-width: 560px) { .ig-grid { gap: 4px; } }
.links { display: grid; border-top: 1px solid var(--line); }
.links a, .links div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
.links small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.links b { font-weight: 500; font-size: 1.15rem; overflow-wrap: anywhere; }
.links a:hover b { color: var(--rust); }
.copy { flex: none; border: 1px solid var(--line); background: none; padding: 7px 12px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 30px; }
.stat { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat b { font-size: 2.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-trip { border: 1px solid var(--line); margin-bottom: 18px; background: #fff; }
.admin-trip header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; flex-wrap: wrap; background: var(--sand); }
.admin-trip h3 { font-size: 1.15rem; }
.admin-trip header span { color: var(--muted); font-size: .9rem; }
.scroll-x { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.status { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.status.Waitlist { color: var(--bad); } .status.Cancelled { color: var(--muted); } .status.Received, .status.Confirmed, .status.Paid { color: var(--ok); }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: rgba(255,255,255,.78); font-size: .98rem; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.horizon { height: 6px; background: var(--horizon); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 36px; padding-block: 64px 48px; }
.footer-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.footer-logo { width: 84px; }
.footer-tag { font-size: .78rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--amber); font-weight: 500; }
.site-footer h4 { color: #fff; font-size: .76rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; } .site-footer a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* lightbox + toast */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,16,32,.95); display: grid; place-items: center; padding: calc(60px + env(safe-area-inset-top, 0px)) max(64px, env(safe-area-inset-right, 0px)) calc(60px + env(safe-area-inset-bottom, 0px)) max(64px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox p { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; letter-spacing: .06em; padding-inline: 20px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 2.2rem; font-weight: 300; cursor: pointer; line-height: 1; }
.lb-btn:hover { color: var(--amber); }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(8px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(8px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding-left: 12px; padding-right: 12px; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); z-index: 95; background: var(--night); color: #fff; padding: 12px 20px; font-size: .92rem; opacity: 0; transition: all .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------ professors + extras */
button.tab { background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; font-size: .82rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; }
.name-wall { text-align: center; max-width: 1000px; margin-inline: auto; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-weight: 300; line-height: 1.7; text-wrap: balance; }
.name-wall a { text-decoration: none; white-space: nowrap; transition: color .2s; }
.name-wall a:hover { color: var(--rust); }
.name-wall sup { font-size: .5em; font-weight: 500; color: var(--rust); margin-left: 2px; letter-spacing: .04em; }
.name-wall .nw { white-space: nowrap; }
.name-wall .sep { color: var(--amber); margin-left: .45em; font-weight: 300; }
.profs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.prof { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.prof figure { margin: 0; width: 88px; aspect-ratio: 1; overflow: hidden; background: var(--horizon); display: grid; place-items: center; }
.prof figure img { width: 100%; height: 100%; object-fit: cover; }
.prof figure span { color: #fff; font-size: 1.6rem; font-weight: 300; letter-spacing: .04em; }
.prof-body { min-width: 0; display: grid; gap: 4px; }
.prof-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prof h3 { font-size: 1.3rem; font-weight: 500; }
.prof h3 a { text-decoration: none; } .prof h3 a:hover { color: var(--rust); }
.badge { flex: none; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); border: 1px solid currentColor; padding: 3px 7px; }
.dept { color: var(--muted); font-size: .95rem; }
.prof-hikes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.prof-hikes a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; font-size: .95rem; }
.prof-hikes a span { min-width: 0; }
.prof-hikes a:hover span { color: var(--rust); }
.prof-hikes time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .88rem; }
.coming { display: grid; gap: 8px; justify-items: center; text-align: center; margin-bottom: 48px; }
.coming a { text-decoration: none; font-size: 1.1rem; } .coming a:hover b { color: var(--rust); }
.coming b { font-weight: 500; }
.kicker-dark { font-size: .76rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--rust); font-weight: 600; }
.type-fill { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; background: var(--horizon); color: #fff; }
.type-fill span { font-size: .72rem; letter-spacing: var(--track); text-transform: uppercase; opacity: .85; }
.type-fill b { font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.cal-fill { position: absolute; inset: 0; background: var(--horizon); }
.trip-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: -12px 0 32px; }
.trip-links .more { color: var(--rust); }
.led { font-size: .92rem; }
.led a { color: var(--rust); text-decoration: none; } .led a:hover { text-decoration: underline; }

/* fallback art when a trip has no photo: four dusk variations with a ridge line */
.type-fill, .cal-fill { position: relative; overflow: hidden; }
.type-fill::after, .cal-fill::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; opacity: .55;
  background: no-repeat bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V78l40-22 30 14 52-44 38 30 26-12 58 40 44-28 34 18 38-34 40 26v54z' fill='%23141b36'/%3E%3C/svg%3E"); }
.type-fill > * { position: relative; z-index: 1; }
.type-fill { justify-content: flex-start; padding-top: 56px; }
.v0 { background: linear-gradient(170deg, #2a3263 0%, #7b4660 48%, #e07b4f 78%, #f2ab4c 100%) !important; }
.v1 { background: linear-gradient(175deg, #141b36 0%, #2a3263 40%, #b34a2c 80%, #f2ab4c 100%) !important; }
.v2 { background: linear-gradient(165deg, #f2ab4c 0%, #e07b4f 35%, #7b4660 75%, #2a3263 100%) !important; }
.v3 { background: linear-gradient(180deg, #3d4a86 0%, #a2607a 45%, #f0a27a 80%, #ffd59a 100%) !important; }
.v1::after { background-position: 30% bottom; } .v2::after { transform: scaleX(-1); } .v3::after { transform: scaleX(-1); height: 38%; }
.prof figure.v0, .prof figure.v1, .prof figure.v2, .prof figure.v3 { position: relative; }

/* photo albums page */
.album-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 48px; }
.album-jump button { border: 1px solid var(--line); background: none; padding: 8px 14px; font: inherit; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.album-jump button:hover { border-color: var(--ink); }
.album-full { padding-top: 24px; margin-bottom: 56px; scroll-margin-top: 96px; }
.album-full .album-head { border-top: 1px solid var(--line); padding-top: 20px; }
.masonry { columns: 4 220px; column-gap: 8px; }
.masonry button { display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; background: var(--sand-2); break-inside: avoid; cursor: zoom-in; overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .6s ease; }
.masonry button:hover img { transform: scale(1.03); }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 4px; } .masonry button { margin-bottom: 4px; } }
