/* Hourhand: enamel-dial grey, black hands, one red second hand. The skies are the only colour. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #eef1f3;
  --panel: #ffffff;
  --ink: #000000;
  --text: #262b31;
  --muted: #535b64;
  --rule: #c3cad1;
  --red: #d4241a;
  --night: #0b1333;
  --wrap: 76rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(2.75rem, 6vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { color: var(--ink); font-stretch: 125%; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.1rem); font-weight: 800; line-height: .98; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.015em; margin-bottom: .75rem; }
h3 { font-size: 1.2rem; font-weight: 750; font-stretch: 112%; line-height: 1.22; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: #fff; padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- header */
.top { border-bottom: 2px solid var(--ink); }
.top__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.4rem; font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; }
.mark { width: 2.1rem; height: 2.1rem; flex: none; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: .35rem 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (max-width: 459px) {
  .top__in { padding-block: .7rem .5rem; }
  .nav { gap: 0 .85rem; font-size: .93rem; }
}

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .65rem 1.45rem;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: #2f343b; border-color: #2f343b; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- hero + dial */
.hero { display: grid; gap: 2rem 3rem; align-items: center; padding-block: clamp(2.25rem, 6vw, 4.5rem) var(--space); }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); } }
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 4.4rem); margin-bottom: 1.4rem; }
.hero__lede { font-size: clamp(1.1rem, 1.55vw, 1.28rem); line-height: 1.5; max-width: 34em; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

.hero__dial { margin: 0; }
.dial { display: block; width: 100%; height: auto; overflow: visible; }
.dial__num { font-size: 19px; font-weight: 500; fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.dial__num.is-big { font-size: 26px; font-weight: 800; font-stretch: 125%; }
.dial__hand line { stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; }
.dial__hand circle { fill: var(--red); }
.dial__you, .dial__yout { text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.dial__you { font-size: 19px; fill: var(--muted); stroke-width: 6px; }
.dial__yout { font-size: 46px; font-weight: 300; font-stretch: 112%; fill: var(--ink); stroke-width: 8px; font-variant-numeric: tabular-nums; }
.dial__dot { fill: var(--ink); stroke: #fff; stroke-width: 3.5; }
.dial__lead { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.dial__ltime { font-size: 25px; font-weight: 750; font-stretch: 112%; fill: var(--ink); font-variant-numeric: tabular-nums; }
.dial__lname { font-size: 21px; fill: var(--text); }
.dial__legend { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .15rem 1rem; margin: 1rem 0 0; padding: 0; font-size: .95rem; }
.dial__legend li { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--rule); padding-block: .2rem; }
.dial__legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
@media (min-width: 640px) { .dial__legend { display: none; } }
.hero__dial figcaption { margin-top: 1rem; font-size: .95rem; color: var(--muted); max-width: 40em; }

/* ---------- the nine clocks */
.clocks-sec { background: var(--panel); border-block: 2px solid var(--ink); padding-block: var(--space); }
.sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sec-head > p { max-width: 42em; }
.sorter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.25rem; }
.sorter > span:first-child { font-weight: 600; color: var(--ink); }
.sorter__btns { display: inline-flex; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.sorter button {
  font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-radius: 999px;
  padding: .45rem 1.05rem; cursor: pointer; min-height: 2.5rem;
}
.sorter button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.clocks { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); }
.clock__link { display: flex; flex-direction: column; height: 100%; background: #000; color: #fff; text-decoration: none; }
.clock__link:hover .clock__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.clock__link:focus-visible { outline-offset: 4px; }

/* sky: defaults are a plain midday; the script repaints each one for its local hour */
.sky {
  --sky-top: #4a95d6; --sky-bot: #cbe5f3; --night: 0; --win: rgba(255, 206, 110, .15); --orb-x: 42%; --orb-y: 18%;
  position: relative; overflow: hidden; aspect-ratio: 5 / 3;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot));
}
.stars {
  position: absolute; inset: 0 0 35% 0; opacity: var(--night);
  background-image:
    radial-gradient(1.4px 1.4px at 8% 20%, #fff 60%, transparent 61%), radial-gradient(1.1px 1.1px at 19% 48%, #fff 60%, transparent 61%),
    radial-gradient(1.6px 1.6px at 31% 12%, #fff 60%, transparent 61%), radial-gradient(1.1px 1.1px at 44% 36%, #fff 60%, transparent 61%),
    radial-gradient(1.3px 1.3px at 57% 9%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 66% 52%, #fff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 78% 24%, #fff 60%, transparent 61%), radial-gradient(1.1px 1.1px at 88% 44%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 94% 12%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 51% 60%, #fff 60%, transparent 61%);
}
.orb {
  position: absolute; left: var(--orb-x); top: var(--orb-y); width: 11%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff4cc;
  box-shadow: 0 0 0 .45rem rgba(255, 244, 204, .22), 0 0 2.5rem rgba(255, 232, 160, .55);
}
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sky-top); transform: translate(32%, -14%); opacity: 0; }
.sky[data-orb="moon"] .orb { background: #eceff6; box-shadow: 0 0 1.5rem rgba(236, 239, 246, .35); width: 8%; }
.sky[data-orb="moon"] .orb::after { opacity: 1; }
.land { position: absolute; left: 0; bottom: -1px; width: 100%; height: 80%; overflow: visible; }
.land .win { fill: var(--win); }

@media (max-width: 559px) { .clock .sky { aspect-ratio: 2 / 1; } }
.ground { background: #000; color: #fff; }
.clock .ground { flex: 1; padding: .95rem 1.15rem 1.3rem; }
.clock__time { display: flex; align-items: baseline; gap: .65rem; margin: 0; line-height: 1; }
.clock__time time { font-size: clamp(2.7rem, 4.6vw, 3.4rem); font-weight: 250; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.clock__time time:not([datetime]), .stop__clock time:not([datetime]) { font-size: 1.05rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; }
.clock__day { font-weight: 600; color: #c9ced4; }
.clock__part { margin: .35rem 0 0; color: #fff; font-weight: 600; font-size: .98rem; }
.clock__name { color: #fff; font-size: 1.15rem; margin: .85rem 0 .2rem; }
.clock__place { margin: 0; color: #c9ced4; font-size: .95rem; }

/* ---------- facts */
.facts { padding-block: var(--space) calc(var(--space) * .6); }
.facts__grid { display: grid; gap: 2rem 3.5rem; margin-top: 1.75rem; }
@media (min-width: 760px) { .facts__grid { grid-template-columns: 1fr 1fr; } }
.facts article { border-top: 2px solid var(--ink); padding-top: 1rem; }
.facts h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.facts p { margin: 0; max-width: 36em; }

/* ---------- tools: call window and stop-time planner */
.callwin, .planner {
  display: grid; gap: 1.5rem 3.5rem; margin-block: calc(var(--space) * .6) var(--space);
  padding: clamp(1.25rem, 3.2vw, 2.5rem); background: var(--panel); border: 2px solid var(--ink);
}
@media (min-width: 980px) { .callwin, .planner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.callwin__intro p, .planner__intro p { max-width: 32em; margin: 0; }
.callwin__form, .planner__form { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-content: start; }
.field--wide, .callwin__out, .planner__out, .dayband, .callwin__tz { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .35rem; color: var(--ink); font-weight: 600; font-size: .95rem; }
.field input, .field select {
  width: 100%; min-height: 2.95rem; padding: .55rem .75rem; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 0;
}
.callwin__big, .planner__big { display: block; color: var(--ink); font-size: clamp(2.4rem, 6vw, 3.7rem); font-weight: 250; font-stretch: 112%; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.callwin__text, .planner__text { display: block; margin-top: .65rem; max-width: 40em; }
.callwin__out, .planner__out { border-top: 2px solid var(--ink); padding-top: 1.1rem; margin-top: .25rem; }
.dayband__track {
  position: relative; height: 2.4rem;
  background: linear-gradient(90deg, #1c2a5c 0%, #27366c 18.75%, #ee9f86 25%, #f5d3b3 31.25%, #bfe0f5 41.7%, #cbe5f3 64.6%, #f4b458 72.9%, #dd7557 79.2%, #57408a 85.4%, #1f2a5a 91.7%, #1c2a5c 100%);
}
.dayband__win { position: absolute; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 3px #000; }
.dayband__now { position: absolute; top: -.4rem; bottom: -.4rem; width: 3px; background: var(--red); transform: translateX(-50%); }
.dayband__scale { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.callwin__tz { margin: 0; font-size: .92rem; color: var(--muted); }
.callwin__nojs { grid-column: 1 / -1; margin: 0; }

/* ---------- night band */
.nightband { background: var(--night); color: #dfe3ea; padding-block: var(--space); }
.nightband__in { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .nightband__in { grid-template-columns: 1.25fr 1fr; align-items: end; } }
.nightband h2 { color: #fff; max-width: 17ch; margin: 0; }
.nightband p:last-child { margin: 0; }

/* ---------- FAQ */
.faq { padding-block: var(--space); }
.faq__list { margin-top: 1.5rem; border-bottom: 2px solid var(--ink); max-width: 52rem; }
.faq__item { border-top: 2px solid var(--ink); }
.faq__item summary {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 700; font-stretch: 112%; font-size: 1.12rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { max-width: 44em; margin: 0 0 1.2rem; }

/* ---------- footer */
.foot { background: #000; color: #cfd4da; padding-block: 3rem 1.5rem; font-size: .96rem; }
.foot a { color: #fff; }
.foot h2 { color: #fff; font-size: 1.08rem; font-stretch: 112%; letter-spacing: 0; margin: 0 0 .8rem; }
.foot__in { display: grid; gap: 2.25rem 3.5rem; }
@media (min-width: 900px) { .foot__in { grid-template-columns: 1.5fr 1fr .6fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot__notice p { max-width: 38em; }
.foot__base { margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid #3a3f46; color: #a4abb3; font-size: .9rem; }
.foot__base p { margin: 0; }

/* ---------- hotel pages */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .55rem; margin: 0; padding: .9rem 0; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }

.sky--wide { aspect-ratio: auto; height: clamp(190px, 26vw, 340px); }
.sky--wide .orb { width: auto; height: 20%; }
.sky--wide[data-orb="moon"] .orb { width: auto; height: 15%; }
.sky--wide .land { height: 74%; }
.ground--wide { padding-block: 1.2rem clamp(1.6rem, 3vw, 2.4rem); }
.stop__heroin { display: grid; gap: 1.25rem 2rem; align-items: end; }
@media (min-width: 820px) { .stop__heroin { grid-template-columns: minmax(0, 1fr) auto; } }
.stop__hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.9rem); max-width: 17ch; margin-bottom: .45rem; }
.stop__place { margin: 0; color: #c9ced4; font-size: 1.1rem; }
.stop__clock { display: grid; justify-items: start; margin: 0; line-height: 1; }
@media (min-width: 820px) { .stop__clock { justify-items: end; text-align: right; } }
.stop__cap { color: #c9ced4; font-size: .92rem; margin-bottom: .35rem; }
.stop__clock time { font-size: clamp(3.6rem, 9vw, 6.6rem); font-weight: 200; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stop__meta { margin-top: .5rem; font-weight: 600; color: #fff; }
.stop__meta [data-daylong]:not(:empty)::before { content: ", "; }

.stop__body { display: grid; gap: 2.5rem 4.5rem; padding-block: clamp(2rem, 5vw, 3.5rem) calc(var(--space) * .5); }
@media (min-width: 980px) { .stop__body { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }
.stop__main { max-width: 42rem; }
.stop__stand { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.42; font-weight: 500; margin: 0; }
.stop__main section { margin-top: 2.4rem; }
.stop__main h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.note { background: var(--panel); border-left: 4px solid var(--red); padding: .9rem 1.1rem; }
.around { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.around li { border-left: 3px solid var(--ink); padding-left: 1rem; }
.around h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.around p { margin: 0; }
.ask { margin: 1rem 0 0; padding-left: 1.25rem; }
.ask li { margin-bottom: .45rem; padding-left: .25rem; }
.ask li::marker { color: var(--red); }

.stop__facts { background: var(--panel); border: 2px solid var(--ink); padding: 1.25rem 1.3rem 1.1rem; }
@media (min-width: 980px) { .stop__facts { position: sticky; top: 1rem; } }
.stop__facts h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.stop__facts dl { margin: 0; }
.stop__facts dl > div { border-top: 1px solid var(--rule); padding-block: .6rem; }
.stop__facts dt { color: var(--muted); font-size: .9rem; }
.stop__facts dd { margin: .1rem 0 0; color: var(--ink); font-weight: 600; }
.stop__check { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); }

.steps { display: grid; gap: 1rem; padding-bottom: var(--space); }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { display: grid; gap: .2rem; align-content: start; padding: 1.1rem 1.3rem 1.2rem; background: var(--panel); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.step--next { text-align: right; }
.step > span { color: var(--muted); font-size: .92rem; }
.step b { font-size: 1.22rem; font-stretch: 112%; line-height: 1.25; }
.step small { color: var(--muted); font-size: .92rem; }
a.step:hover b { text-decoration: underline; text-underline-offset: .18em; }
.step--edge { background: transparent; border-style: dashed; }
.step--edge b { font-size: 1.05rem; font-weight: 600; font-stretch: 100%; }

/* ---------- play by the clock */
.play__hero { padding-block: clamp(2.25rem, 6vw, 4.5rem) 0; }
.play__hero h1 { max-width: 15ch; margin-bottom: 1.3rem; }
.habits, .ages, .help { padding-bottom: var(--space); }
.habits ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.habits li { border-top: 2px solid var(--ink); padding-top: .95rem; }
.habits h3 { margin-bottom: .45rem; }
.habits p { margin: 0; }
.ages > p, .help > p { max-width: 44em; }
.table-scroll { overflow-x: auto; background: var(--panel); border: 2px solid var(--ink); margin-top: 1.25rem; }
.ages table { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: 1rem; }
.ages th, .ages td { text-align: left; vertical-align: top; padding: .7rem .95rem; border-bottom: 1px solid var(--rule); }
.ages thead th { background: var(--ink); color: #fff; font-weight: 700; }
.ages tbody th { font-weight: 600; }
.ages tbody tr:last-child > * { border-bottom: 0; }
.help__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.25rem), 1fr)); }
.help__list li { display: grid; gap: .25rem; align-content: start; padding: 1rem 1.1rem 1.1rem; background: var(--panel); border: 2px solid var(--ink); }
.help__where { font-weight: 600; color: var(--ink); }
.help__num { font-size: 1.55rem; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.help__what { color: var(--muted); font-size: .95rem; }

/* ---------- about, 404 */
.about { padding-block: clamp(2.25rem, 6vw, 4.5rem) var(--space); }
.about h1 { margin-bottom: 1.3rem; }
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 2.2rem 0 .6rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.lost { padding-block: clamp(3rem, 10vw, 7rem); }
.lost h1 { max-width: 14ch; margin-bottom: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .top nav, .sorter, .callwin, .planner, .nightband, .skip { display: none !important; }
  body { background: #fff; }
}
