/* ============================================================
   The True Face of Kindness — Website Stylesheet
   Palette derived from book cover:
     --plum:   #1f1535  (deep purple-black)
     --gold:   #c8a644  (antique gold accent)
     --cream:  #faf7f2  (warm off-white background)
     --ink:    #2d2636  (near-black text)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --plum: #1f1535;
  --plum-light: #2e2248;
  --gold: #c8a644;
  --gold-hover: #dbb94e;
  --gold-muted: #a8893a;
  --cream: #faf7f2;
  --cream-dark: #f3efe8;
  --ink: #2d2636;
  --ink-light: #4a4454;
  --border: #e0dbd2;
  --border-dark: #c5bfb4;
  --white: #ffffff;
  --max-width: 52rem;
  --nav-height: 3.5rem;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.625rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p + p { margin-top: 1rem; }


/* ---------- Layout Helpers ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-section {
  padding: 3.5rem 0;
}

.page-section + .page-section {
  border-top: 1px solid var(--border);
}


/* ---------- Site Header ---------- */

.site-header {
  background-color: var(--plum);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200, 166, 68, 0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-title:hover {
  color: var(--gold);
}

/* Hide the header title — the Home nav link serves the same purpose */
.site-title {
  display: none;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.75);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--gold);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cream);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 52rem) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--plum);
    border-bottom: 1px solid rgba(200, 166, 68, 0.2);
    padding: 1rem 0;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;
  }

  .main-nav li {
    border-top: 1px solid rgba(250, 247, 242, 0.08);
  }

  .main-nav li:first-child { border-top: none; }

  .main-nav a {
    display: block;
    padding: 0.65rem 0;
    font-size: 0.95rem;
  }
}


/* ---------- Hero (Home Page) ---------- */

.hero {
  background-color: var(--plum);
  color: var(--cream);
  padding: 4rem 0 3.5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--cream);
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.hero-text .book-title-kindness {
  font-family: 'Raleway', 'Helvetica Neue', sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(250, 247, 242, 0.7);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.hero-description {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(250, 247, 242, 0.88);
  margin-bottom: 2rem;
}

.hero-cover {
  display: flex;
  justify-content: center;
}

.hero-cover img {
  width: 100%;
  max-width: 280px;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 42rem) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 { font-size: 2rem; }
  .hero-text .book-title-kindness { font-size: 2.5rem; }

  .hero-cover { order: -1; }
  .hero-cover img { max-width: 220px; }
}


/* ---------- Epigraph ---------- */

.epigraph {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2.5rem 0;
  text-align: center;
}

.epigraph blockquote {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-light);
  border: none;
  padding: 0;
  margin: 0;
}

.epigraph blockquote::before {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.epigraph blockquote::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

.epigraph cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-style: normal;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-muted);
}


/* ---------- Pull Quote (used on interior pages) ---------- */

.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink-light);
}

.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--gold-muted);
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--plum);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background-color: var(--gold-hover);
  color: var(--plum);
}

.btn-outline {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--gold);
  color: var(--plum);
}

.hero .btn + .btn {
  margin-left: 0.75rem;
}

@media (max-width: 42rem) {
  .hero .btn { display: block; width: 100%; text-align: center; }
  .hero .btn + .btn { margin-left: 0; margin-top: 0.75rem; }
}


/* ---------- Home Quotation Section ---------- */

.home-quotation {
  background-color: var(--cream-dark);
}

.home-quotation .pull-quote {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  border-left-color: var(--gold);
}


/* ---------- About Page ---------- */

.about-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.about-details h3 {
  margin-top: 2rem;
  color: var(--plum);
}


/* ---------- Chronicles Page ---------- */

.chronicle-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.chronicle-item:last-child {
  border-bottom: none;
}

.chronicle-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.chronicle-meta {
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}

.chronicle-summary {
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.65;
}


/* ---------- Samples Page ---------- */

.sample-block {
  padding: 2rem 0;
}

.sample-block + .sample-block {
  border-top: 1px solid var(--border);
}

.sample-block h3 {
  color: var(--plum);
  margin-bottom: 1rem;
}

.sample-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}

.sample-text strong {
  font-weight: 600;
}

.sample-attribution {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--gold-muted);
}


/* ---------- Order Page ---------- */

.order-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.order-cover img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 36rem) {
  .order-grid {
    grid-template-columns: 1fr;
  }
  .order-cover {
    text-align: center;
  }
  .order-cover img {
    max-width: 180px;
    margin: 0 auto;
  }
}

.order-details h3 {
  color: var(--plum);
  margin-top: 1.5rem;
}

.order-details h3:first-child {
  margin-top: 0;
}

.price-table {
  width: 100%;
  max-width: 28rem;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-weight: 600;
  color: var(--ink);
}


/* ---------- Contact Page ---------- */

.contact-form {
  max-width: 32rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  background-color: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 166, 68, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 8rem;
}


/* ---------- Why Page ---------- */

.why-section h3 {
  color: var(--plum);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}


/* ---------- Resources Page ---------- */

.resource-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.resource-item:last-child {
  border-bottom: none;
}


/* ---------- Page Header (interior pages) ---------- */

.page-header {
  background-color: var(--plum);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--cream);
  margin-bottom: 0;
  font-size: 2rem;
}

.page-header p {
  color: rgba(250, 247, 242, 0.65);
  font-style: italic;
  margin-top: 0.5rem;
}


/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--plum);
  color: rgba(250, 247, 242, 0.5);
  padding: 2rem 0;
  font-size: 0.8125rem;
  text-align: center;
  border-top: 1px solid rgba(200, 166, 68, 0.15);
}

.site-footer a {
  color: rgba(250, 247, 242, 0.65);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.8125rem;
}


/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--plum);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 200;
  border-radius: 0 0 2px 2px;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn { display: none; }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }
}
