:root {
  --pine: #1d3b35;
  --mist: #f3f6f4;
  --honey: #e2a12b;
  --ink: #1b2a27;
  --muted: #4f605b;
  --rule: #cfd9d5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */

.hero {
  background: var(--pine);
  color: var(--mist);
  padding-bottom: clamp(3rem, 8vw, 6.5rem);
}

.hero :focus-visible { outline-color: var(--honey); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img { width: 2rem; height: auto; }

.bar-link { font-size: 0.9375rem; }

.hero-body {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}

.hero-copy { max-width: 40rem; }

h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.125rem, 5.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.1875rem;
  color: #d3e0db;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--honey);
  color: var(--pine);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.375rem;
}

.button:hover { background: #efb64a; }

.hero-mark { width: min(100%, 17rem); }

.bear { width: 100%; height: auto; }
.bear .f { fill: var(--mist); }
.bear .n { fill: var(--honey); }

/* One page-load moment: the bear settles into place row by row. Cells stay visible throughout. */
@media (prefers-reduced-motion: no-preference) {
  .bear rect {
    transform-box: fill-box;
    transform-origin: center;
    animation: place 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  }
  .bear g:nth-child(1) rect { animation-delay: 0.05s; }
  .bear g:nth-child(2) rect { animation-delay: 0.13s; }
  .bear g:nth-child(3) rect { animation-delay: 0.21s; }
  .bear g:nth-child(4) rect { animation-delay: 0.29s; }
  .bear g:nth-child(5) rect { animation-delay: 0.37s; }
  .bear g:nth-child(6) rect { animation-delay: 0.45s; }
  .bear g:nth-child(7) rect { animation-delay: 0.53s; }
}

@keyframes place {
  from { transform: scale(0.5); }
  to { transform: scale(1); }
}

/* Sections */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section + .section { border-top: 1px solid var(--rule); }

h2 {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
}

.rows { margin: 0; font-style: normal; }

.row {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}

.row:last-child { border-bottom: 1px solid var(--rule); }

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}

.row p { margin: 0; max-width: 38rem; color: var(--muted); }

.row a { color: var(--pine); font-weight: 600; }

/* Footer */

.foot {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot p { margin: 0; }

/* 404 */

.notfound { padding: clamp(3rem, 8vw, 6rem) 0; }
.notfound h1 { color: var(--pine); }
.notfound p { max-width: 34rem; }

/* Wider screens */

@media (min-width: 48rem) {
  .wrap { padding: 0 2rem; }

  .hero-body { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }

  .hero-mark { width: clamp(15rem, 28vw, 21rem); }

  .row {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: baseline;
  }
}
