/* /nuna-life-style.css — the Nuna Life look for library pages (27 Nov 2026).
   Link it AFTER /style.css and /missing.css on any page that belongs to Nuna Life:
       <link rel="stylesheet" href="/nuna-life-style.css">
   It only re-values the library's own tokens, so the page's layout and scripts are untouched.
   Palette: the simple game's thirteen tokens, nothing else.
     #0C1828 deep   #1E3350 lattice  #6E9CC4 ghostArc  #DCE8F2 tile   #9EC8EA live   #F4F8FB focus
     #2F8FE0 seam   #AFC6DA ink      #6583A1 soft      #2B4668 frame  #1F3248 sil    #0A1523 input
   Black mode: navy field, pale ink. Newsprint mode: the same palette inverted.
   The header is deep navy in both modes, and its prism accents are held to one blue. */

html,body{background:#0C1828}
/* Cormorant at weight 300 runs small and light, so pages set in rem get a larger base. /nuna-life sets its own sizes. */
html:not([data-path="/nuna-life"]){font-size:118.75%}
html:has(#paper:checked),
html:has(#paper:checked) body{background:#F4F8FB}

.site{
  --ground:#0C1828; --ground-ix:#0C1828; --plate:#0A1523; --paper:#0C1828;
  --ink:#AFC6DA;    --bright:#F4F8FB;    --soft:#6E9CC4;
  --rule:#2B4668;   --pale:#DCE8F2;      --ac:#9EC8EA;
  --serif:"Cormorant Garamond","Iowan Old Style",Palatino,"Palatino Linotype",Georgia,serif;
  /* prism accents, held to one blue: no rainbow anywhere on these pages */
  --nl-key:#9EC8EA; --nl-prism:linear-gradient(90deg,#2B4668,#2B4668); --nl-prism-k:linear-gradient(90deg,#9EC8EA,#9EC8EA);
  --nl-prism-c:#9EC8EA; --nl-sel:rgba(47,143,224,.38); --wm-a:linear-gradient(90deg,#9EC8EA,#9EC8EA);
  --nl-c1:#9EC8EA; --nl-c2:#9EC8EA; --nl-c3:#9EC8EA; --nl-c4:#9EC8EA; --nl-c5:#9EC8EA; --nl-c6:#9EC8EA; --nl-c7:#9EC8EA;
  font-weight:300; font-size:20px; line-height:1.5;
}
#paper:checked ~ .site{
  --ground:#F4F8FB; --ground-ix:#F4F8FB; --plate:#DCE8F2; --paper:#F4F8FB;
  --ink:#1F3248;    --bright:#0C1828;    --soft:#2B4668;
  --rule:#AFC6DA;   --pale:#0C1828;      --ac:#2F8FE0;
  --nl-key:#2F8FE0; --nl-prism:linear-gradient(90deg,#6E9CC4,#6E9CC4); --nl-prism-k:linear-gradient(90deg,#2F8FE0,#2F8FE0);
  --nl-prism-c:#2F8FE0; --nl-sel:rgba(158,200,234,.6); --wm-a:linear-gradient(90deg,#2F8FE0,#2F8FE0);
}

/* the header: deep Nuna blue, in both modes */
.site #nuna-nav,
#paper:checked ~ .site #nuna-nav{
  --ground-ix:#0C1828; --ink:#AFC6DA; --bright:#F4F8FB; --soft:#6E9CC4; --rule:#2B4668; --ac:#9EC8EA;
  --nl-prism:linear-gradient(90deg,#2B4668,#2B4668);
  --nl-c1:#9EC8EA; --nl-c2:#9EC8EA; --nl-c3:#9EC8EA; --nl-c4:#9EC8EA; --nl-c5:#9EC8EA; --nl-c6:#9EC8EA; --nl-c7:#9EC8EA;
  background-color:#0C1828;
}
#nuna-nav .nh-prism,
#nuna-nav .nh-out:hover .nh-prism{filter:none !important; animation:none !important}
#nuna-nav .nh-tab{font-family:var(--serif); font-weight:300; font-size:16px}
@media (max-width:760px){ #nuna-nav .nh-tab{font-size:clamp(12px,3.5vw,15px)} }

/* shared bits that carried their own blacks, whites and greys */
.site strong,.site b{font-weight:300; color:var(--bright)}
.site main a{text-decoration-thickness:1px; text-decoration-color:var(--rule); text-underline-offset:4px}
.site main a:hover{text-decoration-color:var(--ac)}
.site h1,.site h2,.site h3{font-weight:300}
.site main > h1{font-family:var(--display); font-weight:300; font-size:clamp(2.4rem,7vw,4rem); line-height:1; color:var(--bright)}
.site .ln-f select,.site .ln-f textarea{background:var(--plate); color:var(--ink); border-color:var(--rule)}
.site .ln-b button.ln-p{background:var(--bright); color:var(--ground); border-color:var(--bright)}
.site .ln-s{color:var(--soft)}
.site .ln-box{font-family:var(--serif); font-size:18px}
.site input,.site select,.site textarea,.site button{font-weight:300}
.site table{font-size:18px}
.site pre,.site code{font-size:14px}
.site dialog{color:var(--ink)}
.site dialog::backdrop{background:rgba(12,24,40,.72)}

/* a quiet way back to the Nuna Life page */
.nl-home{font-family:var(--serif); font-size:18px; margin:0 0 1rem}
.nl-home a{color:var(--bright)}

/* /life-flowers and /data/ornaments are set full width with no gutter of their own */
html[data-path="/life-flowers"] main,
html[data-path="/data/ornaments"] main{padding:clamp(2rem,5vw,4rem) clamp(1.1rem,4vw,3rem) 5rem; max-width:74rem; margin:0 auto}
html[data-path="/life-flowers"] .lf-card{color:var(--pale)}
html[data-path="/life-flowers"] .lf-pic{color:var(--pale)}

/* long paths in definition lists wrap rather than widen the page */
.site dd,.site dt{overflow-wrap:anywhere; min-width:0}
.site .ds-k{grid-template-columns:fit-content(46%) minmax(0,1fr)}
