/* natemueller.com — clean static rebuild
   Design tokens lifted from the original Semplice build:
   18px root, 1230px container, Canela display + Proxima Nova UI, ink #292a2c */

@font-face{font-family:"Canela Web";font-weight:900;font-style:normal;font-display:swap;
  src:url("assets/fonts/Canela-Black-Web.woff2") format("woff2"),
      url("assets/fonts/Canela-Black-Web.woff") format("woff")}
@font-face{font-family:"Canela Text Web";font-weight:400;font-style:normal;font-display:swap;
  src:url("assets/fonts/CanelaText-Regular-Web.woff2") format("woff2"),
      url("assets/fonts/CanelaText-Regular-Web.woff") format("woff")}
@font-face{font-family:"Canela Text Web";font-weight:100;font-style:normal;font-display:swap;
  src:url("assets/fonts/CanelaText-Thin-Web.woff2") format("woff2"),
      url("assets/fonts/CanelaText-Thin-Web.woff") format("woff")}
@font-face{font-family:"Canela Text Web";font-weight:100;font-style:italic;font-display:swap;
  src:url("assets/fonts/CanelaText-ThinItalic-Web.woff2") format("woff2"),
      url("assets/fonts/CanelaText-ThinItalic-Web.woff") format("woff")}

:root{
  --header-h:calc(2.3rem + 28px);
  --ink:#292a2c;
  --muted:#6b6d70;
  --rule:#e6e6e6;
  --bg:#fff;
  --display:"Canela Web","Canela Text Web",Georgia,"Times New Roman",serif;
  --text:"Canela Text Web",Georgia,"Times New Roman",serif;
  --ui:proxima-nova,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --maxw:1230px;
  --gutter:1.66667rem; /* 30px */
}

*,*::before,*::after{box-sizing:border-box}
html{font-size:18px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--ui);font-size:1rem;line-height:1.66667;letter-spacing:-.028rem;
  -webkit-font-smoothing:antialiased}

