/* Funky Artsy: public site styles. Gloock (display serif) for headings, Karla for text; no icon sets. */
:root{
  --bg:#faf6f1; --surface:#ffffff; --surface-2:#f1e9e1;
  --ink:#1f1a21; --muted:#665b63; --line:#e3d8cf;
  --accent:#12676a; --accent-deep:#0c4f51; --on-accent:#ffffff; /* peacock teal, from the RAW collection */
  --switch-on:#ffffff; --todo-bg:#fff1a8; --todo-ink:#4a3a00;
  --radius:2px; --col:72rem;
  --font:'Karla', 'Helvetica Neue', Arial, sans-serif;
  --font-display:'Gloock', Georgia, serif;
  color-scheme:light;
}
/* Dark colors apply when the visitor chooses Dark (the default), or chooses Auto on a device set to dark.
   assets/theme.js sets data-theme on <html> (dark, light or auto). */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#171316; --surface:#201b1f; --surface-2:#2a2329;
    --ink:#f2ebe5; --muted:#b9adb3; --line:#3d3339;
    --accent:#62c6be; --accent-deep:#8dd8d1; --on-accent:#13181a;
    --switch-on:#3c333a; --todo-bg:#4a3d0c; --todo-ink:#ffe68a;
    color-scheme:dark;
  }
  :root:not([data-theme="light"]) .logo-light{ display:none; }
  :root:not([data-theme="light"]) .logo-dark{ display:block; }
}
:root[data-theme="dark"]{
  --bg:#171316; --surface:#201b1f; --surface-2:#2a2329;
  --ink:#f2ebe5; --muted:#b9adb3; --line:#3d3339;
  --accent:#62c6be; --accent-deep:#8dd8d1; --on-accent:#13181a;
  --switch-on:#3c333a; --todo-bg:#4a3d0c; --todo-ink:#ffe68a;
  color-scheme:dark;
}
:root[data-theme="dark"] .logo-light{ display:none; }
:root[data-theme="dark"] .logo-dark{ display:block; }

*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--ink); font-family:var(--font); font-size:1.0625rem; line-height:1.6; }
h1,h2,h3{ margin:0; font-family:var(--font-display); font-weight:400; line-height:1.1; letter-spacing:0; text-wrap:balance; }
p{ margin:0 0 1rem; }
img{ display:block; max-width:100%; height:auto; } /* keep proportions when CSS narrows an image */
a{ color:inherit; }
.wrap{ max-width:var(--col); margin-inline:auto; padding-inline:clamp(1.25rem,4vw,2.5rem); }
section{ padding-block:clamp(3rem,7vw,5rem); }
.muted{ color:var(--muted); }
mark.todo{ background:var(--todo-bg); color:var(--todo-ink); padding:0.1rem 0.35rem; border-radius:3px; font-weight:600; font-size:0.92em; }
.skip{ position:absolute; left:-999px; top:0; }
.skip:focus{ left:1rem; top:1rem; background:var(--surface); padding:0.5rem 0.8rem; z-index:50; }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:0.4rem; font:600 0.98rem var(--font);
  padding:0.75rem 1.25rem; border-radius:var(--radius); border:1.5px solid var(--ink); text-decoration:none; cursor:pointer; }
