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

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* === Hero with crossfade === */

.hero {
  position: relative;
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
  background: #111;
}

.hero-images {
  position: absolute;
  inset: 0;
}

.hero-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: crossfade var(--total-duration) infinite;
  animation-delay: var(--delay);
}

@keyframes crossfade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  14% { opacity: 1; }
  19% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 8vw 5vh;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  color: #fff;
  z-index: 2;
}

.hero-overlay h1 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-overlay .sub {
  margin-top: 1rem;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* === Content === */

.text-block {
  max-width: 580px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.text-block p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.4rem;
}

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

.text-block .highlight {
  color: #2B5EA7;
  font-weight: 400;
}

.text-block .attribution {
  margin-top: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #aaa;
}

/* === Declarations — color band === */

.declarations {
  background: #2B5EA7;
  color: #fff;
  padding: 4.5rem 2rem;
}

.declarations .inner {
  max-width: 580px;
  margin: 0 auto;
}

.declarations p {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

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

/* === Briefs grid === */

.briefs {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.briefs h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2B5EA7;
  margin-bottom: 1.5rem;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.brief-card {
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border: 1px solid #e8e8e8;
  margin-top: -1px;
  margin-left: -1px;
}

.brief-card:hover { background: #f8f9fb; }

.brief-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #1a1a1a;
}

.brief-card p {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  color: #888;
}

/* === Rule === */

.rule {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 2rem;
}

.rule hr {
  border: 0;
  border-top: 1px solid #e8e8e8;
}

/* === People === */

.people {
  max-width: 580px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.people h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2B5EA7;
  margin-bottom: 2rem;
}

.person {
  margin-bottom: 1.5rem;
}

.person h3 {
  font-size: 0.95rem;
  font-weight: 500;
}

.person .title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #999;
  display: block;
  margin-bottom: 0.2rem;
}

.person p {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.6;
  color: #777;
}

/* === Bottom === */

.bottom {
  max-width: 580px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.bottom p {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.bottom a {
  color: #2B5EA7;
  text-decoration: none;
}

.bottom a:hover { text-decoration: underline; }

.bottom .links {
  display: flex;
  gap: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}

.bottom .links a { color: #999; }
.bottom .links a:hover { color: #1a1a1a; text-decoration: none; }

/* === Footer === */

footer {
  background: #2B5EA7;
  color: rgba(255,255,255,0.8);
  padding: 3rem 2rem;
  font-size: 0.85rem;
  line-height: 1.7;
}

footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

footer h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.6rem;
}

footer p { margin-bottom: 0.3rem; }

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

footer .footer-bottom {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
}

/* === Doc pages === */

.page-doc {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 100vh;
}

.doc-sidebar {
  border-right: 1px solid #eee;
  padding: 2.5rem 1.5rem;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
}

.doc-sidebar .brand a {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.doc-sidebar .brand { margin-bottom: 2rem; }
.doc-sidebar nav { display: flex; flex-direction: column; gap: 0.2rem; }

.doc-sidebar nav a {
  font-size: 0.8rem;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  padding: 0.3rem 0;
}

.doc-sidebar nav a:hover { color: #1a1a1a; }
.doc-sidebar nav a.current { color: #1a1a1a; font-weight: 500; }

.doc-sidebar nav .nav-section {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-top: 1.2rem;
  padding-bottom: 0.2rem;
}

.doc-sidebar nav .nav-section:first-child { margin-top: 0; }

.doc-main { padding: 4rem 4rem 6rem; max-width: 100%; overflow-x: auto; }
.doc-main article { max-width: 650px; }
.doc-main article h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin: 0 0 2rem; letter-spacing: -0.03em; }
.doc-main article h2 { font-size: 1.4rem; font-weight: 600; margin: 2.5rem 0 0.8rem; }
.doc-main article h3 { font-size: 1rem; font-weight: 500; margin: 2rem 0 0.5rem; }
.doc-main article p { font-weight: 400; margin: 0 0 1rem; line-height: 1.75; color: #333; }
.doc-main article a { color: #2B5EA7; text-decoration: none; }
.doc-main article strong { font-weight: 500; color: #1a1a1a; }
.doc-main article em { font-style: italic; }
.doc-main article ul, .doc-main article ol { margin: 0 0 1.2rem 1.4rem; }
.doc-main article li { margin-bottom: 0.4rem; line-height: 1.65; font-weight: 400; color: #333; }
.doc-main article table { border-collapse: collapse; margin: 1.5rem 0; font-size: 0.85rem; min-width: 100%; }
.doc-main article th, .doc-main article td { text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid #eee; }
.doc-main article th { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #999; }
.doc-main article code { font-family: 'IBM Plex Mono', monospace; font-size: 0.85em; background: #f5f5f5; padding: 0.05rem 0.3rem; }
.doc-main article pre { background: #f5f5f5; padding: 1rem; margin: 1.4rem 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; overflow-x: auto; }
.doc-main article pre code { background: none; padding: 0; }
.doc-main article blockquote { border-left: 3px solid #2B5EA7; padding-left: 1.5rem; margin: 1.4rem 0; font-style: italic; color: #777; }
.doc-main article hr { border: 0; border-top: 1px solid #eee; margin: 2rem 0; }

/* === Responsive === */

@media (max-width: 768px) {
  .hero { height: 60vh; min-height: 380px; }
  .hero-overlay { padding: 0 6vw 4vh; }
  .declarations { padding: 3rem 1.5rem; }
  .bottom .links { flex-direction: column; gap: 0.6rem; }
  footer .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  footer .footer-bottom { flex-direction: column; gap: 0.3rem; }
  .page-doc { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #eee; padding: 1.5rem; }
  .doc-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 0.8rem; }
  .doc-main { padding: 2rem 1.5rem 4rem; }
}

@media (max-width: 480px) {
  .hero { height: 50vh; }
  .text-block, .people, .bottom { padding-left: 1.2rem; padding-right: 1.2rem; }
}
