/* Type: Alegreya (display) and IBM Plex Sans (text), self-hosted. */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/alegreya-latin-wght-normal.woff2) format("woff2");
  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; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/alegreya-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Alegreya"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(/fonts/alegreya-latin-wght-italic.woff2) format("woff2");
  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; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(/fonts/alegreya-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
  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; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2");
  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; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Light follows Honolulu's sun: site.js switches between these two themes. */
:root {
  --land: #0c1511; --ink: #dce6df; --muted: #93a69a; --rule: #26362d; --accent: #e7a07a;
  --daystrip: linear-gradient(90deg, #0c1511, #0c1511);
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
:root.day { --land: #e9efea; --ink: #13241c; --muted: #4a5d52; --rule: #c6d3ca; --accent: #8a4a2c; color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--land); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "tnum" 1;
  transition: background-color 0.9s ease, color 0.9s ease;
}
.wrap { padding-inline: clamp(1.25rem, 6vw, 6rem); }

/* The hero is the live sky. Without script it falls back to a fixed dusk. */
.hero {
  position: relative; overflow: hidden;
  height: min(92svh, 1000px); min-height: 520px;
  background: linear-gradient(180deg, #22306a 0%, #8a5a7a 46%, #e07a5a 66%, #0e2c35 72%, #08161c 100%);
  color: #f3f6f3;
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-text { position: absolute; left: 0; right: 0; bottom: clamp(1.4rem, 6svh, 3.75rem); }
.greeting {
  margin: 0 0 0.15em; font: italic 400 clamp(1.35rem, 2.4vw, 2.1rem)/1.15 var(--serif);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.name {
  margin: 0; font: 470 clamp(3rem, 10.5vw, 8.25rem)/0.94 var(--serif);
  letter-spacing: -0.012em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

/* Everything below the hero is quiet: one left-aligned column. */
.land { padding-block: clamp(2.75rem, 7vw, 5rem) 0; }
.land section { max-width: calc(38rem + 2 * clamp(1.25rem, 6vw, 6rem)); }
.land section + section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.land p { margin: 0 0 0.75em; max-width: 38rem; }
.lead { font: 400 clamp(1.45rem, 2.3vw, 1.85rem)/1.3 var(--serif); }
.now, .sky-note { display: none; }
.js .now, .js .sky-note { display: block; }
.sky-note > p { color: var(--muted); }

.scrubber {
  display: grid; grid-template-columns: auto minmax(8rem, 22rem) auto auto;
  align-items: center; gap: 0.6rem 1rem; margin-top: 1.25rem;
}
.scrubber label { font-weight: 500; }
.scrubber output { min-width: 5.5em; color: var(--muted); }
.scrubber button {
  font: 500 0.95rem/1 var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.55rem 0.95rem; cursor: pointer;
}
.scrubber button:hover { border-color: var(--accent); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1.75rem; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 0.4rem; border-radius: 999px; background: var(--daystrip); }
input[type="range"]::-moz-range-track { height: 0.4rem; border-radius: 999px; background: var(--daystrip); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 1.15rem; height: 1.15rem; margin-top: -0.375rem;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--land);
}
input[type="range"]::-moz-range-thumb { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent); border: 2px solid var(--land); }

h2 { margin: 0 0 0.35em; font: 500 clamp(2rem, 3.4vw, 2.6rem)/1.1 var(--serif); }
.status { color: var(--muted); font-weight: 500; }

.foot { padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem; color: var(--muted); font-size: 0.875rem; }
.foot p { margin: 0; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 40rem) {
  .scrubber { grid-template-columns: 1fr auto; }
  .scrubber label { grid-column: 1 / -1; }
  .scrubber input { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* The not-found page */
.missing .land { padding-block: clamp(4rem, 12vw, 8rem); }
.missing h1 { margin: 0 0 0.5em; font-weight: 400; }
