:root {
  --ink: #2d2118;
  --muted: #765f4b;
  --paper: #fff8ec;
  --cream: #f7ecd8;
  --mint: #d9ead8;
  --coral: #e9856e;
  --gold: #e8b84d;
  --leaf: #547d62;
  --shadow: 0 24px 70px rgba(60, 38, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(232, 184, 77, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(84, 125, 98, 0.14), transparent 24rem),
    linear-gradient(180deg, #fff9ef 0%, #f4e4ca 100%);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: rgba(255, 248, 236, 0.88);
  border-bottom: 1px solid rgba(84, 125, 98, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  align-items: center;
  gap: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3rem;
}

.brand-ear,
.brand-face,
.brand-eye,
.brand-nose,
.brand-whisker {
  position: absolute;
}

.brand-ear {
  top: 0;
  width: 1.1rem;
  height: 1.1rem;
  background: linear-gradient(180deg, #f4b58d 0%, #da7d55 100%);
  border: 2px solid var(--ink);
  z-index: 1;
}

.brand-ear-left {
  left: 0.25rem;
  border-radius: 0.2rem 0.9rem 0.2rem 0.9rem;
  transform: rotate(-20deg);
}

.brand-ear-right {
  right: 0.25rem;
  border-radius: 0.9rem 0.2rem 0.9rem 0.2rem;
  transform: rotate(20deg);
}

.brand-face {
  inset: 0.55rem 0 0;
  border: 2px solid var(--ink);
  border-radius: 1.1rem 1.1rem 1.4rem 1.4rem;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.45), transparent 20%),
    linear-gradient(180deg, #f4cb87 0%, #e88f6f 100%);
  box-shadow: 3px 3px 0 rgba(45, 33, 24, 0.9);
}

.brand-eye {
  top: 0.9rem;
  width: 0.34rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--ink);
}

.brand-eye-left {
  left: 0.95rem;
}

.brand-eye-right {
  right: 0.95rem;
}

.brand-nose {
  left: 50%;
  bottom: 0.72rem;
  width: 0.48rem;
  height: 0.38rem;
  background: #8c4d43;
  border-radius: 0.5rem 0.5rem 0.7rem 0.7rem;
  transform: translateX(-50%);
}

.brand-whisker {
  bottom: 0.9rem;
  width: 1rem;
  height: 2px;
  background: rgba(45, 33, 24, 0.85);
}

.brand-whisker-left {
  left: 0.25rem;
  transform: rotate(10deg);
}

.brand-whisker-right {
  right: 0.25rem;
  transform: rotate(-10deg);
}

.brand-wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  max-width: 14rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 0.92;
  text-transform: lowercase;
}

.brand-wordmark span:nth-child(1) {
  color: var(--leaf);
}

.brand-wordmark span:nth-child(2) {
  color: var(--coral);
}

.brand-wordmark span:nth-child(3) {
  color: #c88b2f;
}

.brand-wordmark span:nth-child(2) {
  transform: translateY(0.16rem) scale(1.08);
}

.brand-wordmark span:nth-child(3) {
  letter-spacing: 0.04em;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(20rem, 1.14fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 4.5rem);
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 3rem) 2rem;
}

.hero-copy {
  max-width: 46rem;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.2rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 39rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 0.55rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

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

.button.primary {
  background: var(--coral);
}

.button.secondary {
  background: var(--mint);
}

.hero-art {
  margin: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 0.8rem;
  box-shadow: var(--shadow), 8px 8px 0 var(--gold);
}

.family-strip,
.lineup,
.rules {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 3rem);
}

.family-strip {
  display: grid;
  grid-template-columns: minmax(16rem, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
  background: rgba(217, 234, 216, 0.58);
  border-block: 1px solid rgba(84, 125, 98, 0.2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.cat-card,
.rule-board p {
  border: 2px solid rgba(45, 33, 24, 0.9);
  border-radius: 0.65rem;
  background: rgba(255, 248, 236, 0.9);
  box-shadow: 4px 4px 0 rgba(45, 33, 24, 0.9);
}

.timeline li {
  min-height: 11rem;
  padding: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.timeline span {
  display: block;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  max-width: 13ch;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cat-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 30rem;
  padding: 0.85rem;
  cursor: pointer;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-wash) 72%, white) 0%, #fffdf8 100%);
  box-shadow:
    4px 4px 0 rgba(45, 33, 24, 0.9),
    0 18px 40px rgba(45, 33, 24, 0.08);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  transform: rotate(var(--card-tilt, 0deg));
  outline: none;
}

.cat-card:hover,
.cat-card.is-selected {
  transform: translateY(-6px) rotate(0deg);
  background: #fffdf6;
  box-shadow:
    5px 5px 0 rgba(45, 33, 24, 0.9),
    0 24px 48px rgba(45, 33, 24, 0.12);
}

.cat-card:focus-visible {
  box-shadow:
    0 0 0 4px rgba(84, 125, 98, 0.22),
    5px 5px 0 rgba(45, 33, 24, 0.9),
    0 24px 48px rgba(45, 33, 24, 0.12);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0.65rem auto auto 0.65rem;
  width: 3.3rem;
  height: 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 55%, white);
  opacity: 0.95;
  transform: rotate(-8deg);
}

.cat-card::after {
  content: "";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.cat-photo {
  position: relative;
  margin: 0 0 0.9rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
}

.cat-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 2px solid rgba(45, 33, 24, 0.9);
  border-radius: 0.55rem;
}

.cat-photo::after {
  position: absolute;
  z-index: 1;
  color: var(--card-shadow);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.polaroid {
  border-radius: 0.7rem;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--card-shadow) 58%, white);
}

