/* =========================================================================
   valleynaturephotos.site — skin "mist"

   Cold, deep and layered. The whole design is built on one idea: atmospheric
   perspective. Things that are further away are lighter and lower in contrast,
   and the page reproduces that in its surfaces rather than only in the
   photographs. The hero carries a slow drifting fog gradient built entirely in
   CSS - no images, no canvas, nothing to load.

   HAND-MAINTAINED. The forge never overwrites this file.
   ========================================================================= */

:root {
  --bg: #0e1418;
  --bg-deep: #080c0f;
  --surface: #16202a;
  --surface-2: #1d2a35;
  --text: #e8eef2;
  --muted: #8aa0ae;
  --indigo: #6f9bb5;
  --indigo-soft: #a8c5d6;
  --indigo-deep: #4d7387;
  --glow: rgba(111, 155, 181, 0.30);
  --glow-soft: rgba(168, 197, 214, 0.14);
  --line: rgba(168, 197, 214, 0.14);
  --line-strong: rgba(168, 197, 214, 0.28);

  --r-sm: 3px;
  --r: 5px;
  --r-lg: 8px;

  --shadow-sm: 0 2px 12px rgba(4, 8, 11, 0.5);
  --shadow: 0 16px 44px rgba(4, 8, 11, 0.6);
  --shadow-lift: 0 26px 64px rgba(4, 8, 11, 0.72);

  --grad-wash: radial-gradient(140% 100% at 50% -20%, rgba(111,155,181,0.20) 0%, rgba(111,155,181,0.05) 45%, transparent 75%);
}

body.style-mist {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Distance haze at the foot of every band, the way a valley recedes. */
body.style-mist .band + .band::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

/* ---------- type ---------------------------------------------------------- */

body.style-mist h1,
body.style-mist h2,
body.style-mist h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

body.style-mist h1 {
  font-size: clamp(2.1rem, 5vw, 4.1rem);
}

body.style-mist .eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--indigo);
}

body.style-mist .lede,
body.style-mist .hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 60ch;
}

/* ---------- header -------------------------------------------------------- */

body.style-mist .site-header {
  background: rgba(14, 20, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

body.style-mist .brand-name em {
  font-style: normal;
  color: var(--indigo-soft);
}

body.style-mist .brand-dot {
  background: var(--indigo);
  box-shadow: 0 0 18px var(--glow);
}

body.style-mist .site-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
}

body.style-mist .site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--indigo-soft);
  transition: right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.style-mist .site-nav a:hover { color: var(--text); }
body.style-mist .site-nav a:hover::after { right: 0; }

/* ---------- hero: drifting fog, pure CSS ---------------------------------- */

body.style-mist .hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1116 0%, #121b22 60%, var(--bg) 100%);
  padding-block: clamp(5rem, 13vw, 10rem);
  border-bottom: 1px solid var(--line);
}

/* Two counter-drifting bands of haze. Blurred radial gradients only. */
body.style-mist .hero::before,
body.style-mist .hero::after {
  content: '';
  position: absolute;
  inset: -20% -40%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 20% 60%, rgba(168,197,214,0.16), transparent 70%),
    radial-gradient(closest-side at 62% 45%, rgba(168,197,214,0.11), transparent 70%),
    radial-gradient(closest-side at 85% 68%, rgba(168,197,214,0.13), transparent 70%);
  filter: blur(26px);
  animation: mist-drift 46s linear infinite;
}

body.style-mist .hero::after {
  animation-duration: 71s;
  animation-direction: reverse;
  opacity: 0.7;
}

