/* "After hours" version of the website. Loaded after /site.css, so the upload
   card, buttons and roast results are shared and only the mood changes here.
   The page is one night in the office: scrolling moves the clock from 11:47 PM
   to sunrise (see after-hours.js). */

:root {
  --night: #0a111d;
  --night-up: #141f33;
  --cream: #f2ead9;
  --cream-soft: #b4b8bb;
  --glow: #f4a93c;
  --red-pen: #c42b1c;
  --hairline: rgba(242, 234, 217, 0.16);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --skyline: max(clamp(210px, 30vh, 320px), 22.6vw); /* tall enough that the tower top is never cropped */
}

html { color-scheme: dark; background: var(--night); }

body {
  position: relative;
  background: transparent;
  color: var(--cream);
}

/* ---- The sky: fixed behind everything, dawn fades in from the script ------ */

.sky,
.dawn {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.sky { background: linear-gradient(180deg, var(--night) 0%, var(--night-up) 100%); }

.dawn {
  z-index: -1;
  opacity: 0;
  background: linear-gradient(180deg, #1d2a48 0%, #54496a 52%, #b8704f 100%);
}

/* ---- Top bar ------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 17, 29, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav { padding-top: 12px; padding-bottom: 12px; }

.brand {
  color: var(--cream);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

.brand svg { width: 34px; height: 34px; }

.clock {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--glow);
  font-variant-numeric: tabular-nums;
}

.nav-links a:not(.btn) { color: var(--cream-soft); }

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--cream); }

.btn { border-radius: 4px; }

.topbar .btn-dark {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--hairline);
}

.topbar .btn-dark:hover { border-color: var(--cream); background: transparent; }

/* ---- Hero ---------------------------------------------------------------- */

/* The pool of desk-lamp light the page sits in */

.skyline {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 14px;
  width: 100%;
  height: var(--skyline);
}

/* The window ledge the view ends on */

.skyline .lit { transition: opacity 1.4s ease; }

.corner-office { animation: breathe 5s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.skyline text {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  fill: var(--cream);
}

/* Keeps the headline clear of the skyline. The upload page can overlap it. */

.timestamp {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--glow);
}

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(50px, 7vw, 84px);
  line-height: 0.98;
}

h1 em { color: var(--glow); }

h2 { font-size: clamp(38px, 5vw, 56px); line-height: 1.02; }

h3 { font-size: 28px; letter-spacing: 0; }

.lede {
  margin: 24px 0 0;
  max-width: 40ch;
  color: var(--cream-soft);
  font-size: 19px;
}

/* ---- The upload card is a printed page under the lamp --------------------- */

.roaster {
  position: relative;
  color: var(--ink);
  background: #f8f3e8;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(244, 169, 60, 0.16);
  transform: rotate(-0.6deg);
  padding: 22px 24px 18px;
}

.dropzone {
  min-height: 260px;
  border-radius: 2px;
  border: 1.5px dashed #c9bfad;
  background: transparent;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragging {
  border-color: var(--red-pen);
  background: rgba(196, 43, 28, 0.04);
}

.dropzone .icon { background: var(--ink); color: var(--glow); border-radius: 2px; }

.dropzone strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.preview { border-radius: 2px; }

.privacy-note a { color: var(--red-pen); }

/* Results read like the red-pen pass on a printed draft */

.results-head {
  font-family: var(--hand);
  font-size: 34px;
  font-weight: 700;
  color: var(--red-pen);
  margin-bottom: 6px;
}

.roast {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ded5c4;
  border-radius: 0;
  padding: 14px 0;
}

.roast:last-child { border-bottom: 0; }

.roast .fix {
  border-left: 2px solid var(--red-pen);
  color: #38464f;
}

.roast .fix b {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1;
  color: var(--red-pen);
}

.summary { border-radius: 2px; }

.upsell { border-radius: 2px; background: #efe5d1; }

/* ---- The rest of the night ------------------------------------------------ */

.section-alt {
  background: transparent;
  border: 0;
}

.section-head p { color: var(--cream-soft); }

/* ---- Morning call to action ----------------------------------------------- */

.cta {
  border-radius: 2px;
  background: #f8f3e8;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(10, 17, 29, 0.4);
}

.cta p { color: #46535c; }

.cta img {
  border: 6px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(23, 36, 46, 0.3);
}

.fine { color: #5f6b73; }

.cta .timestamp { color: var(--red-pen); }

.cta .btn-ghost { color: var(--ink); border-color: #c9bfad; }

/* ---- About ---------------------------------------------------------------- */

.story { padding: 72px 0 40px; }

.story h1 { font-size: clamp(46px, 6.4vw, 76px); }

.story p { color: #dcd6c9; }

.story .lede { color: var(--cream-soft); }

.story .pull {
  border-left-color: var(--glow);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--cream);
}

.story .signoff {
  margin-top: 36px;
  font-family: var(--hand);
  font-size: 30px;
  line-height: 1.25;
  color: var(--cream);
}

.story h2 {
  margin: 44px 0 10px;
  font-size: 30px;
  color: var(--cream);
}

.story a:not(.btn) { color: var(--glow); }

.story .btn-ghost { color: var(--cream); border-color: var(--hairline); }

.check {
  background: #f8f3e8;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.check p { color: #46535c; }

.check q {
  font-family: var(--hand);
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--red-pen);
}

/* ---- Footer --------------------------------------------------------------- */

.footer {
  background: rgba(10, 17, 29, 0.82);
  color: var(--cream-soft);
}

.footer a { color: var(--cream-soft); }

/* ---- Small screens -------------------------------------------------------- */

@media (max-width: 560px) {
  .nav { gap: 10px; }

  .clock { font-size: 13px; }

  .roaster { transform: none; padding: 16px 16px 14px; }

  .nav-links .about-link { display: none; }

  .story .pull { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .corner-office { animation: none; }
}
