:root {
  --bg: #faf7f2;
  --bg-alt: #f3eee4;
  --ink: #1a1a1a;
  --accent: #2e5d3f;
  --accent-bright: #4fc83a;
  --muted: #5c5c5c;
  --rule: #d8d2c4;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { min-height: 100vh; }

/* Sticky nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 10;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.875rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
@media (max-width: 600px) {
  .nav-links { gap: 1.1rem; font-size: 0.8125rem; }
  .nav-brand { font-size: 0.75rem; letter-spacing: 0.12em; }
}

/* Section base */
section { padding: 4rem 1.5rem; }
.section-inner { max-width: 720px; margin: 0 auto; }
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.015em;
}

/* Hero (homepage) */
.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
}
.hero-logo {
  max-width: 360px;
  width: 80%;
  height: auto;
  margin: 0 auto 2.25rem;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 auto 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  max-width: 14ch;
}
.hero-lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 auto;
  max-width: 56ch;
}
.hero-lede strong { font-weight: 600; }

/* Page-header (about page) */
.page-header {
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 auto;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.015em;
  max-width: 24ch;
}

/* Subdeck — sits under H1/H2 as a supporting line */
.subdeck {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.25rem;
  max-width: 56ch;
  font-weight: 400;
}
.page-header .subdeck {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

/* About preview (homepage) */
.about-preview p.summary {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.cta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 150ms ease;
}
.cta-link:hover { opacity: 0.7; }

/* Bio (about page) */
.bio { padding: 3rem 1.5rem 4rem; }
.bio p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.bio p:last-child { margin-bottom: 0; }
.bio strong { font-weight: 600; color: var(--ink); }

/* Location callout */
.about-location {
  display: inline-block;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  border-radius: 0 6px 6px 0;
}
.about-location strong { display: block; color: var(--accent); margin-bottom: 0.15rem; }

/* Offer */
.offer-section { background: var(--bg-alt); }
.offer-intro {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 600px) {
  .offer-grid { grid-template-columns: 1fr; }
}
.offer-card {
  background: var(--card);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--rule);
}
.offer-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-weight: 600;
}
.offer-card .price {
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.offer-card .price small {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.25rem;
}
.offer-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.offer-card .card-note {
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
}
.junior-callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border-radius: 8px;
  border: 1px dashed var(--rule);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}
.junior-callout strong { color: var(--ink); }
.junior-callout a { color: var(--accent); }

/* Book */
.book-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 1.5rem;
}
.book-card .badge {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.book-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
}
.book-card p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.55;
}
.book-card .mailto {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  font-size: 1rem;
  transition: opacity 150ms ease;
}
.book-card .mailto:hover { opacity: 0.7; }

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .contact-form { padding: 1.5rem; }
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color 150ms ease, background 150ms ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' stroke='%235c5c5c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-submit {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 150ms ease;
}
.form-submit:hover { background: #244c33; }

/* Make .book-card buttons match the link style */
.book-card button.mailto {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

/* Bold blue link inside the contact card */
.book-card .contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 150ms ease;
}
.book-card .contact-link:hover {
  color: #1e3a8a;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in 180ms ease;
}
.modal-content {
  position: relative;
  background: var(--card);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.25rem 2rem 2rem;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slide-up 220ms ease;
}
.modal-content h3 {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
}
.modal-content .contact-form {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}
.modal-close:hover { color: var(--ink); background: var(--bg-alt); }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
body.modal-open { overflow: hidden; }

/* Footer */
footer {
  background: var(--ink);
  color: #b8b3a8;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-tagline {
  font-size: 1rem;
  color: #e8e3d6;
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.footer-email {
  display: inline-block;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #4a4640;
  padding-bottom: 2px;
  margin-bottom: 2rem;
  transition: border-color 150ms ease;
}
.footer-email:hover { border-bottom-color: var(--accent-bright); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-recruit {
  font-size: 0.9375rem;
  color: #b8b3a8;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.footer-recruit a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #4a4640;
  padding-bottom: 1px;
  transition: border-color 150ms ease;
}
.footer-recruit a:hover { border-bottom-color: var(--accent-bright); }
.footer-social a {
  color: #b8b3a8;
  transition: color 150ms ease;
  display: inline-flex;
}
.footer-social a:hover { color: var(--accent-bright); }
.footer-fineprint {
  font-size: 0.8125rem;
  color: #6e6a62;
  margin: 0;
}
