/* Washi Lantern Studios: the plain pages (privacy.html, 404.html). Loaded after style.css and motion.css,
   so the tokens, header, seal, buttons, wave band and footer come from there; this file adds only the page body. */

/* the paper ground without the canvas: the noise tooth from style.css plus a soft fixed light */
body.page{min-height:100svh;display:flex;flex-direction:column}
body.page main{flex:1 0 auto}
body.page::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(1100px 760px at 70% 0%,rgba(255,252,240,.8),rgba(255,246,226,0) 70%)}
:root[data-theme="night"] body.page::before{background:radial-gradient(1000px 700px at 70% 0%,rgba(255,178,86,.16),rgba(255,150,70,0) 70%)}
body.page header.nav{background:color-mix(in srgb,var(--paper) 82%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.nav .lamp[hidden]{display:none}
.nav-in .brand+.lamp{margin-left:auto}   /* a header with no section links (404) */
.foot nav a[aria-current="page"]{color:var(--ink)}

/* ---------- a written page (privacy) ---------- */
.doc{width:min(760px,calc(100vw - 32px));margin:30px auto 70px;padding:clamp(28px,5vw,56px) clamp(20px,5vw,60px);
  background:var(--card);border-radius:10px;box-shadow:var(--shadow);position:relative;overflow:hidden;transition:background .9s var(--ease)}
.doc::before{content:"";position:absolute;width:150px;height:30px;background:var(--tape-a);top:18px;left:-40px;transform:rotate(-38deg)}
.doc h1{font-family:var(--serif);font-weight:800;font-size:clamp(34px,5.4vw,56px);line-height:1.1;margin:14px 0 8px}
.doc .updated{font-size:14px;color:var(--mute);margin-bottom:26px}
.doc h2{font-family:var(--serif);font-weight:700;font-size:clamp(21px,2.4vw,25px);line-height:1.3;margin:30px 0 8px}
.doc p,.doc li{color:var(--mute)}
.doc p+p,.doc ul+p{margin-top:12px}
.doc ul{margin:10px 0 0;padding-left:0;list-style:none;display:grid;gap:8px}
.doc li{display:flex;gap:10px}
.doc li::before{content:"";flex:none;width:6px;height:6px;margin-top:.75em;border-radius:50%;background:var(--gold)}
.doc b,.doc code{color:var(--ink)}
.doc code{font-family:ui-monospace,Consolas,monospace;font-size:.88em;padding:1px 6px;border-radius:5px;background:var(--paper-2)}
/* a narrow card: the tape strip moves up into the corner so it clears the eyebrow's rule */
@media (max-width:560px){.doc::before{top:4px;left:-56px}}
.doc a{border-bottom:1.5px solid var(--verm)}
.doc a:hover{color:var(--ink)}
.doc .mail{font-size:clamp(17px,2.4vw,22px)}

/* ---------- not found ---------- */
.lost{width:min(760px,calc(100vw - 32px));margin:0 auto;padding:clamp(30px,6vh,70px) 0 70px;text-align:center}
.lost>svg{width:clamp(110px,16vw,150px);height:auto;margin:0 auto 6px;display:block;overflow:visible}
.lost .eyebrow{justify-content:center}
.lost h1{font-family:var(--serif);font-weight:800;font-size:clamp(38px,6vw,72px);line-height:1.08;margin:14px 0 16px}
.lost p{color:var(--mute);max-width:520px;margin:0 auto}
.lost .cta{justify-content:center;margin-top:28px}
.lost nav{margin-top:34px}
.lost nav h2{font-size:13.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);font-weight:500;margin-bottom:12px}
.lost nav ul{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.lost nav a{display:inline-block;padding:7px 16px;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);font-size:15px;transition:box-shadow .3s,transform .3s var(--ease)}
.lost nav a:hover{box-shadow:inset 0 0 0 1.5px var(--verm);transform:translateY(-2px)}
.lost .cap{fill:var(--ink)}
.lost .paper{fill:var(--card);stroke:var(--line);stroke-width:2}
.lost .ribs{fill:none;stroke:var(--mute);stroke-opacity:.35;stroke-width:1.6}
.lost .ch{fill:var(--mute);opacity:.55}
.lost .cord{stroke:var(--verm);stroke-width:3}
.lost .tassel{fill:var(--verm)}
.lost .fringe{stroke:var(--verm);stroke-width:2;stroke-linecap:round}
/* a phone on its side: a smaller lantern, so the heading is on the first screen */
@media (orientation:landscape) and (max-height:520px){.lost{padding-top:14px}.lost>svg{width:auto;height:150px}}
/* touch screens: the shelf links offer a 44 px tap area (invisible, around the pill) */
@media (pointer:coarse){.lost nav a{position:relative}.lost nav a::after{content:"";position:absolute;inset:-3px}}
