/* ============================================================================
   AOREP — Alliance Of Real Estate Professionals
   Master stylesheet. Institutional / civic register.
   Design: Cormorant Garamond display + Spectral body + IBM Plex Mono meta.
   Palette: deep navy, gold leaf, ivory, parchment.
   ============================================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
}

/* Subtle parchment grain via SVG data-URI — adds depth without visual noise */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.48 0 0 0 0 0.35 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer, section { position: relative; z-index: 1; }

img, svg { max-width: 100%; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--gold-deep); }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --navy:          #14243D;   /* Primary — deep navy, institutional */
  --navy-deep:     #0A172C;   /* For dark bands */
  --navy-soft:     #2A3B56;   /* Hover/secondary */
  --ink:           #1C2638;   /* Body text — near-black with navy undertone */
  --ink-2:         #3A445A;   /* Secondary text */
  --quiet:         #6B6454;   /* Muted, on ivory */
  --quiet-2:       #8C8573;   /* More muted */

  --gold:          #A78B3A;   /* Seal gold — the restraint color */
  --gold-deep:     #8A7127;   /* Hover on gold */
  --gold-soft:     #C7AB5E;   /* Highlights only */
  --gold-pale:     #EBE0C2;   /* Faint background wash */

  --ivory:         #F4EDDC;   /* Primary background — warm paper */
  --parchment:     #FAF6EA;   /* Lighter paper for cards */
  --parchment-2:   #EFE7D0;   /* Band alt */

  --line:          #D9CFB6;   /* Standard rule */
  --line-soft:     #E6DEC7;   /* Subtle divider */
  --line-deep:     #B8A87E;   /* Emphasis rule */

  /* Typography */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Garamond, 'Adobe Caslon Pro', serif;
  --font-body:    'Spectral', 'Source Serif 4', 'Crimson Pro', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Radius — reserved and small; institutions don't use pillowy rounded corners */
  --radius-sm: 2px;
  --radius:    3px;
  --radius-lg: 4px;

  /* Shadow — minimal, used sparingly */
  --shadow-soft: 0 1px 2px rgba(20, 36, 61, .06), 0 4px 16px rgba(20, 36, 61, .04);
  --shadow:      0 2px 4px rgba(20, 36, 61, .08), 0 12px 32px rgba(20, 36, 61, .06);
}

/* ---------- Typography scale ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.18;
}

h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.3;
}

h4 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--quiet);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
}

/* Small caps and mono meta labels */
.meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--quiet);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meta-gold {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Lede — opening paragraph under page titles */
.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-2);
  font-style: italic;
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* Drop-cap treatment for charter-style opening paragraphs */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  float: left;
  font-size: 4.8em;
  line-height: 0.88;
  margin: 0.08em 0.1em 0 -0.04em;
  color: var(--navy);
}

/* Small text */
.small { font-size: 0.92rem; }
.small-caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.muted { color: var(--quiet); }
.center { text-align: center; }

/* ---------- Containers & section rhythm ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 110px 0;
}
section.tight { padding: 70px 0; }
section.compact { padding: 48px 0; }

section.band {
  background: var(--parchment-2);
}
section.band-parchment {
  background: var(--parchment);
}

section.band-dark {
  background: var(--navy-deep);
  color: #E6DEC7;
}
section.band-dark h1, section.band-dark h2, section.band-dark h3 {
  color: #FBF8EC;
}
section.band-dark a { color: var(--gold-soft); }
section.band-dark .meta { color: var(--gold-soft); }

@media (max-width: 720px) {
  section { padding: 72px 0; }
  section.tight { padding: 48px 0; }
  .container, .container-narrow { padding: 0 24px; }
}

/* Section heads */
.section-head {
  max-width: 70ch;
  margin-bottom: 3.2rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Decorative rules ---------- */
.rule-double {
  display: block;
  border: 0;
  height: 5px;
  background:
    linear-gradient(to bottom,
      var(--line-deep) 0%, var(--line-deep) 1px,
      transparent 1px, transparent 4px,
      var(--line-deep) 4px, var(--line-deep) 5px);
  margin: 0;
  width: 100%;
}

.rule-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  margin: 3rem auto;
  max-width: 320px;
  color: var(--gold);
}
.rule-ornament::before,
.rule-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-deep);
}
.rule-ornament svg { width: 18px; height: 18px; opacity: .8; }

/* Single fine line */
.rule-fine {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  width: 100%;
}

