@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --cream:        #f5efe0;
  --cream-dark:   #e8dfc8;
  --cream-border: #d8cdb8;
  --charcoal:     #231f1c;
  --charcoal-mid: #3a3028;
  --text:         #3a3028;
  --text-muted:   #7a6d62;
  --gold:         #b5893a;
  --gold-light:   #d4aa55;
  --white:        #fdfaf4;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
}

/* ── Hero ─────────────────────────────────────────── */

#hero {
  width: 100%;
  height: 680px;
  background-image: url('../../files/hero.jpg');
  background-size: cover;
  background-position: center 28%;
  position: relative;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 13, 8, 0.25) 0%,
    rgba(18, 13, 8, 0.55) 55%,
    rgba(18, 13, 8, 0.82) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4.5rem;
}

#hero-text {
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

#site-eyebrow {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

#site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 2px 3px 12px rgba(0,0,0,0.6);
}

.hero-rule {
  width: 80px;
  height: 1px;
  background-color: var(--gold);
  margin: 1rem auto;
}

#site-tagline {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--cream-dark);
}

/* ── Compact page header (non-home) ───────────────── */

#page-header {
  background-color: var(--charcoal);
  padding: 1.5rem 2rem 1.2rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

#site-name {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

#site-name:hover { color: var(--gold-light); }

#header-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

/* ── Navigation ───────────────────────────────────── */

#navmenu {
  background-color: var(--charcoal);
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-item a {
  display: block;
  padding: 0.85rem 1.4rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dark);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-item a:hover { color: var(--gold-light); }

/* ── Main content area ────────────────────────────── */

#content {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* ── Content page title ───────────────────────────── */

h1.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--charcoal);
  line-height: 1.2;
}

.title-rule {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  margin: 0.75rem auto 2.5rem;
}

/* ── Body content typography ──────────────────────── */

.page-body p { margin-bottom: 1.4rem; }

.page-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold);
}

.page-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal-mid);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.page-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-body a:hover { color: var(--charcoal); }

.page-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 0.8rem 1.6rem;
  font-style: italic;
  color: var(--text-muted);
  background-color: rgba(181, 137, 58, 0.06);
  line-height: 1.7;
}

.page-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border: 1px solid var(--cream-border);
}

.page-body code {
  font-size: 0.9em;
  color: var(--charcoal-mid);
  background: var(--cream-dark);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

.page-body pre {
  background: var(--cream-dark);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

/* ── Home page pull quote ─────────────────────────── */

.pull-quote {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.9;
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
  padding: 1.8rem 1rem;
}

/* ── Section heading (used on home page) ──────────── */

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.section-rule {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
  margin: 0.4rem auto 2.5rem;
}

/* ── Article listing (kiki get_pages output) ──────── */

div.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 0.5rem;
}

div.page_title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

div.page_title a {
  color: var(--charcoal);
  text-decoration: none;
}

div.page_title a:hover { color: var(--gold); }

div.page_header {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

div.page_body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────── */

#site-footer {
  background-color: var(--charcoal);
  border-top: 2px solid var(--gold);
  text-align: center;
  padding: 2.5rem 2rem;
}

.footer-inner { }

.footer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin-bottom: 0.3rem;
}

.footer-tag {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Errors ───────────────────────────────────────── */

div.error {
  background-color: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 1.2rem;
  margin: 1rem 0;
  font-style: italic;
}

/* ── Mobile ───────────────────────────────────────── */

@media (max-width: 768px) {
  #site-title  { font-size: 3rem; }
  #hero        { height: 480px; }

  #navmenu     { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .nav-item a  { padding: 0.75rem 1rem; }

  div.page     { grid-template-columns: 1fr; gap: 2rem; }

  #content     { padding: 2.5rem 1.25rem 3.5rem; }
  h1.page-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  #site-title { font-size: 2.2rem; }
  #hero       { height: 380px; }
}
