/* tokens.css is loaded by the page with a version stamp on its URL.
   It used to be pulled in here with @import, which carries no version,
   so a browser kept the old colours for up to a week after a redesign. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--heading);
             line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: var(--gold); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100;
         background: var(--gold); color: var(--on-gold); font-weight: 700;
         padding: var(--s3) var(--s5); min-height: 44px; text-decoration: none;
         display: inline-flex; align-items: center; }
.skip:focus { left: var(--s4); top: var(--s4); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--s5); }

/* Sections are told apart by depth. Each band runs edge to edge and carries a
   hairline of gold at its upper boundary, so the seam is deliberate rather than
   accidental. No rounded floating cards. */
.band-page   { background: var(--ground); }
.band-deep   { background: var(--band); border-top: 1px solid rgba(230,179,87,.22);
               border-bottom: 1px solid rgba(230,179,87,.22); }
.band-raised { background: var(--raised); border-top: 1px solid rgba(230,179,87,.14); }

/* ---------- header ---------- */
.masthead { background: var(--band); border-bottom: 1px solid rgba(230,179,87,.18); }
.masthead__in { display: flex; align-items: baseline; justify-content: space-between;
                gap: var(--s5); padding-block: var(--s5); flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-size: var(--t-m);
            color: var(--heading); text-decoration: none; letter-spacing: -0.01em;
            /* The site logo is a tap target on every page. Was 33px tall. */
            display: inline-flex; align-items: center; min-height: 44px; }
.wordmark b { font-weight: 400; }
.wordmark span { color: var(--gold); }
.nav { display: flex; gap: var(--s5); font-size: var(--t-s); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--heading); text-decoration: underline; }

/* ---------- hero, sitting on the page ground ---------- */
.hero { padding-block: clamp(var(--s8), 11vw, var(--s10)) var(--s9); }
.hero__name { font-size: clamp(2.8rem, 11vw, var(--t-4xl)); }
.hero__role { font-family: var(--font-body); font-size: var(--t-m); color: var(--muted);
              margin-top: var(--s4); max-width: 40ch; }
.hero__lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 4.6vw, var(--t-xl));
              line-height: 1.28; color: var(--heading); max-width: 22ch; margin-top: var(--s7); }
.hero__note { max-width: var(--measure); margin-top: var(--s5); }

/* ---------- course facts, on the Beyond Success page ---------- */
.facts { display: flex; flex-wrap: wrap; gap: var(--s7); margin-top: var(--s7);
         padding-top: var(--s6); border-top: 1px solid rgba(230,179,87,.28); }
.fact__n { font-family: var(--font-display); font-weight: 500; font-size: var(--t-l); color: var(--gold); line-height: 1; }
.fact__l { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s2); }

/* A <button> does not inherit the page's typeface, so without font-family it
   drew its label in the system face beside a link button in Lato. */
.btn { display: inline-block; margin-top: var(--s7); background: var(--gold); font-family: inherit;
       color: var(--on-gold); font-weight: 700; font-size: var(--t-base);
       padding: var(--s4) var(--s6); border-radius: 2px; text-decoration: none; min-height: 44px; }
