@import url('https://fonts.googleapis.com/css2?family=Cormorant+SC:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

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

:root {
  --parchment:   #faf8f4;
  --parchment2:  #f4f0e8;
  --ink:         #2a1a08;
  --ink-light:   #5a4a38;
  --gold:        #b45309;
  --gold-light:  #c0a870;
  --gold-faint:  rgba(180,83,9,0.07);
  --border:      rgba(0,0,0,0.08);
  --border-gold: rgba(180,83,9,0.2);
  --violet:      #6d28d9;
  --green:       #047857;
  --red:         #b91c1c;
  --blue:        #1d4ed8;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --radius:      6px;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sc:     'Cormorant SC', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--parchment);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--ink); }

/* ── Site Header ── */
.site-header {
  background: var(--ink);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.site-logo {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0;
}
.site-logo-title {
  font-family: var(--font-sc);
  font-size: 1.1rem;
  font-weight: 600;
  color: #d4c49a;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.site-logo-sub {
  font-size: 0.6rem;
  color: #8a7a5a;
  letter-spacing: 0.2em;
  font-family: var(--font-sc);
}
.site-nav {
  display: flex;
  gap: 0;
}
.site-nav a {
  color: #c0a870;
  font-family: var(--font-sc);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 1.1rem 0.9rem;
  display: block;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  color: #fdf8ed;
  border-bottom-color: var(--gold);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #c0a870;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Page Banner ── */
.page-banner {
  background: linear-gradient(135deg, #1a1008 0%, #2a1a08 50%, #1a1208 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c0a870' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.page-banner-eyebrow {
  font-family: var(--font-sc);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: #8a7a5a;
  margin-bottom: 0.4rem;
  position: relative;
}
.page-banner h1 {
  font-family: var(--font-sc);
  font-size: 2.2rem;
  font-weight: 600;
  color: #d4c49a;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  position: relative;
}
.page-banner-sub {
  font-size: 0.9rem;
  color: #8a7a5a;
  font-style: italic;
  position: relative;
}
.page-banner-rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0.8rem auto;
  position: relative;
}

/* ── Layout ── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-sc);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.card-body {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.6;
}
.card-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--parchment2);
}
.card-link {
  font-family: var(--font-sc);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* Section cards with colored tops */
.section-card { text-decoration: none; display: block; }
.section-card:hover { text-decoration: none; }
.section-card .card-header { border-bottom: none; padding-bottom: 0.5rem; }
.section-card-bar {
  height: 4px;
  width: 100%;
}
.bar-violet  { background: var(--violet); }
.bar-green   { background: var(--green); }
.bar-gold    { background: var(--gold); }
.bar-red     { background: var(--red); }
.bar-blue    { background: var(--blue); }
.bar-ink     { background: var(--ink); }

/* ── Section Heading ── */
.section-heading {
  font-family: var(--font-sc);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-sc);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* ── Document List ── */
.doc-list { list-style: none; }
.doc-list li {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  color: var(--ink);
  font-size: 0.92rem;
  border-radius: 3px;
  transition: background 0.12s;
}
.doc-list a:hover {
  background: var(--gold-faint);
  text-decoration: none;
  color: var(--gold);
}
.doc-list-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--gold-light);
}
.doc-list-date {
  font-size: 0.65rem;
  color: #b8a878;
  font-family: var(--font-sc);
  letter-spacing: 0.04em;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Feature Banner (homepage hero) ── */
.hero {
  background: linear-gradient(135deg, #1a1008 0%, #251808 60%, #1a1208 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.hero-cross {
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: block;
}
.hero-eyebrow {
  font-family: var(--font-sc);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  color: #8a7a5a;
  margin-bottom: 0.5rem;
}
.hero h1 {
  font-family: var(--font-sc);
  font-size: 3rem;
  font-weight: 700;
  color: #d4c49a;
  letter-spacing: 0.1em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.hero-domain {
  font-family: var(--font-sc);
  font-size: 1rem;
  color: #b45309;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.hero-tagline {
  font-size: 1.05rem;
  color: #9a8a6a;
  font-style: italic;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-sc);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: #92400e; color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #c0a870;
  border: 1px solid rgba(192,168,112,0.35);
}
.btn-outline:hover { background: rgba(192,168,112,0.1); color: #d4c49a; text-decoration: none; }

/* ── Document Viewer ── */
.doc-viewer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}
.doc-viewer h1, .doc-viewer h2, .doc-viewer h3 {
  font-family: var(--font-sc);
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
.doc-viewer h1 { font-size: 1.6rem; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.doc-viewer h2 { font-size: 1.2rem; letter-spacing: 0.06em; color: var(--gold); }
.doc-viewer h3 { font-size: 1rem; letter-spacing: 0.04em; }
.doc-viewer p { margin-bottom: 0.9rem; }
.doc-viewer blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--ink-light);
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--gold); text-decoration: none; }
.breadcrumb-sep { color: #c8b898; }

/* ── Season chips ── */
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: var(--font-sc);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  border: 1px solid;
}
.chip-violet { background: rgba(109,40,217,0.07); color: #6d28d9; border-color: rgba(109,40,217,0.2); }
.chip-green  { background: rgba(4,120,87,0.07);   color: #047857; border-color: rgba(4,120,87,0.2); }
.chip-gold   { background: rgba(180,83,9,0.07);   color: #b45309; border-color: rgba(180,83,9,0.2); }
.chip-red    { background: rgba(185,28,28,0.07);  color: #b91c1c; border-color: rgba(185,28,28,0.2); }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: #6a5a3a;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand-title {
  font-family: var(--font-sc);
  color: #d4c49a;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.footer-brand-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #6a5a3a;
}
.footer-col-title {
  font-family: var(--font-sc);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: #8a7a5a;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a {
  font-size: 0.82rem;
  color: #6a5a3a;
  transition: color 0.15s;
}
.footer-links a:hover { color: #c0a870; text-decoration: none; }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.68rem;
  color: #3a2a18;
  text-align: center;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; width: 100%; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); border-left: none; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; background: #1a1008; }
  .hero h1 { font-size: 2rem; }
  .two-col, .three-col, .footer-inner { grid-template-columns: 1fr; }
  .doc-viewer { padding: 1.5rem; }
  .site-main { padding: 1.5rem 1rem 3rem; }
}
