:root {
  --plum-900: #241820;
  --plum-800: #2f2029;
  --plum-700: #3b2833;
  --gold: #e6bd5c;
  --gold-bright: #f2d492;
  --parchment: #f0e6d6;
  --muted: #b59a86;

  --brand: "Cinzel Decorative", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;

  --page-max: 44rem;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--text);
  color: var(--parchment);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--plum-700) 0%, var(--plum-900) 60%, #1c1219 100%);
  background-color: var(--plum-900);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
}

/* ------------------------------------------------------------------ *
 * Shared header / navigation  (rendered by site.js)
 * ------------------------------------------------------------------ */

site-header {
  display: block;
  min-height: 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 18, 25, 0.72);
  border-bottom: 1px solid rgba(230, 189, 92, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold);
  margin-right: auto;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__name {
  font-family: var(--brand);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--parchment);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  color: var(--parchment);
  font-family: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  padding: 0.4rem 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .brand__name {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .site-header.is-open .nav-toggle__bars {
    transform: rotate(45deg);
  }

  .site-header.is-open .nav-toggle__bars::before {
    transform: rotate(90deg) translateX(-6px);
  }

  .site-header.is-open .nav-toggle__bars::after {
    opacity: 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .site-nav li {
    border-top: 1px solid rgba(230, 189, 92, 0.12);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 0;
  }

  .site-nav a[aria-current="page"] {
    border-bottom: 0;
  }
}

/* ------------------------------------------------------------------ *
 * Home — centred crest
 * ------------------------------------------------------------------ */

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
}

.crest {
  text-align: center;
  max-width: 32rem;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.medallion {
  display: block;
  width: clamp(124px, 22vw, 176px);
  height: auto;
  margin: 0 auto 1.5rem;
}

.wordmark {
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--gold);
}

.rule {
  width: 3.5rem;
  height: 1px;
  margin: 1.6rem auto 1.4rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.established {
  font-family: var(--brand);
  font-weight: 400;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
  text-indent: 0.32em;
}

.tagline {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  margin: 0;
  color: var(--parchment);
  opacity: 0.85;
}

/* ------------------------------------------------------------------ *
 * Interior pages (About, etc.)
 * ------------------------------------------------------------------ */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.page-hero {
  margin-bottom: 3rem;
}

.eyebrow {
  font-family: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
  text-indent: 0.36em;
}

.page-hero h1 {
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.lead {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--parchment);
  opacity: 0.9;
  margin: 0;
}

.section {
  margin: 2.75rem 0;
}

.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  margin: 0 0 0.9rem;
}

.section h2 .aside {
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--muted);
}

.section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  color: var(--parchment);
}

.section em {
  color: var(--gold-bright);
  font-style: italic;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.value-card {
  border: 1px solid rgba(230, 189, 92, 0.2);
  border-radius: 4px;
  padding: 1.4rem 1.4rem 1.5rem;
  background: rgba(59, 40, 51, 0.35);
}

.value-card h3 {
  font-family: var(--brand);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 0.7rem;
  letter-spacing: 0.05em;
}

.value-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  color: var(--parchment);
  opacity: 0.92;
}

.timeline {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.timeline li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(230, 189, 92, 0.14);
  font-size: 1.03rem;
  line-height: 1.6;
}

.timeline li:last-child {
  border-bottom: 1px solid rgba(230, 189, 92, 0.14);
}

.timeline__when {
  display: inline-block;
  min-width: 8.5rem;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.disclaimer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(230, 189, 92, 0.14);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * Shared footer  (rendered by site.js)
 * ------------------------------------------------------------------ */

.site-footer {
  padding: 2rem 1.5rem 2.25rem;
  text-align: center;
  border-top: 1px solid rgba(230, 189, 92, 0.12);
}

.site-footer__mark {
  font-family: var(--brand);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 0.55rem;
}

.site-footer__fine {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}

/* Cinzel Decorative weight tuning:
   700 is fine at display sizes but clogs at small sizes, and 400 there reads
   flimsy. A hairline stroke in the text colour splits the difference. */
.brand__name,
.site-footer__mark,
.value-card h3 {
  -webkit-text-stroke: 0.4px currentColor;
  paint-order: stroke fill;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crest {
    animation: none;
  }
}
