:root {
  --bg: #f7f3ed;
  --bg-soft: #fffaf3;
  --surface: #ffffff;
  --surface-strong: #f2e8d9;
  --text: #221a13;
  --muted: #6d6258;
  --brand: #7a4d24;
  --brand-dark: #563414;
  --brand-soft: #ede0ce;
  --accent: #315f43;
  --accent-soft: #dceadf;
  --line: rgba(60, 42, 26, 0.14);
  --shadow: 0 22px 60px rgba(64, 41, 20, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122, 77, 36, 0.12), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(49, 95, 67, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  padding: 0.16rem 0.38rem;
  border-radius: 0.45rem;
  background: rgba(122, 77, 36, 0.11);
  color: var(--brand-dark);
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 237, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  padding: 4px;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(122, 77, 36, 0.14), inset 0 0 0 1px rgba(122, 77, 36, 0.12);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: -0.08rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 700;
  font-size: 0.91rem;
  padding: 0.68rem 0.86rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active {
  text-decoration: none;
  background: var(--surface-strong);
}

.nav-links .nav-contact {
  background: var(--accent);
  color: #fff;
}

.nav-links .nav-contact:hover {
  background: #234a32;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 0.7rem;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

.hero,
.page-hero,
.section,
.split-section,
.form-section,
.document-section,
.gallery-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 2rem;
  align-items: center;
  padding: 5rem 0;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  max-width: 11ch;
}

.hero-lead,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  margin: 1.5rem 0 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(122, 77, 36, 0.25);
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1.5rem 1rem 3rem -1.5rem;
  border-radius: 42px;
  background: linear-gradient(140deg, rgba(122, 77, 36, 0.16), rgba(49, 95, 67, 0.12));
  transform: rotate(-3deg);
}

.status-card,
.callout-card,
.info-card,
.form-card,
.role-grid article,
.doc-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 65% 22%, rgba(255, 255, 255, 0.82), transparent 8rem),
    linear-gradient(145deg, var(--brand-soft), var(--accent-soft));
  z-index: 0;
}

.status-card > * {
  position: relative;
  z-index: 1;
}

.status-icon {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: auto;
}

.status-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.status-card p,
.info-card p,
.callout-card p,
.role-grid p,
.doc-card small {
  color: var(--muted);
}

.mini-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mini-grid a {
  background: var(--surface);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  font-weight: 800;
  border: 1px solid var(--line);
}

.section,
.split-section,
.form-section,
.document-section,
.gallery-shell {
  padding: 4rem 0;
}

.section-tight {
  padding-top: 2rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2,
.split-section h2,
.document-toolbar h2,
.gallery-toolbar h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  font-size: 1.4rem;
}

.info-card h3,
.role-grid h3,
.callout-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.1;
}

.info-card a {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 1.2rem;
  align-items: stretch;
}

.split-section > div:first-child,
.callout-card {
  border-radius: var(--radius-lg);
}

.split-section > div:first-child {
  background: var(--accent);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.split-section > div:first-child .eyebrow,
.split-section > div:first-child p {
  color: rgba(255, 255, 255, 0.8);
}

.split-section > div:first-child code {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.callout-card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page-hero {
  padding: 5rem 0 2rem;
}

.page-hero.compact h1 {
  max-width: 15ch;
}

.form-section {
  padding-top: 2rem;
}

.form-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.form-card.wide {
  max-width: 980px;
  margin: 0 auto;
}

.form-intro {
  margin-bottom: 1.4rem;
}

.form-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.form-intro p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  margin: 0 0 1rem;
}

legend {
  padding: 0 0.5rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.38rem;
  color: var(--text);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(60, 42, 26, 0.2);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.85rem 0.95rem;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(49, 95, 67, 0.13);
}

.check-row {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  font-weight: 650;
  color: var(--muted);
  margin: 0.65rem 0;
}

.check-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.form-status {
  margin: 0.85rem 0 0;
  font-weight: 800;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: #9f2c1f;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.role-grid article {
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.document-section {
  padding-top: 2rem;
}

.document-toolbar,
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.pdf-frame-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 75vh;
}

.pdf-frame-shell iframe {
  width: 100%;
  height: 78vh;
  border: 0;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.doc-card {
  border-radius: var(--radius-md);
  padding: 1.2rem;
  color: var(--text);
}

.doc-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.doc-card span {
  font-size: 2rem;
}

.doc-card strong,
.doc-card small {
  display: block;
}

.doc-card strong {
  margin: 0.8rem 0 0.35rem;
  line-height: 1.1;
}

.gallery-shell {
  padding-top: 2rem;
}

.gallery-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border: 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-strong);
}

