/* ======================================
   ROOT VARIABLES
====================================== */
:root {
    --color-primary: #0f1a2b;   /* deep navy */
    --color-accent: #8c6b3f;    /* muted gold */
    --color-bg: #f8f6f2;        /* parchment */
    --color-text: #1a1a1a;
    --color-muted: #6b6b6b;
    --max-width: 1200px;

    --font-serif: "Garamond", "Baskerville", serif;
    --font-sans: "Helvetica Neue", Arial, sans-serif;
}

/* ======================================
   RESET
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* ======================================
   TYPOGRAPHY
====================================== */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin: 3rem 0 1rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.small-text {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.editorial h2 {
    margin-bottom: 1rem;
}

/* ======================================
   LAYOUT
====================================== */
.site-main {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.site-main p {
    max-width: 700px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin: 5rem 0;
}

.closing {
    text-align: center;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
}

/* ======================================
   SUBTLE PRESTIGE DETAILS
====================================== */
/* Elegant selection color */
::selection {
    background: var(--color-accent);
    color: #fff;
}

/* Links feel editorial, not “webby” */
a {
    color: inherit;
}

.intro .lead {
    font-size: 1.25rem;
    line-height: 1.7;
}

.center {
    text-align: center;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
}

.prose p {
    font-size: 1.05rem;
}

.dropcap::first-letter {
    float: left;
    font-size: 3rem;
    line-height: 1;
    padding-right: 4px;
    font-family: var(--font-serif);
}

/* ======================================
   HEADER
====================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e2dc;
    padding: 1.5rem 0;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.crest {
    height: 64px;
}

.title-block {
    text-align: center;
}

/* Masthead Title */
.house-name {
    font-family: 'Playfair Display SC', serif;
    font-size: 2.4rem;          /* increased */
    letter-spacing: 2px;        /* key for prestige */
    text-transform: uppercase;
}

/* Motto refinement */
.motto {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-top: 0.4rem;
}

/* ======================================
   NAVIGATION
====================================== */
.nav {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-sans);
}

.nav a {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ======================================
   HERO
====================================== */
.page-home .hero {
    padding-top: 8rem;
}

.hero {
    padding: 6rem 2rem;
    text-align: center;
    background: #fff;
}

.hero h1 {
    font-size: 3.5rem;
}

.hero-sub {
    font-family: var(--font-sans);
    color: var(--color-muted);
}

/* ======================================
   HERITAGE BREAK
====================================== */
.heritage-break {
    text-align: center;
    padding: 5rem 0 4rem;
    background: #fff;
}

.heritage-break .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heritage-inner {
    max-width: 800px;
    margin: 0 auto;
}

.heritage-crest {
    display: block;
    margin: 0 auto 1.5rem;
    height: 90px;
}

.heritage-text {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5c5c5c;
}

/* ======================================
   DIVIDER
====================================== */
.divider {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin: 2rem auto;
}

/* ======================================
   GRID (for archives, genealogy)
====================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

/* ======================================
   FEATURES
====================================== */
.features {
    margin-top: 2rem;
}

.feature-card {
    padding: 1.5rem 1rem;
    border-top: 1px solid #e5e2dc;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
}

.feature-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-accent);
}

/* =========================
   CHARTER PAGE
========================= */

.page-charter {
    background: #f4f1ea;
}

/* Wrapper */
.charter-wrapper {
    padding: 4rem 0 6rem;
    display: flex;
    justify-content: center;
}

