:root {
  --paper: #eef3f1;
  --ink: #14231f;
  --muted: #55665f;
  --glass: #c4dbd4;
  --liquid: #e3a13a;
  --liquid-deep: #b87612;
  --link: #1d5c4c;
  --max: 38rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 3px solid var(--liquid);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Header used on inner pages */
.bar {
  padding: 1.5rem 0;
}
.bar a {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.bar svg { width: 1.4rem; height: 1.4rem; }

/* Homepage hero */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 3rem;
}

.mark {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
}

.mark svg {
  width: clamp(4.5rem, 16vw, 7.5rem);
  height: auto;
  flex: none;
}

h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 13vw, 6.25rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0;
}

h1 span {
  display: block;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 30rem;
  margin: 0 0 2.5rem;
}

.contact {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
  max-width: 30rem;
}
.contact p { margin: 0 0 0.35rem; color: var(--muted); }
.contact a {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Liquid fill animation, played once */
.liquid {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: fill 1.6s cubic-bezier(.2,.7,.2,1) 0.2s both;
}
@keyframes fill {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .liquid { animation: none; }
}

/* Long-form pages */
.doc { padding-top: 1rem; padding-bottom: 4rem; }
.doc h1 {
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  line-height: 0.95;
  margin-bottom: 0.75rem;
}
.doc .updated { color: var(--muted); margin: 0 0 2.5rem; }
.doc h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.5rem;
}
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.summary {
  background: var(--glass);
  border-left: 6px solid var(--liquid);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}
.summary p { margin: 0; }

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer a { color: var(--muted); }
