/* ============================================================
   THE TECH DROP — DOORS
   One site, fourteen worlds. Dark Cinema is home (the homepage);
   every article and answer page lives behind one door, assigned
   by its slug and fixed forever. Each theme only re-skins the
   shared page skeleton: same header, same wordmark, same words.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@600;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Press+Start+2P&family=Rubik:wght@500;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ---------- the doorway itself ---------- */
.door-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(230px, 42vh, 400px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.door-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 46%, var(--paper) 100%);
}
.door-hero .door-tag {
  position: absolute; left: clamp(16px, 4vw, 44px); bottom: 18px; z-index: 2;
  font-family: "Space Mono", monospace;
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--sun);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border: 1px solid var(--line);
  padding: .5rem .8rem;
  backdrop-filter: blur(6px);
}
body.door ::selection { background: var(--sun); color: var(--paper); }
body.door .kicker { color: var(--sun-deep); }
body.door .article-cover { border-color: var(--line); }

/* ---------- Nº 01 · Swiss Poster ---------- */
body.door-swiss {
  --paper: #FFFFFF; --paper-deep: #F1F1F1; --card: #FFFFFF;
  --ink: #111111; --ink-soft: #555555;
  --sun: #E2001A; --sun-deep: #B00014; --sun-wash: #FDECEC;
  --line: #141414; --radius: 0px;
  --shadow: 10px 10px 0 0 #111111;
}
body.door-swiss h1 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
body.door-swiss .door-hero { height: clamp(200px, 34vh, 320px); }

/* ---------- Nº 02 · Tokyo Metro ---------- */
body.door-tokyo {
  --paper: #0D2830; --paper-deep: #092027; --card: #12333C;
  --ink: #F2EDE2; --ink-soft: #A9C2BC;
  --sun: #FFD23F; --sun-deep: #7FE7DC; --sun-wash: #143A44;
  --line: #1F4A54; --radius: 10px;
}
body.door-tokyo h1 { font-family: "Archivo", sans-serif; font-weight: 800; }

/* ---------- Nº 03 · Herbarium ---------- */
body.door-herbarium {
  --paper: #F6F1E1; --paper-deep: #EAE1C8; --card: #FCF8EC;
  --ink: #2E3A28; --ink-soft: #6C7357;
  --sun: #7A8B3D; --sun-deep: #54682B; --sun-wash: #EFE8CF;
  --line: #D8CEAC; --radius: 4px;
}
body.door-herbarium h1 { font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: 0; }
body.door-herbarium body, body.door-herbarium p { font-family: "Newsreader", Georgia, serif; }

/* ---------- Nº 04 · Space Age '74 ---------- */
body.door-space {
  --paper: #2A1709; --paper-deep: #211105; --card: #3E2410;
  --ink: #FFE9C9; --ink-soft: #D9A05F;
  --sun: #FF7A29; --sun-deep: #FFB03A; --sun-wash: #472A0F;
  --line: #5E3617; --radius: 22px;
}
body.door-space h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: .005em; }

/* ---------- Nº 05 · Y2K Chrome ---------- */
body.door-y2k {
  --paper: #E9EAF4; --paper-deep: #D6D8EC; --card: #FFFFFF;
  --ink: #1B1B30; --ink-soft: #5B5F7E;
  --sun: #FF4FD8; --sun-deep: #0090D8; --sun-wash: #F6DCF7;
  --line: #BCBEE2; --radius: 28px;
}
body.door-y2k h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-style: italic; }

/* ---------- Nº 06 · Arcade Cabinet ---------- */
body.door-arcade {
  --paper: #0B0B19; --paper-deep: #080814; --card: #15152C;
  --ink: #E9E9FF; --ink-soft: #9292C4;
  --sun: #FFD23F; --sun-deep: #FF3E6C; --sun-wash: #1B1B3B;
  --line: #28284F; --radius: 4px;
}
body.door-arcade h1 { font-family: "Press Start 2P", monospace; font-size: clamp(1.35rem, 3.6vw, 2.1rem); line-height: 1.45; letter-spacing: 0; max-width: 26ch; }
body.door-arcade .kicker { font-family: "Press Start 2P", monospace; font-size: .6rem; }

/* ---------- Nº 07 · Art Deco ---------- */
body.door-deco {
  --paper: #0C2019; --paper-deep: #081711; --card: #122A20;
  --ink: #F3E5BF; --ink-soft: #BAA96E;
  --sun: #D4AF37; --sun-deep: #F0D98C; --sun-wash: #153529;
  --line: #2B4C3B; --radius: 2px;
}
body.door-deco h1 { font-family: "Cinzel", serif; font-weight: 800; letter-spacing: .015em; }

