/* Outfit (variable, latin subset), self-hosted. Licence: /assets/fonts/OFL.c676351b.txt */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.6c18d579.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;
}

:root {
  /* Brand */
  --navy: #1B365D;        /* primary */
  --teal: #0F7C7A;        /* accent */
  /* Neutrals */
  --background: #F6F7F9;
  --surface: #FFFFFF;
  --foreground: #1A2230;
  --muted: #5B6575;
  --border: #DDE2E8;
  --slot: #EDF0F4;

  --brand: var(--navy);
  --accent: var(--teal);
  --accent-soft: #E3F1F0;
  --booked: var(--navy);
  --booked-alt: #8FA3BF;

  --radius: 12px;
  --font-heading: "Outfit", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* Dark palette: follows the system unless the visitor has picked light,
   and always applies when they've picked dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0E1622;
    --surface: #16212F;
    --foreground: #E7ECF2;
    --muted: #9AA6B6;
    --border: #263345;
    --slot: #1E2B3C;

    --brand: #CFDCEC;
    --accent: #3FB8B4;
    --accent-soft: #123334;
    --booked: #5C82B5;
    --booked-alt: #34506F;

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #0E1622;
  --surface: #16212F;
  --foreground: #E7ECF2;
  --muted: #9AA6B6;
  --border: #263345;
  --slot: #1E2B3C;

  --brand: #CFDCEC;
  --accent: #3FB8B4;
  --accent-soft: #123334;
  --booked: #5C82B5;
  --booked-alt: #34506F;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

a { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo svg { width: 1.75rem; height: 1.75rem; flex: none; }
.logo .tld { color: var(--accent); font-weight: 400; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle: shows the moon in light mode, the sun in dark mode */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}
@media (min-width: 640px) {
  .theme-toggle { width: 2.25rem; height: 2.25rem; }
}
.theme-toggle:hover { background: var(--slot); color: var(--foreground); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle svg { width: 1.125rem; height: 1.125rem; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Small phones: tighten the header so logo, toggle and badge fit on one line */
@media (max-width: 420px) {
  .logo { gap: 0.5rem; font-size: 1.25rem; }
  .logo svg { width: 1.5rem; height: 1.5rem; }
  .header-actions { gap: 0.5rem; }
  .theme-toggle { width: 2.5rem; height: 2.5rem; }
  .status { padding: 0.25rem 0.625rem; letter-spacing: 0.02em; }
  .status::before { display: none; }
}
@media (max-width: 359px) {
  .logo { font-size: 1.125rem; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

/* Hero */
main { flex: 1; }
.hero { padding: 3rem 0 4rem; }
@media (min-width: 1024px) { .hero { padding: 6rem 0; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--brand);
  text-wrap: balance;
}
h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* Button */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 8px;
  background: var(--brand);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}
.button:hover { opacity: 0.9; }
.button:active { transform: scale(0.98); }
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.cta-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Schedule illustration */
.schedule {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.schedule-head strong { color: var(--foreground); font-weight: 600; }
.schedule-head span { color: var(--muted); }

.rows { display: grid; gap: 0.5rem; }
.row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
}
.room {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row.highlight .room { color: var(--accent); font-weight: 600; }
.track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  height: 2rem;
}
.track i {
  border-radius: 4px;
  background: var(--slot);
}
.track i.b { background: var(--booked); }
.track i.c { background: var(--booked-alt); }
.track i.a { background: var(--accent); }

/* A track with nothing in it, not even empty slots */
.track.void {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--muted);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
/* A track you're not allowed to see */
.track.locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 4px;
  background: var(--slot);
  font-size: 0.75rem;
  color: var(--muted);
}
.track.locked .icon-lock {
  width: 0.875rem;
  height: 0.875rem;
  background: currentColor;
  -webkit-mask: url("/assets/img/icon-lock.f0989d80.svg") center / contain no-repeat;
  mask: url("/assets/img/icon-lock.f0989d80.svg") center / contain no-repeat;
}

.times {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.times div {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.schedule-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 420px) {
  .row, .times { grid-template-columns: 5.5rem 1fr; }
}

/* Focus section */
.focus {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
@media (min-width: 1024px) { .focus { padding: 5rem 0; } }
.focus h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.focus-intro {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}
.focus-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .focus-list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.focus-list li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}
.focus-list h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.focus-list p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.focus + .site-footer, main:has(.focus:last-child) + .site-footer { border-top: 0; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
