/* Nathan Lancry — site styles */
:root {
  --cream: #ede8c9;
  --cream-light: #fffcec;
  --red: #dc5035;
  --red-dark: #c2432a;
  --teal: #39575a;
  --charcoal: #2f2e2e;
  --ink: #2f2e2e;
  --gold: #d8cd92;
  --muted: #6b8183;
  --white: #ffffff;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --accent: "Playfair Display", Georgia, serif;
  --max: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Speckled paper texture, like the original */
.speckle {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='%232f2e2e' fill-opacity='.16'%3E%3Ccircle cx='12' cy='22' r='.9'/%3E%3Ccircle cx='71' cy='9' r='.6'/%3E%3Ccircle cx='140' cy='31' r='1'/%3E%3Ccircle cx='38' cy='96' r='.7'/%3E%3Ccircle cx='101' cy='70' r='.8'/%3E%3Ccircle cx='166' cy='112' r='.6'/%3E%3Ccircle cx='24' cy='160' r='1'/%3E%3Ccircle cx='88' cy='141' r='.6'/%3E%3Ccircle cx='128' cy='168' r='.8'/%3E%3Ccircle cx='57' cy='52' r='.5'/%3E%3Ccircle cx='150' cy='75' r='.5'/%3E%3C/g%3E%3C/svg%3E");
}
.speckle.light { background-color: var(--cream-light); }
.stars {
  background-color: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23ffffff' fill-opacity='.22'%3E%3Ccircle cx='18' cy='30' r='.9'/%3E%3Ccircle cx='96' cy='14' r='.6'/%3E%3Ccircle cx='190' cy='48' r='1.1'/%3E%3Ccircle cx='52' cy='120' r='.7'/%3E%3Ccircle cx='140' cy='96' r='.8'/%3E%3Ccircle cx='205' cy='160' r='.6'/%3E%3Ccircle cx='30' cy='196' r='1'/%3E%3Ccircle cx='118' cy='178' r='.6'/%3E%3C/g%3E%3C/svg%3E");
  color: #f1eee3;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 232, 201, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(47, 46, 46, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { font-family: var(--display); font-weight: 800; letter-spacing: .22em; font-size: 15px; text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--red); transition: right .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-social { display: flex; gap: 14px; align-items: center; }
.header-social a { display: inline-flex; width: 22px; height: 22px; color: var(--ink); }
.header-social svg { width: 100%; height: 100%; fill: currentColor; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--accent); font-style: italic; font-size: 16px; letter-spacing: .06em;
  text-decoration: none; padding: 9px 26px; border: 1px solid currentColor; transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; background: transparent; line-height: 1.4;
}
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.btn-outline { color: var(--ink); }
.btn-outline:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.btn-light { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-light:hover { background: #fff; color: var(--charcoal); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Section headings */
.section { padding: 110px 0; }
.section-title { font-family: var(--display); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(30px, 4vw, 42px); text-align: center; line-height: 1.2; }
.rule { width: 108px; height: 2px; background: var(--teal); margin: 26px auto 64px; border: 0; }
.stars .section-title { color: var(--gold); }
.stars .rule { background: var(--gold); }

/* Hero */
.hero { padding: 64px 0 90px; overflow: hidden; }
.hero-kicker { text-align: center; color: var(--teal); font-size: 21px; margin: 0; }
.hero-name {
  text-align: center; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 8.4vw, 92px); letter-spacing: .16em; line-height: 1.05; margin: 6px 0 0; padding-left: .16em;
}
.hero-feature { position: relative; margin-top: 70px; }
.hero-band { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 56%; background: var(--red); }
.hero-feature .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 48px; }
.hero-cover { justify-self: end; width: min(100%, 360px); filter: drop-shadow(0 18px 28px rgba(0,0,0,.28)); transition: transform .3s ease; }
.hero-cover:hover { transform: translateY(-4px); }
.hero-copy { color: #fff; text-align: center; max-width: 440px; }
.hero-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); letter-spacing: .06em; color: #fbeee0; line-height: 1.3; }
.hero-copy .tagline { font-family: var(--accent); font-style: italic; font-size: 20px; margin: 4px 0 14px; color: #fff; }
.hero-copy .meta { letter-spacing: .1em; font-size: 17px; margin: 0 0 22px; line-height: 1.8; }
.hero-copy .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--charcoal); }
.about-photo { background: var(--teal); display: flex; align-items: flex-start; justify-content: flex-end; padding: 80px 0; }
.about-photo img { width: min(100%, 440px); height: auto; aspect-ratio: 1000 / 1160; object-fit: cover; }
.about-copy { padding: 130px 8% 110px 8%; max-width: 620px; }
.about-copy h2 { font-family: var(--display); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-size: clamp(28px, 3vw, 38px); }
.about-copy .rule { margin: 26px 0 36px; background: var(--gold); }
.about-copy p { color: #f1eee3; font-size: 19px; line-height: 1.9; }
.about-copy a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.about-copy a:hover { color: #fff; }
.companies { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.companies a { text-decoration: none; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; border: 1px solid rgba(216,205,146,.6); padding: 11px 18px; transition: background .2s, color .2s; }
.companies a:hover { background: var(--gold); color: var(--charcoal); }

/* Books */
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.book { text-align: center; display: flex; flex-direction: column; align-items: center; }
.book-cover { display: block; width: 100%; max-width: 250px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.22)); transition: transform .3s ease; }
.book-cover:hover { transform: translateY(-5px); }
.book-cover img { aspect-ratio: 740 / 1000; object-fit: contain; width: 100%; }
.book h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 30px 0 4px; }
.book .sub { font-family: var(--accent); font-style: italic; color: var(--muted); font-size: 16px; margin: 0 0 14px; line-height: 1.5; }
.book p.desc { font-size: 16px; line-height: 1.7; max-width: 330px; margin: 0 0 20px; }
.book .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.text-link { font-size: 15px; color: var(--teal); text-underline-offset: 3px; }

