/* S.I. Owen, author & publisher site (draft) */
:root {
  --paper: #faf5ec;
  --paper-2: #f3eadb;
  --ink: #2b211c;
  --ink-soft: #5e4f45;
  --wine: #7a2e2a;
  --wine-dark: #5c201d;
  --gold: #b8893f;
  --gold-soft: #e7c98f;
  --gold-text: #8a5f1f; /* darker gold for AA-contrast text */
  --line: #e2d5bf;
  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-body: "Lora", Georgia, "Times New Roman", serif;
  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(60, 30, 20, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.1rem); }
h3 { font-size: 2rem; }

.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--serif-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--gold-text);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.pub-name { white-space: nowrap; }
.placeholder { background: rgba(184, 137, 63, .14); border-bottom: 1px dashed var(--gold); padding: 0 .2em; border-radius: 2px; white-space: nowrap; }
.placeholder-text { color: var(--ink-soft); font-style: italic; }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 .95rem/1 var(--serif-body);
  letter-spacing: .04em;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wine); color: #fff8ec; }
.btn-primary:hover { background: var(--wine-dark); color: #fff8ec; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--serif-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.site-nav ul { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; letter-spacing: .06em; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.site-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(231, 201, 143, .35), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-title {
  font-size: clamp(3.2rem, 10vw, 7rem);
  font-weight: 500;
  letter-spacing: .01em;
  margin: 0;
}
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); font-size: 1.3rem; margin: 1.25rem 0; }
.ornament span { width: 70px; height: 1px; background: var(--gold); opacity: .6; }
.hero-tagline { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 2.25rem; }
.hero-publisher { font-size: .95rem; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-lede { color: var(--ink-soft); margin: 0; }

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.book-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: start;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.cover { border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: var(--shadow); position: relative; transition: transform .3s; }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.08)); z-index: 1; }
.book-card:hover .cover { transform: translateY(-4px) rotate(-.5deg); }
.cover svg, .cover img { width: 100%; height: auto; }
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wine); background: rgba(122, 46, 42, .08);
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.book-body h3 { margin-bottom: .25rem; }
.book-genre { margin: 0 0 1rem; font-style: italic; color: var(--gold-text); font-size: .95rem; display: inline-block; }
.book-blurb { margin: 0 0 1.5rem; }
.notify-btn { padding: .8rem 1.3rem; font-size: .9rem; }
.notify-msg, .form-msg { font-size: .88rem; color: var(--ink-soft); margin: .75rem 0 0; min-height: 1px; }

/* About */
.about { background: var(--paper-2); border-block: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: center; }
.logo-panel {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius) var(--radius);
  background: linear-gradient(160deg, #fffaf0, #efe2cb);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  outline: 1px solid var(--gold-soft); outline-offset: 10px;
  padding: 2rem;
}
.logo-panel .si-logo { width: 82%; height: auto; filter: drop-shadow(0 10px 18px rgba(92,32,29,.25)); }
.si-logo .lg-ring { stroke: var(--gold); }
.si-logo .lg-fill { fill: var(--wine); }
.si-logo .lg-mono { fill: #fbf1dc; }
.si-logo .lg-word { fill: var(--gold-soft); }
.si-logo .lg-gold { fill: var(--gold-soft); }
.footer-logo { width: 84px; margin: 0 auto 1rem; }
.footer-logo .si-logo .lg-fill { fill: #3a2620; }
.footer-logo .si-logo .lg-ring { stroke: var(--gold-soft); }
.about-text { max-width: 600px; }
.signature { font-family: var(--serif-display); font-style: italic; font-size: 2rem; color: var(--wine); margin: 1.5rem 0 0; }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter-inner { max-width: 760px; }
.signup-form {
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 1rem;
  align-items: end;
  text-align: left;
}
.field label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.field input {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: .85rem 1rem;
  background: #fffdf8;
  border: 1px solid #cdbb9d;
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus { border-color: var(--gold); outline: 2px solid rgba(184,137,63,.35); outline-offset: 0; }
.signup-form .btn { height: 52px; }
.form-msg { grid-column: 1 / -1; text-align: center; margin: 0; }
.contact-line { margin-top: 2.5rem; color: var(--ink-soft); font-size: .95rem; }

/* Footer */
.site-footer { background: #241a16; color: #d9cbb4; padding: 3.5rem 0 2.5rem; text-align: center; }
.footer-brand { font-family: var(--serif-display); font-size: 1.8rem; color: #f6ead2; margin: 0; }
.footer-pub { margin: .25rem 0 1.5rem; font-style: italic; font-size: .95rem; }
.site-footer .pub-name { color: var(--gold-soft); }
.contact-line a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--gold-soft); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: .8rem; letter-spacing: .04em; opacity: .75; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(231,201,143,.15); }

/* Responsive */
@media (max-width: 1000px) {
  .book-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; content: "";
  }
  .nav-toggle .bar::before { position: absolute; top: -7px; }
  .nav-toggle .bar::after { position: absolute; top: 7px; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem; }
  .site-nav li a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .logo-panel { width: min(260px, 80%); margin-inline: auto; }
  .about-text { margin-inline: auto; }
  .signup-form { grid-template-columns: 1fr; }
  .signup-form .btn { width: 100%; }
}
@media (max-width: 560px) {
  .container { width: min(1120px, 100% - 2.5rem); }
  .book-card { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; }
  .book-card .cover { width: min(220px, 70%); margin-inline: auto; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
}