.polaroid img {
  border-radius: 0.35rem;
}

.polaroid::after {
  content: "Head of couch";
  right: 0.9rem;
  bottom: 0.75rem;
}

.postcard {
  border: 2px dashed var(--card-accent);
  border-radius: 0.75rem;
}

.postcard::after {
  content: "Snack alert";
  right: 0.9rem;
  top: 0.75rem;
}

.ticket {
  border-radius: 1rem;
  clip-path: polygon(0 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% 100%, 1.2rem 100%, 0 calc(100% - 1.2rem));
}

.ticket::after {
  content: "Hall pass";
  left: 0.95rem;
  bottom: 0.8rem;
}

.dossier {
  border-top: 0.5rem solid var(--card-accent);
  border-radius: 0.7rem;
}

.dossier::after {
  content: "Formal file";
  right: 0.95rem;
  top: 0.8rem;
}

.ribbon {
  border-radius: 0.9rem;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--card-accent) 35%, white);
}

.ribbon::before {
  content: "";
  position: absolute;
  top: -0.15rem;
  left: 1rem;
  width: 2.6rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--card-accent);
  transform: rotate(-6deg);
}

.ribbon::after {
  content: "Red carpet";
  right: 0.9rem;
  bottom: 0.8rem;
}

.ledger {
  border-left: 0.45rem solid var(--card-accent);
  border-radius: 0.65rem;
}

.ledger::after {
  content: "Tiny manager";
  right: 0.85rem;
  top: 0.75rem;
}

.memo {
  border-radius: 0.3rem 1rem 0.3rem 1rem;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--card-shadow) 48%, white);
}

.memo::after {
  content: "Comedy file";
  left: 0.95rem;
  bottom: 0.8rem;
}

.recipe {
  border-radius: 1rem 1rem 0.5rem 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 214, 0.88));
}

.recipe::after {
  content: "Softness index";
  right: 0.8rem;
  top: 0.75rem;
}

.bulletin {
  border: 2px solid var(--card-accent);
  border-radius: 0.8rem;
}

.bulletin::after {
  content: "Opinion board";
  right: 0.85rem;
  bottom: 0.75rem;
}

.cloudtag {
  border-radius: 1.3rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.cloudtag::after {
  content: "Cloud one";
  right: 0.85rem;
  top: 0.8rem;
}

.charm {
  border-radius: 0.85rem;
  box-shadow: 0 0 0 3px rgba(93, 127, 213, 0.14);
}

.charm::after {
  content: "Cloud two";
  right: 0.85rem;
  top: 0.8rem;
}

.cat-copy {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.cat-label {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--card-accent) 55%, var(--ink));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: color-mix(in srgb, var(--card-shadow) 74%, var(--ink));
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.cat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cat-note {
  color: color-mix(in srgb, var(--muted) 78%, var(--ink));
  font-size: 0.96rem;
}

.official-title {
  min-height: 2.4rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--card-accent) 55%, var(--ink));
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.78);
  color: color-mix(in srgb, var(--card-shadow) 72%, var(--ink));
  font-weight: 900;
}

.rules {
  background: #fff8ec;
}

.rule-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rule-board p {
  min-height: 9rem;
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

footer {
  padding: 2rem clamp(1rem, 3vw, 3rem);
  background: var(--ink);
  color: var(--paper);
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .family-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .timeline,
  .cat-grid,
  .rule-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: center;
  }

  .brand-wordmark {
    max-width: none;
    font-size: 1.15rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 1.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline,
  .cat-grid,
  .rule-board {
    grid-template-columns: 1fr;
  }
}