/* ---------- Nº 08 · Palm Springs ---------- */
body.door-palm {
  --paper: #F7E9D4; --paper-deep: #EFDBC0; --card: #FFF6E7;
  --ink: #4A2D1A; --ink-soft: #996A49;
  --sun: #E07840; --sun-deep: #C14E27; --sun-wash: #FBEEDB;
  --line: #E2C69E; --radius: 20px;
}
body.door-palm h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }

/* ---------- Nº 09 · Deep Sea ---------- */
body.door-sea {
  --paper: #04121F; --paper-deep: #030C16; --card: #082336;
  --ink: #D9F4FF; --ink-soft: #7FB2C9;
  --sun: #3EE6C4; --sun-deep: #6FF2FF; --sun-wash: #072A3E;
  --line: #0F3549; --radius: 16px;
}
body.door-sea h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .01em; }

/* ---------- Nº 10 · Night Market ---------- */
body.door-night {
  --paper: #130A20; --paper-deep: #0D0617; --card: #1E1134;
  --ink: #FFEBF7; --ink-soft: #B48FD6;
  --sun: #FF4FA3; --sun-deep: #2EE6E6; --sun-wash: #241344;
  --line: #352155; --radius: 14px;
}
body.door-night h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; text-shadow: 0 0 22px rgba(255, 79, 163, .45); }

/* ---------- Nº 11 · Pop Art Comic ---------- */
body.door-pop {
  --paper: #FFF6E3; --paper-deep: #FFE9B8; --card: #FFFFFF;
  --ink: #141414; --ink-soft: #4A4A4A;
  --sun: #FF3B30; --sun-deep: #0057FF; --sun-wash: #FFF0A0;
  --line: #141414; --radius: 6px;
  --shadow: 8px 8px 0 0 #141414;
}
body.door-pop {
  background-image: radial-gradient(rgba(20,20,20,.10) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
}
body.door-pop h1 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; }

/* ---------- Nº 12 · Stained Glass ---------- */
body.door-glass {
  --paper: #181030; --paper-deep: #110A22; --card: #201544;
  --ink: #F5E9CF; --ink-soft: #BBA9DA;
  --sun: #E8B33C; --sun-deep: #E0684B; --sun-wash: #251748;
  --line: #3C2B66; --radius: 10px;
}
body.door-glass h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }

/* ---------- Nº 13 · Terminal ---------- */
body.door-terminal {
  --paper: #020A02; --paper-deep: #010601; --card: #041704;
  --ink: #BCFFB2; --ink-soft: #63AC60;
  --sun: #33FF66; --sun-deep: #9DFF57; --sun-wash: #062B08;
  --line: #10400F; --radius: 0px;
}
body.door-terminal h1 { font-family: "Space Mono", monospace; font-weight: 700; font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.2; letter-spacing: 0; }
body.door-terminal .kicker, body.door-terminal .door-tag { font-family: "Space Mono", monospace; }

/* ---------- Nº 14 · Candy Gel ---------- */
body.door-candy {
  --paper: #FFF0F4; --paper-deep: #FFE1EC; --card: #FFFFFF;
  --ink: #4A2436; --ink-soft: #9C5D76;
  --sun: #FF6FA5; --sun-deep: #7C5CFF; --sun-wash: #E4F7EF;
  --line: #FFC7DA; --radius: 30px;
}
body.door-candy h1 { font-family: "Rubik", sans-serif; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- fix pass: header assurance + full-bleed doorway ----------
   The site header always sits above the doorway and always takes clicks;
   the doorway itself is pure scenery (aria-hidden) and never intercepts.
   Each page now OPENS inside its still: the doorway fills the first
   screen under the header, and the kicker + title + standfirst ride on a
   frosted paper panel straddling the image, so the title stays legible
   on every theme, light or dark. */
body.door { overflow-x: clip; }
body.door .topbar { position: relative; z-index: 5; }
body.door .topbar a { pointer-events: auto; }
body.door .door-hero {
  height: calc(100svh - 64px);
  pointer-events: none;
}
body.door .door-hero::after {
  background: linear-gradient(180deg, rgba(10, 8, 4, .16) 0%, transparent 30%, transparent 52%, color-mix(in srgb, var(--paper) 45%, transparent) 82%, var(--paper) 100%);
}
body.door .door-hero .door-tag { top: 18px; right: clamp(16px, 4vw, 44px); left: auto; bottom: auto; }
body.door .article-hero {
  position: relative; z-index: 2; isolation: isolate;
  margin-top: -30svh;
}
body.door .article-hero::before {
  content: ""; position: absolute; inset: -20px -22px; z-index: -1;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius);
}
