@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/eb-garamond.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: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono.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 {
  --bg: #f4f1ea;
  --ink: #1a1a1a;
  --muted: #6b6761;
  --rule: #d9d4ca;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0c;
    --ink: #ece7dc;
    --muted: #8a857c;
    --rule: #2a2926;
  }
}

:root[data-theme="light"] {
  --bg: #f4f1ea;
  --ink: #1a1a1a;
  --muted: #6b6761;
  --rule: #d9d4ca;
}

:root[data-theme="dark"] {
  --bg: #0e0e0c;
  --ink: #ece7dc;
  --muted: #8a857c;
  --rule: #2a2926;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 3rem);
}

main.fullpage {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}

main.longpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);
}

body:has(main.fullpage) { overflow: hidden; }

.topbar, .footbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--muted);
}

.topbar .mark {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.topbar .mark:hover { opacity: 0.6; }
.topbar .mark:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.topbar nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hero {
  align-self: center;
  justify-self: start;
  max-width: 44ch;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin: 0;
  max-width: 28ch;
}

.footbar .coord {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .hero { max-width: 100%; }
  .footbar .coord { display: none; }
}

/* careers page */

.page-careers #bg {
  position: absolute;
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 62vh;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 39%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 39%, transparent 100%);
}

.careers-hero {
  margin-top: clamp(1rem, 4vw, 3rem);
  max-width: 60ch;
}
.careers-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.careers-hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin: 0;
}
.careers-hero .tagline + .tagline {
  margin-top: 0.35rem;
}
.careers-hero a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 160ms ease, color 160ms ease;
}
.careers-hero a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.roles {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4.5vw, 3.5rem);
}

.role {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.role h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.role-grid h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.role-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.role-grid li {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.5;
  color: var(--ink);
  padding: 0.15rem 0;
}
.role-grid li + li { margin-top: 0.15rem; }
.role-grid li::before {
  content: "— ";
  color: var(--muted);
}

@media (max-width: 720px) {
  .role-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
