/* eCommerce Content Pages — Sovereign Elegance theme
   Tokens mirror src/index.css so static HTML pages match the React site. */

:root {
  --background: 36 25% 97%; /* Bone */
  --foreground: 0 0% 8%; /* Midnight Charcoal */
  --primary: 40 45% 55%; /* Sovereign Gold */
  --secondary: 36 25% 92%;
  --muted: 36 15% 90%;
  --muted-foreground: 0 0% 42%;
  --border: 36 20% 85%;
  --card: 0 0% 100%;
  --radius: 0.375rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
  color: hsl(var(--foreground) / 0.92);
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.breadcrumb a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: hsl(var(--foreground));
}

.breadcrumb span {
  opacity: 0.5;
}

/* Header block */
.page-header {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    hsl(var(--primary)) 50%,
    transparent
  );
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  font-weight: 500;
  margin-bottom: 16px;
}

.page-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 16px;
}

.page-header .lede {
  font-size: 18px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

/* Body content */
.content {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 44px 40px;
}

.content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  margin: 2.5em 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin: 2em 0 0.75em;
}

.content p {
  margin-bottom: 1.4em;
  font-size: 16px;
  line-height: 1.8;
}

.content p:first-of-type {
  font-size: 18px;
  color: hsl(var(--foreground) / 0.95);
}

.content ul,
.content ol {
  margin: 1.25em 0 1.5em;
  padding-left: 1.5em;
}

.content li {
  margin-bottom: 0.7em;
  line-height: 1.75;
}

.content strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a:hover {
  color: hsl(var(--foreground));
}

/* Callout */
.callout {
  background: hsl(var(--secondary) / 0.6);
  border-left: 3px solid hsl(var(--primary));
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2em 0;
}

.callout h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.callout p {
  margin-bottom: 0;
  font-size: 15px;
  color: hsl(var(--muted-foreground));
}

/* Author box */
.author-box {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.author-box h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 12px;
}

.author-box p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: 12px;
}

.author-box p:last-child {
  margin-bottom: 0;
}

.author-box a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

/* Index listing */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.card {
  display: block;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  border-color: hsl(var(--primary) / 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card .tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  font-weight: 500;
  margin-bottom: 12px;
}

.card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  color: hsl(var(--foreground));
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 180ms ease;
}

.back-link:hover {
  color: hsl(var(--primary));
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 60px;
  }

  .page-header,
  .content {
    padding: 28px 22px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .content h2 {
    font-size: 23px;
  }
}
