/* Owl Enterprises — hand-crafted stylesheet
   Palette: warm neutral base, forest-green brand accent, ink text.
   Type: Space Grotesk (display) + Inter (body). */

:root {
  --ink: #16181d;
  --ink-soft: #2b2f38;
  --muted: #5b6169;
  --muted-light: #8b929b;
  --line: #e7e6e1;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-alt: #f4f5f2;
  --green: #15803d;
  --green-dark: #166534;
  --green-bright: #22c55e;
  --green-tint: #f0fdf4;
  --green-tint-2: #dcfce7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16,24,32,.05), 0 1px 3px rgba(16,24,32,.05);
  --shadow-md: 0 10px 30px -12px rgba(16,24,32,.18);
  --maxw: 1120px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.22rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); font-weight: 400; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; background: var(--surface-alt); padding: .12em .4em; border-radius: 5px; font-size: .9em; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,249,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.4rem;
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .5rem .8rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: .96rem;
}
.nav-links a:hover { background: var(--green-tint); color: var(--green-dark); text-decoration: none; }
.nav-links a.active { color: var(--green-dark); }
.nav-cta { background: var(--green); color: #fff !important; }
.nav-cta:hover { background: var(--green-dark); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: .45rem .6rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .72rem 1.35rem; border-radius: 999px; font-weight: 600; font-family: var(--font-display); font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--green-dark); margin-bottom: 1rem; }
.hero h1 { margin-bottom: .55rem; }
.hero .hero-sub { font-size: 1.22rem; color: var(--muted); margin-bottom: 1.6rem; max-width: 34ch; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.hero-media::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 62%; height: 62%; background: var(--green-tint-2); border-radius: var(--radius); z-index: -1; }

/* ---------- Page hero (interior) ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.4rem) 0 .5rem; }
.page-head .kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .15em; font-size: .74rem; font-weight: 600; color: var(--green-dark); }
.hero-figure { margin: 1.6rem 0 2rem; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.article-body .hero-figure img { aspect-ratio: 3/2; }

/* ---------- Main / article ---------- */
main { display: block; }
.section { padding: 1rem 0 2.4rem; }
.prose { max-width: 74ch; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.post-date { color: var(--muted-light); font-size: .92rem; font-family: var(--font-display); letter-spacing: .02em; margin-top: -.3rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin: 1.6rem 0 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 600; font-family: var(--font-display); }

/* ---------- Post list ---------- */
.post-list { display: grid; gap: 1.1rem; margin: 1.8rem 0; }
.post-summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.post-summary h2 { margin: 0 0 .2rem; font-size: 1.4rem; }
.post-summary h2 a { color: var(--ink); }
.post-summary h2 a:hover { color: var(--green-dark); text-decoration: none; }
.post-summary .post-date { margin: 0 0 .5rem; }
.post-summary p { margin-bottom: .5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #eef0f2; border-radius: var(--radius); padding: 2.4rem clamp(1.4rem, 4vw, 3rem); margin: 2.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #b9bfc7; max-width: 52ch; margin: 0 auto 1.4rem; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); margin-top: 1.6rem; }
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink-soft); font-family: var(--font-display); }
.contact-form input, .contact-form textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green-bright); outline-offset: 1px; border-color: var(--green); }
.contact-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.contact-form legend { font-weight: 600; font-family: var(--font-display); font-size: .92rem; padding: 0 .4rem; color: var(--ink-soft); }
.contact-form .check { display: block; font-weight: 400; font-family: var(--font-body); margin: .3rem 0; cursor: pointer; }
.contact-form .check input { width: auto; margin-right: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bfc7; margin-top: 3rem; padding: 2.6rem 0 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-brand .mark { width: 26px; height: 26px; }
.footer-tag { color: #8b929b; font-size: .92rem; margin-top: .6rem; max-width: 30ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #cbd0d6; font-size: .95rem; }
.footer-links a:hover { color: var(--green-bright); text-decoration: none; }
.footer-bottom { border-top: 1px solid #2b2f38; margin-top: 1.8rem; padding-top: 1.2rem; font-size: .86rem; color: #7a818b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: #9aa1aa; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(3rem, 9vw, 6rem) 0; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--green-tint-2); line-height: 1; }
.notfound h1 { margin-top: -.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .6rem 1rem 1rem; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .8rem; border-radius: 9px; }
}
