/*
Theme Name: Winterdahl English
Description: English research, talks and media site for Michael Winterdahl.
Version: 1.0.0
Text Domain: winterdahl-english
*/
:root{
  color-scheme:dark;
  --background:#111916; --raised:#18231e; --band:#1b2821; --footer:#0d1512;
  --text:#f3f4e9; --muted:#c2cabf; --dim:#aebaae; --accent:#dbf395; --accent-hover:#efffbf;
  --edge:#3d4e43; --radius:12px; --content:75rem;
  --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif:Georgia,"Times New Roman",serif;
}
*,*::before,*::after{box-sizing:border-box}
html{margin:0;scroll-padding-top:1.5rem}
body{background:var(--background);color:var(--text);font:1rem/1.65 var(--sans);margin:0;overflow-wrap:break-word}
main,section,article,figure{display:block}
a{color:inherit;text-underline-offset:.22em}
a:hover{color:var(--accent)}
a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
img{display:block;max-width:100%;height:auto}
p,h1,h2,h3,figure,blockquote{margin:0}
.wrap{width:min(calc(100% - 5rem),var(--content));margin-inline:auto}
.skip{position:absolute;top:.5rem;left:1rem;padding:.6rem 1rem;background:var(--accent);color:var(--background);transform:translateY(-160%);z-index:10}
.skip:focus{transform:none}
.site-header{background:var(--footer);border-bottom:1px solid var(--edge);position:relative;z-index:5}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.7rem;min-height:5.35rem}
.brand{display:inline-flex;align-items:center;gap:.75rem;white-space:nowrap;text-decoration:none;font-weight:700;font-size:.98rem;line-height:1.1}
.brand small{display:block;color:var(--dim);font-size:.76rem;font-weight:500;letter-spacing:.025em;margin-top:.29rem}
.brand-mark{display:inline-grid;place-items:center;background:#26362b;min-width:2.65rem;border-radius:10px;aspect-ratio:1;color:var(--accent);font-weight:750;letter-spacing:-.08em}
.desktop-nav{display:flex;align-items:center;gap:1.6rem}
.site-header nav,.site-footer nav{display:flex;align-items:center;gap:clamp(.8rem,2.1vw,1.82rem)}
.site-header nav a,.site-footer nav a{text-decoration:none;padding-block:.42rem;white-space:nowrap;font-weight:550;font-size:.91rem}
.site-header nav a[aria-current="page"],.site-footer nav a[aria-current="page"]{color:var(--accent);text-decoration:underline}
.language{display:inline-flex;padding:.28rem .58rem;border:1px solid var(--edge);border-radius:7px;text-decoration:none;font-size:.83rem;line-height:1.45;font-weight:650;color:var(--accent)}
.mobile-nav{display:none}
.hero{padding-block:clamp(3.2rem,6vw,5.9rem) clamp(3.2rem,5.7vw,5.5rem);isolation:isolate;position:relative}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 83% 38%,#2b43333d,transparent 58%),linear-gradient(115deg,#15211b 0%,var(--background) 61%)}
.home-hero{padding-top:clamp(3.5rem,6.6vw,6.45rem)}
.hero-grid,.split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(2.5rem,6.2vw,6.35rem)}
.hero-grid>*{min-width:0}
.hero-wide{max-width:var(--content)}
.hero-copy .lead{margin-top:1.3rem;max-width:35rem}
.eyebrow{font-size:.81rem;letter-spacing:.115em;font-weight:750;line-height:1.48;text-transform:uppercase;color:var(--accent);margin:0 0 .85rem}
h1,h2{font-family:var(--serif);font-weight:400;line-height:1.04;letter-spacing:-.05em;text-wrap:balance}
h1{font-size:clamp(2.9rem,6.5vw,6.05rem)}
.hero:not(.home-hero) h1{font-size:clamp(2.65rem,5.25vw,5rem)}
h2{font-size:clamp(2.05rem,4.1vw,4rem);max-width:23ch}
h3{font:650 clamp(1.24rem,1.65vw,1.55rem)/1.22 var(--sans);letter-spacing:-.025em;text-wrap:balance}
h1 em,h2 em{color:var(--accent);font-weight:400}
.lead{font-size:clamp(1.07rem,1.53vw,1.31rem);line-height:1.57;color:var(--muted)}
.actions,.wp-block-buttons.actions{display:flex;align-items:center;flex-wrap:wrap;gap:.68rem;margin:1.65rem 0 0}
.actions .wp-block-button{margin:0}
.actions .wp-block-button__link{
  display:inline-flex;align-items:center;justify-content:center;min-height:2.95rem;padding:.59rem 1.05rem;
  border:1px solid var(--accent);border-radius:7px;background:var(--accent);
  color:var(--background);font-weight:730;font-size:.93rem;line-height:1.25;text-decoration:none;
}
.actions .wp-block-button__link:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.actions .is-style-outline .wp-block-button__link{border:1px solid #859889;background:transparent;color:var(--text)}
.actions .is-style-outline .wp-block-button__link:hover{border-color:var(--accent);color:var(--accent);background:#1d2a21}
.hero-portrait,.hero-wide-photo,.editorial-image,.press-thumb{position:relative;line-height:0}
.hero-portrait img,.hero-wide-photo img,.editorial-image img,.press-thumb img{width:100%;object-fit:cover;border-radius:var(--radius)}
.hero-portrait img{aspect-ratio:1;box-shadow:0 1.1rem 3.8rem #0005}
.hero-wide-photo img{aspect-ratio:1.35;object-position:center 45%}
.page-research .hero-wide-photo img{object-position:center}
.wp-element-caption{font:500 .84rem/1.45 var(--sans);color:var(--dim);margin:.66rem 0 0;text-align:start}
.credentials{border-block:1px solid var(--edge);background:#131e18}
.credential-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.credential{padding:1.45rem clamp(1rem,3.2vw,2.9rem)}
.credential:first-child{padding-inline-start:0}
.credential:not(:first-child){border-left:1px solid var(--edge)}
.credential .eyebrow{margin-bottom:.22rem;font-size:.76rem}
.credential-name{font-weight:750;font-size:1.07rem;line-height:1.35}
.meta{font-size:.88rem;margin-top:.15rem;color:var(--dim)}
.section{padding-block:clamp(3.1rem,6.8vw,6.35rem)}
.section h2{margin-bottom:1.3rem}
.section p:not(.eyebrow):not(.credential-name):not(.meta){color:var(--muted)}
.split{grid-template-columns:repeat(2,minmax(0,1fr))}
.feature-copy h2{max-width:17ch}
.feature-copy p+p,.short-call p+p{margin-top:.9rem}
.editorial-image img{aspect-ratio:1.42}
.research-quote{
  border:0;border-left:2px solid var(--accent);padding:.08rem 0 .08rem 1.3rem;margin:1.4rem 0;
  font:italic clamp(1.1rem,1.85vw,1.44rem)/1.6 var(--serif)
}
.research-quote cite{font:550 .82rem/1.35 var(--sans);color:var(--dim);display:block;margin-top:.65rem}
.text-link{margin-top:1.2rem}
.text-link a{color:var(--accent);font-weight:680}
.text-link a:hover{color:var(--accent-hover)}
.band{background:var(--band);border-block:1px solid var(--edge)}
.two-col,.three-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem}
.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}
.panel{display:flex;flex-direction:column;min-width:0;align-items:flex-start;padding:clamp(1.2rem,2.65vw,2.2rem);background:var(--raised);border:1px solid var(--edge);border-radius:var(--radius)}
.panel .eyebrow{margin-bottom:.62rem}
.panel h3{margin-bottom:.62rem}
.panel p:not(.eyebrow)+p:not(.eyebrow){margin-top:.65rem}
.panel .text-link:first-of-type,.panel h3+p+p.text-link{margin-top:1rem}
.panel .actions{margin-top:1.15rem}
.topic-grid{margin-bottom:1.1rem}
.topic-image{background:#111a15;width:100%;margin-bottom:1.3rem;padding:.55rem;border-radius:8px}
.topic-image img{width:100%;height:clamp(11rem,27vw,17rem);object-fit:contain;border-radius:4px}
.text-panel{max-width:unset}
.text-panel p{max-width:66ch}
.book-split{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.book-image{justify-self:center;text-align:center;line-height:0}
.book-image img{max-height:26rem;width:auto;margin:auto;object-fit:contain;border-radius:3px;box-shadow:.5rem 1rem 2.6rem #0008}
.book-split .book-image img{max-height:20rem}
.book-image .wp-element-caption{text-align:center}
.book-info{align-self:center}
.book-hero .hero-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
.press-thumb{width:100%;max-width:16rem;margin:.3rem 0 .62rem}
.press-thumb img{aspect-ratio:1.6}
.press-thumb:not(:last-child){margin-bottom:.85rem}
.contact-lines a{color:var(--text);font-weight:650}
.contact-lines a:hover{color:var(--accent)}
.contact-lines{line-height:1.8}
.compact-hero{border-bottom:1px solid var(--edge)}
.compact-hero .lead{max-width:42rem}
.short-call{max-width:48rem}
.site-footer{background:var(--footer);border-top:1px solid var(--edge)}
.footer-inner{display:flex;gap:2rem;justify-content:space-between;align-items:start;padding-block:2.3rem}
.site-footer p{color:var(--dim);font-size:.85rem;margin-top:.75rem}
.site-footer nav{flex-wrap:wrap;column-gap:1rem;row-gap:0;margin-bottom:.52rem}
@media(max-width:60rem){
 .wrap{width:min(calc(100% - 3rem),var(--content))}
 .desktop-nav{gap:1rem}
 .site-header nav{gap:.85rem}
 .hero-grid,.split{gap:2.5rem}
}
@media(max-width:49rem){
 .desktop-nav{display:none}
 .header-inner{min-height:4.7rem}
 .mobile-nav{display:block}
 .mobile-nav summary{cursor:pointer;padding:.42rem .72rem;border:1px solid var(--edge);border-radius:7px;font-weight:650;background:var(--raised)}
 .mobile-nav[open]{background:var(--raised);padding:.8rem;border:1px solid var(--edge);border-radius:10px;position:absolute;right:1.5rem;top:.77rem;box-shadow:0 .9rem 2.2rem #0008;min-width:12rem}
 .mobile-nav[open] summary{margin-bottom:.2rem}
 .mobile-nav nav{align-items:stretch;flex-direction:column;gap:0}
 .mobile-nav nav a{padding:.39rem .35rem;font-size:1rem}
 .mobile-nav .language{margin:.25rem 0 .09rem .35rem}
 .hero-grid,.split,.book-hero .hero-grid{grid-template-columns:1fr;gap:2rem}
 .home-hero .hero-copy h1{font-size:clamp(3.22rem,10.1vw,5.4rem)}
 .hero-portrait,.hero-wide-photo{width:min(100%,32rem)}
 .hero-portrait img{aspect-ratio:1.1;object-position:center}
 .book-image{justify-self:start}
 .book-image img{max-height:21rem}
 .feature>.editorial-image{grid-row:2}
 .three-col{grid-template-columns:repeat(2,minmax(0,1fr))}
 .credential{padding-inline:1.2rem}
 .footer-inner{flex-direction:column;gap:1.2rem}
}
@media(max-width:35rem){
 .wrap{width:calc(100% - 2rem)}
 .mobile-nav[open]{right:1rem}
 .hero{padding-top:2.8rem;padding-bottom:2.55rem}
 .eyebrow{font-size:.76rem}
 .two-col,.three-col,.credential-grid{grid-template-columns:1fr}
 .credential{padding:1rem 0}
 .credential:not(:first-child){border-left:0;border-top:1px solid var(--edge)}
 .credential-name{font-size:1rem}
 .hero-copy h1 br,.feature-copy h2 br{display:none}
 .book-hero .hero-copy br{display:initial}
 .section h2{margin-bottom:1.05rem}
 .section{padding-block:2.8rem}
}
