/* BookLove website styles */
:root {
  --cream: #FFF9F7;
  --paper: #FFFFFF;
  --blush: #FBEFF1;
  --lavender: #ECE4F7;
  --rose: #D96C8A;
  --rose-ink: #A8446A;
  --rose-deep: #8E3558;
  --sage: #8FB9A8;
  --plum: #3D2C3E;
  --muted: #6E5B70;
  --line: #EBDDE2;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 66ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--rose-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-deep); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--rose-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--plum); color: #fff; padding: 0.5rem 1rem; border-radius: 999px;
}
.skip:focus { top: 1rem; color: #fff; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem 1.5rem;
  max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.5rem;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  color: var(--plum); text-decoration: none; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.wordmark:hover { color: var(--plum); }
.wordmark svg { width: 1.6rem; height: 1.6rem; flex: none; }
.site-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rose-ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* The bookmark ribbon: the one decorative flourish on every page */
.site-header { position: relative; padding-right: 5rem; }
.ribbon {
  position: absolute; top: 0; right: 1.5rem;
  width: 2.25rem; height: clamp(7rem, 16vw, 11rem);
  background: linear-gradient(180deg, var(--rose) 0%, #C95B7C 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  box-shadow: inset -6px 0 0 rgba(255,255,255,0.18);
}

/* Home */
.hero {
  max-width: 72rem; margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) 1.5rem clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 1.25rem; max-width: 13ch;
}
.hero p { font-size: 1.25rem; color: var(--muted); max-width: 40ch; margin: 0 0 1.75rem; }
.status {
  display: inline-block; background: var(--lavender); color: var(--plum);
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
}

.shelf {
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.shelf-inner {
  max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem;
  display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.shelf h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 0.4rem; }
.shelf p { margin: 0; color: var(--muted); }

/* Document pages */
.doc {
  max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.5rem 4rem;
  display: grid; gap: 2.5rem;
}
@media (min-width: 62rem) {
  .doc { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 4rem; }
  .doc-head { grid-column: 1 / -1; }
  .toc { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow: auto; }
}
.doc-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 0.5rem; max-width: 18ch;
}
.updated { color: var(--muted); margin: 0; }

.toc h2 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin: 0 0 0.6rem; }
.toc ol { margin: 0; padding-left: 1.9rem; color: var(--muted); font-size: 0.95rem; }
.toc li { margin: 0.3rem 0; }
.toc ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--rose-ink); text-decoration: underline; }

.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.25;
  margin: 2.75rem 0 0.75rem;
}
.legal { counter-reset: section; }
.legal > h2 { counter-increment: section; }
.legal > h2::before { content: counter(section) ". "; color: var(--rose-ink); }
.prose h3 { font-size: 1.1rem; font-weight: 800; margin: 1.75rem 0 0.4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--rose); }
.prose strong { font-weight: 800; }

.summary {
  background: var(--blush); border-radius: 20px; padding: 1.5rem 1.75rem;
  margin: 0 0 1rem;
}
.summary h2 { margin-top: 0; font-size: 1.25rem; }
.summary ul { margin-bottom: 0; }

.note {
  border-left: 4px solid var(--sage); background: var(--paper);
  padding: 0.9rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.25rem 0;
}

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 0.97rem; background: var(--paper); }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
th { font-weight: 800; background: var(--blush); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step; position: relative; padding-left: 2.75rem; margin: 0.9rem 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--lavender); color: var(--plum); font-weight: 800;
  display: grid; place-items: center; font-size: 0.95rem;
}

.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1.2rem; margin: 0.6rem 0;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq details[open] summary { margin-bottom: 0.5rem; }

.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.5rem 1.75rem; margin: 1.5rem 0;
}
.contact-card p:last-child { margin-bottom: 0; }
.big-link { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
  max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  color: var(--muted); font-size: 0.95rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

@media print {
  .site-header, .site-footer, .toc, .ribbon, .skip { display: none; }
  body { background: #fff; }
}