.btn:hover, .btn:focus-visible { background: #F2C575; }

.door__link { font-family: var(--font-body); font-weight: 700; font-size: var(--t-base);
              color: var(--gold);
              /* A standalone call to action is a tap target, not body text.
                 Measured at 19px tall before this; the floor is 44px. */
              display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- footer: back to the deepest tone, closing the page ---------- */
.foot { background: var(--band); border-top: 1px solid rgba(230,179,87,.18); }
.foot__in { padding-block: var(--s7); display: flex; flex-wrap: wrap;
            gap: var(--s5) var(--s7); justify-content: space-between; font-size: var(--t-s); }
.foot p { color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

/* Reduced motion. Gerry's ruling, 2026-09-18, after his own iPhone (Reduce
   Motion on) showed none of the motion: nothing moves, but things may still
   fade and colours may still ease. So every transition anywhere keeps only its
   fade and colour parts, and each animation swaps to a fade-only version (the
   keyframes redefined at the end of the motion block below). This used to be
   a blanket "no animation, no transition", which left the site dead still. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-property: opacity, color, background-color, border-color, outline-color,
                         text-decoration-color !important;
  }
}

/* ---------- the seven roundtables ---------- */
.rounds { border-top: 1px solid rgba(230,179,87,.14); }
.rounds .wrap { padding-block: clamp(var(--s8), 7vw, var(--s9)); }
.rounds__h { font-size: clamp(1.8rem, 5vw, var(--t-2xl)); }
.rounds__i { margin-top: var(--s4); max-width: 52ch; }
.rt-grid { list-style: none; margin: var(--s8) 0 0; padding: 0;
           display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
@media (min-width: 700px)  { .rt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .rt-grid { grid-template-columns: repeat(4, 1fr); } }
/* Seven items wrap to 4 + 3 at desktop. A ragged final row is a normal wrap,
   not an empty cell, so the last three sit left-aligned under the first four. */
.rt__img { width: 100%; height: auto; aspect-ratio: 530 / 326; object-fit: cover;
           border-radius: 2px; border: 1px solid rgba(230,179,87,.16); }
.rt__t { font-size: var(--t-base); font-family: var(--font-body); font-weight: 700;
         color: var(--heading); margin-top: var(--s4); line-height: 1.35;
         display: flex; gap: var(--s3); align-items: baseline; }
.rt__n { font-family: var(--font-display); font-weight: 500; font-size: var(--t-m); color: var(--gold);
         line-height: 1; flex: none; }
.rt__d { font-size: var(--t-s); color: var(--muted); margin-top: var(--s2); }

/* ============================================================
   Premium finish pass. Principles taken from the soft-skill;
   translated to plain CSS because this site ships no JavaScript
   and no build step, which on 1 GB of shared hosting is a feature.
   ============================================================ */

:root {
  /* Real-world mass. Nothing here uses linear or ease-in-out. */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spatial:  cubic-bezier(0.32, 0.72, 0, 1);
}

/* --- Film grain: fixed, pointer-events-none, never on a scroller.
       Gives the flat dark ground a physical surface. --- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter>\
<rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* --- Double bezel: a card is a plate seated in a tray, with
       concentric radii, not a rectangle floating on the page. --- */
.rt {
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(230,179,87,.10);
  border-radius: 14px;
  padding: 6px 6px 18px;
}
.rt__img {
  border-radius: 8px;               /* 14px outer minus the 6px inset */
  border: 1px solid rgba(0,0,0,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.rt__t, .rt__d { padding-inline: 10px; }

/* --- Pill buttons. The arrow well that sat inside the landing page's
       button went with the old landing page on 2026-09-18. --- */
.btn { position: relative; display: inline-flex; align-items: center; gap: var(--s4);
       padding-right: var(--s4); border-radius: 999px;
       transition: background .5s var(--ease-out-expo), transform .35s var(--ease-spatial); }
.door__link { gap: var(--s3); transition: gap .4s var(--ease-spatial); }
/* The press and the widening gap are movement, so a device asking
   for reduced motion does without them (review 2026-09-18: they still snapped). */
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(.985); }
  .door__link:hover { gap: var(--s4); }
}

/* --- Scroll entry. CSS scroll-driven animation, so no JavaScript.
       Browsers without it simply show the content, which is correct.
       It used to run to 26% of the whole cover range, so a card stopped on
       halfway up the screen sat half-faded. Gerry's ruling on the motion demo,
       2026-09-18: fully showing once about 70% of it is on screen. --- */
@supports (animation-timeline: view()) {
  .rounds__h, .rounds__i, .rt, .hub-door, .facet {
    animation: rise cubic-bezier(0.33, 1, 0.68, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   Motion, as picked by Gerry on the demo page, 2026-09-18.
   Only opacity, transform and filter move, apart from colour and
   outline on a hover. A device asking for reduced motion gets the
   fades without the movement: see the keyframes at the end.
   ============================================================ */

  /* --- Pages cross-fade within one address. The header is lifted out of the
         fade so it stays still; the old page leaves in 0.12 s and the new one
         rises 6px into place in 0.25 s. A move to another of the four addresses
         switches straight over: browsers allow this only within one. The admin
         loads this file too and shortens both timings in admin.css. --- */
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: masthead; }
  /* The header is not sticky, so after scrolling down it starts off-screen and
     the browser would slide it down into place by the whole distance scrolled
     (measured in review 2026-09-18). It is held where it lands instead. */
  /* animation-name only: the full `animation: none` also zeroed the duration
     the header's own snapshots inherit, so it lost its cross-fade too. */
  ::view-transition-group(masthead) { animation-name: none; }
  ::view-transition-old(root) { animation: vt-leave 120ms var(--ease-out-expo) both; }
  ::view-transition-new(root) { animation: vt-arrive 250ms var(--ease-out-expo) both; }

  /* --- The top of a page settles in, one line after another. Backwards fill
         holds each line hidden through its own delay, and nothing is held once
         it has arrived. --- */
  .hero > * { animation: settle 600ms var(--ease-out-expo) backwards; }
  .hero > :nth-child(2) { animation-delay: 80ms; }
  .hero > :nth-child(3) { animation-delay: 160ms; }
  .hero > :nth-child(n+4) { animation-delay: 240ms; }

  /* --- A thank-you or a list of problems rises into place, so the eye lands
         on it. --- */
  .formdone, .formbad { animation: settle 450ms var(--ease-out-expo) backwards; }

  /* --- Hover and tap: colour and outline ease over 0.2 s instead of snapping.
         The dip under a finger is 0.16 s. --- */
  a, .nav a, .foot a {
    transition: color .2s var(--ease-out-expo), text-decoration-color .2s var(--ease-out-expo),
                text-decoration-thickness .2s var(--ease-out-expo);
  }
  .q__choice, .day, .slot, .q__num span {
    transition: border-color .2s var(--ease-out-expo), background-color .2s var(--ease-out-expo),
                color .2s var(--ease-out-expo), transform .16s var(--ease-spatial);
  }
  .q input[type=text], .q input[type=email], .q input[type=tel],
  .q input[type=date], .q select, .q textarea {
    transition: border-color .2s var(--ease-out-expo), box-shadow .2s var(--ease-out-expo);
  }
  /* A dip is movement, so it is the one piece that stays out entirely. */
  @media (prefers-reduced-motion: no-preference) {
    .q__num input:active + span, .slot:active { transform: scale(.96); }
  }

@keyframes vt-leave  { to   { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes settle    { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* Reduced motion: the same timings, fades only. Later keyframes of the same
   name win, so these replace the three above and the scroll fade's `rise`. */
@media (prefers-reduced-motion: reduce) {
  @keyframes vt-arrive { from { opacity: 0; } }
  @keyframes settle    { from { opacity: 0; } }
  @keyframes rise      { from { opacity: 0; } to { opacity: 1; } }
}

/* Not motion, so outside the preference: a chosen answer takes the accent
   colour, and the box being typed in gets a soft ring. Mixed from the theme's
   own accent, because a survey can wear the Daylight, Midnight or Paper theme
   and a fixed gold would be wrong on all three. */
.q__choice:has(input:checked) {
  border-color: var(--gold); color: var(--heading);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}
.q input:focus-visible, .q select:focus-visible, .q textarea:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent);
}

/* ---------- the schedule ----------
   Beyond Success reads the dates from the scheduler and lists them here. A row
   per meeting, wrapping to two lines on a phone rather than scrolling sideways. */
.sched { padding-block: var(--s9); }
.sched__h { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl);
            color: var(--heading); margin: 0 0 var(--s3); }
.sched__empty { color: var(--body); font-size: var(--t-m); max-width: var(--measure); }
.sched__note { color: var(--muted); font-size: var(--t-s); margin-top: var(--s5);
               max-width: var(--measure); }
.sched__note a { color: var(--gold); }

.course { background: var(--raised); border: 1px solid var(--rule); border-radius: 14px;
          padding: var(--s6); margin-top: var(--s6); }
.course__t { font-family: var(--font-display); font-weight: 500; font-size: var(--t-xl);
             color: var(--heading); margin: 0; line-height: 1.15; }
.course__sub { color: var(--gold); font-size: var(--t-s); letter-spacing: .04em;
               text-transform: uppercase; margin: var(--s2) 0 0; }
.course__lead { color: var(--body); font-size: var(--t-m); margin: var(--s4) 0 0;
                max-width: var(--measure); }
.course__body { color: var(--body); margin: var(--s3) 0 0; max-width: var(--measure); }
.course__meta { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s4) 0 0;
                color: var(--muted); font-size: var(--t-s); }

.meets { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 1px;
         background: var(--rule); border-radius: 10px; overflow: hidden; }
.meet { background: var(--ground); padding: var(--s4) var(--s5);
        display: grid; gap: var(--s1) var(--s5); align-items: baseline;
        grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .meet { grid-template-columns: 19rem 1fr auto; }
}
.meet__when { color: var(--heading); font-weight: 700; }
.meet__what { color: var(--body); }
.meet__who { color: var(--muted); font-size: var(--t-s); }
.meet__where { color: var(--muted); font-size: var(--t-s); }
.meet__tag { grid-column: 1 / -1; color: var(--gold); font-size: var(--t-xs);
             letter-spacing: .04em; text-transform: uppercase; }
.meet--off .meet__when { text-decoration: line-through; }
.meet--off { opacity: .6; }

/* ---------- forms people fill in ----------
   The public site had no field styling at all: every form until now lived in the
   admin. These are deliberately larger than the admin's, because they are filled
   in once, often on a phone, often by somebody over fifty. */
.hero--form { padding-block: clamp(var(--s7), 8vw, var(--s9)) var(--s6); }
.formband { padding-block: var(--s7) var(--s9); }

.qform { max-width: 40rem; }
.q { margin-bottom: var(--s5); }
.q label { display: block; color: var(--heading); font-weight: 700; margin-bottom: var(--s2); }
.q__opt { color: var(--muted); font-weight: 400; font-size: var(--t-s); }
.q__help { color: var(--muted); font-size: var(--t-s); margin: var(--s2) 0 0; }
.q__head { font-family: var(--font-display); font-weight: 500; font-size: var(--t-l);
           color: var(--heading); margin: var(--s7) 0 var(--s2); }

.q input[type=text], .q input[type=email], .q input[type=tel],
.q input[type=date], .q select, .q textarea {
  width: 100%; font: inherit; font-size: var(--t-base); color: var(--heading);
  background: var(--field-bg); border: 1px solid var(--rule); border-radius: 10px;
  padding: 13px var(--s4); min-height: 52px;
}
.q textarea { min-height: 8rem; line-height: 1.6; resize: vertical; }
.q input::placeholder { color: #9A9081; }
.q input:focus-visible, .q select:focus-visible, .q textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold);
}

/* A choice is a row you tap, not a four millimetre circle you aim at. */
.q__choices { display: grid; gap: var(--s2); }
.q__choice {
  display: flex; align-items: center; gap: var(--s3); min-height: 52px;
  padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 10px;
  background: var(--field-soft); color: var(--body); font-weight: 400; margin: 0;
  cursor: pointer;
}
.q__choice:hover { border-color: var(--gold); }
.q__choice input { accent-color: var(--gold); width: 20px; height: 20px; flex: none; }
.q__consent {
  display: flex; align-items: flex-start; gap: var(--s3); color: var(--body);
  font-weight: 400; line-height: 1.5;
}
.q__consent input { accent-color: var(--gold); width: 20px; height: 20px; flex: none; margin-top: 2px; }

.q__rating { display: flex; gap: var(--s2); flex-wrap: wrap; }
.q__num { position: relative; margin: 0; }
.q__num input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.q__num span {
  display: grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid var(--rule); border-radius: 12px; color: var(--body);
  font-family: var(--font-display); font-size: var(--t-m);
}
.q__num input:checked + span { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.q__num input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.formnote { color: var(--muted); font-size: var(--t-s); margin-top: var(--s4); max-width: var(--measure); }
.formbad {
  border: 1px solid #6B3527; background: #331B14; color: #F0B7A6;
  border-radius: 12px; padding: var(--s4) var(--s5); margin-bottom: var(--s5); max-width: 40rem;
}
.formbad ul { margin: var(--s2) 0 0; padding-left: 1.2em; }
.formdone { max-width: 40rem; }
.formdone h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl);
               color: var(--heading); margin: 0 0 var(--s3); }
.formdone p { color: var(--body); font-size: var(--t-m); }
.formdone__s { color: var(--muted); font-size: var(--t-s); margin-top: var(--s4); }

/* A secondary action on the public site. Giving up a place should not look like
   the same invitation as taking one. */
.btn--quiet {
  background: transparent; color: var(--muted);
  border: 1px solid var(--rule); box-shadow: none;
}
.btn--quiet:hover { background: var(--raised); color: var(--heading); box-shadow: none; }

/* ---------- choosing a time ----------
   A day, then a time. Both are ordinary links, so this works with no JavaScript
   and behaves identically on a phone. */
.zoneform { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }
.zoneform label { color: var(--muted); font-size: var(--t-s); margin: 0; }
.zoneform select {
  font: inherit; font-size: var(--t-s); color: var(--heading); background: var(--field-bg);
  border: 1px solid var(--rule); border-radius: 10px; padding: 10px var(--s3); min-height: 44px;
}
.zoneform .btn { margin-top: 0; }

.daypick { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
           margin-bottom: var(--s7); }
.day {
  display: grid; gap: 2px; padding: var(--s3) var(--s4); min-height: 60px; align-content: center;
  border: 1px solid var(--rule); border-radius: 12px; text-decoration: none;
  background: var(--field-soft); color: var(--body);
}
.day:hover { border-color: var(--gold); }
.day--on { border-color: var(--gold); background: rgba(230,179,87,.12); }
.day__d { color: var(--heading); font-weight: 700; }
.day__n { color: var(--muted); font-size: var(--t-s); }

.slots { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.slot {
  display: grid; place-items: center; min-height: 56px; border-radius: 12px;
  border: 1px solid var(--rule); background: var(--field-soft);
  color: var(--heading); text-decoration: none; font-size: var(--t-m);
  font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--gold); background: rgba(230,179,87,.12); }
