@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf6eb;
  --ink: #162b23;
  --soft-ink: #43554b;
  --tomato: #cb452f;
  --yellow: #f9ca54;
  --lilac: #b5b3f1;
  --mint: #9edbbd;
  --line: #dfd8c7;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid #9b301e;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 0.7rem 1rem;
  background: white;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus { transform: none; }

.wrap {
  width: min(100% - clamp(2rem, 7vw, 7.5rem), 1350px);
  margin-inline: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  font: 800 1.8rem/1 var(--display);
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.mark, .about-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  width: 27px;
  aspect-ratio: 1;
  transform: rotate(-8deg);
}

.mark i, .about-mark i { display: block; }
.mark i:nth-child(1), .about-mark i:nth-child(1) { background: #f2704c; border-radius: 68% 45% 25% 45%; }
.mark i:nth-child(2), .about-mark i:nth-child(2) { background: var(--yellow); border-radius: 50% 60% 48% 22%; }
.mark i:nth-child(3), .about-mark i:nth-child(3) { background: var(--mint); border-radius: 45% 20% 55% 65%; }
.mark i:nth-child(4), .about-mark i:nth-child(4) { background: var(--lilac); border-radius: 22% 60% 60% 52%; }

.nav, .footer nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 3vw, 2.35rem);
}

.nav a, .footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.91rem;
  font-weight: 680;
  text-decoration-thickness: 1.5px;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
}

.nav a:hover, .footer nav a:hover { text-decoration-color: currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.01fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 5rem);
  padding-top: clamp(2rem, 4.5vw, 4.5rem);
}

.hero h1, .section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.hero h1 { font-size: clamp(3.6rem, 7.45vw, 7.95rem); }
.hero h1 span { color: var(--tomato); }

.hero-copy > p {
  max-width: 29ch;
  margin: 1.45rem 0 1.55rem;
  color: var(--soft-ink);
  font-size: clamp(1.06rem, 1.55vw, 1.27rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.78rem 1.28rem;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--ink);
  color: white;
  font-size: 0.95rem;
  font-weight: 720;
  text-decoration: none;
}

.button:hover { background: #30493e; }

.hero-art {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: clamp(1.25rem, 3vw, 2.45rem);
  background: #f6c34c;
  aspect-ratio: 1.32;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.section { margin-top: clamp(3.3rem, 7.5vw, 7.6rem); scroll-margin-top: 2rem; }
.section h2 { font-size: clamp(2.6rem, 4.6vw, 5.2rem); line-height: 1; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: clamp(1.3rem, 3vw, 2.1rem);
}

.section-heading p {
  max-width: 35ch;
  margin: 0 0 0.16em;
  color: var(--soft-ink);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.4rem);
}

.collection-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffcf4;
  transition: transform 150ms ease, border-color 150ms ease;
}

