/* StillTrail coming-soon page: always dark, the crest carries the colour. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/playfair-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/playfair-display-latin-500-italic.woff2) format("woff2"); }

:root {
  --bg: #0B110E; --ink: #EDE9DF; --ink-2: #A9B3AD; --line: rgba(237,233,223,.16);
  --amber: #D4854A; --amber-2: #E9A35F; --frame: #EDE6D6; --hor: #13231C;
  --display: "Playfair Display", Georgia, serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.cs { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.admin-bar .cs-wrap { min-height: calc(100vh - 32px); }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 4px; }

/* Soft light behind the crest, tinted by the sky's horizon colour. */
.cs-ambient { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(60vmax 60vmax at 28% 46%, var(--hor), transparent 62%); opacity: .32; transition: background .6s; }

.cs-wrap { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); max-width: 1240px; margin: 0 auto; padding: clamp(20px, 4vw, 56px) clamp(20px, 4vw, 48px); }

/* ---------- crest ---------- */
.cs-art { display: grid; justify-items: center; gap: 14px; min-width: 0; width: 100%; }
.cs-crest { width: 100%; max-width: 520px; height: auto; max-height: 82vh; display: block; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; overflow: visible; }
.cs-crest.dragging { cursor: grabbing; }
.cs-frame { fill: var(--frame); }
.cs-hot { cursor: pointer; outline: none; }
.cs-hot:focus-visible { outline: none; }
.cs-hot:focus-visible > :first-child { stroke: var(--amber-2); stroke-width: 3; }
.cs-stars circle { fill: #F6F1E4; animation: twinkle var(--d, 4s) ease-in-out var(--o, 0s) infinite alternate; }
@keyframes twinkle { from { opacity: var(--a, .9); } to { opacity: .15; } }
.cs-trail { animation: march 2.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: 45; } }
.cs-smoke circle { fill: #C9CFC8; opacity: 0; animation: smoke 6s ease-out infinite; }
.cs-smoke circle:nth-child(2) { animation-delay: 2s; }
.cs-smoke circle:nth-child(3) { animation-delay: 4s; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: .55; } 100% { transform: translate(-22px, -70px) scale(2.6); opacity: 0; } }
.cs-smoke circle { transform-box: fill-box; transform-origin: center; }
.cs-meteor { stroke: #F6F1E4; stroke-width: 2; stroke-linecap: round; opacity: 0; fill: none; }
.cs-meteor.go { animation: meteor 1.1s ease-out forwards; }
@keyframes meteor { 0% { opacity: 0; stroke-dasharray: 0 70; } 20% { opacity: .9; } 100% { opacity: 0; stroke-dasharray: 64 70; transform: translate(-90px, 34px); } }
.cs-hint { margin: 0; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; transition: opacity .6s; }
.cs-hint::before { content: "\2194"; margin-right: 8px; color: var(--amber-2); }
.cs-hint.gone { opacity: 0; }

/* ---------- text ---------- */
.cs-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 520px; min-width: 0; }
.cs-word { margin: 0; font: 600 clamp(1.5rem, 2.6vw, 2rem)/1 var(--display); letter-spacing: .2em; color: var(--frame); }
.cs-tag { margin: -12px 0 0; font: italic 500 1.1rem/1.4 var(--display); color: var(--amber-2); }
.cs-title { margin: 0; font: 600 clamp(2.2rem, 4.6vw, 3.6rem)/1.08 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.cs-lede { margin: 0; color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }

.cs-now { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; }
.cs-now p { margin: 0; }
.cs-clock { font-variant-numeric: tabular-nums; }
#cs-clock { font: 600 1.7rem/1.1 var(--display); color: var(--frame); }
.cs-where { color: var(--ink-2); font-size: 14px; margin-left: 6px; }
.cs-caption { font-size: 1.02rem; min-height: 1.6em; transition: opacity .35s; }
.cs-caption.fade { opacity: 0; }
.cs-sunline { font-size: 13px; color: var(--ink-2); min-height: 1.4em; }

.cs-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; margin-bottom: 8px; }
.cs-scrub { position: relative; }
.cs-scrub input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.cs-scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--track, linear-gradient(90deg, #0B1424, #E8A27A 25%, #9FC1D2 50%, #E8875A 73%, #0B1424)); }
.cs-scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--track, linear-gradient(90deg, #0B1424, #E8A27A 25%, #9FC1D2 50%, #E8875A 73%, #0B1424)); }
.cs-scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--amber); border: 3px solid var(--frame); box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.cs-scrub input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--amber); border: 3px solid var(--frame); box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.cs-ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.cs-back { position: absolute; right: 0; top: -4px; background: transparent; color: var(--amber-2); border: 1px solid currentColor; border-radius: 999px; padding: 3px 12px; font: 600 12.5px/1.4 var(--body); cursor: pointer; }

.cs-form { border-top: 1px solid var(--line); padding-top: 20px; }
.cs-row { display: flex; gap: 8px; }
.cs-row input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: rgba(237,233,223,.06); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; }
.cs-row input::placeholder { color: rgba(169,179,173,.7); }
.cs-row input:focus { outline: none; border-color: var(--amber-2); box-shadow: 0 0 0 3px rgba(212,133,74,.25); }
.cs-row input[aria-invalid="true"] { border-color: #F2A07A; }
.cs-row button { font: 600 15px/1 var(--body); background: var(--amber); color: #1A1A1A; border: 0; border-radius: 999px; padding: 0 22px; cursor: pointer; white-space: nowrap; }
.cs-row button:hover { filter: brightness(1.06); }
.cs-row button:disabled { opacity: .6; cursor: default; }
.cs-msg { margin: 10px 0 0; font-size: 14px; min-height: 0; }
.cs-msg:empty { display: none; }
.cs-msg.bad { color: #F2B08F; }
.cs-msg.good { color: #CFE3D2; }
.cs-fine { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
.cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cs-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.cs-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.cs-contact a:hover { border-bottom-color: var(--amber); }
.cs-foot { margin: 0; font-size: 12.5px; color: var(--ink-2); }

@media (max-width: 860px) {
  .cs-wrap { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; padding-top: 24px; }
  .cs-crest { max-height: 52vh; max-width: 400px; }
  .cs-text { max-width: none; gap: 18px; }
  .cs-word { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-stars circle, .cs-trail, .cs-smoke circle, .cs-meteor.go { animation: none !important; }
  .cs-smoke circle { opacity: .35; }
  .cs-ambient, .cs-caption, .cs-hint { transition: none; }
}
