/* Owltree Media — author site */
:root {
  color-scheme: dark;
  --bg: #1a201c;
  --bg-warm: #242b27;
  --bg-input: #151a17;
  --beige: #2c342f;
  --accent: hsl(143, 66%, 37%);
  --accent-hover: hsl(143, 60%, 46%);
  --ink: #f3f0e8;
  --muted: #b7bfb8;
  --line: rgba(243, 240, 232, 0.14);
  --dark-green: #1a201c;
  --serif-display: "Instrument Serif", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --serif-body: "Newsreader", Georgia, "Times New Roman", serif;
  --max: 70rem;
  --measure: 40rem;
  --header-h: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--serif-body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 32, 28, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 3.15rem;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-nav a.nav-buy {
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
}
.site-nav a.nav-buy:hover {
  background: var(--accent-hover);
  color: #fff;
  border-bottom-color: transparent;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .site-nav a.nav-buy { display: inline-block; }
}

/* Main */
main { min-height: 60vh; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero / book */
.book {
  display: grid;
  grid-template-columns: minmax(16rem, 26rem) 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0 3rem;
}
.cover {
  margin: 0;
}
.cover img {
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
}
.book-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
  line-height: 1.15;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.byline {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.blurb p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}
.blurb p:last-child { margin-bottom: 0; }
.blurb .lede {
  font-size: 1.2rem;
}
.buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  padding: 0.65rem 1.2rem;
  border-radius: 2px;
  border: 1.5px solid var(--accent);
  line-height: 1.2;
}
.btn-solid {
  background: var(--accent);
  color: #fff;
}
.btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.whats-next {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 800px) {
  .book {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.25rem 0 2rem;
  }
  .cover { max-width: 18rem; margin: 0 auto; }
}

/* Newsletter */
.newsletter {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}
.newsletter-inner { max-width: 36rem; }
.newsletter h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 0.4rem;
}
.newsletter .pitch {
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}
.newsletter-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.newsletter-form input[type="email"] {
  flex: 1 1 14rem;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg-input);
  color: var(--ink);
  border-radius: 2px;
}
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.newsletter-form button {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 2px;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--accent-hover); }
.form-note { display: none; }
.form-note, .form-status {
  margin: 0.9rem 0 0;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 38rem;
}
.form-status[hidden] { display: none; }
.form-status.is-visible { display: block; color: var(--ink); }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0 4rem;
}
.about-photo img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.about h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 1.25rem;
}
.bio p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}
@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.25rem 0 3rem;
  }
  .about-photo { max-width: 20rem; }
}

/* Maps */
.maps { padding: 3rem 0 4rem; }
.maps h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 2rem;
}
.map-block { margin: 0 0 3rem; }
.map-block figcaption {
  font-style: italic;
  color: var(--muted);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.map-block img {
  width: 100%;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
}
.social {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.social a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.copyright { margin: 0; }

/* Page titles for inner pages already styled */

/* Dark-theme refinements */
.cover-mockup img {
  background: transparent;
  border-radius: 4px;
}
.newsletter-form input[type="email"]::placeholder {
  color: #8b938c;
}
.newsletter-form input[type="email"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset;
  -webkit-text-fill-color: var(--ink);
}
