/* =========================================================
   Kestrel Bindery — stylesheet
   Hand bookbinding, repair, and Saturday workshops
   Portland, Oregon
   ========================================================= */

:root {
  --ink: #2b241c;
  --bg: #faf6ee;
  --accent: #5c6e49;
  --muted: #8a7f6c;
  --surface: #f0e9d8;

  --font-head: 'Freight Text Pro', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Spectral', 'Source Serif Pro', Georgia, serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;

  --max-width: 1120px;
  --radius: 3px;
  --border: 1px solid rgba(43, 36, 28, 0.14);
}

/* ---------------------------------------------------------
   Reset-ish basics
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------------------
   Type scale
   --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  letter-spacing: 0.01em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin: 0 0 var(--space-2);
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(92, 110, 73, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

@media (min-width: 700px) {
  html { font-size: 19px; }
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.65rem; }
}

/* ---------------------------------------------------------
   Layout helpers
   --------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-5) 0;
}

.section-alt {
  padding: var(--space-5) 0;
  background: var(--surface);
}

@media (min-width: 900px) {
  .section, .section-alt {
    padding: var(--space-6) 0;
  }
}

/* ---------------------------------------------------------
   Site header & nav
   --------------------------------------------------------- */

.site-header {
  background: var(--bg);
  border-bottom: var(--border);
  position: relative;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--accent);
}

.nav-toggle {
  display: inline-block;
  background: transparent;
  border: var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.4em 0.9em;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile nav: a plain, always-visible stacked list.
   No JS-dependent hiding — the toggle is decorative/progressive,
   the list itself is always reachable. */
.site-nav {
  width: 100%;
  order: 3;
  margin-top: var(--space-2);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: var(--border);
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 0.85em 0.1em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: var(--border);
  font-size: 1rem;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--surface);
}

.site-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 700px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    width: auto;
    order: 2;
    margin-top: 0;
  }

  .site-nav ul {
    flex-direction: row;
    border-top: none;
    gap: var(--space-3);
  }

  .site-nav a {
    padding: 0.4em 0.1em;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover {
    background: transparent;
    border-bottom-color: var(--muted);
  }

  .site-nav a.active {
    border-bottom-color: var(--accent);
  }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: var(--border);
}

.hero-title {
  font-size: 2.5rem;
  max-width: 16ch;
  margin-bottom: var(--space-2);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 48ch;
  font-style: italic;
}

@media (min-width: 700px) {
  .hero {
    padding: var(--space-6) 0 var(--space-5);
  }
  .hero-title {
    font-size: 3.6rem;
  }
  .hero-sub {
    font-size: 1.35rem;
  }
}

/* ---------------------------------------------------------
   Eyebrow / lead
   --------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.lead {
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 56ch;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   Grid system
   --------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------
   Card
   --------------------------------------------------------- */

.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-1);
  color: var(--ink);
}

.card-body {
  color: var(--muted);
  margin-bottom: 0;
}

.card-body:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Feature
   --------------------------------------------------------- */

.feature {
  padding: var(--space-2) 0;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
  color: var(--ink);
}

/* ---------------------------------------------------------
   Stats
   --------------------------------------------------------- */

.stat {
  text-align: left;
  padding: var(--space-2) 0;
  border-top: var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   Quote
   --------------------------------------------------------- */

.quote {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-3);
  margin: var(--space-3) 0;
  max-width: 56ch;
}

.quote-attr {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
}

.quote-attr::before {
  content: "— ";
}

/* ---------------------------------------------------------
   List with checks
   --------------------------------------------------------- */

.list-checks {
  list-style: none;
  padding-left: 0;
  margin: var(--space-2) 0;
}

.list-checks li {
  position: relative;
  padding-left: 1.9em;
  margin-bottom: 0.6em;
}

.list-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.cta {
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}

.cta h2, .cta h3, .cta p {
  color: var(--bg);
}

.cta p {
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 246, 238, 0.85);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 1.6em;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  margin: 0.3em 0.4em 0.3em 0;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.cta .btn-primary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--bg);
}

.cta .btn-primary:hover {
  background: var(--surface);
  color: var(--ink);
}

.cta .btn-ghost {
  border-color: var(--bg);
  color: var(--bg);
}

.cta .btn-ghost:hover {
  background: rgba(250, 246, 238, 0.12);
  color: var(--bg);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  border-top: var(--border);
  background: var(--surface);
  padding: var(--space-4) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration-color: rgba(138, 127, 108, 0.5);
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 700px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------------------------------------------------------
   Focus states for accessibility
   --------------------------------------------------------- */

a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}