/* Paper */
.charter {
    background: #fdfaf3;
    max-width: 800px;
    padding: 4rem 3.5rem;
    border: 1px solid #e2ded6;

    /* subtle paper depth */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Header */
.charter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.charter-crest {
    height: 70px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.charter-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.charter-date {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Body */
.charter-body {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.charter-body p {
    margin-bottom: 1.5rem;
}

/* Drop cap refinement */
.page-charter .dropcap::first-letter {
    font-size: 3.5rem;
    padding-right: 10px;
}

/* Signature */
.charter-signature {
    margin-top: 4rem;
    text-align: center;
}

.signature-line {
    width: 200px;
    height: 1px;
    background: #444;
    margin: 0 auto 0.5rem;
}

.signature-name {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================
   ARMORIAL SYSTEM
========================= */

.page-arms {
    background: #f6f3ed;
}

.armorial {
    padding: 4rem 0 6rem;
    display: flex;
    justify-content: center;
}

.armorial-card {
    max-width: 700px;
    background: #fff;
    padding: 3rem 2.5rem;
    border: 1px solid #e5e2dc;
    text-align: center;
}

/* Crest */
.armorial-visual img {
    height: 120px;
    margin-bottom: 1.5rem;
}

/* Title */
.armorial-title h2 {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.armorial-divider {
    width: 50px;
    height: 1px;
    background: var(--color-accent);
    margin: 1rem auto 2rem;
}

/* Blazon */
.armorial-blazon {
    margin-bottom: 2rem;
}

.armorial-blazon h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.armorial-blazon p {
    font-style: italic;
    font-size: 1rem;
}

/* Details */
.armorial-details {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
}

.value {
    text-align: right;
}

/* =========================
   ARMORIAL INSCRIPTION
========================= */

.armorial-inscription {
    max-width: 600px;
    margin: 1rem auto 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.6;
}

/* Link below */
.armorial-link {
    text-align: center;
    margin-top: 0.5rem;
}

.armorial-link a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-accent);
}

/* Subtle hover */
.armorial-link a:hover {
    text-decoration: underline;
}

/* =========================
   ARCHIVE LAYOUT
========================= */
.page-archives .grid {
    grid-template-columns: repeat(3, 1fr);
}

.archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.archive-sidebar {
    border-right: 1px solid #e5e2dc;
    padding-right: 1.5rem;
    font-family: var(--font-sans);
}

.archive-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.archive-list {
    list-style: none;
}

.archive-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.archive-list li.active {
    font-weight: bold;
}

.doc-title {
    display: block;
}

.doc-date {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.archive-viewer {
    max-width: 900px;
}

.archive-meta {
    margin-bottom: 2rem;
}

.archive-meta h2 {
    margin-bottom: 1rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.9rem;
}

.meta-grid span {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-right: 6px;
}

.facsimile {
    background: #f4f1ea;
    padding: 2rem;
    border: 1px solid #e2ded6;
    text-align: center;
    margin-bottom: 2rem;
}

.facsimile img {
    max-width: 100%;
    height: auto;
}

.transcription {
    max-width: 700px;
}

.transcription h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.transcription p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

/* =========================
   HISTORY LAYOUT
========================= */
.page-history .site-main {
    max-width: 900px;
}

.history {
    margin-top: 3rem;
}

.history-intro {
    margin-bottom: 4rem;
}

.history-section {
    margin-bottom: 4rem;
}

/* Timeline markers */
.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0;
}

.timeline-marker span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.timeline-line {
    width: 1px;
    height: 40px;
    background: #d8d5cf;
    position: relative;
}

.timeline-line::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: -3px;
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 50%;
}

.history-editorial {
    margin-top: 5rem;
}

/* =========================
   GENEALOGY LAYOUT
========================= */

.genealogy {
    margin-top: 3rem;
}

.genealogy-section {
    max-width: 700px;
    margin: 3rem auto;
}

.genealogy-section h2 {
    margin-bottom: 0.8rem;
}

.page-genealogy .genealogy-intro {
    max-width: 720px;
    text-align: left;
    margin: 2rem auto 3rem;
}

.genealogy-search {
    margin-bottom: 2rem;
    text-align: center;
}

.genealogy-search input {
    width: 300px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    font-family: var(--font-sans);
}

.person-focus {
    margin-bottom: 3rem;
    text-align: center;
}

.person-name {
    font-size: 1.6rem;
}

.person-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.generation {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.person-card {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.9rem;
    min-width: 140px;
}

.person-card.primary {
    border: 1px solid var(--color-accent);
}

.parents {
    position: relative;
}

.parents::after {
    content: "";
    position: absolute;
    bottom: -20px;
    width: 2px;
    height: 20px;
    background: #ccc;
}

.subject::before {
    content: "";
    position: absolute;
    top: -20px;
    width: 2px;
    height: 20px;
    background: #ccc;
}

.genealogy-entry {
    text-align: center;
    margin: 2rem 0;
}

.genealogy-entry-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-accent);
}

/* subtle hover */
.genealogy-entry-link:hover {
    text-decoration: underline;
}

/* =========================
   GENEALOGY STATS (LEDGER)
========================= */

.genealogy-stats {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
}

.stats-title {
    margin-bottom: 1.5rem;
}

/* Ledger rows */
.stats-ledger {
    border-top: 1px solid #e5e2dc;
    border-bottom: 1px solid #e5e2dc;
    padding: 1.5rem 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
}

/* Each stat */
.stat {
    width: 48%;
    text-align: center;
}

/* Value */
.stat-value {
    display: block;
    font-size: 1.2rem;
}

/* Label */
.stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-top: 0.2rem;
}

/* =========================
   GENEALOGY RECORD BLOCK
========================= */

.genealogy-record {
    max-width: 600px;
    margin: 3rem auto 0;
    border-top: 1px solid #e5e2dc;
    padding-top: 1rem;
}

/* Each line */
.record-line {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
}

/* Labels */
.record-line .label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Values */
.record-line .value {
    font-size: 0.9rem;
}

/* =========================
   SEARCH PAGE
========================= */

.page-search .site-main {
    max-width: 900px;
}

/* Header */
.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-meta {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-muted);
}

