/* Lightway Books — warm, personal, literary */
:root {
  --navy: #102c46;
  --navy-soft: #23445b;
  --gold: #c28a2d;
  --gold-dark: #9a681c;
  --cream: #fbf7ee;
  --paper: #f4ecdc;
  --ink: #233241;
  --muted: #69727a;
  --line: #e6dcc9;
  --white: #fffdf8;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --content: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 12px; background: white; }
.skip-link:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.96); border-bottom: 1px solid rgba(16,44,70,.09); backdrop-filter: blur(12px); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: min-height .28s ease, gap .28s ease; }
.brand { display: inline-flex; width: 180px; flex: 0 0 auto; padding-block: 20px; transition: width .28s ease, padding .28s ease; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); transition: gap .28s ease; }
.site-header.is-scrolled .header-inner { min-height: 45px; gap: 16px; }
.site-header.is-scrolled .brand { width: 90px; padding-block: 3px; }
.site-header.is-scrolled .main-nav { gap: clamp(8px, 1.2vw, 17px); }
.site-header.is-scrolled .main-nav > a:not(.button) { font-size: .78rem; }
.site-header.is-scrolled .button-small { min-height: 30px; padding: 6px 11px; font-size: .72rem; }
.main-nav > a:not(.button), .footer-links a { text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--navy); transition: color .2s; }
.main-nav > a:not(.button):hover, .footer-links a:hover { color: var(--gold-dark); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 23px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.2; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; cursor: pointer; }
.button:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 10px 16px; font-size: .82rem; }
.button-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-outline:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 600px; background: var(--paper); }
.hero-image { position: relative; min-height: 600px; overflow: hidden; background: #d3c2a7; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,32,42,.42), transparent 40%); pointer-events: none; }
.hero-image > img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; object-position: center; }
.photo-caption { position: absolute; left: clamp(24px, 5vw, 72px); bottom: 28px; z-index: 1; color: #fff; font-family: var(--serif); font-size: 1.1rem; font-style: italic; text-shadow: 0 1px 8px #0008; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(44px, 7vw, 100px); max-width: 700px; }
.eyebrow { margin: 0 0 17px; color: var(--gold-dark); font-size: .73rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--navy); font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 4.2vw, 4.8rem); }
h1 em, h2 em { color: var(--gold-dark); font-weight: 500; }
.hero-lede { max-width: 480px; margin-bottom: 28px; color: #46525c; font-size: 1.08rem; line-height: 1.85; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: #6d6b60; font-size: .82rem; }
.tiny-sun { color: var(--gold); font-size: 1.3rem; }
.scripture-band { position: relative; display: flex; align-items: center; justify-content: center; min-height: 230px; padding: 48px 24px; border-block: 1px solid #e7ddca; background: #fffdf8; text-align: center; overflow: hidden; }
.scripture-inner { max-width: 780px; }
.scripture-inner .eyebrow { margin-bottom: 14px; font-size: calc(.73rem + 4px); }
blockquote { margin: 0 auto 14px; color: var(--navy); font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.75rem); font-style: italic; line-height: 1.55; }
.scripture-ref { margin: 0; color: var(--gold-dark); font-size: calc(.82rem + 4px); font-weight: 700; letter-spacing: .08em; }
.section { padding-block: clamp(76px, 10vw, 130px); }
.book-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 8vw, 110px); align-items: center; }
.book-copy { max-width: 470px; padding-left: clamp(0px, 2vw, 25px); }
h2 { margin-bottom: 23px; font-size: clamp(2.3rem, 4vw, 3.7rem); }
.book-copy p:not(.eyebrow), .inside-copy p:not(.eyebrow), .author-copy p:not(.eyebrow), .contact-intro > p:not(.eyebrow) { color: #59636a; line-height: 1.9; }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; color: var(--navy); font-size: .91rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 5px; }
.text-link:hover { color: var(--gold-dark); }
.book-image-wrap { position: relative; padding: 0 0 22px 22px; }
.book-image-wrap::before { content: ""; position: absolute; left: 0; top: 22px; right: 22px; bottom: 0; border: 1px solid #d7c49e; }
.book-image { position: relative; width: 100%; aspect-ratio: 1.18; object-fit: cover; box-shadow: 0 18px 38px #43331d1a; }
.image-note { position: absolute; right: 4px; bottom: -6px; color: var(--muted); font-family: var(--serif); font-size: .9rem; font-style: italic; }
.moments-section { padding: 55px 0; background: #f1e7d5; border-block: 1px solid #e5d8c0; }
.moments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; }
.moment { text-align: center; padding: 0 20px; }
.moment-icon { display: block; margin-bottom: 13px; color: var(--gold-dark); font-family: var(--serif); font-size: 2rem; line-height: 1; }
.moment h3 { margin-bottom: 8px; color: var(--navy); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.moment p { max-width: 280px; margin: 0 auto; color: #657078; font-size: .9rem; line-height: 1.75; }
.inside-section { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(45px, 8vw, 110px); }
.inside-image { position: relative; }
.inside-image::after { content: ""; position: absolute; width: 42%; height: 42%; left: -16px; bottom: -16px; border-left: 2px solid #c7a66b; border-bottom: 2px solid #c7a66b; pointer-events: none; }
.inside-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.inside-copy { max-width: 470px; }
.inside-copy .button { margin-top: 12px; }
.author-section { padding-block: clamp(70px, 9vw, 110px); background: #f1e7d5; border-block: 1px solid #e4d7c1; }
.author-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(35px, 5vw, 70px); align-items: center; max-width: 1120px; }
.author-photo { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; height: auto; justify-self: center; overflow: hidden; border: 1px solid #d8c59e; border-radius: 4px; background: #e7ddca; }
.author-photo img { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.author-copy { max-width: 680px; }
.author-copy h2 { margin-bottom: 20px; }
.author-copy p { margin-bottom: 14px; }
.contact-section { position: relative; isolation: isolate; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 125px); align-items: start; background: transparent; }
.contact-section::before { content: ""; position: absolute; z-index: -1; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #fff; }
.contact-intro { max-width: 400px; }
.contact-email { margin-top: 28px; font-size: .92rem; }
.contact-email a { color: var(--navy); font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.contact-form { padding: clamp(25px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px #34260e0a; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 19px; }
.form-row label { color: var(--navy); font-size: .83rem; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid #d9d3c7; border-radius: 3px; padding: 12px 13px; background: #fffefa; color: var(--ink); outline: none; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #c28a2d22; }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-submit { min-width: 175px; }
.form-small { margin: 14px 0 0; color: var(--muted); font-size: .75rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-notice { padding: 12px 14px; margin-bottom: 20px; border-radius: 3px; font-size: .9rem; }
.form-notice.success { background: #e8f3e8; color: #245a32; border: 1px solid #b8d7bd; }
.form-notice.error { background: #fbebeb; color: #852d2d; border: 1px solid #e8c0c0; }
.site-footer { padding: 40px 0 28px; background: var(--white); color: var(--navy); text-align: center; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-brand { width: 145px; padding: 0; border-radius: 0; background: transparent; }
.footer-brand img { width: 100%; }
.site-footer p { margin: 0; color: #69727a; font-family: var(--serif); font-style: italic; }
.footer-links { display: flex; gap: 24px; margin: 8px 0; }
.footer-links a { color: var(--navy); font-size: .8rem; }
.site-footer small { color: #69727a; font-size: .75rem; }
@media (max-width: 900px) {
  .header-inner { min-height: 78px; }
  .brand { width: 150px; padding-block: 20px; }
  .menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 19px; height: 2px; background: var(--navy); }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 22px 24px 26px; flex-direction: column; align-items: stretch; gap: 18px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px #0000000a; }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.button) { padding: 4px 0; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .hero-image, .hero-image > img { min-height: 520px; }
  .hero-copy { padding: 40px; }
  .hero h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
  .moments-grid { gap: 20px; }
  .author-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .author-photo { width: 100%; max-width: 340px; aspect-ratio: 1 / 1; height: auto; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(100% - 36px, var(--content)); }
  .header-inner { min-height: 72px; }
  .brand { width: 132px; padding-block: 20px; }
  .hero { display: flex; flex-direction: column; }
  .hero-image, .hero-image > img { min-height: 0; height: auto; aspect-ratio: 1.25; }
  .hero-image > img { object-fit: cover; object-position: center 42%; }
  .hero-copy { padding: 48px 25px 52px; }
  h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .hero-lede { font-size: 1rem; }
  .scripture-band { min-height: 0; padding: 45px 28px; }
  .section { padding-block: 68px; }
  .book-section, .inside-section, .contact-section { grid-template-columns: 1fr; gap: 35px; }
  .book-copy { padding-left: 0; }
  .book-image-wrap { margin: 0 0 10px 5px; }
  .book-image { aspect-ratio: 1.1; }
  .moments-section { padding: 42px 0; }
  .moments-grid { grid-template-columns: 1fr; gap: 32px; }
  .moment { padding: 0 15px; }
  .inside-image { order: 2; }
  .inside-copy { order: 1; }
  .inside-image img { aspect-ratio: 1.05; }
  .author-section { padding-block: 65px; }
  .author-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .author-photo { width: min(100%, 360px); max-width: 360px; height: auto; aspect-ratio: 1 / 1; margin-inline: auto; }
  .author-copy .text-link { margin-top: 8px; }
  .contact-section { gap: 25px; }
  .contact-form { padding: 23px 18px; }
  .form-submit { width: 100%; }
  .footer-links { gap: 17px; flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
