/* ===== Author Web Creative — design tokens ===== */
:root {
  /* Matched to the Author Web Creative logo: black, white and metallic gold */
  --ink: #050505;
  --surface: #101010;
  --surface-2: #18181a;
  --line: rgba(226, 178, 70, 0.24);
  --gold: #e2b246;
  --gold-strong: #f3cb63;
  --sky: #f3cb63;
  --text: #f6f4ef;
  --muted: #b5b0a6;
  --gold-grad: linear-gradient(135deg, #f7d878 0%, #e2b246 45%, #b8862a 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--muted); }
em.accent, .accent { font-style: italic; color: var(--gold); }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lead { font-size: 1.12rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 0.95rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-grad); color: #0a0a0a; }
.btn--gold:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Header mark: the "AW" monogram cropped from the full logo image */
.brand__mark {
  flex: none; width: 84px; height: 48px;
  background: url("logo.webp") no-repeat -38px -30px / 154px auto;
}
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1; color: #fff; }
.brand__name b {
  font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__name small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.42em; color: #fff; font-weight: 500; margin-top: 6px; }
@media (max-width: 420px) { .brand__name { font-size: 1.1rem; } .brand__mark { width: 70px; height: 40px; background-position: -32px -25px; background-size: 128px auto; } }
.footer-logo { width: 220px; height: auto; margin: -20px 0 -10px -24px; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-size: 0.94rem; color: var(--muted); border-radius: 999px;
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--text); background: transparent;
  text-decoration: none; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-grid; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 16px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { font-size: 1.05rem; padding: 0 8px; }
  .nav__social { display: none; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(226, 178, 70, 0.12), transparent 60%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.hero h1 em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__visual { display: grid; place-items: center; }
.device {
  width: min(320px, 80%); aspect-ratio: 3 / 4.2; border-radius: 26px; padding: 18px 18px 34px;
  background: linear-gradient(160deg, #2a2a2c, #0b0b0c); border: 1px solid rgba(226,178,70,0.25);
  box-shadow: var(--shadow), 0 0 60px -10px rgba(226,178,70,0.25);
  transform: rotate(-4deg); animation: float 7s ease-in-out infinite;
}
.device__screen {
  height: 100%; border-radius: 10px; background: #000;
  display: grid; place-items: center; overflow: hidden;
}
.device__screen img { width: 112%; max-width: none; height: auto; }
@keyframes float { 50% { transform: rotate(-4deg) translateY(-12px); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; max-width: 520px; }
.stats strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--text); }
.stats span { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
}

/* ===== Split / about ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.panel {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface-2), var(--surface)); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text); }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ===== Featured book ===== */
.book-cover {
  aspect-ratio: 2 / 3; width: min(300px, 75%); margin-inline: auto; border-radius: 6px 14px 14px 6px;
  background: linear-gradient(165deg, #233b67 0%, #101b33 55%, #0a1120 100%);
  box-shadow: var(--shadow), inset 6px 0 0 rgba(0,0,0,0.35), inset 8px 0 0 rgba(255,255,255,0.05);
  display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px; text-align: center;
  position: relative; overflow: hidden;
}
.book-cover::after {
  content: ""; position: absolute; inset: auto -30% -30% -30%; height: 60%;
  background: radial-gradient(circle, rgba(217,179,108,0.28), transparent 65%);
}
.book-cover__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; position: relative; z-index: 1; }
.book-cover__author { font-size: 0.72rem; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; position: relative; z-index: 1; }
.book-cover--sm { width: 100%; padding: 18px 14px; }
.book-cover--sm .book-cover__title { font-size: 1.15rem; }
.cover-b { background: linear-gradient(165deg, #5a2a3c, #24121b 60%, #0a1120); }
.cover-c { background: linear-gradient(165deg, #2d5a4c, #12241e 60%, #0a1120); }
.cover-d { background: linear-gradient(165deg, #6a5326, #2a2010 60%, #0a1120); }
.cover-e { background: linear-gradient(165deg, #3f3a72, #1a1730 60%, #0a1120); }
.cover-f { background: linear-gradient(165deg, #6b3a22, #2a160d 60%, #0a1120); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.tag { font-size: 0.76rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ===== Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  padding: 30px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 179, 108, 0.5); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(217, 179, 108, 0.12); color: var(--gold); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); margin-bottom: 10px; display: block; }
.card ul { padding-left: 18px; margin: 14px 0 0; color: var(--muted); font-size: 0.94rem; }
.card ul li + li { margin-top: 6px; }
.card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--text); margin: 6px 0 0; }

/* ===== Steps / roadmap ===== */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--serif); color: var(--gold);
  border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 0.85rem;
}
.steps strong { color: var(--text); display: block; }
.steps span { color: var(--muted); font-size: 0.94rem; }

/* ===== Forms ===== */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(169, 179, 199, 0.28); background: var(--ink); color: var(--text);
  font: 1rem var(--sans); transition: border-color 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #f08b8b; }
.field .error { font-size: 0.8rem; color: #f5a3a3; display: none; }
.field.has-error .error { display: block; }
.form-status { font-size: 0.92rem; color: var(--gold); min-height: 1.4em; margin: 0; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.inline-form .field { flex: 1 1 260px; }

/* ===== Newsletter / CTA ===== */
.cta {
  border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(127,180,232,0.18), transparent 50%),
              radial-gradient(circle at 90% 100%, rgba(217,179,108,0.2), transparent 50%), var(--surface-2);
  border: 1px solid var(--line);
}
.cta .btn-row { justify-content: center; }

/* ===== Bookstore ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: 500 0.9rem var(--sans); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.product { display: flex; flex-direction: column; gap: 14px; }
.product[hidden] { display: none; }
.product h3 { font-size: 1.1rem; margin: 6px 0 2px; }
.product p { font-size: 0.88rem; margin: 0; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.product__credits { font-size: 0.78rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold) !important; margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--line); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.86rem; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; }

/* ===== Testimonials ===== */
.quote { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--text); line-height: 1.5; }
.quote-by { margin-top: 18px; font-size: 0.86rem; color: var(--gold); }

/* ===== Page header ===== */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: #000; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid ul a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.85rem; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--gold); color: var(--ink); padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: opacity 0.25s, transform 0.25s var(--ease); z-index: 100; pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
