/* =====================================================================
   Montevelli Studio — the Privacy page and the 404 page
   The same palette, type, bar, buttons and Alpine Shadow plate as the home
   page (assets/css/site.css), in a small stylesheet of their own.
   Paths are relative to this file, so it works from any address (the 404
   page can be served for any missing path).
   ===================================================================== */
@font-face { font-family: "Work Sans Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"); size-adjust: 113.2%; ascent-override: 82%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"); size-adjust: 109.7%; ascent-override: 89%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/work-sans.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk.woff2") format("woff2"); }

:root {
  --night: #051118; --charcoal: #0F2230; --ice: #B9C6D2; --mist: #8C9DAD; --glacier: #9CC3DD; --snow: #EEF3F8;
  --alpenglow: #DB9542; --alpenglow-soft: #F8BF5C; --accent-ink: #1A1206;
  --panel: #050F18; --frame: #B27B3A;
  --rule: color-mix(in oklab, var(--ice) 14%, transparent); --rule-strong: color-mix(in oklab, var(--ice) 26%, transparent);
  --display: "Space Grotesk", "Space Grotesk Fallback", "Helvetica Neue", Arial, sans-serif;
  --sans: "Work Sans", "Work Sans Fallback", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px)); --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1240px; --bar-h: 72px; --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); scroll-padding-top: calc(var(--bar-h) + 20px); }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--night); color: var(--snow); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--alpenglow-soft); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--alpenglow-soft); color: var(--night); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--snow); color: var(--night); text-decoration: none; font-weight: 500; transition: top .2s ease; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gut) + var(--gut-r)); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.label { font: 500 .78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ice); }
.label .stage::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; vertical-align: 1px; background: var(--alpenglow); }
.label .stage::after { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 12px; vertical-align: middle; background: color-mix(in oklab, var(--ice) 50%, transparent); }

/* ---------- The bar: the home page's, with links back into it ---------- */
.bar { position: sticky; z-index: 40; top: 0; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(var(--gut-r), calc((100% - var(--maxw)) / 2)) 0 max(var(--gut), calc((100% - var(--maxw)) / 2)); background: var(--night); box-shadow: 0 1px 0 var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 4px; margin-left: -4px; border-radius: 8px; }
.brand-mark { width: 30px; height: 30px; color: var(--snow); }
.brand-word { font: 500 1.3rem/1 var(--display); letter-spacing: -.035em; }
.brand-sub { font: 500 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--mist); padding-top: 3px; }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.bar-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; text-decoration: none; font: 500 .86rem/1 var(--sans); border-radius: 999px; }
.bar-link:hover { color: var(--alpenglow-soft); }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font: 500 .86rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .3s ease; }
.pill--accent { background: var(--alpenglow); color: var(--accent-ink); }
.pill--accent:hover { background: var(--alpenglow-soft); }
.pill--accent:focus-visible, .btn--accent:focus-visible { outline-color: var(--snow); }

/* ---------- Buttons (as on the home page) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 500 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--alpenglow); color: var(--accent-ink); }
.btn--accent:hover { background: var(--alpenglow-soft); }
.btn--route::after { content: "→"; display: inline-block; transition: transform .3s var(--ease); }
.btn--route:hover::after, .btn--route:focus-visible::after { transform: translateX(4px); }
.btn--line { border: 1px solid color-mix(in oklab, var(--snow) 38%, transparent); background: color-mix(in oklab, var(--night) 46%, transparent); }
.btn--line:hover, .btn--line:focus-visible { border-color: var(--alpenglow); box-shadow: 0 0 0 4px color-mix(in oklab, var(--alpenglow) 40%, transparent); }

/* ---------- Alpine Shadow: the plate text stands on ---------- */
.shade { position: relative; isolation: isolate; padding: clamp(26px, 2.8vw, 40px) clamp(24px, 3vw, 44px); }
.shade::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: 2px; background-color: var(--panel);
  box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--edge, #3C566B) 80%, transparent), 0 0 0 3.5px color-mix(in oklab, var(--edge, #3C566B) 20%, transparent), 0 24px 44px -20px rgba(2, 7, 11, .8); }
