/* Toy bricks - design-system tokens (from the claude.ai/design project). */
:root {
  --color-bg: #ffcf00;
  --color-text: #1b1b1b;
  --color-red: #e3000b;
  --color-blue: #006cb7;
  --color-green: #00852b;
  --color-white: #fff;

  --font-heading: "Lilita One", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  text-wrap: pretty;
}

a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--color-text); outline-offset: 3px; }

/* - page - */
.page {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 6vw, 64px);
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: clamp(28px, 5vw, 56px);
  align-items: stretch;
}

/* - left column - */
.copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.dots { display: flex; gap: 10px; }
.dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .18), 0 3px 0 rgba(0, 0, 0, .2);
}
.dot-red { background: var(--color-red); }
.dot-blue { background: var(--color-blue); }
.dot-green { background: var(--color-green); }
.dot-white { background: var(--color-white); }

.set-label {
  font: 400 clamp(14px, 1.6vw, 20px) var(--font-heading);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.title {
  font: 400 clamp(44px, 11.5vw, 150px)/0.92 var(--font-heading);
  margin: 14px 0 0;
  color: var(--color-red);
  -webkit-text-stroke: 0.027em var(--color-text);
  paint-order: stroke fill;
  text-shadow: 0.04em 0.04em 0 var(--color-text);
  text-wrap: balance;
}

.lede {
  font: 500 clamp(16px, 1.6vw, 20px)/1.5 var(--font-body);
  margin: 28px 0 0;
  max-width: 40ch;
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 16px 26px;
  border-radius: 10px;
  text-decoration: none;
  font: 400 20px var(--font-heading);
  box-shadow: 0 5px 0 var(--color-text);
  color: var(--color-text);
}
.btn:hover { opacity: .75; }
.btn-red { background: var(--color-red); color: #fff; }
.btn-white { background: #fff; }

/* - right column: brick card - */
.brick {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.studs {
  display: flex;
  justify-content: space-around;
  padding: 0 24px;
  height: 22px;
}
.stud {
  width: 64px;
  height: 22px;
  background: var(--color-blue);
  border-radius: 6px 6px 0 0;
}

.brick-body {
  flex: 1;
  background: var(--color-blue);
  border-radius: 8px;
  padding: 20px;
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .2), 0 8px 0 var(--color-text);
  min-height: 0;
}

.portrait-frame {
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

/* - tablet - */
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr minmax(220px, 340px); gap: 32px; }
}

/* - mobile - */
@media (max-width: 759px) {
  .page { padding: 20px; display: block; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .copy { order: 2; gap: 20px; }
  .brick { order: 1; }
  .studs { padding: 0 16px; }
  .stud { width: 40px; }
  .brick-body { padding: 14px; }
  .portrait-frame { aspect-ratio: 1 / 1; }
  .actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
