/* denharrow.org - single stylesheet.
   Design ported from the live WordPress site (Astra theme 4.13.6 defaults plus
   the per-page custom HTML blocks): white chrome with 1px #d1d5db rules,
   1200px container, system font stack, link blue #046bd2, and near-black
   #0a0a0a content panels with white text. */

:root {
  --blue: #046bd2;
  --blue-dark: #045cb4;
  --ink: #1e293b;
  --body: #334155;
  --line: #d1d5db;
  --dark: #0a0a0a;
  --dark-line: #444;
  --dark-input: #1a1a1a;
}

* { box-sizing: border-box; }

html { font-size: 100%; }
@media (max-width: 921px) { html { font-size: 91.2%; } }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--body); margin: 0 0 20px; }
h1 { font-size: 2.25rem; line-height: 1.4; }
h2 { font-size: 1.875rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.3; }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: #fff;
  color: var(--ink);
  z-index: 200;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 544px) {
  .container { padding: 0 0.54em; }
}

/* ---------- header ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.site-title {
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--ink);
}
.site-title:hover { color: var(--ink); }

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 20px;
  color: var(--body);
}
.site-nav li:last-child a { padding-right: 0; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue-dark); }

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
body.nav-open .menu-toggle .icon-menu { display: none; }
body.nav-open .menu-toggle .icon-close { display: block; }

@media (max-width: 921px) {
  .header-inner { min-height: 64px; }

  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    z-index: 100;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  }
  body.nav-open .site-nav { display: block; }

  .site-nav ul { flex-direction: column; }

  .site-nav a {
    height: auto;
    padding: 12px 20px;
    border-top: 1px solid #eee;
  }
  .site-nav li:last-child a { padding-right: 20px; }
}

/* ---------- main ---------- */

.site-main { flex-grow: 1; }

#content { margin: 60px 0; }
@media (max-width: 921px) { #content { margin: 0; } }

.page-title { margin: 0 0 1.2em; }
@media (max-width: 921px) { .page-title { margin: 1.2em 0 1em; } }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
}
.site-footer .container { width: 100%; }
.site-footer p { margin: 0; text-align: center; color: var(--body); }

/* ---------- scroll to top ---------- */

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 2.1em;
  height: 2.1em;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  z-index: 99;
}
.scroll-top[hidden] { display: none; }
.scroll-top svg { width: 1em; height: 1em; }

/* ---------- home hero ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 750px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% top;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  width: 45%;
  padding: 60px 40px;
  text-align: right;
  color: #ffffff;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-text .tagline {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 24px;
  color: #dddddd;
}

.hero-text .quote {
  font-size: 1rem;
  font-style: italic;
  border-right: 3px solid #ffffff;
  padding-right: 16px;
  margin-bottom: 24px;
  color: #eeeeee;
}

.hero-text .description {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    align-items: flex-end;
    justify-content: center;
  }

  .hero-img { object-position: 24% top; }

  .hero::before {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.05) 100%
    );
  }

  .hero-text {
    width: 100%;
    padding: 32px 22px 42px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .hero-text .tagline {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero-text .quote {
    border-right: none;
    border-left: 3px solid #ffffff;
    padding-right: 0;
    padding-left: 14px;
    text-align: left;
    font-size: 0.95rem;
    max-width: 92%;
    margin: 0 auto 20px;
  }

  .hero-text .description {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* ---------- about ---------- */

.about-wrap {
  display: flex;
  gap: 0;
  background: var(--dark);
}

