/* The KINN — Member Handbook.
   Same design system as events.thekinn.org / the booking hub:
   cream #f9f4f2 · ink #1a1a1a · Monument Extended display caps ·
   Libre Baskerville italic · Jost body. Fonts self-hosted in assets/fonts/. */

@font-face {
  font-family: 'Monument Extended';
  src: url('/assets/fonts/MonumentExtended-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Monument Extended';
  src: url('/assets/fonts/MonumentExtended-Ultrabold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --cream: #f9f4f2;
  --ink: #1a1a1a;
  --muted: #6b6560;
  --stone: #dcdcd0;
  --deep: #3b5444;
  --card: #ffffff;
  --rule: #e4ded9;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(26,26,26,.06), 0 12px 30px rgba(26,26,26,.05);
  --mono-display: 'Monument Extended', 'Jost', sans-serif;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Jost', -apple-system, system-ui, sans-serif;
  --nav-w: 268px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream);
  padding: 10px 16px; z-index: 100; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---- Shell ---- */
.shell { display: flex; align-items: flex-start; max-width: 1180px; margin: 0 auto; }

/* ---- Sidebar ---- */
.sidenav {
  width: var(--nav-w); flex: 0 0 var(--nav-w);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 40px 26px 32px 24px;
  border-right: 1px solid var(--rule);
}
.sidenav-brand { display: block; text-decoration: none; margin-bottom: 26px; }
.sidenav-brand img { height: 22px; width: auto; display: block; margin-bottom: 10px; }
.sidenav-brand span {
  font-family: var(--mono-display); font-weight: 400; font-size: 10px;
  text-transform: uppercase; letter-spacing: .22em; color: var(--muted);
}
.search input {
  width: 100%; font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 50px;
  padding: 10px 16px; outline: none; -webkit-appearance: none;
}
.search input:focus { border-color: var(--ink); }
.search input::placeholder { color: var(--muted); }

.navlist { list-style: none; counter-reset: nav; margin: 22px 0 0; padding: 0; }
.navlist li { counter-increment: nav; }
.navlist a {
  display: block; text-decoration: none; font-size: 15px; color: var(--muted);
  padding: 7px 0 7px 30px; position: relative; border-left: 2px solid transparent;
  margin-left: -24px; padding-left: 46px; transition: color .15s, border-color .15s;
}
.navlist a::before {
  content: counter(nav, decimal-leading-zero);
  position: absolute; left: 24px; top: 8px;
  font-family: var(--mono-display); font-size: 9px; letter-spacing: .1em; color: var(--stone);
}
.navlist a:hover { color: var(--ink); }
.navlist a.active { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.navlist a.active::before { color: var(--muted); }

.nav-foot { margin-top: 30px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---- Mobile top bar ---- */
.topbar { display: none; }

/* ---- Content ---- */
.content { flex: 1 1 auto; min-width: 0; padding: 0 40px 90px; max-width: 760px; }

.hero { padding: 74px 0 40px; }
.hero h1 {
  font-family: var(--mono-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 6.6vw, 62px); letter-spacing: .03em; line-height: .96; margin: 0;
}
.eyebrow {
  font-family: var(--mono-display); font-weight: 400; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .24em; color: var(--muted); margin: 0 0 14px;
}
.serif-line {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 3.2vw, 22px); line-height: 1.5; color: var(--ink);
}
.hero .serif-line { margin: 18px 0 0; max-width: 30ch; }

h2.display {
  font-family: var(--mono-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 4.4vw, 32px); letter-spacing: .035em; line-height: 1.08; margin: 0 0 16px;
}
.sub-head {
  font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: .01em;
  margin: 38px 0 10px;
}
.micro-head {
  font-family: var(--mono-display); font-weight: 400; font-size: 10px;
  text-transform: uppercase; letter-spacing: .18em; color: var(--muted);
  margin: 22px 0 8px;
}
.lede { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 56ch; }
p { margin: 0 0 14px; max-width: 66ch; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--stone); color: var(--ink); padding: 2px 7px; border-radius: 5px;
}

/* ---- Quick answer cards ---- */
.quick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 0 0 26px;
}
.qcard {
  background: var(--card); border-radius: var(--radius); padding: 18px 20px 16px;
  box-shadow: var(--shadow);
}
.qlabel {
  font-family: var(--mono-display); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--muted); margin: 0 0 8px;
}
.qvalue { font-size: 19px; font-weight: 500; margin: 0 0 6px; line-height: 1.25; }
.qnote { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---- Sections ---- */
.sec { padding: 46px 0 8px; border-top: 1px solid var(--rule); margin-top: 40px; scroll-margin-top: 24px; }

/* ---- Numbered getting-started steps ---- */
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 22px 46px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 3px;
  font-family: var(--mono-display); font-size: 11px; letter-spacing: .06em; color: var(--muted);
}
.steps h3 { font-size: 17px; font-weight: 600; margin: 0 0 5px; line-height: 1.4; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.numbered { margin: 0 0 14px; padding-left: 22px; }
.numbered li { margin-bottom: 7px; }
.kit { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
.kit li { margin-bottom: 4px; }

/* ---- We believe ---- */
.believe {
  background: var(--ink); color: var(--cream); border-radius: var(--radius);
  padding: 34px 32px 28px; margin: 8px 0 0;
}
.believe-label {
  font-family: var(--mono-display); font-size: 10px; text-transform: uppercase;
  letter-spacing: .24em; color: var(--stone); margin: 0 0 16px;
}
.believe .serif-line { color: var(--cream); margin: 0 0 14px; max-width: 46ch; }
.believe .serif-line:last-child { margin-bottom: 0; }

.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.key {
  background: var(--card); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: baseline;
}
.key-num { font-family: var(--mono-display); font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.key p { margin: 0; font-size: 16.5px; font-weight: 500; }

/* ---- Tables ---- */
.tbl {
  width: 100%; border-collapse: collapse; margin: 6px 0 18px;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); font-size: 15.5px;
}
.tbl th, .tbl td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--rule); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th {
  font-family: var(--mono-display); font-weight: 400; font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
}
.tbl tbody th { font-weight: 500; }

/* ---- Note / callout ---- */
.note {
  border-left: 2px solid var(--deep); padding: 4px 0 4px 18px; margin: 16px 0 18px;
}
.note p { color: var(--muted); font-size: 15.5px; margin: 0 0 8px; }
.note p:last-child { margin-bottom: 0; }

/* ---- Panels ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0 18px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 18px 22px 20px; box-shadow: var(--shadow); }
.panel .micro-head { margin-top: 0; }
.panel ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--muted); }
.panel li { margin-bottom: 6px; }
.panel li:last-child { margin-bottom: 0; }

/* ---- Details ---- */
.drop {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 4px 22px; margin: 0 0 10px;
}
.drop summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-weight: 500; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: '+'; font-size: 20px; color: var(--muted); line-height: 1; }
.drop[open] summary::after { content: '–'; }
.drop[open] summary { border-bottom: 1px solid var(--rule); }
.drop .numbered { margin: 16px 0 18px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500;
  font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); background: transparent; border: 2px solid var(--ink);
  border-radius: 50px; padding: 12px 26px 11px; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.solid { background: var(--ink); color: var(--cream); }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* ---- Search states ---- */
