:root {
  color-scheme: light;
  --cream: #f4ecd8;
  --paper: #fffaf0;
  --ink: #1a1a1a;
  --soft: #625f57;
  --red: #e63946;
  --yellow: #f4c430;
  --green: #2f9e44;
  --blue: #1d7ed9;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 196, 48, .18), transparent 23rem),
    radial-gradient(circle at 88% 20%, rgba(29, 126, 217, .12), transparent 26rem),
    var(--cream);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1.75rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.04em;
}

nav { display: flex; gap: 6px; }

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--soft);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover, nav a:focus-visible { background: rgba(26, 26, 26, .07); color: var(--ink); }

.hero {
  padding: clamp(48px, 9vw, 92px) 0 56px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(34px, 7vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 { margin: 0; font-size: clamp(3.4rem, 9vw, 6.8rem); }
h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3rem); }

.lede { max-width: 610px; margin: 20px 0 0; color: var(--soft); font-size: clamp(1.05rem, 2vw, 1.2rem); }

.camera {
  position: relative;
  width: min(270px, 72vw);
  aspect-ratio: 1.3;
  justify-self: center;
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: var(--ink);
  box-shadow: 8px 10px 0 var(--yellow);
}

.camera::before {
  content: "";
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  border: 15px solid var(--paper);
  border-radius: 50%;
  left: 31%;
  top: 24%;
  background: var(--ink);
  box-shadow: inset 0 0 0 7px var(--yellow);
}

.camera::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -15px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--blue) 75%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 0 72px;
}

.card, .document {
  border: 1px solid rgba(26, 26, 26, .14);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, .88);
  box-shadow: 4px 5px 0 var(--ink);
}

.card { display: block; min-height: 190px; padding: 26px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .card:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 var(--ink); }
.card p { margin: 0; color: var(--soft); }
.arrow { display: inline-block; margin-top: 20px; font-weight: 900; }

.document { margin: 34px 0 72px; padding: clamp(24px, 6vw, 54px); }
.document h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.document h2 { margin-top: 42px; font-size: 1.8rem; }
.document h3 { margin: 28px 0 8px; font-size: 1.08rem; }
.document p, .document li { color: #45423d; }
.document ul { padding-left: 1.2rem; }
.updated { color: var(--soft); font-size: .9rem; }

footer { padding: 26px 0 42px; border-top: 1px solid rgba(26, 26, 26, .12); color: var(--soft); font-size: .88rem; }

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

@media (max-width: 650px) {
  header { align-items: flex-start; padding: 18px 0; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .camera { order: -1; width: 190px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
