@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #15171e;
  --muted: #5b6170;
  --line: #dde0e6;
  --am: #ffc94a;
  --am-ink: #4a3500;
  --pm: #1fa39a;
  --pm-ink: #ffffff;
  --nt: #3b3486;
  --nt-ink: #ffffff;
  --off: #eceef2;
  --link: #3b3486;
  --button: #15171e;
  --button-ink: #ffffff;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1116;
    --surface: #171a21;
    --ink: #eceef3;
    --muted: #9ba1ad;
    --line: #272b35;
    --am: #f2bb3a;
    --pm: #23a99f;
    --nt: #6a62d9;
    --off: #1f232c;
    --link: #a9a2ff;
    --button: #eceef3;
    --button-ink: #15171e;
  }
}

:root[data-theme="dark"] {
  --paper: #0f1116;
  --surface: #171a21;
  --ink: #eceef3;
  --muted: #9ba1ad;
  --line: #272b35;
  --am: #f2bb3a;
  --pm: #23a99f;
  --nt: #6a62d9;
  --off: #1f232c;
  --link: #a9a2ff;
  --button: #eceef3;
  --button-ink: #15171e;
  }

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
}

img {
  display: block;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

/* Top bar */

.topbar {
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  background: var(--surface);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  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;
  }
}

.topbar-link {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.topbar-link:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 760;
  max-width: 22ch;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  opacity: 0.88;
}

.text-link {
  font-weight: 600;
}

/* Roster illustration: the one loud element */

.roster {
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.roster-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0 0.125rem 1rem;
}

.roster-title {
  font-weight: 700;
}

.roster-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.roster-grid {
  display: grid;
  grid-template-columns: 8rem repeat(7, minmax(0, 1fr));
  gap: 0.375rem;
  font-size: 0.75rem;
}

.day {
  color: var(--muted);
  text-align: center;
  padding-bottom: 0.25rem;
  font-weight: 600;
}

.site {
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 3.25rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  line-height: 1.2;
  transform-origin: left center;
}

.shift b {
  font-weight: 650;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift small {
  font-size: 0.6875rem;
  opacity: 0.8;
}

.shift.am {
  background: var(--am);
  color: var(--am-ink);
}

.shift.pm {
  background: var(--pm);
  color: var(--pm-ink);
}

.shift.nt {
  background: var(--nt);
  color: var(--nt-ink);
}

.shift.off {
  background: repeating-linear-gradient(135deg, var(--off) 0 6px, transparent 6px 12px);
  border: 1px dashed var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .shift:not(.off) {
    animation: place 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms + 200ms);
  }
}

.shift.i1 { --i: 1; }
.shift.i2 { --i: 2; }
.shift.i3 { --i: 3; }
.shift.i4 { --i: 4; }
.shift.i5 { --i: 5; }
.shift.i6 { --i: 6; }
.shift.i7 { --i: 7; }
.shift.i8 { --i: 8; }
.shift.i9 { --i: 9; }
.shift.i10 { --i: 10; }

@keyframes place {
  from {
    opacity: 0;
    transform: scaleX(0.2);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  padding: 0.875rem 0.125rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
}

.swatch.am { background: var(--am); }
.swatch.pm { background: var(--pm); }
.swatch.nt { background: var(--nt); }

/* Product */

.product {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.product-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.product-intro h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.product-text p {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.product-text p:last-child {
  margin: 1.5rem 0 0;
}

/* Company details */

.company {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.company h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.company-note {
  margin: 1rem 0 0;
  max-width: 24rem;
  color: var(--muted);
}

.details {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 1.5rem;
}

.details > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.details > div:first-child {
  border-top: 0;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: break-word;
}

.nowrap {
  white-space: nowrap;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.footer p {
  margin: 0;
}

/* Smaller screens */

@media (max-width: 60rem) {
  .hero-grid,
  .product-grid,
  .company-grid {
    grid-template-columns: minmax(0, 1fr);
  }


}

@media (max-width: 40rem) {
  .roster {
    padding: 1rem 0.875rem 0.875rem;
  }

  .roster-grid {
    grid-template-columns: 4rem repeat(4, minmax(0, 1fr));
    gap: 0.3125rem;
  }

  .site {
    white-space: normal;
    font-size: 0.75rem;
    line-height: 1.2;
    padding-right: 0.25rem;
  }

  .shift b {
    font-size: 0.75rem;
    text-overflow: clip;
  }

  .roster-grid .d5,
  .roster-grid .d6,
  .roster-grid .d7 {
    display: none;
  }

  .shift {
    height: 3rem;
    padding: 0 0.3125rem;
  }

  .details {
    padding: 0.25rem 1.125rem;
  }

  .details > div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.25rem;
  }
}
