/* nightcase. — a noir desk at night: rain, a lamp, one case file, a cat. */
:root {
  --night: #0b0c10;
  --night-2: #12141a;
  --panel: #171920;
  --line: rgba(232, 220, 196, 0.12);
  --paper: #e8dcc4;
  --paper-deep: #d8c8a8;
  --ink: #24201a;
  --text: #e8dcc4;
  --dim: #9a917f;
  --gold: #d9a441;
  --red: #b0392c;
  --blue: #5b7bb8;
  --type: "Special Elite", "American Typewriter", "Courier New", monospace;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* film grain over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: 0.06; mix-blend-mode: overlay;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0c160; }
a:focus-visible, .button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.narrow { max-width: 760px; }

h1, h2, h3, .brand, .type { font-family: var(--type); font-weight: 400; letter-spacing: 0.2px; }

/* ── header ─────────────────────────────────────────── */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); font-size: 26px; }
.brand:hover { color: var(--paper); }
.brand img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.navlink { font-size: 15px; color: var(--dim); text-decoration: none; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.toplinks { display: flex; align-items: center; gap: 8px; }
.toplinks .navlink { white-space: nowrap; }
/* phones: just the way home in the header (help is in the footer, and the logo goes to nightcase's home) */
@media (max-width: 560px) { .toplinks .navlink + .navlink { display: none; } }
.navlink:hover { color: var(--paper); border-color: rgba(217, 164, 65, 0.5); }

/* ── hero: the office at night ──────────────────────── */
.night {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 38%, rgba(217, 164, 65, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(11, 12, 16, 0.55) 0%, rgba(11, 12, 16, 0.82) 60%, var(--night) 100%),
    url("/nightcase/img/office.jpg") center 30% / cover no-repeat;
}
.rain { position: absolute; inset: -20% 0 0 0; pointer-events: none; z-index: 1; opacity: 0.35;
  background-image:
    repeating-linear-gradient(104deg, transparent 0 14px, rgba(190, 205, 230, 0.16) 14px 15px, transparent 15px 41px),
    repeating-linear-gradient(101deg, transparent 0 23px, rgba(190, 205, 230, 0.10) 23px 24px, transparent 24px 67px);
  background-size: 100% 220px, 100% 340px;
  animation: rain 0.9s linear infinite;
}
@keyframes rain { to { background-position: -40px 220px, -60px 340px; } }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 34px 0 80px; }
.eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: lowercase; color: var(--gold); }
.eyebrow::before { content: "// "; color: var(--dim); }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.08; margin: 14px 0 20px; color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 18.5px; color: #cfc5b0; margin: 0 0 30px; max-width: 34em; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 6px;
  background: var(--gold); color: #1b1408; text-decoration: none;
  font-family: var(--type); font-size: 19px;
  box-shadow: 0 10px 30px rgba(217, 164, 65, 0.22);
}
.button:hover { color: #1b1408; background: #e5b356; }
.button.ghost { background: transparent; color: var(--paper); box-shadow: none; border: 1px solid var(--line); }
.coming { display: block; margin-top: 14px; font-size: 14.5px; color: var(--dim); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.pills li { border: 1px solid var(--line); background: rgba(11, 12, 16, 0.5); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: var(--paper); }

.phone { display: block; width: 100%; border-radius: 44px; box-shadow: 0 0 0 1px rgba(232, 220, 196, 0.10), 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(217, 164, 65, 0.10); }
.hero-shot { justify-self: center; width: min(340px, 100%); position: relative; }
.hero-shot .phone { transform: rotate(1.5deg); }

/* ── sections ───────────────────────────────────────── */
section { padding: 64px 0; position: relative; }
section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 10px 0 12px; color: var(--paper); }
section p.sub { font-size: 18px; color: #c4baa6; margin: 0 0 36px; max-width: 40em; }

/* the pitch: one strong statement straight after the hero */
.pitch { padding-top: 40px; }
.pitch h2 { font-size: clamp(32px, 4.6vw, 52px); }
.pitch p.sub { font-size: 19.5px; color: #d6ccb6; max-width: 36em; margin-bottom: 0; }

/* the four moves, as stamped index cards */
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.move {
  background: linear-gradient(170deg, var(--paper), var(--paper-deep));
  color: var(--ink); border-radius: 4px; padding: 22px 20px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}
.move:nth-child(1) { transform: rotate(-1.2deg); }
.move:nth-child(2) { transform: rotate(0.8deg); }
.move:nth-child(3) { transform: rotate(-0.5deg); }
.move:nth-child(4) { transform: rotate(1.3deg); }
.move h3 { font-size: 24px; margin: 0 0 6px; }
.move p { margin: 0; font-size: 15px; line-height: 1.6; color: #4a4234; }
.move .no { position: absolute; top: 12px; right: 14px; font-size: 12px; color: #8a7d64; }

/* feature files */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card .art { height: 92px; display: flex; align-items: flex-end; margin-bottom: 10px; }
.card .art img { max-height: 92px; max-width: 140px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.card h3 { font-size: 22px; margin: 6px 0 6px; color: var(--paper); }
.card p { margin: 0; color: #b9af9b; font-size: 15.5px; line-height: 1.65; }
.card .tag { display: inline-block; margin-top: 12px; font-size: 12.5px; color: var(--blue); }

/* see it in action */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 26px; scroll-snap-type: x mandatory; scrollbar-color: #3a3a40 transparent; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.shots img { height: 560px; width: auto; border-radius: 34px; box-shadow: 0 0 0 1px rgba(232, 220, 196, 0.10), 0 18px 40px rgba(0, 0, 0, 0.55); }
.shots figcaption { font-size: 14px; color: var(--dim); margin-top: 12px; text-align: center; }

/* nickel's corner */
.nickel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 36px; display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: center; }
.nickel img { width: 190px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6)); }
.nickel p { margin: 0; color: #c4baa6; }
.nickel h2 { margin-top: 0; }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why div { border-top: 1px solid var(--line); padding-top: 18px; }
.why h3 { font-size: 20px; margin: 0 0 6px; color: var(--gold); }
.why p { margin: 0; font-size: 15.5px; color: #b9af9b; }

/* questions */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 22px; margin-bottom: 10px; }
.faq summary { font-family: var(--type); font-size: 19px; cursor: pointer; color: var(--paper); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #b9af9b; margin: 12px 0 2px; font-size: 16px; }

.note { border: 1px dashed rgba(217, 164, 65, 0.35); border-radius: 10px; padding: 18px 22px; color: #b9af9b; font-size: 15px; }

footer { padding: 40px 0 64px; color: var(--dim); font-size: 14.5px; border-top: 1px solid var(--line); margin-top: 30px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 12px; }
footer a { color: #c9bfa9; }

/* ── plain pages: privacy, terms, support ───────────── */
.doc { background: linear-gradient(175deg, var(--paper), var(--paper-deep)); color: var(--ink); border-radius: 4px; padding: 40px clamp(22px, 5vw, 56px) 44px; margin: 14px 0 40px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); position: relative; }
.doc::before { content: attr(data-file); position: absolute; top: 16px; right: 22px; font-size: 12px; color: #8a7d64; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 4px; line-height: 1.15; color: #1d1913; }
.doc h2 { font-size: 23px; margin: 34px 0 6px; color: #1d1913; }
.doc .updated { color: #6d6250; margin: 0 0 26px; font-size: 15px; }
.doc p, .doc li { font-size: 16px; color: #3a3328; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #8a2c20; font-weight: 500; }
.doc .short { background: rgba(36, 32, 26, 0.06); border-left: 3px solid var(--red); padding: 14px 18px; margin: 0 0 8px; }
.doc .stamp { display: inline-block; font-family: var(--type); color: var(--red); border: 2px solid var(--red); padding: 2px 10px; transform: rotate(-4deg); font-size: 15px; opacity: 0.85; margin-bottom: 18px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 6px; gap: 36px; }
  .hero-shot { width: 270px; }
  .moves { grid-template-columns: 1fr 1fr; }
  .grid, .why { grid-template-columns: 1fr; }
  .nickel { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .nickel img { margin: 0 auto; width: 140px; }
  .shots img { height: 460px; }
}
@media (max-width: 480px) {
  .moves { grid-template-columns: 1fr; }
  .navlink { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rain { animation: none; }
  html { scroll-behavior: auto; }
}
