/* ==========================================================================
   WELCOME GUIDE — STYLES
   --------------------------------------------------------------------------
   You should not need to touch this file. Colours, fonts and corner rounding
   all come from config.js and are injected as the custom properties below.

   Contents
     1.  Tokens & reset
     2.  Layout: stage, page, backdrop
     3.  Typography blocks
     4.  Cards, groups and arches
     5.  Rows, lists and tables of content
     6.  Buttons, pills and fields
     7.  Media: images, avatars, QR codes
     8.  Navigation: progress, pill bar, round buttons
     9.  Menu overlay and desktop rail
     10. Toast, helpers, motion & print
   ========================================================================== */


/* ==========================================================================
   1. TOKENS & RESET
   ========================================================================== */

:root {
  /* Overwritten at runtime from config.js — these are only a safe fallback. */
  --bg: #F8F2EC;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;   /* buttons — lifted a shade in dark mode */
  --accent: #F2E3D5;
  --ink: #26221E;
  --muted: #6F665E;
  --contrast: #26221E;
  --on-contrast: #FBF7F3;

  --line: rgba(38, 34, 30, 0.10);
  --line-strong: rgba(38, 34, 30, 0.18);
  --shade: rgba(38, 34, 30, 0.05);
  --shadow: 0 8px 30px rgba(38, 34, 30, 0.10);
  --shadow-soft: 0 2px 10px rgba(38, 34, 30, 0.05);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;

  --pad: 24px;          /* side padding of a page */
  --gap: 18px;          /* space between blocks */
  --tap: 48px;          /* minimum tap target */
  --stage: 480px;       /* content width on a phone-sized screen */
  --rail: 0px;          /* desktop sidebar width, switched on further down */
}

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

/* Several components set their own display, so hidden needs the last word. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  padding-left: var(--rail);
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a { color: inherit; }

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


/* ==========================================================================
   2. LAYOUT
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .5s ease;
}
.backdrop.is-on { opacity: 1; }
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: var(--backdrop-tint, 0);
}

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

.page {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 26px var(--pad) 8px;
  outline: none;
}

/* The opening screens sit centred in the viewport, like a book cover. */
.page--cover {
  gap: 20px;
  justify-content: center;
  min-height: calc(100dvh - 150px);
  text-align: center;
}

/* Pages with a full-bleed photo behind them. */
.page--photo { min-height: calc(100dvh - 150px); justify-content: center; }

/* Keep a cover photo from pushing the welcome text off the screen. */
.page--cover .media { max-height: 46vh; }

/* Each page fades up as it arrives. */
.page.is-entering { animation: pageIn .42s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--ink);
}
.title--xl { font-size: clamp(46px, 14vw, 62px); }
.title--lg { font-size: clamp(28px, 8.5vw, 36px); }
.title--md { font-size: clamp(20px, 5.6vw, 24px); }
.title--sm { font-size: 17px; }

.title--body {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.title--caps {
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
}
.title--left { text-align: left; }

.copy {
  margin: 0;
  text-align: center;
  color: var(--ink);
}
.copy--left { text-align: left; }
.copy--muted { color: var(--muted); }
.copy--lg { font-size: 17px; }
.copy--sm { font-size: 13.5px; line-height: 1.6; }
.copy--caps {
  text-transform: uppercase;
  letter-spacing: .16em;
  line-height: 1.7;
}
.copy--caps.copy--sm { letter-spacing: .2em; line-height: 1.75; }
.copy--display { font-family: var(--font-display); }
.copy--display.copy--lg {
  font-size: clamp(21px, 5.8vw, 27px);
  line-height: 1.45;
  letter-spacing: .1em;
}
.copy + .copy { margin-top: 2px; }
.copy a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }


/* ==========================================================================
   4. CARDS, GROUPS & ARCHES
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
}
.card--surface { background: var(--surface); box-shadow: var(--shadow-soft); }
.card--accent  { background: var(--accent); }
.card--bg      { background: var(--bg); }
.card--none    { padding: 0; background: none; }
.card--center  { text-align: center; align-items: center; }
.card--center > * { width: 100%; }

/* The archway top used on the Wi-Fi and thank-you screens. */
.card--arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  padding: 54px 26px 34px;
  margin-top: 6px;
}

/* A circular icon badge hanging off the panel's left shoulder. */
.card-badge {
  position: absolute;
  left: -18px;
  top: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.card--surface > .card-badge { background: var(--bg); }
.card--badged { padding-left: 40px; }

/* Big standalone icon (Wi-Fi screen). */
.icon-hero {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.icon-hero svg { width: 40px; height: 40px; }


/* ==========================================================================
   5. ROWS, LISTS
   ========================================================================== */

.rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.row-body { min-width: 0; flex: 1; }

.row-title {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.row-text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.row-text + .row-text { margin-top: 2px; }
.row-text a { color: inherit; }

.row-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
}
.card--accent .row-icon,
.card--bg .row-icon { background: var(--surface-2); }

/* Inside a card the badges hang over the left edge, as in the original. */
.rows--overhang { padding-left: 22px; }
.rows--overhang .row-icon { margin-left: -66px; }

/* Plain rows: a light line icon, no circle. */
.rows--plain .row { gap: 14px; }
.rows--plain .row-icon {
  width: 30px;
  height: 30px;
  background: none;
  color: var(--muted);
}
.rows--plain .row-icon svg { width: 26px; height: 26px; }
.rows--plain .row-title { font-size: 14.5px; }

/* Photo rows. */
.row-photo {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
}

/* Numbered and bulleted lists. */
.list { margin: 0; padding: 0 0 0 1.35em; display: flex; flex-direction: column; gap: 9px; }
.list li { padding-left: 4px; }
.list li::marker { color: var(--muted); }
.list--plain { list-style: none; padding-left: 0; }
.list--check { list-style: none; padding-left: 0; }
.list--check li { display: flex; gap: 10px; align-items: flex-start; }
.list--check li::before {
  content: '';
  flex: none;
  margin-top: .45em;
  width: 14px;
  height: 8px;
  border-left: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(-45deg);
}

/* Side-by-side mini cards (emergency numbers). */
.minis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.mini {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.mini-actions { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.mini-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
}
.mini-action svg { width: 19px; height: 19px; }
.mini-title { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.mini-line { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Big display numbers, e.g. check-in times. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.card--none > .stats { gap: 14px; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 7.6vw, 38px);
  line-height: 1.15;
  white-space: nowrap;
}
.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.stats--single .stat-value { font-size: clamp(34px, 11vw, 48px); }

/* Contact lines. */
.contacts { display: flex; flex-direction: column; gap: 10px; }
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.contact-badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--contrast);
  color: var(--on-contrast);
}
.contact-badge svg { width: 21px; height: 21px; }
.contact-text { font-size: 15px; word-break: break-word; }

.contacts--plain { gap: 2px; text-align: center; }
.contacts--plain .contact {
  display: block;
  padding: 0;
  background: none;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13.5px;
  line-height: 1.9;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
}
.stars svg { width: 22px; height: 22px; }


/* ==========================================================================
   6. BUTTONS, PILLS & FIELDS
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 26px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, background-color .2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(0); }
.pill svg { width: 17px; height: 17px; }

.pill--dark { background: var(--contrast); color: var(--on-contrast); }
.pill--ghost { background: var(--accent); color: var(--ink); box-shadow: none; }
.pill--block { display: flex; width: 100%; }
.pill--plain {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
}

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.buttons--block { flex-direction: column; }

.fields { display: flex; flex-direction: column; gap: 18px; }
.field { text-align: center; }
.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.field-value {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 999px;
  background: var(--contrast);
  color: var(--on-contrast);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  word-break: break-all;
  transition: opacity .2s ease;
}
.field-value:hover { opacity: .88; }
.field-value svg { width: 16px; height: 16px; opacity: .7; flex: none; }
.fields--light .field-value {
  background: var(--accent);
  color: var(--ink);
}


/* ==========================================================================
   7. MEDIA
   ========================================================================== */

.media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--square { border-radius: 0; }

/* Photos that run to the very edge of the screen. */
.media--bleed {
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  width: calc(100% + var(--pad) * 2);
}

.media--21-9 { aspect-ratio: 21 / 9; }
.media--16-9 { aspect-ratio: 16 / 9; }
.media--3-2  { aspect-ratio: 3 / 2; }
.media--4-3  { aspect-ratio: 4 / 3; }
.media--1-1  { aspect-ratio: 1 / 1; }

/* Shown when a photo cannot be loaded, so the layout never collapses. */
.media.is-missing { display: grid; place-items: center; color: var(--muted); }
.media.is-missing img { display: none; }
.media.is-missing::after {
  content: '';
  width: 34px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  opacity: .4;
}

.avatar {
  width: 116px;
  height: 116px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  box-shadow: var(--shadow-soft);
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-frame {
  width: 178px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.qr-frame svg { width: 100%; height: auto; display: block; }
.qr-frame img { width: 100%; height: auto; display: block; }
.qr-caption {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ==========================================================================
   8. NAVIGATION
   ========================================================================== */

.progress {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 40;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--contrast);
  transition: width .45s cubic-bezier(.22, .61, .36, 1);
}

.navbar {
  position: sticky;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: var(--stage);
  margin: 10px auto 22px;
  padding: 0 78px;   /* keeps the pill clear of the home and menu buttons */
  pointer-events: none;
}
.navbar > * { pointer-events: auto; }
.navbar:empty { display: none; }

.nav-back {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.nav-back svg { width: 18px; height: 18px; }

/* The navigation pill is set a little smaller than in-page buttons so a long
   label such as "1/2 See more" still fits between the back and menu buttons. */
.pill-nav {
  min-width: 0;
  font-size: 10.5px;
  letter-spacing: .16em;
  padding: 0 20px;
  gap: 9px;
}
.pill-nav .count { opacity: .55; }
.pill-nav > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pill-nav svg { width: 16px; }

.round {
  position: fixed;
  z-index: 45;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform .2s ease, background-color .25s ease;
}
.round:hover { transform: scale(1.04); }
.round svg { width: 22px; height: 22px; }

.round-menu {
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  background: var(--contrast);
  color: var(--on-contrast);
}
.round-menu svg { width: 24px; height: 24px; }

.round-home {
  left: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.round-home svg { width: 24px; height: 24px; }
.round-home.is-current { opacity: .55; pointer-events: none; }

.round-theme {
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.round-theme svg { width: 19px; height: 19px; }


/* ==========================================================================
   9. MENU & DESKTOP RAIL
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: menuIn .3s ease both;
}
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }

.menu-inner {
  max-width: var(--stage);
  margin: 0 auto;
  padding: 46px 0 120px;
}
.menu-head { padding: 0 var(--pad) 26px; text-align: center; }
.menu-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 500;
  line-height: 1.1;
}

.menu-list { display: flex; flex-direction: column; }
.menu-item {
  display: grid;
  grid-template-columns: 46px 1fr 20px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px var(--pad);
  text-align: left;
  border-top: 1px solid var(--line);
  transition: background-color .2s ease;
}
.menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-item:hover,
.menu-item.is-current { background: var(--shade); }
.menu-item .icon { color: var(--muted); }
.menu-item .icon svg { width: 28px; height: 28px; }
.menu-item-title { display: block; font-size: 15.5px; font-weight: 600; }
.menu-item-sub { display: block; font-size: 13.5px; color: var(--muted); }
.menu-chevron { color: var(--muted); }
.menu-chevron svg { width: 18px; height: 18px; }

.rail { display: none; }


/* ==========================================================================
   10. TOAST, HELPERS, MOTION
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  transform: translate(-50%, 10px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--contrast);
  color: var(--on-contrast);
  font-size: 13px;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  line-height: 1;
}
.icon svg { width: 22px; height: 22px; display: block; }
.icon.is-emoji { font-size: 20px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.spacer--sm { height: 4px; }
.spacer--md { height: 14px; }
.spacer--lg { height: 30px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--contrast);
  color: var(--on-contrast);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }


/* ==========================================================================
   RESPONSIVE — SMALL PHONES
   ========================================================================== */

@media (max-width: 380px) {
  :root { --pad: 18px; }
  .pill { font-size: 10.5px; letter-spacing: .14em; padding: 0 18px; gap: 8px; }
  .pill-nav { font-size: 10px; letter-spacing: .12em; padding: 0 16px; }
  .pill-nav .count { display: none; }   /* drop "1/2" on very narrow screens */
  .navbar { padding: 0 74px; }
  .round-menu { width: 50px; height: 50px; }
  .round-home { width: 50px; height: 50px; }
  .rows--overhang { padding-left: 16px; }
  .rows--overhang .row-icon { margin-left: -58px; }
  .row-icon { width: 42px; height: 42px; }
}


/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */

@media (min-width: 700px) {
  :root {
    --pad: 34px;
    --gap: 22px;
    --stage: 620px;
  }
  body { font-size: 16.5px; }
  .page { padding-top: 40px; }
  .card { padding: 30px; }
  .card--badged { padding-left: 48px; }
  .rows--overhang { padding-left: 26px; }
  .rows--overhang .row-icon { margin-left: -70px; }
  .avatar { width: 132px; height: 132px; }
  .navbar { padding: 0 90px; }
}


/* ==========================================================================
   RESPONSIVE — DESKTOP
   The section list moves into a sticky sidebar and the round menu button and
   full-screen menu are no longer needed.
   ========================================================================== */

@media (min-width: 1080px) {
  :root {
    --rail: 320px;
    --stage: 680px;
    --pad: 44px;
  }

  .rail {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail);
    z-index: 42;
    background: var(--surface);
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }
  .rail-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 44px 0 28px;
  }
  .rail-eyebrow {
    margin: 0 0 6px;
    padding: 0 28px;
    font-size: 10.5px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .rail-title {
    margin: 0 0 26px;
    padding: 0 28px;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
  }
  .rail-title:hover { opacity: .82; }
  .rail-nav { display: flex; flex-direction: column; }
  .rail-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 14px;
    padding: 13px 28px;
    text-align: left;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition: color .2s ease, background-color .2s ease;
  }
  .rail-item .icon svg { width: 21px; height: 21px; }
  .rail-item:hover { color: var(--ink); background: var(--shade); }
  .rail-item.is-current {
    color: var(--ink);
    border-left-color: var(--contrast);
    background: var(--shade);
    font-weight: 600;
  }
  .rail-item-title { font-size: 15px; }
  .rail-foot {
    margin-top: auto;
    padding: 22px 28px 0;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .page { padding-top: 56px; }
  .page--cover,
  .page--photo { min-height: calc(100dvh - 170px); }
  .navbar { padding: 0 78px; margin-bottom: 34px; }
  .toast { left: calc(50% + var(--rail) / 2); }

  .title--xl { font-size: 66px; }
  .avatar { width: 140px; height: 140px; }
}

@media (min-width: 1400px) {
  :root { --stage: 720px; }
}


/* ==========================================================================
   MOTION & PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .navbar, .round, .progress, .rail, .menu, .toast, .skip-link { display: none !important; }
  body { padding-left: 0; background: #fff; color: #000; }
  .page { break-inside: avoid; }
}
