/* The tree draft. Night sky into dawn, a tree whose roots are as wide as its crown, the four
   parts of John's process on it from the roots up. Colours: the logo's navy, teal and sun. */
@font-face { font-family: "Fraunces"; src: url(brand/fraunces-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(brand/nunito-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(brand/nunito-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0b1d2b;
  --navy: #142e3d;
  --teal: #347c89;
  --gold: #f2c46d;
  --sun: #f6d68b;
  --cream: #fbf1e2;
  --cream-soft: #e9dcc6;
  --soil: #150d08;
}
* { box-sizing: border-box; }
html { background: var(--soil); }
body { margin: 0; font-family: "Nunito Sans", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; color: var(--cream); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0; }
a { color: inherit; }

.ribbon { margin: 0; padding: 6px 12px; text-align: center; font-size: 0.8125rem; background: #2b1d12; color: var(--sun); letter-spacing: 0.02em; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(14px, 4vw, 48px); background: #ffffff; color: var(--navy); }
.brand img { display: block; height: 52px; width: auto; }
.bar nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); font-weight: 700; }
.bar nav a { text-decoration: none; }
.bar nav a:not(.btn):hover { text-decoration: underline; }

.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 14px 30px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .chips a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn-teal { background: var(--teal); color: #ffffff; padding: 10px 20px; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 0 28px rgba(242, 196, 109, 0.35); }
.btn-gold:hover { box-shadow: 0 0 40px rgba(242, 196, 109, 0.55); }

/* ---- the sky ---- */
.sky { background: url(stars.svg) top center / 1000px 600px repeat-x, linear-gradient(var(--night), #1b3850); text-align: center; }
.sky-in { max-width: 46rem; margin: 0 auto; padding: clamp(48px, 9vw, 110px) 20px 24px; }
.sky h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); color: var(--cream); }
.sky .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--cream-soft); margin: 22px auto 30px; max-width: 38rem; }
.sky .small { font-size: 0.95rem; color: #b9c4cc; margin: 16px 0 0; }
.sky h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--sun); margin-top: clamp(56px, 8vw, 96px); }
.sky .sub { color: var(--cream-soft); margin: 8px 0 0; }

/* ---- the tree ---- */
.scene { background: var(--soil); }
.scene-art { background: linear-gradient(#1b3850 0%, #3a5470 30%, #b48b74 50%, #f0c27f 59.6%, #5f7b3f 60%, #4a3424 60.9%, #2e1e13 72%, var(--soil) 100%); }
.scene-art img { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.stations { list-style: none; margin: 0; padding: 28px 16px 8px; display: grid; gap: 16px; }

.st { position: relative; background: rgba(12, 24, 34, 0.66); border: 1px solid rgba(246, 214, 139, 0.28); border-radius: 16px; padding: 16px 20px 16px; backdrop-filter: blur(3px); }
.st .num { float: left; width: 28px; height: 28px; margin: -3px 10px 0 0; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1rem; display: grid; place-items: center; box-shadow: 0 0 16px rgba(242, 196, 109, 0.5); }
.st .where { margin: 0; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sun); font-weight: 700; line-height: 22px; }
.st h3 { font-size: 1.35rem; margin: 4px 0 6px; color: var(--cream); }
.st p { margin: 0; color: var(--cream-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.chips a { text-decoration: none; font-size: 0.95rem; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(246, 214, 139, 0.6); color: var(--cream); transition: background 0.15s ease, color 0.15s ease; }
.chips a:hover { background: var(--gold); color: var(--navy); }

/* ---- the soil and the foot ---- */
.soil { background: var(--soil); text-align: center; }
.soil-in { max-width: 44rem; margin: 0 auto; padding: 56px 20px 64px; }
.soil h2 { font-size: 1.6rem; color: var(--sun); }
.soil .chips { justify-content: center; }
.soil .close { font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; line-height: 1.4; margin: 44px 0 26px; color: var(--cream); }
.foot { background: #0d0805; color: #a99a86; text-align: center; font-size: 0.9rem; padding: 22px 16px 30px; }
.foot p { margin: 4px 0; }

/* a phone: the menu gives up its words, the button stays */
@media (max-width: 559px) {
  .bar nav a:not(.btn) { display: none; }
  .brand img { height: 42px; }
  .btn-teal { padding: 9px 14px; font-size: 0.95rem; }
}

/* wide enough to set the four parts beside the tree, each at its own height */
@media (min-width: 760px) {
  .scene { background: linear-gradient(#1b3850 0%, #3a5470 30%, #b48b74 50%, #f0c27f 59.6%, #5f7b3f 60%, #4a3424 60.9%, #2e1e13 72%, var(--soil) 100%); }
  .scene-art { background: none; }
  .scene-in { position: relative; max-width: 1180px; margin: 0 auto; }
  .scene-art { width: 52%; }
  .scene-art img { max-width: none; }
  .stations { position: absolute; inset: 0 0 0 50%; padding: 0 24px 0 0; display: block; }
  .st { position: absolute; left: 0; right: 24px; }
  .st::before { content: ""; position: absolute; right: 100%; top: 27px; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, rgba(246, 214, 139, 0.7)); }
  .st-4 { top: 8%; }
  .st-3 { top: 31%; }
  .st-2 { top: 54%; }
  .st-1 { top: 76%; }
  .chips a { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .chips a { transition: none; }
  .btn:hover { transform: none; }
}