.btn-primary{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.btn-primary:hover{ background:var(--accent-deep); border-color:var(--accent-deep); }
.btn-plain{ background:transparent; color:var(--ink); }
.btn-plain:hover{ background:var(--surface-2); }

/* header */
.site-header{ border-bottom:1px solid var(--line); background:var(--bg); }
/* Logo left, menu, then the light/dark switch pinned to the top-right corner. On phones the menu
   drops to its own row so the switch stays in the corner next to the logo. */
.site-header .wrap{ display:grid; grid-template-columns:auto 1fr auto; grid-template-areas:"logo nav theme"; align-items:center; gap:1.2rem; padding-block:0.9rem; }
.site-header .logo{ grid-area:logo; }
.site-header .site-nav{ grid-area:nav; justify-content:flex-end; }
.site-header .header-theme{ grid-area:theme; }
@media (max-width:720px){
  .site-header .wrap{ grid-template-columns:1fr auto; grid-template-areas:"logo theme" "nav nav"; row-gap:0.7rem; }
  .site-header .site-nav{ justify-content:flex-start; }
}
.logo{ display:flex; align-items:center; gap:0.8rem; text-decoration:none; }
.logo img{ height:52px; width:auto; display:block; }
.logo .logo-dark{ display:none; }
.logo span{ font-weight:500; font-size:0.92rem; color:var(--muted); }
.site-nav{ display:flex; align-items:center; gap:1.4rem; font-weight:500; }
.site-nav a{ text-decoration:none; }
.site-nav a:hover{ text-decoration:underline; text-underline-offset:4px; }
.site-nav .btn{ padding:0.55rem 0.95rem; }
@media (max-width:720px){ .logo span{ display:none; } .site-nav{ gap:0.9rem; font-size:0.95rem; } .site-nav .nav-extra{ display:none; } }

/* light / dark / auto switch (buttons are added by assets/theme.js) */
.theme-switch{ display:inline-flex; padding:2px; gap:2px; border-radius:999px; background:var(--surface-2); border:1px solid var(--line); flex:none; }
.theme-switch:empty{ display:none; }
.theme-switch button{ width:34px; height:34px; padding:0; border:0; border-radius:999px; background:transparent; color:var(--muted);
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.theme-switch button:hover{ color:var(--ink); }
.theme-switch button:focus-visible{ outline:2px solid var(--ink); outline-offset:1px; }
.theme-switch button[aria-pressed="true"]{ background:var(--switch-on); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,0.2); }
@media (max-width:420px){ .theme-switch button{ width:30px; height:30px; } .theme-switch svg{ width:16px; height:16px; } }

/* hero */
.hero{ padding-block:clamp(2rem,5vw,3.5rem) clamp(3rem,6vw,4.5rem); }
.hero .wrap{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr); gap:clamp(1.5rem,4vw,3rem); align-items:center; }
@media (max-width:860px){ .hero .wrap{ grid-template-columns:1fr; } }
.hero h1{ font-size:clamp(2.3rem,5vw,3.7rem); }
.hero-lede{ font-size:1.15rem; color:var(--muted); margin-top:1.1rem; max-width:34rem; }
.hero-actions{ display:flex; gap:0.7rem; flex-wrap:wrap; margin-top:1.6rem; }
.slideshow{ position:relative; }
.slides{ position:relative; aspect-ratio:4 / 5; background:var(--surface-2); overflow:hidden; border-radius:var(--radius); }
.hero-slide{ position:absolute; inset:0; margin:0; opacity:0; transition:opacity 0.6s ease; }
.hero-slide.is-active{ opacity:1; }
.hero-slide img{ width:100%; height:100%; object-fit:cover; }
.hero-slide figcaption{ position:absolute; left:0; bottom:0; background:rgba(20,20,18,0.78); color:#fff; font-size:0.88rem; padding:0.35rem 0.7rem; }
.slide-controls{ display:flex; align-items:center; justify-content:flex-end; gap:0.6rem; margin-top:0.6rem; font-size:0.9rem; }
.slide-controls button{ font:500 0.9rem var(--font); background:none; color:var(--ink); border:1px solid var(--line); border-radius:var(--radius); padding:0.35rem 0.7rem; cursor:pointer; }
.slide-controls button:hover{ border-color:var(--ink); }
@media (prefers-reduced-motion: reduce){ .hero-slide{ transition:none; } }

/* sections */
.section-title{ font-size:clamp(1.7rem,3.4vw,2.4rem); margin-bottom:1.4rem; }
.band{ background:var(--surface); border-block:1px solid var(--line); }
.services{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(2rem,5vw,4rem); }
@media (max-width:760px){ .services{ grid-template-columns:1fr; } }
.service-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; border-top:2px solid var(--ink); }
.service-list li{ padding:0.8rem 0; border-bottom:1px solid var(--line); }
.service-list li b{ display:block; font-size:1.05rem; }
.service-list li span{ display:block; color:var(--muted); font-size:0.93rem; line-height:1.45; margin-top:0.15rem; }
.service-list li:nth-child(odd){ padding-right:1rem; }
.pull{ margin:1.6rem 0 0; padding-left:1.1rem; border-left:3px solid var(--accent); font-family:var(--font-display); font-size:1.35rem; line-height:1.35; }
.pull-by{ display:block; margin-top:0.5rem; font-size:0.92rem; font-stretch:100%; color:var(--muted); font-weight:600; }
.proof{ list-style:none; margin:1.8rem 0 0; padding:1rem 0 0; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:0.4rem 1.6rem; font-size:0.93rem; color:var(--muted); font-weight:500; }
.section-lede{ color:var(--muted); max-width:40rem; margin-top:-0.6rem; margin-bottom:1.8rem; }
.how-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:2rem; border-top:2px solid var(--ink); padding-top:1.4rem; }
@media (max-width:820px){ .how-grid{ grid-template-columns:1fr; gap:1.2rem; } }
.how-grid h3{ font-size:1.2rem; margin-bottom:0.5rem; }
.how-grid p{ color:var(--muted); margin:0; }
/* press list: year, then outlet and what ran */
.press{ list-style:none; margin:0; padding:0; border-top:2px solid var(--ink); }
.press li{ display:grid; grid-template-columns:5rem minmax(0,1fr); gap:1rem; padding:0.9rem 0; border-bottom:1px solid var(--line); }
.press .yr{ font-family:var(--font-display); font-size:1.15rem; color:var(--accent); }
.press b{ display:block; }
.press span{ color:var(--muted); }
.press a{ color:var(--accent); font-weight:600; }
.custom-steps{ margin:1rem 0 1.4rem; padding-left:1.2rem; }
.custom-steps li{ margin-bottom:0.4rem; }