@keyframes mist-drift {
  from { transform: translate3d(-6%, 0, 0) scale(1.04); }
  50%  { transform: translate3d(6%, -1.5%, 0) scale(1.1); }
  to   { transform: translate3d(-6%, 0, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  body.style-mist .hero::before,
  body.style-mist .hero::after { animation: none; }
}

body.style-mist .hero .shell { position: relative; z-index: 1; }

/* ---------- buttons ------------------------------------------------------- */

body.style-mist .btn {
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

body.style-mist .btn-primary {
  background: var(--indigo-deep);
  color: #f2f8fb;
  border: 1px solid var(--indigo);
  box-shadow: 0 0 0 0 var(--glow);
}

body.style-mist .btn-primary:hover {
  background: var(--indigo);
  box-shadow: 0 0 26px var(--glow);
  transform: translateY(-1px);
}

body.style-mist .btn-ghost {
  background: rgba(168, 197, 214, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

/* ---------- cards: layers receding into haze ------------------------------ */

body.style-mist .grid { gap: clamp(1.2rem, 2.4vw, 2rem); }

body.style-mist .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

body.style-mist .card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

body.style-mist .card-media { position: relative; }

/* The haze that lifts on hover. */
body.style-mist .card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 20, 24, 0.55) 100%);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

body.style-mist .card:hover .card-media::after { opacity: 0.35; }

body.style-mist .card-badge {
  background: rgba(8, 12, 15, 0.7);
  border: 1px solid var(--line);
  color: var(--indigo-soft);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
}

body.style-mist .card-price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  background: var(--indigo-deep);
  color: #f2f8fb;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-sm);
}

body.style-mist .card-body { padding: 0.9rem 1rem 1.1rem; }

body.style-mist .card-title { font-size: 0.98rem; font-weight: 500; }
body.style-mist .card-title a { color: var(--text); }
body.style-mist .card-title a:hover { color: var(--indigo-soft); }

body.style-mist .card-download {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--indigo);
  background: none;
  border: 0;
  padding: 0;
}

/* ---------- chips --------------------------------------------------------- */

body.style-mist .tag-chips a,
body.style-mist .tag-index a {
  background: rgba(168, 197, 214, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.74rem;
}

body.style-mist .tag-chips a:hover,
body.style-mist .tag-index a:hover {
  border-color: var(--indigo);
  color: var(--indigo-soft);
  background: rgba(111, 155, 181, 0.12);
}

/* ---------- detail + purchase --------------------------------------------- */

body.style-mist .detail-frame {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(8px, 1.4vw, 16px);
  box-shadow: var(--shadow);
}

body.style-mist .specs > div {
  border-bottom: 1px solid var(--line);
  padding-block: 0.65rem;
}

body.style-mist .specs dt {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.style-mist .purchase {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-block: 1.4rem;
}

body.style-mist .purchase-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

body.style-mist .purchase-amount {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  color: var(--indigo-soft);
}

body.style-mist .purchase-unit {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.style-mist .purchase-note { font-size: 0.86rem; color: var(--muted); }

body.style-mist .purchase-benefits {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

body.style-mist .purchase-benefits li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  position: relative;
}

body.style-mist .purchase-benefits li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--indigo);
  box-shadow: 0 0 10px var(--glow);
}

body.style-mist .paypal-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 0;
  max-width: 30rem;
}

body.style-mist .paypal-modal::backdrop {
  background: rgba(6, 10, 13, 0.72);
  backdrop-filter: blur(3px);
}

body.style-mist .paypal-modal-card { padding: 1.9rem; }
body.style-mist .paypal-modal-price { font-size: 2rem; color: var(--indigo-soft); }

/* ---------- collections and journal --------------------------------------- */

body.style-mist .collection-strip,
body.style-mist .journal-teasers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

body.style-mist .collection-strip a {
  display: block;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

body.style-mist .collection-strip a:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

body.style-mist .collection-name { display: block; font-size: 1.15rem; }
body.style-mist .collection-price {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.5rem;
  color: var(--indigo-soft);
  margin-top: 0.3rem;
}
body.style-mist .collection-count { display: block; font-size: 0.78rem; color: var(--muted); }

body.style-mist .journal-teaser article,
body.style-mist .journal-item article {
  border-left: 2px solid var(--line-strong);
  padding-left: 1rem;
  transition: border-color 0.25s ease;
}

body.style-mist .journal-teaser article:hover,
body.style-mist .journal-item article:hover { border-left-color: var(--indigo); }

body.style-mist .journal-date {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 0.4rem;
}

body.style-mist .journal-list { list-style: none; padding: 0; margin: 0; max-width: 48rem; }
body.style-mist .journal-item { padding-block: 1.6rem; }
body.style-mist .journal-article { max-width: 40rem; margin-inline: auto; }
body.style-mist .journal-article h2 { font-size: 1.35rem; margin-top: 2.2rem; }

body.style-mist .journal-cta,
body.style-mist .journal-siblings {
  border-top: 1px solid var(--line-strong);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  max-width: 40rem;
  margin-inline: auto;
}

body.style-mist .journal-siblings ul { list-style: none; padding: 0; margin: 0; }

/* ---------- sitemap ------------------------------------------------------- */

body.style-mist .sitemap-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

body.style-mist .sitemap-col-wide { grid-column: 1 / -1; }
body.style-mist .sitemap-col h2 {
  font-size: 1rem;
  color: var(--indigo-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
body.style-mist .sitemap-col ul { list-style: none; padding: 0; margin: 0.6rem 0 0; }
body.style-mist .sitemap-col-wide ul { columns: 3 14rem; column-gap: 2rem; }
body.style-mist .sitemap-col li { padding-block: 0.2rem; font-size: 0.9rem; break-inside: avoid; }

/* ---------- footer -------------------------------------------------------- */

body.style-mist .site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

body.style-mist .footer-cols span {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
}

body.style-mist .footer-cols a { color: var(--muted); font-size: 0.9rem; }
body.style-mist .footer-cols a:hover { color: var(--indigo-soft); }
body.style-mist .footer-base { border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
