:root {
  --cream: #f7f3eb;
  --paper: #fffdf8;
  --ink: #282329;
  --muted: #756e70;
  --plum: #4b2038;
  --plum-dark: #321426;
  --gold: #ad7c25;
  --gold-soft: #d6bd82;
  --line: #e5dccc;
  --success: #28634b;
  --danger: #9a3d3d;
  --shadow: 0 18px 50px rgba(51, 28, 42, .08);
  --radius: 5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.serif, h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--plum); font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { color: var(--plum); font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.15; }
h3 { color: var(--plum); font-size: 1.25rem; }
.eyebrow { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .83rem; }
.site-header { background: rgba(255, 253, 248, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.nav-wrap { align-items: center; display: flex; justify-content: space-between; min-height: 78px; gap: 26px; }
.brand { align-items: center; display: inline-flex; gap: 12px; color: var(--plum); }
.brand img { height: 51px; width: 51px; object-fit: contain; }
.brand strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.06rem; line-height: 1.1; }
.brand small { color: var(--gold); font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { align-items: center; display: flex; gap: 24px; font-size: .88rem; font-weight: 600; }
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-quiet { border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--plum); padding: 8px 15px; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); color: var(--plum); padding: 8px 12px; border-radius: 4px; }
main { min-height: calc(100vh - 250px); }
.hero { padding: 100px 0 110px; }
.hero-grid { align-items: center; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 90px; }
.hero h1 { max-width: 680px; margin-bottom: 25px; }
.hero-copy { color: var(--muted); font-size: 1.08rem; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-seal { align-items: center; background: var(--paper); border: 1px solid var(--gold-soft); display: flex; justify-content: center; min-height: 400px; position: relative; }
.hero-seal:before, .hero-seal:after { border: 1px solid var(--gold-soft); content: ""; height: calc(100% - 32px); position: absolute; width: calc(100% - 32px); }
.hero-seal:after { height: calc(100% - 54px); width: calc(100% - 54px); }
.hero-seal img { max-height: 280px; width: 78%; object-fit: contain; position: relative; z-index: 1; }
.button { align-items: center; border: 1px solid transparent; cursor: pointer; display: inline-flex; font: inherit; font-size: .87rem; font-weight: 700; justify-content: center; letter-spacing: .04em; min-height: 46px; padding: 11px 22px; transition: .2s ease; }
.button-primary { background: var(--plum); color: #fff; }
.button-primary:hover { background: var(--plum-dark); color: #fff; transform: translateY(-1px); }
.button-secondary { background: transparent; border-color: var(--gold); color: var(--plum); }
.button-secondary:hover { background: #f1e7d2; color: var(--plum); }
.button-danger { background: #fff1f0; border-color: #e8c2bf; color: var(--danger); }
.button-small { min-height: 36px; padding: 7px 13px; font-size: .77rem; }
.button-block { width: 100%; }
.intro-band { background: var(--plum); color: #fff8ee; padding: 60px 0; }
.intro-band h2 { color: #fff8ee; margin-bottom: 10px; }
.intro-band p { color: #eadbd3; max-width: 680px; }
.page-header { padding: 70px 0 34px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 12px; }
.page-header p { color: var(--muted); max-width: 680px; }
.form-shell, .paper-card, .stat-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-shell { margin-bottom: 80px; padding: clamp(24px, 5vw, 55px); }
.form-section { border-top: 1px solid var(--gold-soft); margin-top: 42px; padding-top: 25px; }
.form-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.section-kicker { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-title { align-items: baseline; display: flex; gap: 12px; margin-bottom: 25px; }
.section-title h2 { margin: 0; font-size: 1.55rem; }
.section-title span { color: var(--gold); font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field-full { grid-column: 1 / -1; }
label { color: var(--plum); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; }
label .optional { color: var(--muted); font-size: .65rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
input, textarea, select { background: #fffefb; border: 1px solid #d9cdbb; border-radius: var(--radius); color: var(--ink); font: inherit; font-size: .95rem; outline: none; padding: 12px 13px; transition: border .2s, box-shadow .2s; width: 100%; }
input { min-height: 47px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(173, 124, 37, .13); }
.help { color: var(--muted); display: block; font-size: .78rem; margin-top: 7px; }
.required { color: var(--gold); }
.upload-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.upload-box { border: 1px dashed var(--gold-soft); padding: 17px; }
.upload-box input { border: 0; padding: 8px 0 0; }
.form-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; margin-top: 40px; padding-top: 25px; }
.contact-note { color: var(--muted); font-size: .85rem; line-height: 1.55; }
.contact-note strong { color: var(--plum); display: block; }
.alert { border: 1px solid; margin: 0 0 24px; padding: 14px 17px; }
.alert ul { margin: 7px 0 0 20px; padding: 0; }
.alert-success { background: #edf7f0; border-color: #b8dcc6; color: var(--success); }
.alert-error { background: #fff1ef; border-color: #e8c2bf; color: var(--danger); }
.alert-info { background: #f5f0e2; border-color: var(--gold-soft); color: var(--plum); }
.auth-wrap { max-width: 500px; padding: 88px 0 110px; }
.auth-card { background: var(--paper); border-top: 4px solid var(--gold); box-shadow: var(--shadow); padding: 38px; }
.auth-card h1 { font-size: 2.3rem; margin-bottom: 10px; }
.auth-card form { display: grid; gap: 19px; margin-top: 28px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: .85rem; }
.welcome-band { background: var(--plum); color: #fff8ee; padding: 60px 0; }
.welcome-band h1 { color: #fff8ee; font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 9px; }
.welcome-band p { color: #eadbd3; margin-bottom: 0; }
.content-section { padding: 55px 0 85px; }
.dashboard-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.dashboard-card { background: var(--paper); border: 1px solid var(--line); padding: 27px; }
.dashboard-card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.quick-links { display: grid; gap: 10px; }
.quick-link { align-items: center; border: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 16px; }
.quick-link span { color: var(--muted); font-size: .78rem; }
.profile-list { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); }
.profile-item { border-bottom: 1px solid var(--line); padding: 17px 14px 17px 0; }
.profile-item:nth-child(odd) { padding-right: 24px; }
.profile-item strong { color: var(--plum); display: block; font-size: .72rem; letter-spacing: .07em; margin-bottom: 4px; text-transform: uppercase; }
.profile-item span { overflow-wrap: anywhere; }
.profile-item-wide { grid-column: 1 / -1; padding-right: 0; }
.photo-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 25px; }
.photo-card { border: 1px solid var(--line); padding: 10px; }
.photo-card img { aspect-ratio: 4 / 3; background: #eee7da; object-fit: cover; width: 100%; }
.photo-card figcaption { color: var(--muted); font-size: .78rem; padding: 9px 2px 3px; }
.success-card { border-top: 5px solid var(--success); margin: 70px auto; max-width: 680px; padding: 46px; }
.success-card h1 { font-size: 2.8rem; }
.credential-box { background: #f5f0e2; border: 1px solid var(--gold-soft); margin: 25px 0; padding: 18px; }
.credential-box code { color: var(--plum); display: block; font-size: 1rem; margin-top: 4px; }
.site-footer { background: var(--plum-dark); color: #e5d8d3; padding: 42px 0 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-mark { color: var(--gold-soft); font-family: "Playfair Display", Georgia, serif; font-size: 2.3rem; }
.site-footer p { font-size: .86rem; margin: 5px 0 0; }
.footer-contact { display: grid; font-size: .82rem; gap: 4px; text-align: right; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); display: flex; font-size: .72rem; justify-content: space-between; margin-top: 30px; padding-top: 17px; }
.admin-shell { background: #f5f1e9; }
.admin-shell .site-header { background: var(--plum-dark); border: 0; }
.admin-shell .brand, .admin-shell .brand strong { color: #fff8ee; }
.admin-shell .brand small { color: var(--gold-soft); }
.admin-shell .site-nav a { color: #f3e7df; }
.admin-shell .site-nav .nav-quiet { border-color: rgba(255,255,255,.3); }
.admin-content { padding: 50px 0 85px; }
.admin-heading { align-items: end; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-heading h1 { font-size: 2.5rem; margin-bottom: 4px; }
.stats-grid { display: grid; gap: 17px; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }
.stat-card { padding: 20px; }
.stat-card .stat-number { color: var(--plum); display: block; font-family: "Playfair Display", Georgia, serif; font-size: 2.2rem; line-height: 1; }
.stat-card .stat-label { color: var(--muted); display: block; font-size: .75rem; margin-top: 9px; text-transform: uppercase; letter-spacing: .07em; }
.table-wrap { background: var(--paper); border: 1px solid var(--line); overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: middle; }
th { color: var(--plum); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .86rem; }
tr:last-child td { border-bottom: 0; }
.status { border-radius: 99px; display: inline-block; font-size: .7rem; font-weight: 700; padding: 4px 9px; }
.status-approved { background: #e3f1e8; color: var(--success); }
.status-rejected { background: #fae7e5; color: var(--danger); }
.status-pending { background: #f5ecd5; color: #85611c; }
.filter-bar { background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 2fr repeat(4, 1fr) auto; margin-bottom: 18px; padding: 15px; }
.filter-bar input, .filter-bar select { min-height: 40px; padding: 8px 10px; }
.admin-profile { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); }
.admin-profile-header { align-items: start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 24px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-state { background: var(--paper); border: 1px dashed var(--gold-soft); color: var(--muted); padding: 45px; text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
@media (max-width: 900px) {
  .hero-grid { gap: 44px; grid-template-columns: 1fr; }
  .hero-seal { min-height: 300px; max-width: 470px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .filter-bar input, .filter-bar select { grid-column: span 1; }
  .filter-bar .button { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container, .narrow { width: min(100% - 28px, 560px); }
  .nav-wrap { min-height: 70px; }
  .menu-toggle { display: block; }
  .site-nav { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: none; flex-direction: column; align-items: stretch; gap: 0; left: 14px; padding: 8px; position: absolute; right: 14px; top: 66px; }
  .admin-shell .site-nav { background: var(--plum-dark); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; }
  .hero { padding: 65px 0 75px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-seal { min-height: 260px; }
  .form-grid, .upload-grid, .dashboard-grid, .profile-list, .photo-grid { grid-template-columns: 1fr; }
  .field-full, .profile-item-wide { grid-column: auto; }
  .profile-item, .profile-item:nth-child(odd) { padding-right: 0; }
  .form-actions, .footer-grid, .footer-bottom, .admin-heading, .admin-profile-header { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .footer-contact { text-align: left; }
  .success-card { padding: 28px 22px; }
  .success-card h1 { font-size: 2.15rem; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar input, .filter-bar select, .filter-bar .button { grid-column: auto; }
}