/* Woodhouse LLC — hand-written CSS. No framework, no external fonts. */

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f232c;
  --text: #e6e8ec;
  --muted: #9aa3b2;
  --border: #2a2f3a;
  --accent: #4f8cff;
  --accent-2: #38d39f;
  --maxw: 1080px;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --surface-2: #eef1f5;
    --text: #14181f;
    --muted: #5b6470;
    --border: #e2e6ec;
    --accent: #2563eb;
    --accent-2: #0f9d76;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent-2); font-weight: 600; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--accent); }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-toggle, .nav-burger { display: none; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: .7rem 1.3rem; border-radius: var(--radius); font-weight: 600; border: 1px solid transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 4rem); background:
  radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
  radial-gradient(900px 400px at 0% 0%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* Sections */
.section-h { margin-top: 0; }
.pillars, .featured { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.more { font-weight: 600; white-space: nowrap; }

/* Grid + cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-title { margin: 0 0 .4rem; font-size: 1.2rem; }
.card-title a { color: var(--text); }
.card-cap { color: var(--accent-2); font-weight: 600; margin: 0 0 .5rem; font-size: .95rem; }
.card-summary { color: var(--muted); margin: 0 0 .8rem; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .6rem 0 0; }
.tags li { font-size: .75rem; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); padding: .18rem .55rem; border-radius: 999px; }

/* CTA band */
.band { margin-top: clamp(3rem, 7vw, 5rem); background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.4rem 0; flex-wrap: wrap; }
.band h2 { margin: 0 0 .3rem; }

/* Page head + prose */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.single { padding: clamp(2.5rem, 6vw, 4rem) 0; max-width: 760px; }
.single-head { margin-bottom: 1.5rem; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
.back { margin-top: 2.5rem; }

/* Image gallery (JS-free, lazy-loaded) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; margin: 1.5rem 0; }
.gallery-item { display: block; line-height: 0; }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); transition: transform .15s, border-color .15s; }
.gallery-item:hover img { transform: scale(1.02); border-color: var(--accent); }

/* CSS-only lightbox: shown when its id is the URL :target */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 2rem; background: rgba(0,0,0,.88); }
.lightbox:target { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 88vh; width: auto; height: auto; border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.lightbox-close { position: fixed; top: .6rem; right: 1.2rem; font-size: 3rem; line-height: 1; color: #fff;
  opacity: .85; }
.lightbox:hover .lightbox-close { opacity: 1; }

/* Post list */
.post-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.post-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.post-title { font-size: 1.25rem; font-weight: 600; color: var(--text); }

/* Contact — static direct links (no form) */
.contact-cols { margin-top: 1.5rem; }
.contact-direct { max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.contact-direct p { margin: .2rem 0; }
.contact-direct .footer-h { margin-top: 1.1rem; }
.contact-direct .footer-h:first-child { margin-top: 0; }
.contact-direct .btn { margin: .2rem 0 .3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2.5rem 0 2rem; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.footer-brand { font-weight: 700; margin: 0 0 .3rem; }
.footer-h { font-weight: 600; margin: 0 0 .5rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .3rem; }

/* Mobile nav */
@media (max-width: 640px) {
  .nav-burger { display: block; cursor: pointer; font-size: 1.4rem; color: var(--text); }
  .nav ul { display: none; position: absolute; top: 64px; right: 0; left: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: .5rem 1.25rem 1rem; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav ul li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
}
