/*
 * The static pages: about, contact, privacy, terms.
 *
 * These are hand-written HTML in `public/`, served by Firebase as real files
 * (see the rewrites in firebase.json). They are the only part of the site that
 * renders with JavaScript switched off, which is the whole point of them —
 * everything else is a React app behind an empty <div id="root">, and a
 * crawler, a link preview, or a reviewer checking that a company exists is not
 * guaranteed to run a bundle.
 *
 * So this file duplicates a little of app.css rather than importing it. That
 * is deliberate: app.css is compiled by Vite with a content hash in its name,
 * and pointing static HTML at a filename that changes on every build is a
 * broken page waiting for the next deploy.
 *
 * Same palette as the app, and no dark mode, for the reason app.css gives:
 * the whole design is a notebook on a desk.
 */

:root {
  --sand: #e7dac2;
  --paper: #fffdf8;
  --ink: #241c14;
  --ink-strong: #14100a;
  --ink-soft: #5c4b39;
  --warm: #6e4a24;
  --gold: #e0a233;
  --line: rgb(36 28 20 / 12%);
  --lift: 0 2px 4px rgb(60 42 20 / 7%), 0 16px 30px -18px rgb(60 42 20 / 45%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ------------------------------------------------------------------ chrome */

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 28px 0;
}

.wordmark {
  font-family: Kalam, 'Segoe Print', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-strong);
  text-decoration: none;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14.5px;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--warm);
  text-decoration: underline;
}

/* -------------------------------------------------------------------- page */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.sheet {
  position: relative;
  overflow: hidden;
  padding: 46px 52px 52px;
  background: var(--paper);
  border-radius: 26px;
  box-shadow: var(--lift);
}

/* The gold margin rule down the left, same as every notebook page in the app. */
.sheet::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 1px;
  background: rgb(224 162 51 / 55%);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0 0 14px;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}

h2 {
  margin: 40px 0 12px;
  font-family: Newsreader, Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  color: var(--ink-strong);
  scroll-margin-top: 24px;
}

h3 {
  margin: 26px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
}

p,
li {
  color: var(--ink);
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 7px;
}

strong {
  font-weight: 600;
  color: var(--ink-strong);
}

hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--line);
}

/* ------------------------------------------------------------------- parts */

.facts {
  display: grid;
  gap: 1px;
  margin: 26px 0 0;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-template-columns: minmax(150px, 1fr) 2fr;
  font-size: 15px;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 13px 18px;
  background: var(--paper);
}

.facts dt {
  font-weight: 600;
  color: var(--ink-soft);
}

.people {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.person {
  padding: 22px 24px;
  background: var(--sand);
  border-radius: 18px;
}

.person h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.person .role {
  margin: 0 0 10px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm);
}

.person p {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.note {
  padding: 18px 22px;
  margin: 24px 0;
  background: rgb(110 74 36 / 8%);
  border-left: 3px solid var(--warm);
  border-radius: 0 14px 14px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.pill {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 8px;
  background: var(--ink-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
}

.pill:hover {
  background: var(--warm);
  color: var(--paper);
}

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

footer.foot {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px 56px;
  font-size: 14px;
  color: var(--ink-soft);
}

footer.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

footer.foot nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

footer.foot nav a:hover {
  color: var(--warm);
  text-decoration: underline;
}

footer.foot .base {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .sheet {
    padding: 32px 26px 38px;
  }

  .sheet::before {
    left: 14px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    padding-bottom: 0;
  }
}
