:root {
  color-scheme: light;
  --page: #fcfaf6;
  --ink: #251f1a;
  --muted: #665e57;
  --accent: #945136;
  --line: #e2d9ce;
  --brick: #232c24;
  --brick-text: #fff7ef;
  --brick-muted: #d8e0d4;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.brand img { object-fit: contain; }
.brand-suffix { color: var(--muted); font-weight: 500; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2rem); }
nav a, .footer a { text-underline-offset: .22em; text-decoration-color: transparent; }
nav a:hover, .footer a:hover { text-decoration-color: currentColor; }

.intro { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.2rem, 5vw, 4rem); }

.intro h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(3.25rem, 9.1vw, 8rem)/.94 Georgia, serif;
  letter-spacing: -.075em;
  text-wrap: balance;
}

.intro em { color: var(--accent); font-weight: inherit; }

.intro p {
  max-width: 40ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
}

.showcase { scroll-margin-top: 1.5rem; }

.brick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  overflow: hidden;
  background: var(--brick);
  color: var(--brick-text);
  border-radius: 1.5rem;
}

.brick-copy { align-self: center; padding: clamp(1.75rem, 5.4vw, 4.5rem); }

.app-icon { border-radius: .9rem; object-fit: contain; }

.brick-copy h2 {
  margin: .7rem 0 .4rem;
  font: 400 clamp(3.65rem, 7vw, 6rem)/.9 Georgia, serif;
  letter-spacing: -.075em;
}

.brick-copy p { max-width: 32ch; margin: .75rem 0 0; color: var(--brick-muted); }

.brick-copy .brick-lede {
  color: var(--brick-text);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.2;
}

.button {
  display: inline-flex;
  margin-top: 1.55rem;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border: 1px solid #d89d7d;
  border-radius: .48rem;
  text-decoration: none;
  font-weight: 700;
}

.button:hover { background: #fff7ef; color: var(--brick); }

.brick-art {
  display: grid;
  min-height: 26rem;
  place-items: center;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: #d4dfd0;
}

.brick-art img { width: min(100%, 21rem); height: auto; object-fit: contain; border-radius: .8rem; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.2rem, 5vw, 4.5rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { padding-block: .85rem; }
  .brand { font-size: 1.15rem; gap: .35rem; }
  .brand img { width: 32px; height: 32px; }
  .intro h1 { max-width: 12ch; }
  .brick-card { grid-template-columns: 1fr; border-radius: 1rem; }
  .brick-art { min-height: 0; }
}

.app-list {
  display: grid;
  gap: clamp(1.15rem, 3vw, 2rem);
  scroll-margin-top: 1.5rem;
}

.level-page { padding-top: clamp(2rem, 6vw, 5rem); }

.level-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  color: #f0f6f5;
  background: #132729;
  border-radius: 1.5rem;
  overflow: hidden;
}

.level-copy { align-self: center; padding: clamp(1.75rem, 5.4vw, 4.5rem); }
.level-copy p { margin: .6rem 0 0; font-size: 1.15rem; color: #d7e7e4; }

.level-copy .level-platform {
  margin: 0;
  color: #b7d8cd;
  font-size: .95rem;
  font-weight: 700;
}

.level-copy h1,
.level-copy h2 {
  margin: .65rem 0 .25rem;
  font: 400 clamp(2.75rem, 6.6vw, 5.5rem)/.95 Georgia, serif;
  letter-spacing: -.065em;
}

.level-button { border-color: #9bbfb6; }
.level-button:hover { background: #eaf5ef; color: #132729; }

.level-art {
  display: grid;
  place-items: center;
  min-height: 20rem;
  padding: 1.75rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, #9ad8c628 27px 28px),
    #25474b;
}

.level-art img { width: 100%; height: auto; border-radius: .65rem; }

@media (max-width: 640px) {
  .level-card { grid-template-columns: 1fr; border-radius: 1rem; }
  .level-art { min-height: 10.5rem; }
}
