:root {
  color-scheme: light;
  --ink: #233a3f;
  --muted: #657173;
  --paper: #fff8e8;
  --card: #ffffff;
  --sun: #ffd65a;
  --tomato: #e85d45;
  --mint: #91d9bc;
  --blue: #7cc6df;
  --line: #24383d20;
  --shadow: 0 24px 70px #233a3f24;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, #ffd65a55 0 16rem, transparent 16rem),
    linear-gradient(135deg, #fffdf5 0%, var(--paper) 52%, #eaf8f4 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
}

.brand,
nav {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--sun);
  display: inline-flex;
  font-size: 0.82rem;
  height: 2.1rem;
  justify-content: center;
  letter-spacing: 0.02em;
  width: 2.1rem;
}

nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

nav a:hover {
  background: #ffffff90;
  color: var(--ink);
}

.hero,
.section,
.feature-band,
footer {
  max-width: 1120px;
  margin: 0 auto;
}

.hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  min-height: calc(100vh - 88px);
  padding: 4rem 1.25rem 5rem;
}

.eyebrow {
  color: var(--tomato);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 1.25rem;
  max-width: 840px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

.intro {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button,
button {
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.primary {
  background: var(--sun);
}

.secondary,
button {
  background: #fff;
}

.drawer-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  transform: rotate(1.5deg);
}

.drawer-top {
  align-items: center;
  border-bottom: 2px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.drawer-top span,
.oracle-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.drawer-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.1rem 0;
}

.item {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: flex;
  font-weight: 850;
  min-height: 5.2rem;
  justify-content: center;
  padding: 0.8rem;
  text-align: center;
}

.tape,
.battery {
  background: var(--sun);
}

.key,
.label {
  background: var(--mint);
}

.clip,
.screw {
  background: var(--blue);
}

.drawer-note {
  background: #233a3f;
  border-radius: 10px;
  color: #fff8e8;
  font-weight: 800;
  margin: 0;
  padding: 0.9rem;
}

.section {
  padding: 5rem 1.25rem;
}

.section-heading {
  max-width: 760px;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 #233a3f14;
  padding: 1.25rem;
}

.card-icon {
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 1rem;
  padding: 0.35rem 0.55rem;
}

.card p,
.split p,
.game-section .section-heading p {
  color: var(--muted);
}

.game-panel {
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
  padding: 1rem;
}

.game-status {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.game-status span {
  background: #f6f2e7;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
  padding: 0.85rem;
}

.game-board {
  background:
    linear-gradient(90deg, #233a3f10 1px, transparent 1px),
    linear-gradient(#233a3f10 1px, transparent 1px),
    #fff8e8;
  background-size: 34px 34px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 260px;
  padding: 0.9rem;
}

.game-tile {
  align-items: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-weight: 900;
  gap: 0.35rem;
  min-height: 92px;
  padding: 0.7rem;
}

.game-tile:hover,
.game-tile:focus-visible {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.tile-emoji {
  font-size: 1.9rem;
  line-height: 1;
}

.game-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.game-controls p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.feature-band {
  align-items: start;
  background: var(--ink);
  border-radius: 18px;
  color: #fff8e8;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.85fr 1.15fr;
  padding: 2rem;
}

.feature-band .eyebrow {
  color: var(--sun);
}

.checks {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li {
  background: #ffffff12;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  padding: 1rem;
}

.checks span,
.checks small {
  display: block;
}

.checks span {
  font-weight: 900;
}

.checks small {
  color: #fff8e8b8;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
}

.oracle {
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.oracle-text {
  font-size: clamp(1.65rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
}

footer {
  color: var(--muted);
  font-weight: 700;
  padding: 2rem 1.25rem 3rem;
}

@media (max-width: 820px) {
  .site-header,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero,
  .cards,
  .game-status,
  .game-board,
  .feature-band,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2rem;
    min-height: auto;
    padding-top: 2.25rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .drawer-card {
    transform: none;
  }
}

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