/* Results container */
.search-results {
    max-width: 700px;
    margin: 0 auto;
}

/* Empty state */
.search-empty {
    text-align: center;
    color: var(--color-muted);
    margin-top: 2rem;
}

/* Result card */
.result-card {
    padding: 1.2rem 0;
    border-bottom: 1px solid #e5e2dc;
}

/* Name */
.result-name {
    font-size: 1.1rem;
}

/* Meta */
.result-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.2rem;
}

/* Link */
.result-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
}

.result-link:hover {
    text-decoration: underline;
}

/* ==========================================
   GENEALOGY - SURNAME ARCHIVE INDEX
========================================== */

/* A–Z bar */
.archive-az {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 2rem 0;
}

.archive-az a {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 4px 6px;
    border: 1px solid #ddd;
    color: var(--color-muted);
}

/* Active letters */
.archive-az .az-active {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;

    padding: 4px 6px;
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* Hover */
.archive-az .az-active:hover {
    background: #eee;
}

/* Disabled letters */
.archive-az .az-disabled {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    padding: 4px 6px;
    color: #bbb;
    border: 1px solid transparent;

    cursor: default;
}

.az-count {
    font-size: 0.65rem;
    color: var(--color-muted);
    margin-left: 2px;
}

/* section highlight */
.letter-highlight {
    background: rgba(0,0,0,0.04);
    transition: background 0.6s ease;
}

/* Ledger container */
.surname-ledger {
    max-width: 900px;
    margin: 0 auto;
}

/* Each letter section */
.surname-group {
    margin-bottom: 2.5rem;
}

/* Letter heading */
.surname-letter {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

/* List */
.surname-list {
    list-style: none;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 20px;
}

/* Entries */
.surname-list li {
    text-align: center;
    padding: 4px 0;
}

/* Links */
.surname-list a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--color-text);
}

.surname-list a:hover {
    color: var(--color-accent);
}

/* collapse lists */
/* collapse EVERYTHING inside the group */
.surname-group.collapsed .surname-letter,
.surname-group.collapsed .surname-list {
    display: none;
}

/* optional: subtle transition feel */
.surname-group {
    transition: background 0.3s ease;
}

/* highlight active section */
.surname-group.active {
    background: rgba(0,0,0,0.03);
}

/* ==========================================
   GENEALOGY - INDIVIDUAL INDEX (ARCHIVAL STYLE)
========================================== */

.genealogy-index {
    max-width: 700px;
    margin: 2rem auto;
}

/* List reset */
.genealogy-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each entry */
.genealogy-links li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e2dc;
    text-align: center;
}

/* Link styling */
.genealogy-links a {
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: var(--color-text);
}

/* Hover = subtle, editorial */
.genealogy-links a:hover {
    color: var(--color-accent);
}

/* ======================================
   FOOTER
====================================== */
.site-footer {
    border-top: 1px solid #e5e2dc;
    background: #fff;
    padding: 2rem 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Link styling */
.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-muted);
}

/* Subtle hover */
.footer-links a:hover {
    color: var(--color-accent);
}

/* Bottom row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Center links */
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-family: var(--font-sans);
}

.footer-right img {
    height: 20px;
    vertical-align: middle;
    text-align: right;
    margin-left: 8px;
}

.brand {
    letter-spacing: 1px;
}

