:root {
  --pine: #075242;
  --pine-deep: #05362f;
  --pine-soft: #d7eee4;
  --textile-red: #b83a2c;
  --textile-red-deep: #8d291f;
  --clay: #ed7143;
  --ivory: #fbf6eb;
  --cream: #fffdf8;
  --white: #ffffff;
  --ink: #10231c;
  --muted: #40534b;
  --line: rgba(5, 82, 66, 0.16);
  --success: #087143;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-strong: rgba(255, 253, 248, 0.96);
  --shadow-sm: 0 10px 28px rgba(5, 54, 47, 0.11);
  --shadow-md: 0 22px 62px rgba(5, 54, 47, 0.17);
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 30px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 3%, rgba(100, 194, 153, 0.28), transparent 31rem),
    radial-gradient(circle at 94% 20%, rgba(237, 113, 67, 0.16), transparent 32rem),
    var(--ivory);
  color: var(--ink);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
p { line-height: 1.65; }
:focus-visible { outline: 3px solid rgba(184, 58, 44, 0.46); outline-offset: 3px; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.icon { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.media-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.skip-link { position: fixed; z-index: 1200; top: 8px; left: 8px; transform: translateY(-150%); background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { transform: none; }
.media-shade, .detail-shade, .hero-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(3, 24, 19, 0.84)); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease var(--reveal-delay, 0ms), transform 0.55s cubic-bezier(.2,.75,.2,1) var(--reveal-delay, 0ms); }
  .reveal-ready.is-visible { opacity: 1; transform: none; }
}

/* Desktop web: crisp white brand system. Mobile PWA values remain unchanged. */
@media (min-width: 761px) {
  :root {
    --ivory: #ffffff;
    --cream: #ffffff;
    --glass: rgba(255, 255, 255, 0.94);
    --glass-strong: #ffffff;
    --line: rgba(5, 54, 47, 0.13);
    --shadow-sm: 0 8px 24px rgba(5, 54, 47, 0.08);
    --shadow-md: 0 20px 52px rgba(5, 54, 47, 0.12);
  }
  body { background: #ffffff; }
}

@media (max-width: 760px) {
  :root {
    --ivory: #ffffff;
    --cream: #ffffff;
    --glass: rgba(255,255,255,.96);
    --glass-strong: #ffffff;
    --line: rgba(5,54,47,.14);
    --shadow-sm: 0 7px 22px rgba(5,54,47,.08);
    --shadow-md: 0 18px 46px rgba(5,54,47,.13);
  }
  body { padding-bottom: 80px; background: #ffffff; }
  .shell { width: min(calc(100% - 24px), var(--shell)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal-ready { opacity: 1 !important; transform: none !important; }
}

:root[data-contrast="high"] {
  --pine: #003f33;
  --pine-deep: #002d25;
  --textile-red: #a8261b;
  --textile-red-deep: #7f160f;
  --ink: #111814;
  --muted: #3d4b45;
  --line: rgba(0, 45, 37, .35);
  --pine-soft: #d7eee6;
}
:root[data-contrast="high"] body { color: #111814; }
:root[data-contrast="high"] a:focus-visible,
:root[data-contrast="high"] button:focus-visible,
:root[data-contrast="high"] input:focus-visible,
:root[data-contrast="high"] select:focus-visible,
:root[data-contrast="high"] textarea:focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
