:root {
  --ink: #19233b;
  --paper: #fffaf0;
  --purple: #6538c9;
  --pink: #ff4e9b;
  --yellow: #ffd43b;
  --blue: #54b7ed;
  --green: #58c59b;
  --line: #d9d2c4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.5;
}

.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 20; padding: .7rem 1rem; color: #fff; background: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.5rem, 5vw, 6rem); border-bottom: 1px solid rgba(255,255,255,.16); color: #fff; background: var(--ink); }
.brand { display: inline-flex; gap: .7rem; align-items: center; color: inherit; font-size: .85rem; font-weight: 500; line-height: .92; letter-spacing: .12em; text-decoration: none; }
.brand strong { color: var(--yellow); font-size: 1.08em; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header nav a { color: #fff; font-size: .88rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--yellow); }

.atom-mark { position: relative; display: inline-block; width: 33px; height: 33px; flex: 0 0 33px; }
.atom-mark i { position: absolute; inset: 7px 0; border: 2px solid var(--yellow); border-radius: 50%; transform: rotate(0deg); }
.atom-mark i:nth-child(2) { transform: rotate(60deg); }.atom-mark i:nth-child(3) { transform: rotate(120deg); }
.atom-mark b { position: absolute; top: 13px; left: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 680px; padding: clamp(5.5rem, 11vw, 9rem) clamp(1.5rem, 10vw, 12rem) 4rem; color: #fff; background: var(--ink); }
.chalkboard { position: absolute; z-index: -1; inset: 0; color: rgba(255,255,255,.13); font-family: "DM Mono", monospace; font-size: clamp(1rem, 2.4vw, 1.8rem); font-weight: 500; pointer-events: none; }
.chalkboard span { position: absolute; }.chalkboard span:nth-child(1) { top: 13%; left: 5%; transform: rotate(-12deg); }.chalkboard span:nth-child(2) { top: 22%; right: 14%; }.chalkboard span:nth-child(3) { bottom: 12%; right: 6%; font-size: 4rem; }.chalkboard span:nth-child(4) { bottom: 25%; left: 8%; }.chalkboard span:nth-child(5) { top: 48%; right: 4%; }.chalkboard span:nth-child(6) { bottom: 9%; left: 35%; }.chalkboard span:nth-child(7) { top: 7%; left: 44%; }
.orbit { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }.orbit-one { width: 710px; height: 260px; top: 160px; right: -180px; transform: rotate(-25deg); }.orbit-two { width: 530px; height: 150px; bottom: 80px; right: 0; transform: rotate(34deg); }
.eyebrow { margin: 0 0 .8rem; color: var(--pink); font-family: "DM Mono", monospace; font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.06em; }.hero h1 span { color: var(--yellow); }
.hero-copy { max-width: 570px; margin: 1.7rem 0 2rem; color: rgba(255,255,255,.78); font-size: clamp(1rem, 2vw, 1.18rem); }
.button { display: inline-flex; align-items: center; gap: 1.4rem; padding: .9rem 1.15rem 1rem 1.35rem; font-weight: 700; text-decoration: none; }.button-primary { color: var(--ink); background: var(--yellow); box-shadow: 5px 5px 0 var(--pink); }.button-primary:hover, .button-primary:focus-visible { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--pink); }.button span { font-size: 1.35rem; line-height: .5; }
.hero-stats { display: flex; gap: clamp(1.4rem, 5vw, 4rem); margin-top: clamp(4.5rem, 10vw, 8rem); }.hero-stats div { display: grid; }.hero-stats strong { color: var(--yellow); font-size: 1.7rem; }.hero-stats span { color: rgba(255,255,255,.65); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.5rem, 7vw, 8rem); }.section-heading { max-width: 670px; margin-bottom: 3rem; }.section-heading h2 { margin: 0; font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.055em; }.section-heading > p:last-child { max-width: 540px; margin: 1rem 0 0; color: #556078; }
.characters { background: #f4f0e8; }.character-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }.character-card { position: relative; min-height: 275px; overflow: hidden; padding: 1.3rem; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }.character-card:hover { transform: translateY(-5px); box-shadow: 6px 7px 0 var(--ink); }.character-card:nth-child(1), .character-card:nth-child(4) { grid-column: span 2; }.card-index { color: #687187; font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .07em; }.symbol { position: absolute; top: -16px; right: 10px; color: rgba(25,35,59,.09); font-family: serif; font-size: 8rem; font-weight: 700; }.character-card h3 { position: relative; margin: auto 0 .35rem; font-size: 1.6rem; letter-spacing: -.04em; }.character-card p { position: relative; margin: 0; color: #4b5670; font-size: .93rem; }.tag { align-self: flex-start; margin-top: 1.1rem; padding: .25rem .5rem; font-family: "DM Mono", monospace; font-size: .67rem; font-weight: 500; }.sheldon { background: #dfd3ff; }.sheldon .tag { background: var(--purple); color:#fff; }.leonard { background: #cdefff; }.leonard .tag { background: var(--blue); }.penny { background: #ffd4e8; }.penny .tag { background: var(--pink); color:#fff; }.howard { background: #ffe995; }.howard .tag { background: var(--yellow); }.raj { background: #d9f1e9; }.raj .tag { background: var(--green); }.amy { background: #f2dcff; }.amy .tag { background: #b664e8; color:#fff; }.bernadette { background: #ffcdbb; }.bernadette .tag { background: #f77c50; color:#fff; }

.episodes { background: var(--purple); color: #fff; }.episodes .eyebrow { color: var(--yellow); }.episodes .section-heading > p:last-child { color: rgba(255,255,255,.72); }.episode-list { max-width: 1000px; padding: 0; margin: 0 auto; list-style: none; border-top: 1px solid rgba(255,255,255,.4); }.episode-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.4); transition: padding .2s ease; }.episode-list li:hover { padding-left: .7rem; }.episode-number { color: var(--yellow); font-family: "DM Mono", monospace; font-size: .8rem; }.season { margin: 0 0 .2rem; color: #e5dafe; font-family: "DM Mono", monospace; font-size: .7rem; letter-spacing: .1em; }.episode-list h3 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.55rem); letter-spacing: -.03em; }.episode-list div > p:last-child { max-width: 640px; margin: .3rem 0 0; color: rgba(255,255,255,.75); font-size: .92rem; }.episode-icon { display: grid; place-content: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 1.2rem; }

.quote-band { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 1.5rem; text-align: center; background: var(--yellow); }.quote-band::before, .quote-band::after { position: absolute; color: rgba(25,35,59,.12); font-family: serif; font-size: 16rem; line-height: .5; }.quote-band::before { content: "{ "; top: 30%; left: 4%; }.quote-band::after { content: " }"; right: 4%; bottom: 25%; }.quote-band p { position: relative; margin: 0; font-size: clamp(1.7rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }.quote-band span { display: block; position: relative; margin-top: 1.3rem; font-family: "DM Mono", monospace; font-size: .7rem; letter-spacing: .08em; }
footer { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(200px, 2fr) auto; align-items: center; gap: 2rem; padding: 2rem clamp(1.5rem, 5vw, 6rem); color: #fff; background: var(--ink); }footer p { margin: 0; color: rgba(255,255,255,.6); font-size: .76rem; }footer > a:last-child { color: var(--yellow); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }.footer-brand { font-size: .75rem; }

.matias { background: #c9e3ff; background-image: radial-gradient(circle at 80% 18%, #fff 0 2px, transparent 2.8px), radial-gradient(circle at 63% 38%, #fff 0 1px, transparent 1.8px), radial-gradient(circle at 88% 62%, #fff 0 1.5px, transparent 2.3px); }.matias .tag { color: #fff; background: #1768c4; }

@media (max-width: 840px) { .character-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.character-card:nth-child(1), .character-card:nth-child(4) { grid-column: span 1; } }
@media (max-width: 580px) { .site-header { padding-inline: 1.25rem; }.site-header nav { gap: 1rem; }.brand { font-size: .7rem; }.atom-mark { transform: scale(.85); transform-origin: left center; }.hero { min-height: 610px; padding-inline: 1.25rem; }.hero-stats { gap: 1.1rem; }.hero-stats strong { font-size: 1.4rem; }.section { padding-inline: 1.25rem; }.character-grid { grid-template-columns: 1fr; }.character-card { min-height: 235px; }.episode-list li { grid-template-columns: 34px 1fr; gap: .8rem; }.episode-icon { display: none; }footer { grid-template-columns: 1fr; gap: 1.2rem; }.footer-brand { width: max-content; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.character-card, .episode-list li { transition: none; } }
