@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #1a1530;
  --muted: #5a5570;
  --line: #e4e1ee;
  --yellow: #ffcc33;
  --paper: #ffffff;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.14em;
}
a:hover { text-decoration-color: var(--ink); }

a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

p { margin: 0 0 1rem; max-width: 38rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -0.02em; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- site header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 8px;
}
.site-header .logo img { display: block; width: 112px; height: auto; }
.site-header .logo { text-decoration: none; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 28px); font-weight: 600; font-size: 1rem; }
.site-header nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--yellow); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--yellow); }

/* ---- home: hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 6vw, 80px);
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 104px);
}

.hero h1 {
  font-size: clamp(3rem, 9.5vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.hero .lead {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 30rem;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font: 800 1.05rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 14px;
}
.button:hover { background: var(--ink); color: var(--yellow); }

/* the rainbow L from the logo, drawn once */
.big-l {
  width: clamp(120px, 24vw, 330px);
  height: auto;
  display: block;
  margin-right: calc(var(--gutter) * -0.4);
  animation: rise 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ---- sections ---- */
.section {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  /* rule aligned to the text column, not the padded wrapper */
  background: linear-gradient(var(--ink), var(--ink)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 3px no-repeat;
}
.section > h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; margin-bottom: clamp(28px, 4vw, 48px); }

.about-text { font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.5; max-width: 40rem; }
.about-text + p { color: var(--muted); }

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px clamp(24px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.app h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; }
.status {
  display: inline-block;
  margin: 12px 0 0;
  padding: 3px 12px;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.app-body p:last-child { margin-bottom: 0; }
.app-body .fine { color: var(--muted); font-size: 1rem; }

/* ---- legal pages ---- */
.doc { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 80px); }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.doc .meta { color: var(--muted); font-size: 0.95rem; margin: 14px 0 32px; }
.doc h2 { font-size: 1.45rem; line-height: 1.2; margin: 2.4rem 0 0.5rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; max-width: 38rem; }
.doc li { margin: 0.4rem 0; }

/* ---- footer ---- */
.site-footer { margin-top: 24px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 1rem;
  padding-top: 24px; padding-bottom: 40px;
  background: linear-gradient(var(--ink), var(--ink)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 3px no-repeat;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.site-footer p { margin: 0; color: var(--muted); max-width: none; }

/* ---- small screens ---- */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .big-l { order: -1; width: 96px; margin: 0; }
  .app { grid-template-columns: 1fr; }
  .site-header .logo img { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .big-l { animation: none; }
}
