/* ── shared by the cover page and its four companion pages ──
   The menu stays out of the way: a small menu icon in the top
   corner opens the five places in a card just below it (menu.js). */
:root {
  --paper:  #FBF8F2;
  --paper-2:#F3EDE1;
  --ink:    #2A2118;
  --ink-2:  #6B5A44;
  --gold:   #B08A3A;
  --gold-lt:#E2C677;
  --line:   rgba(176,138,58,.45);
}

.menu-btn {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 61;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; cursor: pointer; background: none;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
/* two thin gold lines, which cross into an ✕ while the menu is open */
.menu-btn .mi { position: relative; width: 24px; height: 10px; }
.menu-btn .mi::before, .menu-btn .mi::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--gold);
  transition: transform .3s ease, top .3s ease;
}
.menu-btn .mi::before { top: 0; }
.menu-btn .mi::after { top: 8px; }
.menu-btn:hover .mi::before, .menu-btn:hover .mi::after { background: var(--ink-2); }
.menu-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.menu-open .menu-btn .mi::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn .mi::after { top: 4px; transform: rotate(-45deg); }

.dock {
  position: fixed; top: calc(62px + env(safe-area-inset-top)); right: 14px; z-index: 60;
  width: 230px; padding: 8px; border-radius: 14px;
  display: flex; flex-direction: column;
  background: rgba(251,248,242,.97); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line); box-shadow: 0 22px 44px -20px rgba(42,33,24,.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.menu-open .dock { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.dock a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; color: var(--ink-2);
  font-family: 'Jost', system-ui, sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: color .2s ease, background .2s ease; -webkit-tap-highlight-color: transparent;
}
.dock a + a { border-top: 1px solid rgba(176,138,58,.15); }
.dock a svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dock a:hover { background: rgba(176,138,58,.08); color: var(--ink); }
.dock a[aria-current="page"] { color: var(--gold); }
.dock a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .dock, .menu-btn, .menu-btn .mi::before, .menu-btn .mi::after { transition: none; } }

