/* Surfer's Circle — static Cloudflare Pages website */
:root {
  --ink: #21120d;
  --dark: #130b08;
  --cream: #fff7e8;
  --paper: #f7ecda;
  --orange: #c74616;
  --orange-dark: #8d2e0f;
  --gold: #e2a83d;
  --line: rgba(151, 85, 39, .26);
  --shadow: 0 18px 55px rgba(24, 10, 5, .22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  background: white; padding: .75rem 1rem; border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
h1, h2, h3, .eyebrow, .tagline { font-family: var(--serif); }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h3 { line-height: 1.25; }
p { margin: 0 0 1.1rem; }
.section-kicker, .eyebrow {
  color: var(--orange); font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .22em; font-size: .77rem; font-weight: 800; margin-bottom: .55rem;
}
.section-heading { text-align: center; margin-bottom: 2.1rem; }
.section-heading.light { color: var(--cream); }
.compact-heading { margin-bottom: 2rem; }
.lead { font-size: 1.1rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: .85rem 1.25rem; border-radius: .45rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .035em;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.button-primary { background: linear-gradient(135deg, #df5b1f, #a9300e); color: white; }
.button-light { background: #fff4df; color: var(--dark); }
.button-outline { color: white; border-color: var(--gold); background: rgba(8,4,2,.45); }
.button-gold { background: var(--orange); color: white; text-align: center; }

/* Hero */
.hero {
  position: relative; color: white; overflow: hidden;
  background: linear-gradient(rgba(16,8,5,.24), rgba(10,5,3,.72)), url("assets/hero-bg.webp") center/cover;
  min-height: 760px;
}
.hero::after {
  content:""; position:absolute; inset:auto 0 0; height: 42%;
  background: linear-gradient(transparent, rgba(13,7,4,.92));
  pointer-events:none;
}
.nav {
  position: relative; z-index: 4; display:flex; justify-content:flex-end; gap: 1.6rem;
  width:min(1160px,calc(100% - 40px)); margin:auto; padding: 24px 0 0;
}
.nav a { color:white; text-decoration:none; font-size:.83rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; }
.nav a:hover { color: var(--gold); }
.hero-inner {
  position:relative; z-index:2; width:min(1160px,calc(100% - 40px)); margin:auto;
  display:grid; grid-template-columns:minmax(280px, 390px) 1fr; gap: 72px; align-items:center;
  padding: 38px 0 72px;
}
.hero-cover-wrap { perspective: 1100px; }
.hero-cover {
  width: min(100%, 370px); margin:auto;
  box-shadow: 18px 22px 45px rgba(0,0,0,.45);
  transform: rotateY(4deg);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform:rotateY(4deg) translateY(0); } 50% { transform:rotateY(4deg) translateY(-8px); } }
.hero-copy { text-align:center; }
.hero-copy .eyebrow { color:#ffd77f; font-size:.95rem; }
.hero h1 {
  margin:.25rem 0 .3rem; text-transform:uppercase; letter-spacing:.035em;
  font-size:clamp(3.4rem, 7vw, 6.8rem); line-height:.92; color:#fff0cf;
  text-shadow:0 8px 28px rgba(0,0,0,.42);
}
.tagline { margin:1.3rem 0 1.8rem; font-size:clamp(1.35rem,2.4vw,2rem); font-style:italic; line-height:1.35; }
.hero-actions { display:flex; flex-wrap:wrap; justify-content:center; gap: .8rem; }
.credentials {
  margin-top: 2.25rem; display:grid; grid-template-columns:repeat(3,1fr);
  border-top:1px solid rgba(255,255,255,.22); padding-top:1.2rem;
}
.credentials div { display:flex; align-items:center; justify-content:center; gap:.7rem; padding:0 .9rem; border-right:1px solid rgba(255,255,255,.16); text-transform:uppercase; font-size:.72rem; line-height:1.35; letter-spacing:.035em; }
.credentials div:last-child { border-right:0; }
.credentials span { color:var(--gold); font-size:2rem; font-family:var(--serif); }

/* About */
.about-section { background: #fffaf1; }
.about-grid { display:grid; grid-template-columns: .92fr 1.08fr; gap: 58px; align-items:stretch; }
.section-copy { padding: 16px 0; }
.about-image {
  min-height: 470px; border-radius: 1.2rem;
  background: linear-gradient(90deg,rgba(255,250,241,.10),transparent), url("assets/about-landscape.webp") center/cover;
  box-shadow: var(--shadow);
}

/* Reviews */
.reviews-section { background: linear-gradient(180deg,#f7ecda,#fffaf1); }
.review-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.review-card {
  background:rgba(255,255,255,.63); border:1px solid var(--line); border-radius:.8rem;
  padding:1.5rem 1.25rem; text-align:center; box-shadow:0 9px 28px rgba(78,35,15,.06);
}
.review-card h3 { color:#a93413; font-size:1.25rem; }
.review-card blockquote { margin:0 0 1rem; font-family:var(--serif); line-height:1.55; }
.review-card > p { margin:0; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; }
.stars { color:#d4661c; letter-spacing:.12em; }

/* BookLife feature */
.booklife-highlight { background:linear-gradient(135deg,#101820,#06090c); color:white; padding:50px 0; }
.booklife-highlight-grid { display:grid; grid-template-columns:240px 1fr 250px; gap:35px; align-items:center; }
.score-badge { text-align:center; border-right:1px solid rgba(226,168,61,.35); padding-right:35px; }
.score-badge span { color:var(--gold); text-transform:uppercase; letter-spacing:.13em; font-family:var(--serif); }
.score-badge strong { display:block; font-family:var(--serif); color:#f0bd5c; font-size:4.6rem; line-height:1.05; font-weight:400; }
.score-badge small, .overall small { font-size:.44em; }
.quote-list p { font-family:var(--serif); font-size:1.25rem; margin:.55rem 0; }
.quote-list p::before { content:"“"; color:var(--gold); font-size:1.8em; margin-right:.25rem; }

/* Author and libraries */
.info-section { background:#fffaf1; }
.info-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:32px; }
.author-card { display:grid; grid-template-columns:160px 1fr; gap:25px; align-items:center; }
.author-card img { width:160px; height:160px; object-fit:cover; border-radius:50%; box-shadow:0 10px 30px rgba(34,14,7,.16); }
.author-card h2, .library-card h2 { font-size:2rem; }
.library-card { border:1px solid var(--line); background:#f9efdf; border-radius:1rem; padding:2rem; display:grid; grid-template-columns:1fr 250px; gap:28px; }
.book-data { margin:0; }
.book-data div { display:grid; grid-template-columns:100px 1fr; gap:12px; margin:.42rem 0; }
.book-data dt { font-weight:800; }
.book-data dd { margin:0; }
.book-data dd a { color: var(--orange-dark); font-weight: 700; text-underline-offset: 3px; }
.library-actions { border-left:1px solid var(--line); padding-left:25px; display:flex; flex-direction:column; justify-content:center; gap:1.2rem; }
.download-link { color:var(--orange-dark); text-decoration:none; font-weight:800; text-transform:uppercase; line-height:1.35; }
.download-link span, .email-line span { display:inline-grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--orange); color:white; margin-right:.55rem; }
.email-line { margin:0; font-size:.88rem; }
.email-line a { text-decoration:none; }

/* Editions */
.editions-section { background:linear-gradient(180deg,#f7ecda,#fff8ed); padding-top:64px; padding-bottom:72px; }
.edition-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:28px; }
.edition { width:150px; text-align:center; text-decoration:none; font-weight:800; text-transform:uppercase; font-size:.75rem; letter-spacing:.07em; }
.edition img { aspect-ratio:2/3; object-fit:cover; box-shadow:0 9px 24px rgba(32,13,6,.22); margin-bottom:.75rem; transition:transform .22s ease, box-shadow .22s ease; }
.edition:hover img { transform:translateY(-6px); box-shadow:0 18px 36px rgba(32,13,6,.3); }

/* Full review */
.full-review-section { background:linear-gradient(135deg,#101820,#06090c); color:#f7ead4; }
.review-credit { color:#d4b179; }
.full-review-grid { display:grid; grid-template-columns:repeat(4,1fr) 220px; gap:0; border-top:1px solid rgba(226,168,61,.35); border-bottom:1px solid rgba(226,168,61,.25); }
.review-column, .scores { padding:1.5rem; border-right:1px solid rgba(226,168,61,.24); }
.review-column h3, .scores h3 { color:var(--gold); text-transform:uppercase; letter-spacing:.08em; font-family:var(--sans); font-size:.87rem; }
.review-column p { font-family:var(--serif); font-size:.92rem; line-height:1.55; }
.scores { border-right:0; }
.scores p { margin:.25rem 0; font-size:.84rem; }
.scores hr { border:0; border-top:1px solid rgba(226,168,61,.35); margin:1rem 0; }
.scores > span { display:block; text-transform:uppercase; font-size:.72rem; letter-spacing:.11em; }
.overall { display:block; color:#f0bd5c; font-family:var(--serif); font-size:2.4rem; font-weight:400; }

/* Footer */
footer { background:#070504; color:#d9c7b0; padding:20px 0; font-size:.83rem; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.footer-inner p { margin:0; }
.footer-inner a { text-decoration:none; }

/* Reveal */
.reveal { opacity:0; transform:translateY(16px); transition:opacity .65s ease,transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .hero-cover { animation:none; }
  .reveal { opacity:1; transform:none; transition:none; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav { justify-content:center; gap:1rem; flex-wrap:wrap; }
  .hero { min-height:auto; }
  .hero-inner { grid-template-columns:300px 1fr; gap:35px; }
  .hero h1 { font-size:clamp(3rem,7vw,5rem); }
  .review-grid { grid-template-columns:repeat(2,1fr); }
  .booklife-highlight-grid { grid-template-columns:210px 1fr; }
  .booklife-highlight-grid .button { grid-column:1/-1; justify-self:center; }
  .info-grid { grid-template-columns:1fr; }
  .full-review-grid { grid-template-columns:repeat(2,1fr); }
  .scores { grid-column:1/-1; border-top:1px solid rgba(226,168,61,.24); }
  .about-grid { grid-template-columns:1fr; }
}

/* Mobile */
@media (max-width: 680px) {
  .container, .nav, .hero-inner { width:min(100% - 28px,1160px); }
  .section { padding:62px 0; }
  .nav { display:none; }
  .hero-inner { grid-template-columns:1fr; padding-top:34px; gap:28px; }
  .hero-cover { width:240px; transform:none; }
  @keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
  .hero h1 { font-size:clamp(3rem,15vw,4.5rem); }
  .tagline { font-size:1.35rem; }
  .hero-actions { flex-direction:column; }
  .credentials { grid-template-columns:1fr; gap:.8rem; }
  .credentials div { border-right:0; border-bottom:1px solid rgba(255,255,255,.14); padding-bottom:.8rem; }
  .credentials div:last-child { border-bottom:0; }
  .review-grid { grid-template-columns:1fr; }
  .booklife-highlight-grid { grid-template-columns:1fr; text-align:center; }
  .score-badge { border-right:0; border-bottom:1px solid rgba(226,168,61,.35); padding:0 0 1.2rem; }
  .quote-list p { font-size:1.08rem; }
  .author-card { grid-template-columns:1fr; text-align:center; }
  .author-card img { margin:auto; }
  .library-card { grid-template-columns:1fr; padding:1.4rem; }
  .library-actions { border-left:0; border-top:1px solid var(--line); padding:1.2rem 0 0; }
  .book-data div { grid-template-columns:90px 1fr; }
  .edition { width:120px; }
  .full-review-grid { grid-template-columns:1fr; }
  .review-column, .scores { border-right:0; border-bottom:1px solid rgba(226,168,61,.24); }
  .footer-inner { flex-direction:column; text-align:center; }
}
