/* Finalist B: Bayou base, plus Sketchbook ink scenes and nodes, Almanac dial and numbers, 2E vibe labels, night mode.
   Loaded after bayou.css, and only by index.html and manny/index.html, so the other copied pages keep the Bayou look. */
:root { --night: #14112E; --night-2: #1E1A45; --night-ink: #EDEBFF; --night-soft: #BDB9DC; }
[data-vibe='slow'] { --c: #B9A3C9; } [data-vibe='breathe'] { --c: #9CC7D6; } [data-vibe='inward'] { --c: #9AA3D8; }
[data-vibe='outside'] { --c: #A9C98A; } [data-vibe='meet'] { --c: #EBC25E; } [data-vibe='move'] { --c: #EE9A7C; }

body { background: var(--bg); } /* clean paper: no grain */
.ev { border-top-color: var(--c); }
.ev:hover { transform: translateY(-4px); } /* no tilt */

/* nav: dial mark and the day/night button */
.nav .wrap > nav { margin-left: auto; }
.mode { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.mode svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode .i-sun { display: none; }

/* Almanac's sun-and-moon dial: the arm sits at Houston's hour, sun on top at noon */
.dial-svg { fill: none; stroke: currentColor; stroke-width: 2.2; overflow: visible; flex: none; }
.dial-svg .dn { fill: currentColor; fill-opacity: .12; stroke: none; }
.dial-svg .sn { fill: var(--amber); }
.dial-svg .mn { fill: var(--terra); stroke: none; }
.dial-svg .tk { stroke-width: 10; stroke-dasharray: 1.6 10.573; opacity: .7; }
.dial-arm { transform-origin: 100px 100px; transform: rotate(var(--deg, 0deg)); }
.brand .dial-svg { width: 32px; height: 32px; stroke-width: 10; color: var(--ink); }
.sky { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin-top: var(--s3); padding: 12px 18px 12px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .9); text-decoration: none; }
.sky .dial-svg { width: 104px; height: 104px; }
.sky b { display: block; font: 500 22px/1.2 var(--display); }
.sky small { display: block; font: 500 13px/1.5 var(--mono); color: var(--ink-2); }
.sky i { font-style: normal; font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Sketchbook's ink-and-wash scenes, in Bayou's colours */
.scene { margin: 0; }
svg.ink { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.ink .cl { stroke: var(--ink-2); stroke-width: .7; opacity: .35; }
svg.ink .w { stroke: none; opacity: .5; mix-blend-mode: multiply; filter: blur(8px); }
svg.ink .lit { fill: var(--amber); }
svg.ink > path { stroke-dasharray: 1; animation: draw 1.8s var(--ease) both; }
svg.ink > path:nth-of-type(3n + 2) { animation-delay: .25s; } svg.ink > path:nth-of-type(3n) { animation-delay: .5s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.b-hero h1 { font-size: clamp(42px, 5.6vw, 76px); }
.b-hero .wrap { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .b-hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: end; } }
@media (max-width: 899px) { .hero.b-hero { min-height: 0; } .b-hero .scene { max-width: 460px; } }

/* 2E vibe label: round solid stamp with the icon, one watercolour wash stroke behind the whole label.
   .vb is Bayou's card badge (svg.glyph + text); it gets the same look so every vibe reads the same. */
.stamp, .vb .glyph { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--teal); color: var(--cream); display: grid; place-items: center; outline: 1px solid var(--teal); outline-offset: 2px; position: relative; }
.vb .glyph { padding: 5px; }
.stamp .glyph { width: 18px; height: 18px; color: inherit; }
.lab, .vb { display: inline-flex; gap: 9px; align-items: center; font: 500 14px/1 var(--body); color: var(--teal); position: relative; isolation: isolate; padding: 6px 14px 6px 6px; background: none; border-radius: 0; box-shadow: none; }
.l-e::before, .vb::before { content: ''; position: absolute; z-index: -1; inset: 2px -2px 2px -4px; background: var(--c); opacity: .6; filter: blur(1.5px); border-radius: 22px 30px 18px 34px / 26px 18px 30px 20px; transform: rotate(-.6deg); }
.ev-vibes { gap: 6px 12px; }

/* nodes and connectors: stops along the river */
.stops { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; }
.stops li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding-bottom: var(--s2); }
.stops li::before { content: ''; position: absolute; left: 21px; top: 0; bottom: 0; border-left: 2px dashed var(--water-ink); opacity: .6; }
.stops li:first-child::before { top: 24px; }
.stops li:last-child::before { bottom: auto; height: 24px; }
.node { position: relative; z-index: 1; margin-top: 24px; display: grid; place-items: center; width: 44px; height: 24px; border: 2px solid var(--ink); border-radius: 12px; background: var(--bg); font: 700 12px/1 var(--mono); }
.stop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 72px; padding: 14px 16px; background: rgba(255, 255, 255, .9); border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--teal); text-decoration: none; transition: transform var(--fast) var(--ease), border-color var(--fast); }
a.stop:hover { transform: translateY(-3px); border-color: var(--ink); }
.stop .lab { font: 500 21px/1 var(--display); }
.stop .hint, .stop p { font-size: 15px; line-height: 1.45; margin: 0; flex-basis: 100%; }
.stop small { font: 600 13px/1.4 var(--mono); color: var(--ink-2); }
.stop b { display: block; font: 500 22px/1.2 var(--display); flex-basis: 100%; }
.stop .yr { font: 600 13px/1.4 var(--mono); color: var(--accent); }
@media (min-width: 900px) {
  .stops { grid-template-columns: repeat(3, 1fr); }
  .stops li { display: block; padding: 0 var(--s3) var(--s4) 0; }
  .stops li::before, .stops li:first-child::before, .stops li:last-child::before { left: 0; right: 0; top: 11px; bottom: auto; height: 0; border-left: 0; border-top: 2px dashed var(--water-ink); }
  .stops li:last-child::before { right: var(--s3); }
  .node { margin: 0 0 var(--s2); }
  .stop { min-height: 96px; align-content: start; }
}
@media (min-width: 1100px) { .stops--7 { grid-template-columns: repeat(7, 1fr); } .stops--7 li { padding-right: 12px; } .stops--7 .stop { padding: 12px; min-height: 112px; } .stops--7 .stop b { font-size: 19px; } }

/* Almanac section titles and "by the numbers" (Manny's home only) */
.st { display: flex; justify-content: space-between; gap: var(--s2); border-top: 1.5px solid var(--ink); padding-top: 12px; margin: 0 0 var(--s3); font: 600 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.st span + span { color: var(--ink-2); }
.figs { display: grid; grid-template-columns: repeat(4, 1fr); margin: var(--s4) 0 0; border-top: 1.5px solid var(--ink); }
.figs div { padding: var(--s3) var(--s2) var(--s3) 0; border-bottom: 1.5px solid var(--ink); }
.figs div + div { border-left: 1.5px solid var(--ink); padding-left: var(--s2); }
.figs dt { font: 600 13px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.figs dd { margin: 8px 0 0; font: 300 clamp(48px, 6.4vw, 96px)/.9 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--accent); }
.figs dd small { display: block; margin-top: 12px; font: 400 15px/1.45 var(--body); letter-spacing: 0; color: var(--ink); }
@media (max-width: 860px) { .figs { grid-template-columns: 1fr 1fr; } .figs div:nth-child(odd) { border-left: 0; padding-left: 0; } }
.pull { margin: var(--s4) 0 0; padding-left: var(--s3); border-left: 4px solid var(--terra); font: italic 400 clamp(28px, 4.4vw, 56px)/1.12 var(--display); letter-spacing: -.02em; color: var(--accent); max-width: 20ch; }
.toc { list-style: none; margin: var(--s4) 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.toc a { display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 2px var(--s2); min-height: 64px; padding: 18px 0; border-bottom: 1.5px solid var(--line); text-decoration: none; }
.toc .no { font: 600 13px/1.4 var(--mono); color: var(--accent); }
.toc b { font: 500 clamp(22px, 2.6vw, 34px)/1.15 var(--display); }
.toc small { grid-column: 2; font-size: 15px; color: var(--ink-2); }
.toc i { grid-area: 1 / 3; font-style: normal; font-weight: 600; }
.toc a:hover b { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.plate { margin: 0; }
.plate img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.plate figcaption { display: flex; justify-content: space-between; padding-top: 8px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.portrait { position: relative; isolation: isolate; }
.portrait svg.ink { position: absolute; inset: auto -12% 0; width: 124%; z-index: -1; }

/* the river keeps to the side gutter and crosses only between sections; the night sky takes its place */
.stars { display: none; }
.stars polyline { fill: none; stroke: var(--amber); stroke-width: 1; opacity: .8; }
.stars circle { fill: var(--night-ink); }
.stars .dim { opacity: .7; }

/* ---------- night mode (the button sets html[data-mode]; daylight is the default) ---------- */
html[data-mode='night'] { color-scheme: dark;
  --cream: #14112E; --sand: #1E1A45; --line: rgba(237, 235, 255, .22); --teal: #EDEBFF; --ink-2: #BDB9DC;
  --terra: #E6B46E; --terra-ink: #E6B46E; --sage-ink: #C5DDB0; --amber-deep: #E6B46E;
  --water: #3A3570; --water-2: #241F52; --water-ink: #E6B46E; --tint: #241F52; }
html[data-mode='night'] body { background: linear-gradient(var(--night), var(--night-2)); }
html[data-mode='night'] .nav.is-solid { background: rgba(20, 17, 46, .92); }
html[data-mode='night'] :is(.ev, .stop, .sky) { background: rgba(20, 17, 46, .72); }
html[data-mode='night'] .band { background: rgba(30, 26, 69, .6); }
html[data-mode='night'] .foot { background: transparent; }
html[data-mode='night'] :is(.stamp, .vb .glyph) { background: var(--amber); color: #1B1406; outline-color: var(--amber); }
html[data-mode='night'] :is(.l-e, .vb)::before { opacity: .38; }
html[data-mode='night'] svg.ink .w { mix-blend-mode: normal; opacity: .22; }
html[data-mode='night'] .dial-svg .mn { fill: var(--night-ink); }
html[data-mode='night'] .mode .i-sun { display: block; } html[data-mode='night'] .mode .i-moon { display: none; }
html[data-mode='night'] .expect li { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M1 6c4-5 7-5 11 0s7 5 11 0' fill='none' stroke='%23E6B46E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* constellations: only at night. They replace the river and the dashed connectors between related stops. */
html[data-mode='night'] .flow > path { display: none; }
html[data-mode='night'] .stars { display: block; }
html[data-mode='night'] .stops li::before { border-style: solid; border-width: 0 0 0 1px; border-color: var(--amber); opacity: .8; left: 21.5px; }
html[data-mode='night'] .node { width: 12px; height: 12px; margin-left: 16px; margin-top: 30px; border: 0; border-radius: 50%; background: var(--night-ink); box-shadow: 0 0 0 5px rgba(237, 235, 255, .14); font-size: 0; }
@media (min-width: 900px) {
  html[data-mode='night'] .stops li::before { border-width: 1px 0 0; left: 0; top: 11.5px; }
  html[data-mode='night'] .node { margin: 6px 0 22px; }
}
