@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #000000;
  --rule: #d8d8d8;
  --mute: #5a5a5a;
  --gap: 2rem;
  --pad: clamp(1rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Space Grotesk", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Archivo", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.032em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

article[id] {
  scroll-margin-top: 6rem;
}

/* ---------- header ---------- */

.top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand .mark {
  display: block;
  width: 13px;
  height: 13px;
  background: var(--ink);
}

.brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.pills {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.2rem 0;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pills a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.42rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.pills a:hover,
.pills a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- sticky index bar ---------- */

.stickybar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--pad);
}

.stickybar nav {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.stickybar nav::-webkit-scrollbar {
  display: none;
}

.stickybar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.22s ease;
}

.stickybar a:hover,
.stickybar a:focus-visible {
  border-bottom-color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gap);
  min-height: 70vh;
  padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.ghost {
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: -0.24em;
  z-index: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 19vw, 15rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.065;
  pointer-events: none;
  user-select: none;
}

.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-media:empty {
  min-height: 240px;
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    135deg,
    var(--ink) 0,
    var(--ink) 1px,
    transparent 1px,
    transparent 12px
  );
}

.hero-img {
  width: 100%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.hero-text h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.9rem);
  max-width: 18ch;
}

.lede {
  margin: 0;
  max-width: 42ch;
  font-size: 1rem;
  color: #333333;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.hero-text > * {
  animation: rise 0.5s ease both;
}

.hero-text > *:nth-child(2) {
  animation-delay: 0.07s;
}

.hero-text > *:nth-child(3) {
  animation-delay: 0.14s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- body grid ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  align-items: start;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) 4rem;
}

.content {
  min-width: 0;
}

.content article {
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.content article:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.content h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin-bottom: 0.9rem;
}

.content h3 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.6rem;
}

.content p {
  max-width: 68ch;
}

.content ul,
.content ol {
  padding-left: 1.15rem;
  max-width: 68ch;
}

.content li {
  margin: 0.4rem 0;
}

.content a {
  text-underline-offset: 3px;
}

.content img {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
}

.content blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--ink);
  font-size: 1.04rem;
}

.content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content th,
.content td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.content strong {
  font-weight: 600;
}

small.eyebrow,
.content small {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mute);
  margin-bottom: 0.55rem;
}

/* ---------- aside ---------- */

.side {
  position: sticky;
  top: 4.25rem;
  align-self: start;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.side-title {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.94rem;
  text-decoration: none;
  transition: padding-left 0.22s ease;
}

.side-list a:hover,
.side-list a:focus-visible {
  padding-left: 0.4rem;
  text-decoration: underline;
}

/* ---------- footer ---------- */

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

footer article {
  padding: clamp(2.25rem, 6vw, 4.5rem) var(--pad);
  border-bottom: 1px solid var(--line);
}

.foot-cta {
  text-align: center;
}

.foot-cta small.eyebrow {
  text-align: center;
}

.foot-cta h2 {
  font-size: clamp(1.9rem, 8.6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.foot-cta .cta {
  margin-top: 1.75rem;
}

.foot-map dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.15rem 1.5rem;
  margin: 0;
}

.foot-map dt {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.foot-map dd {
  margin: 0;
}

.foot-map a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.22s ease;
}

.foot-map a:hover,
.foot-map a:focus-visible {
  border-bottom-color: var(--ink);
  text-decoration: underline;
}

.foot-base {
  text-align: center;
}

.foot-base p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mute);
}

.foot-base .copy {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.foot-note {
  margin-top: 0.35rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    margin-top: 2.5rem;
    padding-left: 0;
    padding-top: 1.75rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .top {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    padding-block: 0.9rem;
  }

  .pills {
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1.75rem;
    padding-block: 1.75rem 2.5rem;
  }

  .hero-media {
    order: 2;
  }

  .hero-text {
    align-items: flex-start;
    text-align: left;
  }

  .hero-text h1 {
    max-width: 22ch;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