.gallery-item span {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.gallery-item strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.gallery-item small {
  color: var(--muted);
}

.empty-state {
  background: var(--surface);
  border: 1px dashed rgba(122, 77, 36, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(15, 10, 5, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox p {
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.site-footer {
  margin-top: 3rem;
  background: #1f1812;
  color: #fff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 1.4rem;
  padding: 4rem 0;
}

.footer-about h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.footer-about p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
}

.site-footer .eyebrow {
  color: #c9a27d;
}

.site-footer .form-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-footer label {
  color: #fff;
}

.site-footer input,
.site-footer textarea {
  background: rgba(255, 255, 255, 0.95);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #fff;
  font-weight: 800;
}

.thank-you {
  min-height: 56vh;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 78px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 14px;
  }

  .hero,
  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 3rem 0;
  }

  .card-grid.three,
  .role-grid,
  .doc-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-shell,
  .hero,
  .page-hero,
  .section,
  .split-section,
  .form-section,
  .document-section,
  .gallery-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 1rem, var(--max));
  }

  .brand small {
    display: none;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: clamp(2.4rem, 15vw, 4.2rem);
  }

  .card-grid.three,
  .role-grid,
  .doc-grid,
  .gallery-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .section,
  .split-section,
  .form-section,
  .document-section,
  .gallery-shell {
    padding: 2.2rem 0;
  }

  .document-toolbar,
  .gallery-toolbar,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .pdf-frame-shell,
  .pdf-frame-shell iframe {
    min-height: 520px;
    height: 65vh;
  }

  fieldset {
    padding: 1rem;
  }
}

/* Constitution web page */
.constitution-hero h1 {
  max-width: 10ch;
}

.constitution-layout {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.toc-card {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.toc-card ol {
  list-style: decimal;
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.toc-card a {
  color: var(--text);
  font-weight: 750;
  font-size: 0.94rem;
}

.constitution-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.constitution-title-card {
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 255, 255, 0.28), transparent 18rem),
    linear-gradient(135deg, var(--brand-dark), var(--accent));
  color: #fff;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.constitution-title-card .eyebrow,
.constitution-title-card p {
  color: rgba(255, 255, 255, 0.78);
}

.constitution-title-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 12ch;
}

.constitution-title-card p:last-child {
  margin: 1rem 0 0;
  font-weight: 800;
}

.constitution-clause {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.constitution-clause h2,
.constitution-clause h3,
.constitution-clause h4,
.constitution-clause p,
.constitution-clause ul {
  max-width: 850px;
}

.constitution-clause h2 {
  margin: 0 0 0.85rem;
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.constitution-clause h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.constitution-clause h4 {
  margin: 0 0 0.4rem;
  color: var(--brand-dark);
}

.constitution-clause p {
  margin: 0.55rem 0;
  color: var(--text);
}

.constitution-clause ul {
  margin: 0.65rem 0 0.2rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.36rem;
}

.role-duty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.role-duty-grid > div {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
}

@media (max-width: 980px) {
  .constitution-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .toc-card ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-duty-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .toc-card ol {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #000;
  }

  .site-header,
  .no-print,
  .toc-card,
  .hero-actions {
    display: none !important;
  }

  .page-hero,
  .constitution-layout {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .constitution-layout {
    display: block;
  }

  .constitution-document {
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }

  .constitution-title-card {
    color: #000;
    background: #fff !important;
    padding: 0 0 1rem;
    border-bottom: 2px solid #000;
  }

  .constitution-title-card .eyebrow,
  .constitution-title-card p {
    color: #000;
  }

  .constitution-clause {
    padding: 1rem 0;
    break-inside: avoid;
  }
}