/* =============================
    LEGAL PAGE
============================= */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.notice-back {
    margin-bottom: 15px;
}

.notice-btn {
    text-decoration: none;
    font-weight: bold;
    color: #c9a227;
}

.notice-section {
    margin-top: 25px;
}

.notice-section h2 {
    color: #c9a227;
    margin-bottom: 5px;
}

.legal-intro {
    text-align: center;
    margin-bottom: 20px;
}

@media print {

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

    .notice-back,
    .legal-actions,
    .sidebar,
    .top-nav,
    .banner {
        display: none !important;
    }

    .content-section {
        max-width: 100%;
        padding: 0;
    }

    .section-divider {
        background: #000;
    }

    a {
        color: #000;
        text-decoration: none;
    }

}

/* =========================
   LEGAL BAR (SINGLE ROW)
========================= */

.legal-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 2rem;
}

/* Left */
.legal-left {
    justify-self: start;
}

/* Center */
.legal-center {
    justify-self: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-muted);
}

/* Right */
.legal-right {
    justify-self: end;
}

/* Keep buttons consistent */
.notice-btn {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

/* ==========================================
   ARCHIVAL SEARCH FORM
========================================== */

.form-wrapper {
    width: 520px;
    margin: 2.5rem auto;
    padding: 1.5rem;

    background: #fdfaf3;
    border: 1px solid #e2ded6;

    display: flex;
    align-items: center;
    gap: 8px;
}

/* Inputs */
.form-wrapper input {
    flex: 1;
    height: 38px;
    padding: 0 8px;

    font-family: var(--font-serif);
    font-size: 0.95rem;

    border: 1px solid #d8d5cf;
    background: #fff;

    border-radius: 0;
}

/* Focus */
.form-wrapper input:focus {
    outline: none;
    border-color: #bdb8af;
}

/* Placeholder */
.form-wrapper input::placeholder {
    color: #999;
    font-style: italic;
}

/* Button */
.form-wrapper button {
    flex: 0 0 110px;
    height: 38px;

    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #333;
    background: transparent;

    border: 1px solid #d8d5cf;
    border-radius: 0;

    cursor: pointer;
}

/* Hover */
.form-wrapper button:hover {
    background: #f3f0ea;
}

/* Active */
.form-wrapper button:active {
    background: #e9e6df;
}


/* =========================
   CONTACT PAGE
========================= */
.page-contact {
    background: #f4f1ea;
}

.contact-document {
    display: flex;
    justify-content: center;
    padding: 3rem 0 5rem;
}

.contact-paper {
    background: #fdfaf3;
    max-width: 700px;
    width: 100%;
    padding: 3rem 2.5rem;
    border: 1px solid #e2ded6;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.contact-meta {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.contact-body {
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 1.2rem;
}

.form-row label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    color: var(--color-muted);
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 0.5rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
}

/* Submit */
.form-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.contact-email {
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

/* ==========================================
   NOBILITY INDEX MODULE
   (Stapleton Archival System)
========================================== */

/* Container */
.nobility-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Title */
.nobility-title {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Intro */
.nobility-intro {
    font-size: 0.95rem;
    color: #444;
    margin-top: 10px;
}

/* ==========================================
   SEARCH
========================================== */
.nobility-search {
    margin: 20px 0;
}

.nobility-search input {
    width: 100%;
    padding: 8px;
    font-family: inherit;
    border: 1px solid #ccc;
}

/* ==========================================
   A-Z INDEX
========================================== */
.nobility-az {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0 25px;
}

.nobility-az a {
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 6px;
    border: 1px solid #ccc;
    color: #333;
}

.nobility-az a:hover {
    background: #ddd;
}

/* ==========================================
   REGIONS
========================================== */
.nobility-region h2 {
    font-size: 1.3rem;
    margin-top: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    cursor: pointer;
}

.nobility-region-content {
    margin-top: 10px;
}

.nobility-region.collapsed .nobility-region-content {
    display: none;
}

/* ==========================================
   GRID
========================================== */
.nobility-grid {
    list-style: none;
    padding: 0;
    margin: 10px 0 30px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px 20px;
}

.nobility-grid li {
    display: block;
}

.nobility-grid a {
    text-decoration: none;
    color: #2a2a2a;
    font-size: 0.95rem;
}

.nobility-grid a:hover {
    text-decoration: underline;
}