/* Eric Niehaus. A walk through a gallery at dusk: each page opens on a painting,
   the writing sits on the dark ground, and the last sections turn to warm daylight. */
:root{
  --loam:#1e1c16; --panel:#29261e; --deep:#171611;
  --bone:#efe7d4; --haze:#b5aa92; --sun:#e2b45c;
  --dawn:#ebe2cb; --ink:#2a271f;
  --rule:rgba(239,231,212,.16);
  --display:"Libre Caslon Display","Libre Caslon Text",Georgia,serif;
  --serif:"Libre Caslon Text",Georgia,"Times New Roman",serif;
  --sans:"Libre Franklin","Helvetica Neue",Arial,sans-serif;
  --gutter:clamp(20px,5vw,72px); --max:1240px;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--loam);color:var(--bone);font-family:var(--serif);font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid var(--sun);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:var(--display);font-weight:400;text-wrap:balance;margin:0;line-height:1.1}
p{margin:0}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.muted{color:var(--haze)}
.small{font-family:var(--sans);font-size:14px;line-height:1.55}

/* Nav */
.nav{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px var(--gutter);font-family:var(--sans);font-size:14px}
.nav.solid{position:relative;background:var(--deep);border-bottom:1px solid var(--rule)}
.nav .mark{font-family:var(--display);font-size:22px;text-decoration:none;color:var(--bone)}
.nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 22px}
.nav ul a{text-decoration:none;color:rgba(239,231,212,.82)}
.nav ul a:hover,.nav ul a[aria-current="page"]{color:var(--bone);text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--sun)}

/* Page hero: painting with title */
.hero{position:relative;min-height:min(86vh,820px);display:flex;align-items:flex-end;overflow:hidden;background:#141310}
.hero.short{min-height:clamp(380px,48vw,560px)}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,19,16,.6) 0%,rgba(20,19,16,0) 24%,rgba(20,19,16,0) 42%,rgba(30,28,22,.9) 86%,var(--loam) 100%)}
.hero-inner{position:relative;z-index:2;width:100%;max-width:var(--max);margin:0 auto;padding:0 var(--gutter) 52px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:32px}
.hero h1{font-size:clamp(54px,9.5vw,138px);letter-spacing:-.01em;line-height:.95}
.hero.short h1{font-size:clamp(46px,7vw,96px)}
.hero .lede{font-size:clamp(19px,2vw,24px);max-width:34ch;margin-top:20px}
.plate{font-family:var(--sans);font-size:12.5px;line-height:1.45;color:var(--haze);border-left:1px solid var(--sun);padding-left:12px;max-width:260px}
.plate b{font-weight:500;color:var(--bone)}
.plate i{font-family:var(--serif)}

/* Sections */
section{padding:clamp(64px,9vw,120px) 0}
.sec-head{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(24px,5vw,80px);align-items:start}
.sec-head h2{font-size:clamp(38px,5vw,66px)}
.intro{font-size:20px;max-width:56ch}
.intro + .intro{margin-top:16px}
.band{position:relative;height:clamp(240px,40vw,500px);overflow:hidden}
.band img{width:100%;height:100%;object-fit:cover}
.band .plate{position:absolute;right:var(--gutter);bottom:20px;background:rgba(20,19,16,.62);padding:8px 12px}
.opening{padding-top:36px}
.opening p{font-size:clamp(22px,2.4vw,30px);line-height:1.5;max-width:36ch}
.opening p + p{margin-top:24px;font-size:20px;line-height:1.7;max-width:58ch;color:var(--haze)}

/* Home directory */
.rooms{display:grid;gap:0;border-top:1px solid var(--rule);margin-top:48px}
.room{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,5fr) auto;gap:clamp(20px,4vw,56px);align-items:center;padding:22px 0;border-bottom:1px solid var(--rule);text-decoration:none}
.room img{width:100%;aspect-ratio:21/9;object-fit:cover;transition:filter .3s}
.room h3{font-size:clamp(30px,3.4vw,46px)}
.room p{color:var(--haze);font-size:17px;margin-top:6px;max-width:48ch}
.room .go{font-family:var(--sans);font-size:14px;color:var(--sun);white-space:nowrap}
.room:hover h3{text-decoration:underline;text-decoration-color:var(--sun);text-underline-offset:6px}
.room:hover img{filter:brightness(1.12)}

