:root {
  --paper: #f6f1ea;
  --card: #fffdfb;
  --ink: #2a2118;
  --muted: #5c5148;
  --line: #e6d9cc;
  --accent: #b24a1c;
  --accent-ink: #8a3b16;
  --accent-soft: #f8e6d8;
  --shadow: 0 18px 40px rgba(74, 46, 24, 0.1);
  --serif: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% -8%, #f6ddc8 0%, transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}

body.modal-open { overflow: hidden; }

button, input { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3, .brand, .floatcard h3, .chip-title {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.15;
}

h3 {
  font-size: 26px;
  line-height: 1.25;
}

::selection { background: #f3d2bb; }

:focus-visible {
  outline: 3px solid #e39a6d;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.kicker {
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
}

.nav {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  text-decoration: none;
  color: var(--ink);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  flex: none;
}

.logo svg { width: 18px; height: 18px; display: block; }

.navlinks {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.navlinks a {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.navlinks a:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.narrow { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #9a3e16; }
.btn:hover { background: #231c15; }
.btn.secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.secondary:hover { background: #fff7f0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 28px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 17px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(46px, 4.2vw, 60px);
  margin: 20px 0 16px;
}

.hero h1 span { color: var(--accent); }

.lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}

.search {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  align-items: stretch;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.search-field:focus-within {
  border-color: #e0a57a;
  box-shadow: 0 0 0 4px rgba(178, 74, 28, 0.15);
}

.search-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 18px;
}

.search-field input:focus-visible { outline: none; }

.search-field input::placeholder { color: #7d6f64; opacity: 1; }

.stack {
  position: relative;
  width: min(100%, 460px);
  height: 320px;
  margin-left: auto;
}

.floatcard {
  position: absolute;
  width: 230px;
  padding: 20px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.floatcard .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 12px;
  font-size: 21px;
}
.floatcard .kicker { font-size: 14px; }
.floatcard h3 {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}
.floatcard p:not(.kicker) { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.floatcard .status { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }

.club {
  left: 0;
  top: 0;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  transform: rotate(-4deg);
}

.team {
  right: 0;
  top: 60px;
  z-index: 2;
  background: var(--ink);
  color: #fffaf5;
  transform: rotate(5deg);
}

.team .kicker,
.team h3,
.team p,
.team .status { color: #f6efe8; }
.team .icon { background: #4a3f35; }

.project-chip {
  position: absolute;
  left: 90px;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  background: var(--accent);
  color: white;
  padding: 15px;
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.chip-mark {
  font-size: 18px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.chip-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  color: white;
}
.chip-sub { margin-top: 2px; font-size: 14px; color: #fde7da; }

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.clay { background: #f3e2d4; }
.sage { background: #e5efe6; }
.honey { background: #f8ebcf; }
.rose { background: #f8e1dc; }
.lilac { background: #f0e6f4; }

.discover {
  background: #fffaf5;
  border-block: 1px solid var(--line);
  padding: 72px 0;
  scroll-margin-top: 96px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.section-head h2 {
  margin-top: 8px;
  max-width: 9.5em;
  flex: 1 1 240px;
}

.section-intro h2 { margin-top: 8px; max-width: 14em; }

.tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 100%;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.tabs button:hover { background: #f3ebe3; color: var(--ink); }
.tabs button.active { background: var(--ink); color: white; }

.grid,
.define-grid {
  display: grid;
  gap: 18px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 28px;
}

.define-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.item,
.definition {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--card);
}

.item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.type {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.kind {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-ink);
}

.badge {
  font-size: 17px;
  color: var(--muted);
  text-align: right;
}

.item h3 { margin-top: 8px; font-size: 26px; }

.item > p:not(.meta),
.definition p {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.item .meta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.empty {
  margin-top: 18px;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: var(--card);
}

.definitions { padding: 80px 0 36px; }
.section-intro { margin-bottom: 28px; }
.definition h3 { margin-top: 16px; }

.cta {
  margin-top: 56px;
  background: var(--accent);
  color: white;
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.cta .kicker { color: #fde7da; }
.cta h2 { font-size: clamp(36px, 4vw, 46px); max-width: 11em; margin-top: 8px; }
.cta .lead { color: #fff4ec; font-size: 19px; margin-top: 14px; }

.start {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
}

.start-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.start-head span { color: var(--accent); font-size: 22px; }
.start h3 { margin-top: 8px; font-size: 30px; }
.start > p { margin-top: 8px; color: var(--muted); font-size: 17px; line-height: 1.5; }

.start-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.start-buttons .btn {
  min-height: 0;
  padding: 10px 4px;
  border-radius: 13px;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 17px;
}

.missing { padding: 72px 0 120px; max-width: 40rem; }
.missing h1 { margin: 12px 0 16px; }
.missing .lead { margin-bottom: 28px; }

.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(42, 33, 24, 0.46);
}

.modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  background: var(--paper);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(42, 33, 24, 0.28);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal h2 { font-size: 36px; margin-top: 6px; }

.close {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #efe6dc;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.choices { display: grid; gap: 10px; margin-top: 22px; }

.choice {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
}

.choice:hover { border-color: #e0b89a; background: #fffaf6; }
.choice.chosen { border-color: var(--accent); background: var(--accent-soft); }
.choice b { display: block; font-size: 18px; font-weight: 700; }
.choice span { display: block; margin-top: 4px; color: var(--muted); font-size: 17px; line-height: 1.45; }

.choice-note,
.modal-foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .navlinks {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px; border-radius: 12px; font-size: 18px; }
  .navlinks a:hover { background: var(--paper); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .stack { height: 320px; max-width: 460px; margin-inline: auto; }
  .section-head { flex-direction: column; align-items: stretch; }
  .section-head h2 { max-width: none; }
  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }
  .cta { grid-template-columns: 1fr; padding: 28px 22px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .stack { height: auto; max-width: none; display: grid; gap: 14px; }
  .floatcard, .project-chip { position: static; width: auto; max-width: none; transform: none; }
  .brand { font-size: 22px; }
  .logo { width: 36px; height: 36px; }
  .nav-cta { padding-inline: 12px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 19px; }
  .grid, .define-grid { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .wide { display: none; }
  .narrow { display: inline; }
  .cta h2, .start h3, .modal h2 { font-size: 32px; }
}

@media (max-width: 520px) {
  .start-buttons { grid-template-columns: 1fr; }
  .start-buttons .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .item { transition: none; }
  .item:hover { transform: none; }
}