.noresults { margin: 40px 0; color: var(--muted); }
body.searching .sec { border-top: 0; margin-top: 0; padding-top: 30px; }
body.searching .hero { padding-bottom: 12px; }

/* ---- Footer ---- */
.foot {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted);
}
.foot-logo { height: 18px; width: auto; display: block; margin-bottom: 14px; opacity: .55; }
.foot p { margin: 0 0 5px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 20;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: 12px 20px;
  }
  .topbar-logo { height: 18px; width: auto; }
  .topbar-title {
    font-family: var(--mono-display); font-size: 9.5px; text-transform: uppercase;
    letter-spacing: .2em; color: var(--muted);
  }
  .topbar-toggle {
    margin-left: auto; font-family: var(--sans); font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
    background: transparent; border: 1.5px solid var(--ink); border-radius: 50px;
    padding: 7px 16px; cursor: pointer;
  }
  .shell { display: block; }
  .sidenav {
    display: none; width: auto; position: static; height: auto;
    border-right: 0; border-bottom: 1px solid var(--rule);
    padding: 18px 20px 24px;
  }
  .sidenav.open { display: block; }
  .sidenav-brand { display: none; }
  .navlist a { margin-left: 0; padding-left: 30px; }
  .navlist a::before { left: 0; }
  .navlist a.active { border-left-color: transparent; }
  .content { padding: 0 20px 70px; max-width: none; }
  .hero { padding: 42px 0 32px; }
  .sec { padding-top: 38px; margin-top: 30px; scroll-margin-top: 60px; }
}

@media (max-width: 620px) {
  .quick, .keys, .grid-2 { grid-template-columns: 1fr; }
  .believe { padding: 26px 22px 22px; }
  .tbl { font-size: 14.5px; }
  .tbl th, .tbl td { padding: 11px 14px; }
}