/* ---------- Navigation / site header ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(244, 237, 220, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-family: var(--font-display);
}

.brand-seal {
  width: 42px; height: 42px;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1;
}
.brand-name {
  display: block;
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.005em;
  font-family: var(--font-display);
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--ivory) !important;
  border: 1px solid var(--navy);
  letter-spacing: 0.03em;
  transition: background .2s var(--ease);
  border-radius: var(--radius-sm);
}
.nav-cta:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--ivory) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-deep);
  color: var(--navy);
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 24px 32px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: 130px 0 70px;
  position: relative;
}
.page-hero .container-narrow { position: relative; }

.page-hero .meta { margin-bottom: 1.8rem; display: block; }

.page-hero h1 {
  margin-bottom: 1.2rem;
}

/* Home hero — differentiated, more ceremonial */
.home-hero {
  padding: 140px 0 110px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at center, var(--gold-pale) 0%, transparent 55%);
  opacity: .6;
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2.2rem;
}
.hero-eyebrow .line {
  width: 48px; height: 1px;
  background: var(--gold);
}

.home-hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 18ch;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.home-hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}

.home-hero .lede {
  max-width: 56ch;
  font-size: 1.3rem;
  font-style: normal;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 2.8rem;
  font-family: var(--font-body);
}

.hero-foot {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  margin-top: 1.5rem;
}

/* Three-path selector on home */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 5rem;
}
.path {
  padding: 36px 32px;
  border-left: 1px solid var(--line);
  position: relative;
  transition: background .3s var(--ease);
}
.path:first-child { border-left: none; }
.path:hover { background: rgba(167, 139, 58, .05); }
.path-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-deep);
  letter-spacing: 0.22em;
  margin-bottom: 1.2rem;
  display: block;
}
.path h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
}
.path p {
  color: var(--ink-2);
  font-size: 0.97rem;
  margin-bottom: 1.2rem;
}
.path .arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}

@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path { border-left: none; border-top: 1px solid var(--line); }
  .path:first-child { border-top: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 14px 28px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  font-weight: 400;
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--ivory);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--ivory);
}

.btn-ghost {
  border-color: transparent;
  padding: 14px 0;
}
.btn-ghost:hover {
  background: transparent;
  color: var(--gold-deep);
}
.btn-ghost::after {
  content: "→";
  margin-left: 0.3em;
  transition: transform .2s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}
.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--ivory);
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 36px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Principles (charter-style numbered blocks) ---------- */
.principles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-deep);
}
.principle {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.principle-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0;
}
.principle-num .roman {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.principle-body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.8rem;
  letter-spacing: -0.005em;
}
.principle-body p { color: var(--ink-2); margin-bottom: 0.8em; }

@media (max-width: 720px) {
  .principle { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .principle-num { font-size: 2.2rem; }
}

/* ---------- Named mechanic cards (Close Share, Open Data Covenant, Reputation Ledger) ---------- */
.mechanic-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  padding: 40px 36px;
  position: relative;
}
.mechanic-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 2px;
  background: var(--gold);
}
.mechanic-card .meta-gold { display: block; margin-bottom: 1.2rem; }
.mechanic-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--navy);
  letter-spacing: -0.005em;
}

/* Feature card variant — simpler */
.feature-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  padding: 32px 30px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 0.7rem;
}
.feature-card p { color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Pull-quote / callout ---------- */
.pullquote {
  border-left: 3px solid var(--gold);
  padding: 12px 32px;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.4;
  max-width: 48ch;
}
.pullquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--quiet);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  font-weight: 500;
}

/* Callout */
.callout {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  margin: 2rem 0;
}
.callout .meta-gold { margin-bottom: 0.7rem; display: block; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Definition table (used on governance, legal) ---------- */
dl.articles {
  margin: 0;
  padding: 0;
}
dl.articles > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
dl.articles > div:first-of-type { border-top: 1px solid var(--line-deep); }
dl.articles dt {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-transform: uppercase;
  padding-top: 0.35em;
  font-weight: 500;
}
dl.articles dd {
  margin: 0;
  color: var(--ink);
}
dl.articles dd p { margin-bottom: 0.6em; }
dl.articles dd p:last-child { margin-bottom: 0; }
dl.articles dd h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  text-transform: none;
  letter-spacing: -0.005em;
  margin-bottom: 0.5em;
  font-family: var(--font-display);
}