/* Philosophy: questions, works */
.questions-strip{margin-top:44px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;background:var(--rule);border:1px solid var(--rule)}
.q{background:var(--loam);padding:20px 16px 22px;display:flex;flex-direction:column;gap:10px;text-decoration:none}
.q .n{font-family:var(--sans);font-size:13px;color:var(--sun)}
.q h3{font-size:22px;line-height:1.2}
.q:hover{background:var(--panel)}
.group{margin-top:clamp(56px,7vw,96px)}
.group-head{display:flex;justify-content:space-between;align-items:baseline;gap:20px;border-bottom:1px solid var(--rule);padding-bottom:14px}
.group-head h3{font-size:clamp(28px,3vw,40px)}
.works{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,36px);margin-top:28px}
.works.books{grid-template-columns:repeat(2,minmax(0,1fr))}
.work-card{border-top:1px solid var(--sun);padding-top:20px;display:flex;flex-direction:column;gap:10px}
.work-card .kind{font-family:var(--sans);font-size:13px;color:var(--sun)}
.work-card h4{font-family:var(--display);font-weight:400;font-size:clamp(26px,2.6vw,34px);margin:0;line-height:1.15}
.books .work-card h4{font-size:clamp(32px,3.4vw,46px)}
.work-card .sub{font-style:italic;color:var(--haze)}
.work-card p.desc{font-size:17px}
.work-card .meta{font-family:var(--sans);font-size:13px;color:var(--haze);margin-top:auto;padding-top:6px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.btn{display:inline-block;font-family:var(--sans);font-size:14.5px;font-weight:500;text-decoration:none;padding:10px 18px;border:1px solid var(--sun);color:var(--sun);border-radius:2px;background:none;cursor:pointer;line-height:1.3}
.btn:hover{background:var(--sun);color:var(--loam)}
.btn.ghost{border-color:var(--rule);color:var(--bone)}
.btn.ghost:hover{border-color:var(--bone);background:none;color:var(--bone)}
.btn.off{border-color:var(--rule);color:var(--haze);cursor:default}
.btn.off:hover{background:none;color:var(--haze)}

/* Seven questions page */
.qlist{margin-top:40px;border-top:1px solid var(--rule)}
.qrow{display:grid;grid-template-columns:72px minmax(0,4fr) minmax(0,7fr);gap:clamp(16px,3vw,48px);padding:34px 0;border-bottom:1px solid var(--rule)}
.qrow .n{font-family:var(--display);font-size:44px;color:var(--sun);line-height:1}
.qrow h3{font-size:clamp(28px,3vw,40px)}
.qrow p{font-size:19px;max-width:58ch}
.protocol{margin-top:64px;padding:36px clamp(20px,4vw,48px);border:1px solid var(--sun);background:var(--panel)}
.protocol p.big{font-family:var(--display);font-size:clamp(26px,3vw,40px);line-height:1.25;max-width:30ch}

/* Show */
.show-grid{margin-top:48px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:var(--rule);border:1px solid var(--rule)}
.seg{background:var(--panel);padding:24px 22px 26px}
.seg h3{font-size:24px;margin-bottom:8px}
.seg p{font-size:16px;color:var(--haze);line-height:1.6}
.when{margin-top:36px;display:flex;flex-wrap:wrap;gap:16px 40px;align-items:baseline}
.when .big{font-family:var(--display);font-size:clamp(28px,3vw,40px)}

/* Art */
.art{background:var(--deep)}
.gallery{margin-top:48px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(14px,2vw,24px)}
.piece{margin:0;grid-column:span 2;display:flex;flex-direction:column;gap:10px}
.piece.wide{grid-column:span 4}.piece.half{grid-column:span 3}.piece.tall{grid-row:span 2}
.piece button{all:unset;cursor:zoom-in;display:block;overflow:hidden;background:#0f0e0b}
.piece button:focus-visible{outline:2px solid var(--sun);outline-offset:3px}
.piece img{width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .5s ease}
.piece.tall img{aspect-ratio:auto;height:100%;max-height:none}
.piece button:hover img{transform:scale(1.02)}
@media (prefers-reduced-motion:reduce){.piece img,.room img{transition:none}}
.piece figcaption{font-family:var(--sans);font-size:13px;color:var(--haze);line-height:1.45}
.piece figcaption i{font-family:var(--serif);color:var(--bone);font-size:15px}
.room-title{margin-top:clamp(56px,7vw,96px);display:flex;justify-content:space-between;align-items:baseline;gap:20px;border-bottom:1px solid var(--rule);padding-bottom:14px}
.room-title h3{font-size:clamp(28px,3vw,40px)}
.lb{position:fixed;inset:0;z-index:50;background:rgba(12,11,9,.94);display:none;align-items:center;justify-content:center;padding:4vw;flex-direction:column;gap:14px}
.lb.open{display:flex}
.lb img{max-height:82vh;width:auto;max-width:100%;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.lb p{font-family:var(--sans);font-size:14px;color:var(--haze);text-align:center}
.lb p i{font-family:var(--serif);color:var(--bone)}
.lb .close{position:absolute;top:18px;right:22px;font-family:var(--sans);font-size:15px;color:var(--bone);background:none;border:1px solid var(--rule);padding:8px 14px;cursor:pointer;border-radius:2px}

/* Daylight */
.day{background:var(--dawn);color:var(--ink);color-scheme:light}
.day .muted,.day .intro.muted{color:#6b6352}
.day .plate{color:#5d5646}.day .plate b{color:var(--ink)}
.day .btn{border-color:#7a5a1c;color:#6e4f12}
.day .btn:hover{background:#6e4f12;color:var(--dawn)}
.day a:focus-visible,.day button:focus-visible{outline-color:#6e4f12}
.day .rule-top{border-top:1px solid rgba(42,39,31,.22)}
.facts{margin-top:48px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,40px)}
.fact{border-top:1px solid rgba(42,39,31,.25);padding-top:18px}
.fact h3{font-size:26px;margin-bottom:8px}
.fact p{font-size:17px}

/* Products */
.products{margin-top:48px;display:grid;gap:clamp(20px,3vw,32px)}
.product{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,5fr) minmax(0,3fr);gap:clamp(20px,4vw,56px);padding:32px 0;border-top:1px solid rgba(42,39,31,.22)}
.product .area{font-family:var(--sans);font-size:13px;color:#7a5a1c}
.product h3{font-size:clamp(34px,4vw,52px);margin-top:6px}
.product p{font-size:18px}
.product .how{font-size:16px;color:#5d5646}
.product .status{font-family:var(--sans);font-size:13px;color:#6b6352;margin-top:12px}

/* Ascent */
.pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,40px);margin-top:48px}
.pillar h3{font-size:28px;margin-bottom:8px}
.pillar p{font-size:17px;color:var(--haze)}
.titles{margin-top:48px;display:flex;flex-wrap:wrap;gap:14px 40px;align-items:baseline;border-top:1px solid var(--rule);padding-top:28px}
.titles span{font-family:var(--serif);font-style:italic;font-size:22px}
.titles .lab{font-family:var(--sans);font-style:normal;font-size:14px;color:var(--haze)}

/* Footer */
.foot{position:relative;height:clamp(220px,30vw,380px);overflow:hidden}
.foot img{width:100%;height:100%;object-fit:cover;object-position:50% 60%}
.foot .plate{position:absolute;right:var(--gutter);bottom:20px;background:rgba(20,19,16,.6);padding:8px 12px}
.foot .sig{position:absolute;left:var(--gutter);bottom:22px;font-family:var(--sans);font-size:13px;color:var(--bone);background:rgba(20,19,16,.6);padding:8px 12px;display:flex;gap:18px}
.foot .sig a{text-decoration:none}
.foot .sig a:hover{text-decoration:underline}

@media (max-width:980px){
  .questions-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .works{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .sec-head,.qrow,.product{grid-template-columns:1fr}
  .qrow .n{font-size:34px}
  .pillars,.facts,.works.books{grid-template-columns:1fr}
  .show-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .piece,.piece.half{grid-column:span 1}.piece.wide{grid-column:span 2}.piece.tall{grid-row:auto}
  .room{grid-template-columns:1fr}
  .room .go{display:none}
  .hero-inner{grid-template-columns:1fr}
  .nav{flex-direction:column;align-items:flex-start;gap:10px}
}
@media (max-width:560px){
  body{font-size:17px}
  .works,.show-grid,.gallery,.questions-strip{grid-template-columns:1fr}
  .piece,.piece.half,.piece.wide{grid-column:span 1}
  .band .plate,.foot .plate{display:none}
  .nav ul{gap:4px 14px;font-size:13px}
}
/* Shelf of covers */
.shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(22px,3vw,40px);margin-top:32px}
.shelf.papers{grid-template-columns:repeat(5,minmax(0,1fr))}
.vol{display:flex;flex-direction:column;gap:8px}
.vol .cv{display:block;aspect-ratio:2/3;border-radius:2px 5px 5px 2px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.45);position:relative;transition:transform .25s ease,box-shadow .25s}
.vol .cv::before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(255,255,255,.05) 60%,transparent);z-index:1}
.vol .cv img{width:100%;height:100%;object-fit:cover}
.vol a.cv:hover{transform:translateY(-4px);box-shadow:0 22px 40px rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){.vol .cv{transition:none}.vol a.cv:hover{transform:none}}
.vol h4{font-family:var(--display);font-weight:400;font-size:22px;line-height:1.2;margin:10px 0 0}
.vol h4 a{text-decoration:none}
.vol h4 a:hover{text-decoration:underline;text-decoration-color:var(--sun);text-underline-offset:4px}
.vol .desc{font-size:15px;line-height:1.5;color:var(--haze)}
.vol .meta{font-family:var(--sans);font-size:12.5px;color:#8f846d;line-height:1.45}
.vol .links{display:flex;gap:14px;font-family:var(--sans);font-size:13.5px}
.vol .links a{color:var(--sun);text-decoration:none}
.vol .links a:hover{text-decoration:underline}
.vol.soon .cv{filter:grayscale(.3) brightness(.8)}
@media (max-width:1100px){.shelf.papers{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:900px){.shelf,.shelf.papers{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.shelf,.shelf.papers{grid-template-columns:repeat(2,minmax(0,1fr))}.vol .desc{display:none}}

.home-h1 .hero h1{font-size:clamp(40px,5.6vw,80px);line-height:1.05;max-width:18ch}

/* Monogram in the nav (replaces the name) */
.nav .mark{display:inline-flex;align-items:center;line-height:0;color:var(--bone)}
.nav .mark .nn-logo{display:block;height:44px;width:auto}
.nav .mark:hover{color:var(--sun)}
@media (max-width:700px){.nav .mark .nn-logo{height:36px}}

/* Calls to action sitting under a hero subtitle */
.hero .hero-actions{margin-top:26px}
.hero .hero-when{margin-top:26px;gap:12px 28px;align-items:center}
.hero .hero-when .big{font-size:clamp(20px,2vw,26px)}
@media (min-width:901px){.hero-inner>.plate:first-child{grid-column:2}}
@media (max-width:900px){.hero{padding-top:140px}}

/* Philosophy page feature card */
.mm-feature{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(24px,4vw,56px);align-items:center;margin-top:32px;text-decoration:none;border:1px solid var(--rule);background:var(--panel)}
.mm-feature .pic{aspect-ratio:16/9;overflow:hidden;background:#141310}
.mm-feature .pic img{width:100%;height:100%;object-fit:cover;object-position:50% 38%}
.mm-feature .txt{padding:24px 28px 24px 0}
.mm-feature h4{font-family:var(--display);font-weight:400;font-size:32px;line-height:1.15;margin:0 0 10px}
.mm-feature p{color:var(--haze);font-size:16px;line-height:1.55}
.mm-feature .go{font-family:var(--sans);font-size:14px;color:var(--sun);margin-top:16px;display:inline-block}
.mm-feature:hover h4{text-decoration:underline;text-decoration-color:var(--sun);text-underline-offset:5px}
@media (max-width:760px){.mm-feature{grid-template-columns:1fr}.mm-feature .txt{padding:0 22px 22px}}
/* status labels (standard: Draft, Reviewed, Rewritten, Tested, Endorsed) */
.st-pill{display:inline-block;font-family:var(--sans,sans-serif);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:3px;line-height:1.3;text-decoration:none!important;color:#1d1a14!important;background:#c9c2b2}
.st-draft .st-pill,.st-pill.st-draft{background:#d9a441}
.st-reviewed .st-pill,.st-pill.st-reviewed{background:#e0c27a}
.st-rewritten .st-pill,.st-pill.st-rewritten{background:#8fb3d9}
.st-tested .st-pill,.st-pill.st-tested{background:#8cc49a}
.st-endorsed .st-pill,.st-pill.st-endorsed{background:#f1e6c8}
.st-card{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 0;font-family:var(--sans,sans-serif);font-size:12px;opacity:.85}
.st-card .st-v{opacity:.8}
.st{border:1px solid rgba(128,128,128,.45);border-left:4px solid #d9a441;border-radius:4px;padding:12px 14px;margin:14px 0;font-family:var(--sans,sans-serif);font-size:13px;line-height:1.5;text-align:left}
.st.st-reviewed{border-left-color:#e0c27a}.st.st-rewritten{border-left-color:#8fb3d9}.st.st-tested{border-left-color:#8cc49a}.st.st-endorsed{border-left-color:#f1e6c8}
.st p{margin:0 0 4px!important;text-indent:0!important;text-align:left!important}
.st .st-top{display:flex;align-items:center;gap:10px;margin-bottom:8px!important}
.st .st-v{opacity:.75;font-size:12px}
.st .st-more a{font-size:12px}
.flow .st.st-in{font-size:.68em;margin:.4em 0 1em}
.st-table{width:100%;border-collapse:collapse;font-family:var(--sans,sans-serif);font-size:14px;margin:12px 0 28px}
.st-table th,.st-table td{border-bottom:1px solid rgba(128,128,128,.35);padding:9px 8px;text-align:left;vertical-align:top}
.st-table th{font-weight:600;opacity:.8}

.epigraph{margin:72px auto 8px;max-width:34ch;text-align:center}
.epigraph blockquote{margin:0;font-family:var(--display);font-size:clamp(26px,3vw,38px);line-height:1.3;color:var(--bone);text-wrap:balance}
.epigraph figcaption{margin-top:16px;font-family:var(--sans);font-size:14px;color:var(--haze)}
.epigraph figcaption i{font-family:var(--serif)}