img,video{max-width:100%;height:auto;display:block}
a{color:inherit}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid transparent}
.site-header .bar{max-width:var(--maxw);margin:0 auto;padding:1.15rem var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:1rem}
.wordmark{font-family:var(--ui);font-size:.889rem;font-weight:500;letter-spacing:0;
  text-decoration:none;color:#000}

/* CSS-only menu — no JS */
.nav-toggle{position:absolute;opacity:0;pointer-events:none}
.nav-button{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;
  width:28px;height:28px;cursor:pointer;border:0;background:none;padding:0}
.nav-button span{display:block;height:1.5px;width:22px;background:#000;transition:transform .2s ease,opacity .2s ease}
.nav-toggle:checked~.bar .nav-button span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav-toggle:checked~.bar .nav-button span:nth-child(2){opacity:0}
.nav-toggle:checked~.bar .nav-button span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
.site-nav{display:none;border-top:1px solid var(--rule)}
.nav-toggle:checked~.site-nav{display:block}
.site-nav ul{max-width:var(--maxw);margin:0 auto;padding:1.5rem var(--gutter) 2rem;
  list-style:none;display:flex;flex-wrap:wrap;gap:.4rem 2.5rem}
.site-nav a{font-family:var(--text);font-weight:100;font-size:1rem;letter-spacing:-.028rem;
  text-decoration:none;color:#000;padding:.35rem 0;display:inline-block}
.site-nav a:hover,.site-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:.28em}
.nav-toggle:focus-visible~.bar .nav-button{outline:2px solid #000;outline-offset:3px}

/* ---------- layout ---------- */
main{display:block}
.container{max-width:var(--maxw);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.row{display:grid;grid-template-columns:repeat(12,1fr);
  column-gap:var(--gutter);row-gap:2.2rem;align-items:start}
/* full-width media stacked with no seam (e.g. the logo wall) */
.row.flush{row-gap:0}
.row+.row{margin-top:var(--gutter)}
.row.valign-center{align-items:center}
.col{grid-column:span 12;min-width:0}
/* phones stack; tablets honour an --md override; desktop uses the authored --xl.
   The fallback must end at --xl, not 12, or every width between the tablet and
   desktop breakpoints collapses to a single column. */
@media (min-width:768px){ .col{grid-column:span var(--md,var(--xl,12))} }
@media (min-width:992px){ .col{grid-column:span var(--xl,12)} }

section{padding:1.1rem 0}
section.flush{padding:0}

/* ---------- type ---------- */
.display{font-family:var(--display);font-weight:900;font-size:2.389rem;line-height:1.209;
  margin:0 0 .6em}
.display .thin{font-family:var(--text);font-weight:100}
@media (max-width:767px){ h1.display{font-size:1.444rem;line-height:1.231} }

h2,h3{font-family:var(--text);font-weight:400;letter-spacing:-.03rem;margin:0 0 .5em}
h2{font-size:1.667rem;line-height:1.3}
h3{font-size:1.222rem;line-height:1.35}
p{margin:0 0 1.667em}
p:last-child{margin-bottom:0}

.eyebrow{font-family:var(--ui);font-size:.722rem;font-weight:600;letter-spacing:.056rem;
  text-transform:uppercase;color:var(--muted);margin:0 0 .9rem;line-height:1.4}
.lede{font-size:1rem;color:var(--muted)}
.meta{font-family:var(--ui);font-size:.778rem;line-height:1.65;letter-spacing:0;color:var(--muted)}
.meta strong{display:block;font-weight:600;color:var(--ink);text-transform:uppercase;
  letter-spacing:.05rem;font-size:.7rem;margin-top:1rem}
.meta strong:first-child{margin-top:0}

/* ---------- project cards ---------- */
.card{display:block;text-decoration:none;color:inherit}
.card img{width:100%;background:#f4f4f4}
.card .title{font-family:var(--text);font-weight:400;font-size:1.111rem;margin:.85rem 0 .15rem;
  letter-spacing:-.03rem}
.card .sub{font-family:var(--text);font-weight:100;font-size:1rem;color:var(--muted);margin:0}
.card:hover img{opacity:.88}
.card img{transition:opacity .18s ease}

/* ---------- figures ---------- */
figure{margin:0}
figure+figure{margin-top:var(--gutter)}
.caption{font-family:var(--ui);font-size:.722rem;color:var(--muted);margin-top:.6rem;letter-spacing:0}

/* ---------- about + contact ---------- */
.avatar{width:190px;height:190px;border-radius:50%;object-fit:cover}
.rule{border:0;border-top:1px solid var(--rule);margin:0}

/* ---------- footer ---------- */
.site-footer{padding:3rem 0 4rem;font-family:var(--ui);font-size:.778rem;letter-spacing:0;color:var(--muted)}
.site-footer a{color:var(--ink)}
.site-footer .bar{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;justify-content:space-between}

.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;background:#000;color:#fff;padding:.6rem 1rem;z-index:99}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- type utilities (map of the original's 8 font styles) ---------- */
.f-black   {font-family:var(--display);font-weight:900;font-style:normal}
.f-serif   {font-family:var(--text);font-weight:400;font-style:normal}
.f-thin    {font-family:var(--text);font-weight:100;font-style:normal}
.f-thin-i  {font-family:var(--text);font-weight:100;font-style:italic}
.f-ui      {font-family:var(--ui);font-weight:400;letter-spacing:0}
.f-ui-light{font-family:var(--ui);font-weight:300;letter-spacing:0}
.f-ui-med  {font-family:var(--ui);font-weight:500;letter-spacing:0}
.f-ui-semi {font-family:var(--ui);font-weight:600;letter-spacing:0}

/* the original opens with generous air above the hero */
main > section:first-child{padding-top:4rem}
@media (max-width:767px){ main > section:first-child{padding-top:1.6rem} }

/* ---------- full-bleed cover hero (100vh, as the original) ---------- */
.cover{position:relative;height:100vh;min-height:460px;overflow:hidden;padding:0;
  display:grid;place-items:center;background:#1a1a1a}
.cover-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  max-width:none;display:block}
.cover-inner{position:relative;z-index:1;padding:var(--gutter);text-align:center}
.cover-logo{width:320px;max-width:56vw;height:auto;margin:0 auto}
@media (max-width:767px){ .cover{height:76vh} }


/* ---------- typography carried over from the original ---------- */
/* Semplice sets size/leading/tracking per element inline; build.py forwards them
   as --fs/--lh/--ls/--c so the headline hierarchy survives. */
.t{font-size:var(--fs,inherit);line-height:var(--lh,inherit);
   letter-spacing:var(--ls,inherit);color:var(--c,inherit)}

/* the original removed headline-link underlines with `border-bottom:0` */
.no-underline,.no-underline a,h1 a,h1 a:hover{text-decoration:none}
h1 a,.display a{text-decoration:none}

/* ---------- homepage hero fills the window ---------- */
main > section.hero{min-height:calc(100svh - var(--header-h));
  padding-top:0;padding-bottom:0;display:grid;align-items:center}
@supports not (height:100svh){
  main > section.hero{min-height:calc(100vh - var(--header-h))}
}

/* a gallery block was a JS crossfade slider; show the frames side by side */
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:calc(var(--gutter) / 2)}
.gallery > *{min-width:0}
