:root {
  color-scheme: light;
  --cream: #F5E7C8;
  --paper: #FBF3E2;
  --ink: #342923;
  --brown: #72513D;
  --rust: #B85D43;
  --yellow: #E8B95B;
  --teal: #4F7F7A;
  --sage: #849267;
  --sky: #91B6B7;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

* { box-sizing: border-box; }
body { margin: 0; border-top: 8px solid var(--rust); }
::selection { background: var(--yellow); color: var(--ink); }
html { scrollbar-color: var(--brown) var(--cream); }
img { max-width: 100%; height: auto; }
.brand, main, footer {
  width: min(100% - var(--space-12), 42rem);
  margin-inline: auto;
}
.brand { padding-top: var(--space-6); }
.brand img { display: block; width: 150px; height: auto; }
.brand a { display: inline-block; border-radius: 4px; }
main { padding-top: var(--space-6); }
h1, h2, h3 { font-weight: 750; line-height: 1.2; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 2.75rem); letter-spacing: -0.025em; }
.updated { margin-top: var(--space-2); font-size: 0.875rem; }
.intro { margin-top: var(--space-8); font-size: 1.3rem; font-weight: 650; line-height: 1.45; }
h2 { margin: var(--space-12) 0 var(--space-3); font-size: 1.25rem; }
p { margin: 0 0 var(--space-5); }
a { color: var(--brown); text-underline-offset: 0.18em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em; }
figure { margin: 0; }
figcaption { margin-top: var(--space-3); font-size: 0.875rem; line-height: 1.5; }
footer { margin-top: var(--space-12); padding-block: var(--space-6) var(--space-12); border-top: 1px solid var(--brown); font-size: 0.875rem; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-3); }

/* Home */
.home main, .home footer { width: min(100% - var(--space-12), 64rem); }
.hero {
  width: min(100% - var(--space-12), 42rem);
  margin-inline: auto;
  padding-block: var(--space-8) var(--space-12);
  text-align: center;
}
.hero h1 { margin: 0; line-height: 0; }
.hero h1 img { width: min(300px, 76%); }
.tagline { margin: var(--space-6) 0 var(--space-3); font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 0 auto var(--space-6); max-width: 34rem; font-size: 1.15rem; line-height: 1.55; text-wrap: pretty; }
.badge {
  display: inline-block;
  margin: 0;
  padding: var(--space-2) var(--space-5);
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 800;
  line-height: 1.3;
}
.home main { padding-top: 0; }
.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-4), 4vw, var(--space-12));
  margin: 0 auto;
  padding: 0;
  max-width: 54rem;
  list-style: none;
}
.phones figure, .phone-single { text-align: center; }
.phones img, .phone-single img {
  display: block;
  width: 100%;
  border: 4px solid var(--ink);
  border-radius: 12% / 5.5%;
  background: var(--ink);
}
.phones figcaption { font-weight: 750; font-size: 1rem; }
.prose { max-width: 42rem; margin-inline: auto; }
.home h2 { margin: var(--space-24) 0 var(--space-4); font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; }
.points { margin: var(--space-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.points li { padding-left: var(--space-6); position: relative; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rust);
}
.wide { margin-top: var(--space-16); text-align: center; }
.wide img { display: block; width: 100%; border: 4px solid var(--ink); border-radius: 20px; }
.grownups {
  display: grid;
  grid-template-columns: 1fr 13rem;
  gap: var(--space-12);
  align-items: center;
  max-width: 54rem;
  margin: var(--space-24) auto 0;
}
.grownups h2 { margin-top: 0; }
.grownups .prose p:last-child { margin-bottom: 0; }
.home footer { margin-top: var(--space-24); }

/* Design */
.design h2 { margin-top: var(--space-16); }
.board { margin-block: var(--space-8) 0; text-align: center; }
.board img { display: block; border: 1px solid rgb(52 41 35 / 0.2); border-radius: 12px; }
@media (min-width: 64rem) {
  .board { margin-inline: -8rem; }
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.swatches li { display: grid; gap: 2px; font-size: 0.875rem; line-height: 1.4; }
.swatches li::before {
  content: "";
  height: 72px;
  margin-bottom: var(--space-2);
  border-radius: 10px;
  border: 1px solid rgb(52 41 35 / 0.2);
  background: var(--c);
}
.swatches b { font-size: 1rem; }
.swatches span { opacity: 0.8; }
.swatches .brown { --c: var(--brown); }
.swatches .yellow { --c: var(--yellow); }
.swatches .cream { --c: var(--cream); }
.swatches .rust { --c: var(--rust); }
.swatches .teal { --c: var(--teal); }
.swatches .sage { --c: var(--sage); }
.swatches .sky { --c: var(--sky); }
.swatches .ink { --c: var(--ink); }
.type-specimen {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 4px solid var(--brown);
  border-radius: 28px;
  background: var(--paper);
}
.type-specimen p { margin: 0; }
.t-title { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.01em; }
.t-label { color: var(--teal); font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.t-body { font-size: 1rem; }
.art {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.art li { display: grid; gap: var(--space-2); text-align: center; font-size: 0.875rem; }
.art img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: var(--space-3); border-radius: 12px; background: var(--paper); }
.art .wood img { background: #C98A4B; }
/* The supplied icon file has black corners: clip it to the iOS rounded square. */
.art .appicon img { padding: 0; border-radius: 22.5%; }
.strip { margin-top: var(--space-6); }
.strip img { display: block; border-radius: 12px; border: 1px solid rgb(52 41 35 / 0.2); }
.components { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-8); margin-top: var(--space-6); }
.components figure { display: grid; grid-template-rows: 9rem auto; justify-items: center; gap: var(--space-3); }
.components figure > :first-child { align-self: center; }
.components figcaption { margin: 0; }
.sign {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  max-width: 17rem;
  padding: var(--space-5) var(--space-6);
  border: 4px solid var(--brown);
  border-radius: 28px;
  background: var(--cream);
}
.sign-label { color: var(--teal); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.chips { display: flex; gap: var(--space-2); }
.chip {
  flex: 1;
  padding: var(--space-2) var(--space-5);
  border: 2px solid rgb(114 81 61 / 0.45);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.chip.on { border: 3px solid var(--ink); background: var(--yellow); }
.done {
  display: block;
  padding-bottom: 6px;
  border-radius: 999px;
  background: var(--ink);
}
.done span {
  display: block;
  padding: var(--space-2) var(--space-8);
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.06em;
}
.ring { display: block; width: 7rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
th, td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid rgb(52 41 35 / 0.25); text-align: left; vertical-align: top; }
th { font-weight: 750; }
.rules { padding-left: 1.2em; }
.rules li { margin-bottom: var(--space-2); }

@media (max-width: 640px) {
  .phones {
    grid-template-columns: repeat(3, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-4);
    margin-inline: calc(var(--space-6) * -1);
    padding-inline: var(--space-6);
    scroll-padding-inline: var(--space-6);
  }
  .phones li { scroll-snap-align: start; }
  .grownups { grid-template-columns: 1fr; gap: var(--space-8); }
  .grownups .phone-single { width: 60%; justify-self: center; }
}
@media (max-width: 480px) {
  .brand, main, footer, .home main, .home footer, .hero { width: calc(100% - var(--space-12)); }
  .brand img { width: 120px; }
  .wide img { border-radius: 12px; }
}