@media (max-width: 760px) {
  dl.articles > div { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
}

/* ---------- Lists ---------- */
ul.civic-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
ul.civic-list li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 1rem;
}
ul.civic-list li:last-child { border-bottom: 0; }
ul.civic-list li::before {
  content: "§";
  position: absolute;
  left: 8px;
  top: 14px;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
}

ul.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
ul.plain-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--ink-2);
}
ul.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- The Seal — core brand element ---------- */
.seal-display {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  display: block;
}
.seal-display.large { width: 260px; height: 260px; }
.seal-display.sm { width: 80px; height: 80px; margin-bottom: 0; }

/* ---------- News & Perspectives list ---------- */
.perspective-list {
  border-top: 1px solid var(--line-deep);
  margin-top: 2rem;
}
.perspective-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .3s var(--ease);
}
.perspective-item:hover { background: rgba(167, 139, 58, .03); }
.perspective-meta { padding-top: 0.3rem; }
.perspective-meta .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--line-deep);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.perspective-meta .date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--quiet);
  letter-spacing: 0.06em;
  display: block;
}
.perspective-body h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
  color: var(--navy);
  line-height: 1.2;
}
.perspective-body h3 a {
  color: inherit;
  transition: color .2s var(--ease);
}
.perspective-body h3 a:hover { color: var(--gold-deep); }
.perspective-body p {
  color: var(--ink-2);
  margin-bottom: 0.8em;
}
.perspective-byline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--quiet);
  text-transform: uppercase;
  margin-top: 1rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .perspective-item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
}

/* ---------- Attestation / seal plaque (for node-operator page) ---------- */
.plaque {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px 40px;
  background: var(--parchment);
  border: 1px solid var(--line-deep);
  position: relative;
}
.plaque::before, .plaque::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
}
.plaque::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.plaque::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.plaque-body h3 { margin-bottom: 0.5rem; }
.plaque-body p { margin-bottom: 0; color: var(--ink-2); }

@media (max-width: 720px) {
  .plaque { flex-direction: column; text-align: center; padding: 28px 24px; }
}

/* ---------- Charter document block ---------- */
.charter-block {
  background: var(--parchment);
  border: 1px solid var(--line-deep);
  padding: 56px 64px;
  position: relative;
  max-width: 720px;
  margin: 3rem auto;
}
.charter-block::before, .charter-block::after {
  content: "";
  position: absolute;
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
}
.charter-block::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.charter-block::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.charter-block .meta-gold { display: block; text-align: center; margin-bottom: 1.2rem; }
.charter-block h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.charter-block .drop-cap {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .charter-block { padding: 40px 28px; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  padding: 40px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--navy);
  font-weight: 500;
  text-transform: uppercase;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line-deep);
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(167, 139, 58, 0.15);
}
.form-row textarea { min-height: 130px; resize: vertical; font-family: var(--font-body); }

.form-row .hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--quiet);
  letter-spacing: 0.04em;
}

.btn-full { width: 100%; justify-content: center; text-align: center; }

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px 0;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--gold);
}
.checkbox-row a { color: var(--gold-deep); border-bottom: 1px solid transparent; }
.checkbox-row a:hover { border-bottom-color: var(--gold); }

/* Totals */
.order-total {
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line-deep);
  border-bottom: 1px solid var(--line-deep);
}
.total-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.total-final {
  padding-top: 14px; margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--navy);
  font-family: var(--font-display);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #BAAE8B;
  padding: 80px 0 36px;
  margin-top: 80px;
  border-top: 5px solid var(--navy);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -5px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 3rem;
}
.footer-brand .brand-name { color: var(--ivory); }
.footer-brand .brand-sub { color: var(--gold-soft); }
.footer-brand p {
  color: #9B8F6D;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  max-width: 38ch;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-mono);
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { font-size: 0.95rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(167, 139, 58, .18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #7B704F;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: #A39666; }
.footer-bottom a:hover { color: var(--gold-soft); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc / utility ---------- */
.tabular { font-variant-numeric: tabular-nums; }

::selection {
  background: var(--gold-pale);
  color: var(--navy-deep);
}

/* Charter ornament SVG wrapper */
.ornament {
  display: block;
  width: 28px; height: 28px;
  margin: 0 auto;
  color: var(--gold);
}

/* Footnote / small regulatory text */
.footnote {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--quiet);
  line-height: 1.55;
  margin-top: 1.5rem;
}
