@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #5c534c;
  --brass: #8a5a1e;
  --brass-soft: #f4e7d3;
  --border: #e7dfd4;
  --code-bg: #f3eee7;
  --band-bg: #231c17;
  --band-text: #f3ede6;
  --band-muted: #c9bdb1;
  --band-border: #3d342d;
  --band-code: #1a1511;
  --band-accent: #e3ae63;
  --band-string: #b8c98f;
  --wide: 1040px;
  --narrow: 760px;
  --display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #211d1a;
    --text: #f3ede6;
    --muted: #b9afa6;
    --brass: #d9a45c;
    --brass-soft: #3a2c1b;
    --border: #3a332d;
    --code-bg: #1c1916;
    --band-bg: #211d1a;
    --band-border: #3a332d;
    --band-code: #171412;
  }
  .logo {
    background: #fbf8f3;
    border-radius: 12px;
    padding: 6px 10px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px / 1.6 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brass);
  text-underline-offset: 0.18em;
}

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

main,
header,
footer {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: block;
  height: 52px;
  width: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-weight: 500;
}

nav a {
  color: var(--text);
  text-decoration: none;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 18px 0 20px;
  max-width: 14em;
}

h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 24px 0 6px;
}

main p {
  max-width: 40em;
}

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

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--muted);
  background: var(--surface);
}

ul {
  padding-left: 1.2em;
}

li {
  margin: 4px 0;
}

.nowrap {
  white-space: nowrap;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  overflow-x: auto;
  line-height: 1.6;
}

pre code {
  font-size: 0.8rem;
  overflow-wrap: normal;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  margin-right: 16px;
}

/* Homepage layout */

.home header,
.home footer {
  max-width: var(--wide);
}

.home main {
  max-width: none;
  padding: 0;
}

.hero,
.section,
.band-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}

.hero .tag {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 0;
}

.button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 20px;
  line-height: 1.2;
}

.button:hover {
  background: var(--brass);
  color: #fff;
}

.quiet {
  color: var(--text);
  font-weight: 500;
}

.quiet:hover {
  color: var(--brass);
}

.slot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow:
    0 1px 2px rgb(31 26 23 / 0.05),
    0 12px 32px -12px rgb(31 26 23 / 0.18);
}

.slot-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.slot-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
}

.slot-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.slot-day {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slot {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.slot-held {
  grid-column: 1 / -1;
  background: var(--brass-soft);
  border-color: var(--brass);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.slot-held small {
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 600;
}

.slot-foot {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.section {
  padding-top: 72px;
  padding-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.two-col p {
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
}

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

.band {
  background: var(--band-bg);
  color: var(--band-text);
  margin-top: 80px;
}

.band-inner {
  padding-top: 72px;
  padding-bottom: 64px;
}

.band h2 {
  color: var(--band-text);
}

.band-lead {
  color: var(--band-muted);
  font-size: 1.1rem;
}

.band p {
  color: var(--band-muted);
}

.band code {
  color: var(--band-text);
}

.band pre {
  background: var(--band-code);
  border-color: var(--band-border);
  color: var(--band-text);
}

.band pre .m {
  color: var(--band-accent);
  font-weight: 600;
}

.band pre .s {
  color: var(--band-string);
}

.band + .section {
  padding-top: 80px;
}

.contact {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 24px;
}

.home footer {
  margin-top: 64px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .two-col,
  .cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 56px;
  }

  .band {
    margin-top: 64px;
  }

  .band-inner {
    padding-top: 56px;
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 4px 18px;
  }

  nav a {
    white-space: nowrap;
  }

  /* The footer has the privacy link, so the phone menu keeps three items on one line. */
  .nav-privacy {
    display: none;
  }
}