.project-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap:2rem 1.4rem; }
.project-card{ display:flex; flex-direction:column; gap:0.35rem; text-decoration:none; }
.project-card img, .project-card-empty{ width:100%; aspect-ratio:4 / 5; object-fit:cover; border-radius:var(--radius); background:var(--surface-2); margin-bottom:0.5rem; display:block; }
.project-card-title{ font-family:var(--font-display); font-size:1.35rem; }
.project-card:hover .project-card-title{ text-decoration:underline; text-underline-offset:4px; }
.project-card-meta{ color:var(--muted); font-size:0.93rem; }

.about{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,0.7fr); gap:clamp(2rem,5vw,4rem); align-items:start; }
@media (max-width:760px){ .about{ grid-template-columns:1fr; } }
.about figure{ margin:0; max-width:340px; }
.about figure img{ border-radius:var(--radius); }
.about figcaption{ font-size:0.9rem; color:var(--muted); margin-top:0.5rem; }
.about h3{ font-size:1.25rem; margin:1.8rem 0 0.6rem; }

.contact{ max-width:40rem; }
.email-big{ font-family:var(--font-display); font-size:clamp(1.5rem,3.4vw,2.1rem); text-decoration:none; color:var(--accent); word-break:break-word; }
.email-big:hover{ text-decoration:underline; text-underline-offset:5px; }

/* project page */
.crumb{ font-weight:500; font-size:0.95rem; text-decoration:none; color:var(--muted); }
.crumb:hover{ color:var(--ink); }
.project-head{ padding-block:clamp(2rem,5vw,3rem) 1.5rem; }
.project-head h1{ font-size:clamp(2.1rem,4.6vw,3.3rem); margin-top:0.8rem; }
.project-meta{ color:var(--muted); margin-top:0.6rem; font-weight:500; }
.project-summary{ font-size:1.2rem; max-width:44rem; margin-top:1.2rem; }
.project-scope{ max-width:44rem; }
.gallery{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap:1.2rem; padding-block:1rem 3rem; }
.gallery figure{ margin:0; }
.gallery button{ display:block; padding:0; border:0; background:none; cursor:zoom-in; width:100%; }
.gallery img{ width:100%; aspect-ratio:1 / 1; object-fit:cover; border-radius:var(--radius); }
.gallery figcaption{ font-size:0.92rem; color:var(--muted); margin-top:0.4rem; }
.draft-notice{ background:var(--todo-bg); color:var(--todo-ink); font-weight:600; padding:0.6rem 0; }
.cta{ border-top:1px solid var(--line); padding-block:2.5rem; }

/* lightbox */
.lightbox{ position:fixed; inset:0; background:rgba(12,12,10,0.94); display:none; flex-direction:column; align-items:center; justify-content:center; padding:2rem 1rem; z-index:100; color:#fff; }
.lightbox.open{ display:flex; }
.lightbox img{ max-width:min(94vw,1100px); max-height:76vh; object-fit:contain; }
.lightbox p{ margin:0.8rem 0 0; text-align:center; }
.lightbox-bar{ display:flex; gap:1rem; align-items:center; margin-top:1rem; }
.lightbox button{ font:500 0.95rem var(--font); background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.5); border-radius:var(--radius); padding:0.45rem 0.9rem; cursor:pointer; }
.lightbox .close{ position:absolute; top:1rem; right:1rem; }

/* footer */
.site-footer{ border-top:1px solid var(--line); padding-block:2rem; font-size:0.92rem; color:var(--muted); }
.site-footer .wrap{ display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.site-footer a{ color:var(--muted); }