.nf-plate { --edge: #9CC0DC; }      /* over the sea of cloud */

/* ---------- The footer ---------- */
.foot { margin-top: auto; padding: 0 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--ice); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a, .foot button { text-decoration: none; color: inherit; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.foot a:hover, .foot button:hover { color: var(--alpenglow-soft); border-color: color-mix(in oklab, var(--alpenglow) 60%, transparent); }

/* =====================================================================
   PRIVACY
   ===================================================================== */
/* A strip of the last scene on the home page: the Matterhorn from base camp at dusk. Shown at a whole number of
   screen pixels per art pixel, so it stays exact. Decorative; the page's content starts below it. */
.pv-scene { height: 300px; background: #15102E url("../img/scene-contact-dusk-wide.webp") no-repeat; background-size: 1680px auto; background-position: calc(74vw - 938px) -436px; image-rendering: pixelated; border-bottom: 1px solid var(--rule); }
@media (min-width: 1240px) { .pv-scene { height: 380px; background-size: 2520px auto; background-position: calc(74vw - 1407px) -663px; } }
@media (min-width: 1900px) { .pv-scene { height: 460px; background-size: 3360px auto; background-position: calc(74vw - 1876px) -890px; } }
.pv { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 44rem); gap: 0 clamp(40px, 7vw, 110px); align-items: start; padding-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(64px, 10vh, 120px); }
.pv-head { grid-column: 1 / -1; display: grid; gap: 14px; margin-bottom: clamp(36px, 6vh, 60px); }
.pv-head h1 { font: 500 clamp(2.8rem, 7vw, 5rem)/1 var(--display); letter-spacing: -.05em; }
.pv-updated { font-size: .9rem; color: var(--mist); }
.pv-nav { position: sticky; top: calc(var(--bar-h) + 28px); display: grid; gap: 12px; }
.pv-nav ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--rule-strong); }
.pv-nav a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; font-size: .92rem; color: var(--ice); }
.pv-nav a:hover { color: var(--snow); border-left-color: var(--alpenglow); }
.pv-body { display: grid; gap: clamp(40px, 6vh, 56px); min-width: 0; }
.pv-short { display: grid; gap: 14px; }
.pv-short h2 { font: 500 1.5rem/1.15 var(--display); letter-spacing: -.03em; }
.pv-short ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.pv-short li { position: relative; padding-left: 22px; color: var(--snow); }
.pv-short li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--frame); }
.pv-sec { display: grid; gap: 14px; scroll-margin-top: calc(var(--bar-h) + 24px); }
.pv-sec h2 { padding-top: 22px; border-top: 1px solid var(--rule-strong); font: 500 clamp(1.5rem, 2.2vw, 1.9rem)/1.12 var(--display); letter-spacing: -.03em; }
.pv-sec h3 { margin-top: 6px; font: 500 1.08rem/1.3 var(--display); letter-spacing: -.015em; color: var(--snow); }
.pv-sec p, .pv-sec li { color: var(--ice); max-width: 42rem; }
.pv-sec ul { padding-left: 20px; display: grid; gap: 10px; }
.pv-sec strong { color: var(--snow); font-weight: 500; }
.pv-sec a, .pv-short a { color: var(--glacier); text-underline-offset: 3px; }
.pv-sec a:hover, .pv-short a:hover { color: var(--alpenglow-soft); }
.pv-action { justify-self: start; margin-top: 4px; }
@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  .bar-link { display: none; }
  .pv { grid-template-columns: minmax(0, 1fr); }
  .pv-nav { position: static; margin-bottom: 36px; }
  .pv-scene { height: 240px; background-position: calc(70vw - 938px) -442px; }
}
@media (max-width: 640px) { .brand-sub { display: none; } .shade { padding: 24px 20px 26px; } }

/* =====================================================================
   404 — off the route
   ===================================================================== */
/* The scene: the Matterhorn above a sea of cloud (the home page's upper-slopes scene), still, behind the page. */
.nf-scene { position: fixed; inset: 0; z-index: 0; margin: 0; overflow: hidden; background: #355C7A; }
/* framed so the peak stands clear of the message: above it on portrait screens, to its right on wide ones */
.nf-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform-origin: 50% 40%; transform: translateY(-17%) scale(1.5); }
@media (min-aspect-ratio: 1/1) { .nf-scene img { object-position: 50% 30%; transform-origin: 50% 50%; transform: translateX(14%) scale(1.3); } }
.nf-page .bar, .nf-page main, .nf-page .foot { position: relative; z-index: 1; }
.nf-page .bar { position: sticky; }
.nf { flex: 1; display: grid; align-items: center; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(40px, 8vh, 96px); }
.nf-plate { display: grid; gap: clamp(16px, 2.4vh, 22px); justify-items: start; max-width: min(620px, 100%); }
.nf-plate h1 { font: 500 clamp(2.3rem, 4.6vw, 3.9rem)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.nf-plate p { max-width: 34rem; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.55; color: var(--ice); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.nf-page .foot { background: var(--night); padding-top: 0; }
.nf-page .foot-inner { border-top: 0; }
@media (max-aspect-ratio: 1/1) { .nf { align-items: end; } }
@media (max-width: 640px) { .nf-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .nf-actions .btn { padding: 0 14px; } .nf-actions .btn--accent { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .btn, .btn--route::after, .pill, .skip-link { transition: none; } }