/* Press */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.press-card { border: 1px solid rgba(255,255,255,.75); padding: 38px 30px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.press-card .logo { width: 150px; height: 150px; object-fit: contain; background: #232222; margin-bottom: 22px; }
.press-card .outlet { font-family: var(--display); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin-bottom: 14px; }
.press-card h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.45; margin-bottom: 14px; }
.press-card p { font-size: 16px; line-height: 1.7; color: #d9d6cc; }
.press-card .btn { margin-top: auto; font-size: 15px; }
.press-card .mark { width: 150px; height: 150px; border: 1px solid rgba(216,205,146,.55); display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); line-height: 1.15; margin-bottom: 22px; }
.press-card .mark.big { font-size: 34px; }
.press-card .mark.small { font-size: 17px; padding: 0 14px; }
.press-card hr { width: 70%; border: 0; border-top: 1px solid rgba(255,255,255,.7); margin: 0 0 22px; }

/* Interview */
.video { position: relative; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 22px 40px rgba(0,0,0,.25); }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s; }
.video button:hover .play { transform: translate(-50%, -50%) scale(1.07); }
.video .play svg { width: 30px; height: 30px; fill: #fff; margin-left: 5px; }
.video-caption { text-align: center; margin-top: 30px; font-size: 20px; line-height: 1.6; }
.video-caption .small { display: block; font-size: 16px; color: var(--muted); margin-top: 6px; }
.video-caption a { color: var(--teal); }

/* Contact */
.contact { padding: 90px 0 70px; }
.monogram { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 40px; letter-spacing: .08em; text-align: center; margin: 0; }
.contact-intro { text-align: center; font-size: 20px; letter-spacing: .06em; margin: 12px auto 0; max-width: 620px; }
.bracket { max-width: 610px; margin: 20px auto 22px; height: 40px; border: 2px solid rgba(255,255,255,.9); border-bottom: 0; border-top: 0; position: relative; }
.bracket::before { content: ""; position: absolute; left: 4px; right: 4px; top: 18px; border-top: 2px solid rgba(255,255,255,.9); }
.form-card { max-width: 560px; margin: 0 auto; background: #f4f5f4; color: var(--ink); border-radius: 26px; padding: 36px 48px 44px; }
.form-card h2 { font-family: var(--accent); font-style: italic; font-weight: 700; font-size: 40px; color: #595750; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--red); margin: 0 0 6px 2px; letter-spacing: .02em; }
.field input, .field textarea {
  font: inherit; font-size: 16px; line-height: 1.4; border: 1px solid transparent; background: #d6d6d6; border-radius: 8px; padding: 13px 14px; color: var(--ink); width: 100%;
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; margin-top: 24px; font-family: var(--display); font-style: normal; font-weight: 600; font-size: 16px; letter-spacing: .04em; border-radius: 8px; padding: 13px; }
.submit[disabled] { opacity: .65; cursor: progress; }
.form-status { margin: 14px 0 0; font-size: 16px; text-align: center; min-height: 1.5em; }
.form-status.ok { color: #2f6b4a; }
.form-status.err { color: var(--red-dark); }

/* Footer */
.site-footer { background: var(--charcoal); color: #cfccc2; border-top: 1px solid rgba(255,255,255,.08); padding: 34px 0 40px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .copy { font-family: var(--accent); font-style: italic; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; }
.site-footer a { color: #f1eee3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .label { color: #99968c; margin-right: 4px; }
.footer-social a { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--charcoal); align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

/* Books page */
.page-hero { padding: 80px 0 30px; text-align: center; }
.page-hero .section-title { font-size: clamp(34px, 5vw, 52px); }
.page-hero p.lead { max-width: 640px; margin: 0 auto; font-size: 19px; }
.book-detail { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; padding: 70px 0; border-top: 1px solid rgba(47,46,46,.14); }
.book-detail:first-of-type { border-top: 0; }
.book-detail img { width: 100%; filter: drop-shadow(0 14px 22px rgba(0,0,0,.25)); }
.book-detail h2 { font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.book-detail .sub { font-family: var(--accent); font-style: italic; font-size: 19px; color: var(--teal); margin: 10px 0 8px; line-height: 1.5; }
.book-detail .facts { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.book-detail ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.book-detail li { margin-bottom: .3em; }
.book-detail .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 100px 24px; }
.notfound p { max-width: 520px; margin: 18px auto 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .books-grid, .press-grid { grid-template-columns: 1fr 1fr; }
  .about-copy { padding: 90px 7% 80px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .header-social { display: none; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--cream); border-bottom: 1px solid rgba(47,46,46,.1); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .nav a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid rgba(47,46,46,.08); }
  .nav a::after { display: none; }
  .hero { padding-top: 44px; }
  .hero-feature { margin-top: 44px; }
  .hero-band { top: auto; bottom: 0; transform: none; height: 62%; }
  .hero-feature .wrap { grid-template-columns: 1fr; gap: 28px; padding-bottom: 44px; }
  .hero-cover { justify-self: center; width: min(66%, 280px); }
  .hero-copy { justify-self: center; }
  .hero { padding-bottom: 0; }
  .about { grid-template-columns: 1fr; }
  .about-photo { justify-content: center; padding: 60px 0 0; }
  .about-photo img { align-self: flex-end; }
  .about-photo img { width: min(78%, 420px); }
  .about-copy { padding: 64px 24px 72px; max-width: none; }
  .book-detail { grid-template-columns: 1fr; gap: 34px; padding: 56px 0; }
  .book-detail img { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 76px 0; }
  .rule { margin-bottom: 44px; }
  .books-grid, .press-grid { grid-template-columns: 1fr; gap: 60px; }
  .press-grid { gap: 24px; }
  .form-card { padding: 28px 22px 32px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .bracket { margin-left: 8px; margin-right: 8px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .hero-kicker { font-size: 16px; }
  .hero-name { letter-spacing: .1em; padding-left: .1em; }
}
