/* ==========================================================================
   Nagytarcsa Konténer Raktár – dark mode.
   --------------------------------------------------------------------------
   Every page links this file with media="(prefers-color-scheme: dark)", so the
   browser applies it on its own whenever the system prefers dark – no
   JavaScript needed. theme.js switches the same file on or off when a visitor
   picks a mode by hand.

   It must be linked AFTER styles.css: light mode is the base, and everything
   here only overrides it.
   ========================================================================== */

:root {
  /* lets the browser draw scrollbars and built-in controls dark as well */
  color-scheme: dark;

  --bg: #0f1721;
  --surface: #182430;
  --tint: #141e2a;
  --ink: #e8edf3;
  --muted: #a3b1c1;
  --line: #2a3a4b;
  --primary-fg: #8ac1ec;
  --accent-hover: #f9a54e;
  --accent-text: #f6a54e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .45);
}

/* Translucent cream turns brown on a dark background, so these two use solid amber:
   the highlighted word gets a marker under it, the ticks match the featured price card.
   The marker is a text underline placed low enough to clear the tails of letters like
   "g" and "y": its distance counts from the baseline, so it works with every typeface. */
.hl {
  background-image: none;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .11em;
  text-underline-offset: .3em;
  text-decoration-skip-ink: none;
}

.check-list li::before { background-color: var(--accent); }
.check-list li::after { border-color: var(--primary-dark); }

.site-header::before {
  background-image: repeating-linear-gradient(90deg, var(--primary) 0 20px, #246391 20px 40px);
}

.hero {
  background-image:
    radial-gradient(60% 70% at 85% 0%, #1d3b5a 0%, rgba(29, 59, 90, 0) 70%),
    linear-gradient(180deg, #131d29 0%, var(--bg) 100%);
}

.hero-media {
  background-color: #0f2036;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

.btn--outline:hover { background-color: rgba(138, 193, 236, .12); }

.price-card--featured { border-color: #2c6690; }

.img-placeholder {
  border-color: #3b5a78;
  background-color: #121e2b;
  background-image: repeating-linear-gradient(90deg, rgba(138, 193, 236, .07) 0 2px, transparent 2px 22px);
}

.site-footer { background-color: #091320; }

/* photos are eased off a little so a bright sky does not glare in a dark room */
.hero-media > img,
.gallery img { filter: brightness(.9); }

/* the hero illustration becomes a night scene: pale hazy moon instead of a sun */
.art-sky-top { stop-color: #0f2036; }
.art-sky-bottom { stop-color: #172c44; }
.art-sun { fill: #f1c489; opacity: .6; filter: blur(6px); }
.art-ring { fill: #f1c489; fill-opacity: .07; stroke: #f1c489; stroke-opacity: .28; }
.art-shadow { fill: #000; opacity: .5; }
.art-roof { fill: #4690c4; }
.art-roof-lines { stroke: #2f70a3; }
.art-side-top { stop-color: #2a689a; }
.art-side-bottom { stop-color: #1d5380; }
.art-side-lines { stroke: #061b2e; stroke-opacity: .7; }
.art-rail-top { fill: #3578ab; }
.art-rail-bottom,
.art-castings { fill: #061b2e; }
.art-door-top { stop-color: #3580b4; }
.art-door-bottom { stop-color: #2569a0; }
.art-seam { stroke: #061b2e; }
.art-rods { fill: #dbe6ee; }
.art-handles { stroke: #dbe6ee; }