.about-photo {
  width: 45%;
  min-height: 600px;
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.about-text {
  width: 55%;
  padding: 60px 50px;
  color: #ffffff;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p { margin-bottom: 20px; line-height: 1.8; font-size: 1rem; color: #ffffff; }
.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-wrap { flex-direction: column; }

  .about-photo {
    width: 100%;
    min-height: 320px;
    max-height: 420px;
  }

  .about-photo img { object-position: center 30%; }

  .about-text {
    width: 100%;
    padding: 36px 24px;
  }

  .about-text p { font-size: 0.95rem; }
}

/* ---------- books ---------- */

.books-wrap { background: var(--dark); padding: 60px 50px; }

.book-item {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
  align-items: flex-start;
}
.book-item.reverse { flex-direction: row-reverse; }

.book-cover {
  width: 220px;
  min-width: 220px;
}

.book-cover img {
  width: 100%;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.book-info { color: #ffffff; }
.book-info h2 { font-size: 1.4rem; margin-bottom: 8px; color: #ffffff; }
.book-info > em { color: #aaaaaa; display: block; margin-bottom: 16px; }
.book-info p em { color: #aaaaaa; display: inline; }
.book-info p { line-height: 1.8; margin-bottom: 16px; color: #dddddd; }
.book-info a { color: #ffffff; text-decoration: underline; }

.book-divider { border: none; border-top: 1px solid #333; margin: 20px 0 60px 0; }

@media (max-width: 768px) {
  .books-wrap { padding: 40px 20px; }

  .book-item,
  .book-item.reverse {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    align-items: center;
  }

  .book-cover {
    width: 160px;
    min-width: 160px;
  }

  .book-info { width: 100%; }
  .book-info h2 { font-size: 1.2rem; }
  .book-info p { font-size: 0.95rem; }

  .book-divider { margin: 0 0 40px 0; }
}

/* ---------- exit smiling ---------- */

.exit-page {
  background: var(--dark);
  color: #fff;
  padding: 40px;
  margin: -20px;
}

.play-top {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.play-top-text { flex: 1; color: #fff; }

.play-top-text p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #ddd;
}

.play-top-text strong { color: #fff; }

.play-poster {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
}

.play-poster img {
  width: 100%;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

.exit-page h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.exit-page p {
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 16px;
}

.exit-page strong { color: #fff; }

.accordion { border-top: 1px solid var(--dark-line); }

.accordion-item { border-bottom: 1px solid var(--dark-line); }

.accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.accordion-btn .arrow {
  font-size: 1.2rem;
  transition: transform .3s;
  color: #fff;
}

.accordion-btn.open .arrow { transform: rotate(180deg); }

.accordion-content {
  display: none;
  padding-bottom: 20px;
  color: #ddd;
}

.accordion-content.open { display: block; }

.accordion-content .sub {
  color: #aaa;
  font-style: italic;
  display: block;
  margin-bottom: 12px;
}

.exit-page hr {
  border: none;
  border-top: 1px solid var(--dark-line);
  margin: 40px 0;
}

.exit-page a { color: #fff; text-decoration: underline; }

@media (max-width: 768px) {
  .exit-page {
    padding: 24px 16px;
    margin: 0;
  }

  .play-top {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
  }

  .play-poster {
    width: 100%;
    min-width: auto;
    order: -1;
  }

  .play-poster img {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .play-top-text { width: 100%; }

  .play-top-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .exit-page h2 {
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 14px;
  }

  .exit-page p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .accordion-btn {
    font-size: 0.95rem;
    padding: 14px 0;
    gap: 16px;
  }

  .accordion-content {
    font-size: 0.92rem;
    line-height: 1.6;
    padding-bottom: 18px;
  }

  .accordion-content .sub { margin-bottom: 10px; }

  .exit-page hr { margin: 28px 0; }
}

/* ---------- contact ---------- */

.contact-wrap {
  display: flex;
  gap: 0;
  background: var(--dark);
  min-height: 600px;
}

.contact-photo {
  width: 45%;
  min-height: 600px;
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.contact-form-wrap {
  width: 55%;
  padding: 60px 50px;
  background: var(--dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-wrap .intro {
  color: #dddddd;
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-form-wrap label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--dark-line);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--dark-input);
  color: #ffffff;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: #888;
}

.contact-form-wrap textarea {
  height: 150px;
  resize: vertical;
}

.contact-form-wrap button {
  background: #ffffff;
  color: var(--dark);
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  align-self: flex-start;
}

.contact-form-wrap button:hover { background: #dddddd; }
.contact-form-wrap button:disabled { opacity: .5; cursor: default; }

.turnstile-slot { margin-bottom: 20px; min-height: 65px; }

.form-status {
  margin: 16px 0 0;
  font-weight: 600;
  min-height: 24px;
}
.form-status.ok { color: #aaffaa; }
.form-status.error { color: #ff9a9a; }

.form-footnote {
  margin: 24px 0 0;
  color: #888;
  font-size: 0.85rem;
}

/* honeypot field: visually removed, still present for bots */
.hp-field { position: absolute; left: -9999px; }

@media (max-width: 768px) {
  .contact-wrap {
    flex-direction: column;
    min-height: auto;
  }

  .contact-photo {
    width: 100%;
    min-height: 320px;
  }

  .contact-photo img {
    height: 320px;
    object-position: center 25%;
  }

  .contact-form-wrap {
    width: 100%;
    padding: 28px 18px 32px;
  }

  .contact-form-wrap .intro {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .contact-form-wrap label {
    font-size: 0.92rem;
  }

  .contact-form-wrap input,
  .contact-form-wrap textarea {
    font-size: 16px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }

  .contact-form-wrap textarea { height: 140px; }

  .contact-form-wrap button {
    width: 100%;
    padding: 14px 18px;
    text-align: center;
    align-self: stretch;
  }

  .form-status {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ---------- 404 ---------- */

.error-page {
  background: var(--dark);
  color: #fff;
  padding: 100px 40px;
  text-align: center;
}

.error-page h1 { color: #fff; font-size: 4rem; margin-bottom: 10px; }
.error-page p { color: #ddd; margin-bottom: 24px; }
.error-page a { color: #fff; text-decoration: underline; }

/* ---------- cross-page fade (progressive enhancement) ---------- */

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .22s; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .accordion-btn .arrow { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
