/* Ash Stral: laid out like bookishtroves.com, coloured like the Bookish Troves
   redesign (the wax seal): cream linen paper, seal red and plum ink.
   Follows the visitor's light/dark setting, like Bookish Troves does. */
:root {
  --paper: #FBF7F1; --band: #F3EBE0; --surface: #FFFDF9;
  --ink: #2E2430; --text: #4E434B; --muted: #7D6F78; --rule: #E6DACB;
  --accent: #92373D; --accent-fill: #C77E78; --accent-soft: #F6E6E0;
  --btn: #92373D; --btn-text: #FFFFFF; --btn-hover: #6F252C; --btn-hover-text: #FFFFFF;
  --shadow: rgba(60, 35, 40, 0.55);
  --max: 1200px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #18131A; --band: #211A22; --surface: #211A22;
  --ink: #F3EAE4; --text: #D5C8C6; --muted: #A0919A; --rule: #3A2F38;
  --accent: #E8A19B; --accent-fill: #E8A19B; --accent-soft: #3A2228;
  --btn: #E8A19B; --btn-text: #1D1418; --btn-hover: #F3C2BC; --btn-hover-text: #1D1418;
  --shadow: rgba(0, 0, 0, 0.7);
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18131A; --band: #211A22; --surface: #211A22;
  --ink: #F3EAE4; --text: #D5C8C6; --muted: #A0919A; --rule: #3A2F38;
  --accent: #E8A19B; --accent-fill: #E8A19B; --accent-soft: #3A2228;
  --btn: #E8A19B; --btn-text: #1D1418; --btn-hover: #F3C2BC; --btn-hover-text: #1D1418;
  --shadow: rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1.5em; }
strong, b { color: var(--ink); }

h1, h2, h3 { font-family: "Montserrat", Arial, sans-serif; color: var(--ink); margin: 20px 0; }
h1 { font-size: 40px; font-weight: 700; line-height: 1.3; }
h2 { font-size: 36px; font-weight: 600; line-height: 1.5; }
h3 { font-size: 26px; font-weight: 600; line-height: 1.5; color: var(--accent); }

/* Links: plum ink with a rose underline, seal red on hover */
main p a, main li a, footer a {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent-fill);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
main p a:hover, main li a:hover, footer a:hover { color: var(--accent); }

hr { border: 0; height: 1px; background: var(--rule); margin: 50px 0; }

/* Header: linen bar, logo left, menu right */
.site-header { background: var(--band); border-bottom: 1px solid var(--rule); }
.inside-header {
  max-width: var(--max); margin: 0 auto; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Logo: round photo + name in the book-cover lettering, "Ash" in plum ink and
   "Stral" in seal red, like the "Bookish Troves" wordmark */
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-logo img { width: 60px; height: 60px; }
.logo-name { font-family: "Cinzel Decorative", Georgia, serif; font-size: 30px; font-weight: 700; line-height: 1; white-space: nowrap; }
.logo-ash { color: var(--ink); }
.logo-stral { color: var(--accent); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav a {
  display: block; padding: 0 20px; line-height: 60px;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}

main { max-width: var(--max); margin: 0 auto; padding: 40px 40px 20px; }

/* Book rows: cover left, text right */
.book { display: grid; grid-template-columns: 2fr 3fr; gap: 50px; align-items: center; }
.book .cover img { width: 100%; max-width: 400px; margin: 0 auto; }
.book h1 { margin-top: 0; }

/* Buttons: seal-red pills, the same red as the Sign Up button */
.btn {
  display: inline-block; background: var(--btn); color: var(--btn-text);
  font-family: "Source Code Pro", monospace; font-size: 20px; font-weight: 500;
  text-transform: capitalize; letter-spacing: 0.5px; line-height: 36px;
  padding: 5px 20px; border-radius: 20px; text-decoration: none;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-hover-text); }
.buttons { margin: 0 0 1.5em; }

/* Newsletter: linen-to-rose band holding the signup card, like Bookish Troves */
.join {
  margin: 60px 0 30px; padding: 40px; border-radius: 18px;
  background: linear-gradient(135deg, var(--band), var(--accent-soft));
  border: 1px solid var(--rule);
}
.join h2 { margin-top: 0; }
.signup-card {
  max-width: 420px; padding: 24px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 20px 40px -32px var(--shadow);
  font-family: "Montserrat", Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text);
}
.signup-card p { margin: 0 0 18px; }
.signup-btn {
  display: block; text-align: center; background: var(--btn); color: var(--btn-text);
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none;
}
.signup-btn:hover { background: var(--btn-hover); color: var(--btn-hover-text); }

/* About */
.about { display: grid; grid-template-columns: 2fr 5fr; gap: 50px; align-items: start; }
.about .photo img {
  width: 100%; max-width: 348px; margin: 0 auto; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--accent-fill);
}
.about h1 { margin-top: 0; }
blockquote { margin: 0 0 24px; padding-left: 20px; border-left: 3px solid var(--accent-fill); font-style: italic; color: var(--ink); }
blockquote cite { display: block; font-style: normal; font-weight: 700; margin-top: 6px; color: var(--muted); }

/* Policy pages: one comfortable reading column */
.legal { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.8; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 24px; line-height: 1.4; margin: 36px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule); }
.legal h3 { font-size: 19px; line-height: 1.4; margin: 24px 0 10px; color: var(--ink); }
.legal p, .legal ul, .legal ol { margin: 0 0 1em; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li { margin-bottom: 0.4em; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--ink); text-decoration-color: var(--accent-fill); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--accent); }
.legal table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.legal td, .legal th { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.legal [id] { scroll-margin-top: 20px; }

/* Footer: linen band, then a quiet bar */
.footer-widgets { background: var(--band); border-top: 1px solid var(--rule); padding: 40px; text-align: center; }
.footer-widgets p { max-width: 900px; margin: 24px auto 0; font-style: italic; }
.site-info {
  background: var(--paper); border-top: 1px solid var(--rule); color: var(--muted);
  padding: 20px 40px; text-align: center;
  font-family: "Montserrat", Arial, sans-serif; font-size: 16px; line-height: 2.25;
}
.site-info p { margin: 0 0 8px; }
.site-info a { color: var(--muted); text-decoration: none; }
.site-info a:hover { color: var(--accent); }

/* Tablet: stack the header */
@media (max-width: 960px) {
  .inside-header { flex-direction: column; padding: 24px 20px 8px; gap: 4px; }
  .nav ul { justify-content: center; }
  .nav a { font-size: 17px; letter-spacing: 1.5px; padding: 0 14px; line-height: 48px; }
}

/* Phone */
@media (max-width: 768px) {
  body { font-size: 18px; }
  main { padding: 24px 20px 10px; }
  h1 { font-size: 30px; }
  h2 { font-size: 27px; }
  h3 { font-size: 22px; }
  hr { margin: 36px 0; }
  .site-logo img { width: 52px; height: 52px; }
  .logo-name { font-size: 24px; }
  .nav a { font-size: 14px; letter-spacing: 1px; padding: 0 10px; line-height: 44px; }
  .book, .about { grid-template-columns: 1fr; gap: 16px; }
  .book .cover img { max-width: 280px; }
  .about .photo img { max-width: 240px; }
  .btn { font-size: 18px; }
  .join { margin-top: 40px; padding: 24px 20px; }
  .legal { font-size: 16px; }
  .legal h2 { font-size: 21px; }
  .footer-widgets { padding: 30px 20px; }
  .site-info { padding: 20px; }
}