.collection-card:hover { border-color: #9c9d83; transform: translateY(-3px); }
.collection-photo {
  aspect-ratio: 3 / 2;
  background-image: url("assets/playroom-collections.webp");
  background-size: 200% 200%;
}

.build .collection-photo { background-color: #f69d84; background-position: left top; }
.puzzle .collection-photo { background-color: #b7afe8; background-position: right top; }
.create .collection-photo { background-color: #f6cb61; background-position: left bottom; }
.pretend .collection-photo { background-color: #a5d9bd; background-position: right bottom; }

.collection-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(0.95rem, 1.65vw, 1.38rem);
}

.collection-copy h3 {
  margin: 0;
  font: 780 clamp(1.15rem, 2vw, 1.68rem)/1.02 var(--display);
  letter-spacing: -0.045em;
}

.collection-copy p {
  flex: 1;
  margin: 0.65rem 0 0.85rem;
  color: var(--soft-ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.collection-button {
  min-height: 44px;
  padding: 0.36rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.collection-button:hover { color: var(--tomato); }

.collection-note {
  margin: 0.75rem 0 0;
  color: var(--soft-ink);
  font-size: 0.84rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, 1fr);
  align-items: center;
  overflow: hidden;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.75rem, 5vw, 5rem);
  border-radius: clamp(1.25rem, 3vw, 2.45rem);
  background: var(--ink);
  color: var(--paper);
}

.about-copy .section-kicker {
  margin: 0 0 0.85rem;
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 750;
}

.about-copy h2 { max-width: 12ch; }
.about-copy p { max-width: 53ch; margin: 1rem 0 0; }
.about-mark { width: min(80%, 290px); gap: clamp(0.4rem, 1vw, 1rem); margin: auto; }

.play {
  margin-bottom: clamp(3rem, 7.5vw, 7.6rem);
}

.play-list {
  display: grid;
  gap: 0.6rem;
}

.play-list details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffcf4;
}

.play-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.22rem;
  font: 740 1.18rem/1.2 var(--display);
  letter-spacing: -0.025em;
  min-height: 52px;
  cursor: pointer;
}

.play-list summary::-webkit-details-marker { display: none; }
.play-list summary::after { content: "+"; font: 400 1.7rem/1 var(--body); }
.play-list details[open] summary::after { content: "−"; }

.play-list details p {
  max-width: 74ch;
  margin: 0;
  padding: 0 1.22rem 1.22rem;
  color: var(--soft-ink);
}

.footer {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding-block: 1.25rem 1.65rem;
  border-top: 1px solid var(--line);
}

.footer p { margin: 0; color: var(--soft-ink); font-size: 0.92rem; }
.footer nav { margin-left: auto; }

dialog {
  width: min(calc(100% - 2rem), 560px);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffcf2;
  color: var(--ink);
  box-shadow: 0 20px 65px #17292333;
}

dialog::backdrop { background: #162b23ad; }
dialog form { position: absolute; top: 0.55rem; right: 0.55rem; }

.close-dialog {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0e9d7;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.close-dialog:hover { background: #e6dbbf; }
.dialog-content { padding: clamp(1.4rem, 4.5vw, 2.8rem); }

.dialog-content h2 {
  max-width: calc(100% - 1.4rem);
  margin: 0;
  font: 800 clamp(2rem, 4vw, 3.4rem)/1 var(--display);
  letter-spacing: -0.05em;
}

.dialog-content h3 { margin: 1.2rem 0 0.25rem; font-family: var(--display); }
.dialog-content p { color: var(--soft-ink); }
.dialog-content ul { margin: 0; padding-left: 1.15rem; }
.dialog-content li + li { margin-top: 0.3rem; }

@media (max-width: 990px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: clamp(1.35rem, 3vw, 2.5rem); }
  .hero h1 { font-size: clamp(3rem, 7.55vw, 5.9rem); }
}

@media (max-width: 680px) {
  .header { min-height: 70px; gap: 0.65rem; }
  .wordmark { gap: 0.38rem; font-size: 1.45rem; }
  .mark { width: 21px; }
  .nav { gap: clamp(0.68rem, 2.8vw, 1rem); }
  .nav a { font-size: 0.83rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero h1 { font-size: clamp(3.5rem, 13.25vw, 5.7rem); }
  .hero-copy > p { max-width: 36ch; margin-block: 1rem 1.2rem; }
  .hero-art { aspect-ratio: 1.41; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 0.68rem; }
  .collection-card { border-radius: 14px; }
  .collection-copy { padding: 0.85rem; }
  .collection-copy p { font-size: 0.92rem; }
  .about { grid-template-columns: 1fr; gap: 1.65rem; }
  .about-mark { grid-row: 1; width: min(24%, 98px); margin: 0 0 0 4px; }
  .footer { flex-wrap: wrap; gap: 0.85rem 1.25rem; }
  .footer nav { width: 100%; margin: 0; }
}

@media (max-width: 350px) {
  .header { flex-wrap: wrap; justify-content: flex-start; padding-top: 0.75rem; }
  .header nav { gap: 1.3rem; }
  .collection-grid { grid-template-columns: 1fr; }
}

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