:root {
  --bg: #f3efe6;
  --fg: #1c1915;
  --card: #faf7f1;
  --muted-bg: #ebe6db;
  --muted: #6b645a;
  --subtle: #8a8378;
  --border: #d4cdc0;
  --accent: #3f4f46;
  --shadow: 0 0 0 1px rgb(28 25 21 / 0.08), 0 1px 2px -1px rgb(28 25 21 / 0.06);
  --shadow-hover: 0 0 0 1px rgb(28 25 21 / 0.14), 0 1px 2px -1px rgb(28 25 21 / 0.08);
  --display: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 400;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.5rem; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 1.5rem; }
.narrow { max-width: 36rem; }
.prose { max-width: 48rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.125rem; line-height: 1.7; color: var(--muted); }
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-intro { max-width: 40rem; margin-bottom: 3.5rem; }
.page-intro h1 { margin-top: 0.75rem; }
.page-intro .lede { margin-top: 1.25rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); }
.mark { width: 2rem; height: 2rem; flex-shrink: 0; }
.logo-lockup { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--display); font-size: 1.125rem; letter-spacing: -0.03em; }
.logo-inc { margin-top: 0.2rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav-desktop { display: none; gap: 0.25rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.menu-toggle {
  width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-icon {
  width: 18px; height: 2px; background: currentColor; position: relative;
}
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-icon[data-close] { background: transparent; }
.menu-icon[data-close]::before { top: 0; transform: rotate(45deg); }
.menu-icon[data-close]::after { top: 0; transform: rotate(-45deg); }
.nav-mobile { border-top: 1px solid var(--border); background: var(--bg); }
.nav-mobile-inner { max-width: 72rem; margin: 0 auto; padding: 0.75rem 1.5rem 1.25rem; display: flex; flex-direction: column; }
.nav-mobile-link {
  display: flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500;
}
.nav-mobile-cta { margin-top: 0.5rem; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.25rem;
  font: 500 0.875rem var(--sans);
  text-decoration: none; border-radius: 8px; border: 0;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--fg) 90%, white); }
.btn-secondary { background: transparent; color: var(--fg); box-shadow: var(--shadow); }
.btn-secondary:hover { box-shadow: var(--shadow-hover); }
.actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; }

.hero { border-bottom: 1px solid var(--border); }
.hero .wrap { padding: 4rem 1.5rem; }
.hero h1 { margin-top: 1.25rem; }
.hero .lede { margin-top: 1.5rem; }
.band-card { background: color-mix(in srgb, var(--card) 60%, transparent); border-block: 1px solid var(--border); }
.grid-2 { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--card); border-radius: 20px; padding: 2rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h2 { margin-top: 0.75rem; }
.card .lede { margin-top: 1rem; font-size: 1rem; }
.points { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.points li { border-left: 1px solid var(--border); padding-left: 1rem; font-size: 0.9rem; }
.relate { margin-top: 2rem; max-width: 40rem; font-size: 0.9rem; }
.relate-block { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); max-width: 40rem; }
.relate-block p { color: var(--muted); }

.principles { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 2.5rem; }
.num { font-family: var(--display); font-size: 1.5rem; color: var(--accent); margin: 0; }
.principles h3 { margin-top: 0.75rem; }
.principles p { color: var(--muted); font-size: 0.9rem; }

.prose section { margin-top: 3rem; }
.prose section p { color: var(--muted); }
.prose a { text-underline-offset: 4px; }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
code { font-family: var(--mono); font-size: 0.75rem; }

.contact-cards { display: grid; gap: 1.5rem; margin: 3rem 0; }
.mini-card { background: var(--card); border-radius: 12px; padding: 1.25rem; box-shadow: var(--shadow); }
.mini-card dd { margin: 0.5rem 0 0; }
.contact-form { display: grid; gap: 1.25rem; margin-bottom: 4rem; }
.contact-form label { display: grid; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; min-height: 44px; padding: 0 0.75rem;
  border: 0; border-radius: 8px; background: var(--card); color: var(--fg);
  font: 0.875rem var(--sans); box-shadow: var(--shadow);
}
.contact-form textarea { min-height: 8rem; padding: 0.75rem; }

.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted-bg) 40%, transparent); }
.footer-grid { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.5rem; display: grid; gap: 2.5rem; }
.footer-brand .muted { max-width: 24rem; margin-top: 1rem; font-size: 0.875rem; }
.footer-name { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; font-size: 0.875rem; }
.site-footer a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 72rem; margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.75rem; color: var(--muted);
}

@media (min-width: 640px) {
  .actions { flex-direction: row; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .nav-mobile { display: none !important; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .hero .wrap { padding: 6rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