/* ── the companion pages ─────────────────────────────── */
.page { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 52px 20px 30px; }
.page-head { text-align: center; }
.page-head .kicker { font-family: 'Jost', system-ui, sans-serif; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0; }
.page-head h1 {
  font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: clamp(44px, 11vw, 70px); line-height: 1.15; margin: 10px 0 0;
  background: linear-gradient(105deg, #5E420F 0%, #8C6A24 22%, #B8923C 34%, #E2C677 40%, #B8923C 46%, #7A5A1C 62%, #A98434 78%, #D4B465 84%, #7A5A1C 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 6s ease-in-out infinite alternate;
}
.page-head .lede { font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 14px auto 0; max-width: 30em; }
@keyframes foil { from { background-position: 100% 0; } to { background-position: 0% 0; } }

.flourish { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; }
.flourish i { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish i:last-child { transform: scaleX(-1); }
.flourish b { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }


/* paper panels used across the pages */
.panel {
  margin-top: 22px; padding: 24px 22px; border-radius: 8px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 34px -24px rgba(42,33,24,.5);
}
.panel h2 { font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0; color: var(--gold); }
.panel h3 { font-family: 'Jost', system-ui, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.panel p { font-size: 18px; line-height: 1.55; margin: 10px 0 0; }
.panel a.link { color: var(--gold); border-bottom: 1px solid var(--line); }

/* behind the scenes: each team in a tall arched doorway, names
   listed down the middle like a ceremony programme */
.bts { max-width: 900px; }
.teams { display: grid; gap: 30px; margin-top: 40px; justify-items: center; }
@media (min-width: 760px) { .teams { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.frame {
  position: relative; width: 100%; text-align: center;
  background: linear-gradient(180deg, #FFFDF8 0%, var(--paper) 55%, var(--paper-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 26px 44px -30px rgba(107,90,68,.6);
}
.frame::before { content: ""; position: absolute; inset: 9px; pointer-events: none; border: 1px solid var(--line); }
.frame.arch { max-width: 390px; padding: 74px 30px 44px; border-radius: 195px 195px 6px 6px; }
.frame.arch::before { border-radius: 186px 186px 3px 3px; }
.frame.mention { max-width: 520px; margin: 30px auto 0; padding: 36px 28px 34px; border-radius: 6px; }
.frame.mention::before { border-radius: 3px; }

.apex { display: block; width: 34px; height: 34px; margin: 0 auto 10px; color: var(--gold); }
.apex svg { width: 100%; height: 100%; }
.frame-title {
  font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: clamp(34px, 8vw, 42px); line-height: 1.1; margin: 0;
  background: linear-gradient(105deg, #8C6A24 0%, #C9A24C 40%, #E2C677 50%, #B8923C 62%, #8C6A24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.frame-role {
  font-family: 'Jost', system-ui, sans-serif; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin: 30px 0 0; padding-left: .32em;
}
.frame-lead { font-family: 'Pinyon Script', cursive; font-size: 44px; line-height: 1.15; color: #8C6A24; margin: 2px 0 0; }
.frame-lead + .frame-role { margin-top: 0; }
.frame-note { font-style: italic; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); margin: 4px auto 0; max-width: 20em; }
.frame-rule { position: relative; display: block; width: 120px; height: 9px; margin: 28px auto 0;
  background:
    linear-gradient(var(--line), var(--line)) left center / 50px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) right center / 50px 1px no-repeat; }
.frame-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); transform: rotate(45deg); }
.frame-rule + .frame-role { margin-top: 24px; }
.frame-names { list-style: none; margin: 12px 0 0; padding: 0; }
.frame-names li {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; letter-spacing: .06em;
  color: var(--ink-2); line-height: 1; padding: 11px 0;
}
.frame-names li + li { border-top: 1px solid rgba(176,138,58,.18); }
.frame-names { max-width: 200px; margin-inline: auto; }

/* the lead of each team: a gold card */
.lead-card {
  position: relative; margin: 26px auto 0; max-width: 250px; padding: 22px 18px 20px; border-radius: 6px;
  background: linear-gradient(140deg, #A47E2E 0%, #D4B05A 38%, #F0DC9C 52%, #C9A24C 66%, #94712A 100%);
  color: #FFF9EA; box-shadow: 0 16px 28px -16px rgba(122,90,28,.75);
  overflow: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.lead-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,249,234,.6); border-radius: 3px; pointer-events: none; }
.lead-role { font-family: 'Jost', system-ui, sans-serif; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; margin: 0; padding-left: .32em; color: #FFF6DA; }
.lead-name { font-family: 'Pinyon Script', cursive; font-size: 44px; line-height: 1.1; margin: 4px 0 0; color: #FFFDF5; text-shadow: 0 1px 2px rgba(94,66,15,.45); }
.lead-note { font-style: italic; font-size: 15.5px; line-height: 1.4; margin: 6px 0 0; color: #FFF6DA; }

/* everyone else: small ivory cards */
.minis { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.minis.wide { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); justify-content: center; margin-top: 22px; }
.mini {
  position: relative; padding: 16px 10px 13px; border-radius: 5px; text-align: center; overflow: hidden;
  background: #FFFDF8; border: 1px solid rgba(176,138,58,.32);
  box-shadow: 0 8px 18px -14px rgba(107,90,68,.6);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .45s ease;
}
.mini-name { font-family: 'Pinyon Script', cursive; font-size: 29px; line-height: 1.1; margin: 0; color: #8C6A24; }
.mini-role { font-family: 'Jost', system-ui, sans-serif; font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); margin: 4px 0 0; opacity: .8; }
.mini-note { font-style: italic; font-size: 15px; line-height: 1.4; color: var(--ink-2); margin: 8px 0 0; }
.minis .mini:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
.minis.wide .mini:last-child:nth-child(odd) { grid-column: auto; width: auto; }

/* a shine that sweeps across a card when you point at it */
.mini::after, .lead-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,250,230,.75) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .8s ease;
}
@media (hover: hover) {
  .mini:hover { transform: translateY(-6px) rotate(-1.6deg); border-color: var(--gold); box-shadow: 0 18px 28px -16px rgba(107,90,68,.7); }
  .mini:nth-child(even):hover { transform: translateY(-6px) rotate(1.6deg); }
  .lead-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 24px 36px -16px rgba(122,90,28,.8); }
  .mini:hover::after, .lead-card:hover::after { transform: translateX(120%); }
}
.mini:active { transform: scale(.98); }
.mention { margin: 44px auto 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .mini, .lead-card, .mini::after, .lead-card::after { transition: none; } }

/* our story: centred, flowing paragraphs under a leafy sprig */
.story-head { text-align: center; color: var(--gold); }
.sprig { width: 150px; height: auto; }
.spaced { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 17px; letter-spacing: .6em; text-transform: uppercase;
  margin: 18px 0 0; padding-left: .6em; color: var(--ink-2); }
.story-text { margin: 34px auto 0; max-width: 620px; text-align: center; }
.story-text p { font-size: 19px; line-height: 1.75; color: var(--ink-2); margin: 0 0 26px; }

/* updates: plain news, newest first, hairlines between */
.news { list-style: none; margin: 34px 0 0; padding: 0; }
.news li { padding: 24px 0; border-top: 1px solid var(--line); }
.news li:last-child { border-bottom: 1px solid var(--line); }
.news .dateline { font-family: 'Jost', system-ui, sans-serif; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0; }
.news h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 26px; line-height: 1.25; margin: 8px 0 0; }
.news p:not(.dateline) { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 8px 0 0; }
.news p.byline { font-family: 'Jost', system-ui, sans-serif; font-size: 11px; letter-spacing: .08em; color: var(--gold); margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { .page-head h1 { animation: none; } }

/* phones: room for the Menu button above the page title */
@media (max-width: 600px) { .page { padding-top: 78px; } }
