:root {
  --bg: #080c10;
  --bg-raise: #10161c;
  --ink: #e6eef2;
  --muted: #a9bac3;
  --faint: #7e919b;
  --line: rgba(215, 230, 238, 0.14);
  --ice: #d7e6ee;
  --cyan: #8ec9d6;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 40rem;
  --page: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(880px 380px at 8% -12%, rgba(142, 201, 214, 0.1), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color-scheme: dark;
}

::selection {
  background: #1a4652;
  color: #f4f8fa;
}

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

a:hover { color: var(--cyan); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ice);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin: 0 auto;
}

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

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.mark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.mark-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.mark-tld {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { color: var(--ink); }

main { padding-bottom: 5rem; }

.kicker {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: var(--measure);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 300;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(16, 22, 28, 0.65);
}

.actions a:hover {
  border-color: rgba(142, 201, 214, 0.55);
  color: var(--cyan);
}

.actions a.primary {
  background: var(--ice);
  color: #0b1216;
  border-color: var(--ice);
}

.actions a.primary:hover {
  background: white;
  color: #0b1216;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.7fr);
  gap: 3.5rem 4rem;
  align-items: end;
  padding: 5.25rem 0 4.25rem;
}

.facts {
  margin: 0;
  padding: 0.2rem 0 0.35rem;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

.facts dd {
  margin: 0;
  font-size: 0.98rem;
}

.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }

section {
  padding: 3.75rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head .kicker { margin-bottom: 0.7rem; }

.deck {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-weight: 300;
}

.work {
  max-width: 44rem;
}

.work .kicker { margin-bottom: 1rem; }

.work p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.125rem;
}

.work p:last-of-type { margin-bottom: 0; }

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.index a {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.index a:hover .index-name { color: var(--cyan); }

.index-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.index-desc { color: var(--muted); }

.index-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-align: right;
}

.reservation {
  max-width: 40rem;
}

.reservation p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 300;
}

.reservation p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.4rem 0 2rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.missing {
  padding: 5.5rem 0 6rem;
}

.missing h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

@media (max-width: 860px) {
  .bar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 0;
  }

  nav { justify-content: flex-start; }

  .hero,
  .index a {
    grid-template-columns: 1fr;
  }

  .index-meta { text-align: left; }

  .facts div { grid-template-columns: 7.25rem minmax(0, 1fr); }

  .hero { padding-top: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
