/* ─────────────────────────────────────────────
   Honest Moose — site styles
   Colors live in the :root variables below.
   ───────────────────────────────────────────── */

:root {
  --bg: #f6f2ea;
  --bg-alt: #efe9dd;
  --surface: #fbf8f2;
  --ink: #1d2420;
  --ink-soft: #4f5a53;
  --ink-faint: #7d867f;
  --line: #ddd5c6;
  --accent: #2f5d46;        /* forest green */
  --accent-ink: #f6f2ea;
  --accent-soft: #b8863b;   /* warm antler brass */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a17;
    --bg-alt: #1a201c;
    --surface: #1e2521;
    --ink: #ece7dc;
    --ink-soft: #b4b9b1;
    --ink-faint: #858c85;
    --line: #2f3832;
    --accent: #8cc2a3;
    --accent-ink: #132019;
    --accent-soft: #d6a95e;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 0.75rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.mark { width: 34px; height: 34px; color: var(--accent); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }

/* ── Shared type ── */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38rem;
}
.section-intro {
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.button-large { padding: 1rem 1.8rem; font-size: 1.05rem; }
.link-arrow {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.link-arrow span { display: inline-block; transition: transform 0.15s; }
.link-arrow:hover span { transform: translateX(3px); }

/* ── Hero ── */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

/* ── Sections ── */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--bg-alt); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--ink-soft); font-size: 1.1rem; }
.prose p:first-child { color: var(--ink); }
.placeholder-note {
  font-style: italic;
  color: var(--ink-faint) !important;
}

/* ── Pillars ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.pillar {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}
.pillar-num {
  font-family: var(--serif);
  color: var(--accent-soft);
  font-size: 0.95rem;
}
.pillar h3 {
  font-size: 1.55rem;
  margin: 0.35rem 0 0.6rem;
}
.pillar p { color: var(--ink-soft); }

/* ── Projects ── */
.projects {
  list-style: none;
  padding: 0;
  margin: 2.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.project {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.project:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.35);
}
.project-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 1.25rem;
}
.project-name { font-size: 1.5rem; margin-bottom: 0.5rem; }
.project-desc { color: var(--ink-soft); flex: 1; }
.project-link {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Contact ── */
.section-contact { text-align: center; }
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-inner h2 { margin-bottom: 1rem; }
.contact-inner .lede { margin-bottom: 2.2rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── 404 ── */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.notfound h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.notfound .lede { margin: 0 auto 2rem; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .nav { gap: 1.1rem; font-size: 0.9rem; }
  .brand-name { display: none; }
  .hero-actions { gap: 1.1rem; }
}
