:root {
    color-scheme: light;
    --ink: #20231f;
    --muted: #6b6c63;
    --paper: #f7f5ef;
    --white: #fffefa;
    --green: #344d40;
    --green-deep: #293e33;
    --orange: #c26543;
    --line: #dedbd1;
    --serif: "DM Serif Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid rgba(32,35,31,.09); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--green); color: #fffefa; font: italic 25px var(--serif); }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.055em; }
.brand-name span { color: var(--orange); }
.desktop-nav, .nav-links { display: flex; align-items: center; gap: 34px; }
.desktop-nav a, .nav-links a { text-decoration: none; font-size: 12px; font-weight: 600; }
.desktop-nav a:not(.nav-cta):hover, .nav-links a:not(.nav-cta):hover, [aria-current="page"] { color: var(--orange); }
.nav-cta { padding: 12px 16px; border: 1px solid #b8b4a9; border-radius: 2px; }
.nav-cta span { padding-left: 8px; color: var(--orange); }
.site-menu { display: none; }

.hero { overflow: hidden; padding: 70px 0 0; }
.hero-grid { min-height: 465px; display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 45px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 22px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 23px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.eyebrow-dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.hero h1 { margin-bottom: 20px; font-size: clamp(62px, 7vw, 94px); line-height: .99; }
h1 em, h2 em { color: var(--orange); font-weight: 400; }
.hero-lead { max-width: 410px; margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 19px; text-decoration: none; font-size: 11px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--green); color: white; }
.button-dark:hover { background: var(--green-deep); }
.button-dark span, .button-light span { color: #e6a27e; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 700; }
.text-link span { color: var(--orange); font-size: 16px; }
.text-link:hover { color: var(--orange); }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 57px; color: #77776e; font-size: 10px; }
.footnote-line { width: 24px; height: 1px; background: var(--orange); }
.hero-art { position: relative; min-height: 410px; overflow: hidden; background: #e5e4d8; }
.art-sun { position: absolute; top: 43px; right: 16%; width: 165px; aspect-ratio: 1; border-radius: 50%; background: #d69368; }
.art-ring { position: absolute; z-index: 2; border: 1px solid rgba(255,254,250,.62); border-radius: 50%; }
.art-ring-one { top: 25px; right: 8%; width: 295px; height: 295px; }
.art-ring-two { top: 5px; right: 3%; width: 335px; height: 335px; }
.art-land { position: absolute; bottom: -38px; width: 115%; height: 57%; border-radius: 50% 50% 0 0; transform: rotate(-9deg); }
.art-land-back { left: -13%; bottom: 7px; background: #96a18a; }
.art-land-front { left: -7%; bottom: -90px; height: 61%; background: var(--green); transform: rotate(8deg); }
.art-label { position: absolute; z-index: 3; font-family: var(--serif); font-style: italic; line-height: 1.12; }
.art-label-top { top: 64px; left: 35px; color: #fffefa; font-size: 26px; }
.art-label-bottom { right: 34px; bottom: 90px; color: #f5dfc9; font-size: 23px; }
.art-star { position: absolute; z-index: 3; color: #fffefa; }
.art-star-one { top: 42%; left: 22%; font-size: 20px; }
.art-star-two { top: 29%; right: 13%; color: var(--green); font-size: 15px; }
.art-coordinates { position: absolute; z-index: 3; bottom: 22px; left: 27px; color: rgba(255,255,255,.75); font-size: 8px; letter-spacing: .12em; }
.hero-rule { display: flex; align-items: center; gap: 15px; padding: 25px 0 21px; color: #77776e; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.hero-rule span:first-child, .hero-rule span:last-child { height: 1px; flex: 1; background: var(--line); }

.section-pad { padding: 105px 0; }
.intro-section { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-grid h2, .section-heading h2, .closing-card h2, .values-section h2, .steps-section h2 { margin: 0; font-size: clamp(40px, 4.3vw, 58px); line-height: 1.08; }
.intro-copy { max-width: 470px; }
.intro-copy p, .section-heading > p, .closing-copy > p { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.principles-section { background: #eeece4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 48px; }
.section-heading > p { max-width: 330px; margin-bottom: 5px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d3d0c5; }
.principle-card { min-height: 250px; padding: 25px 28px 24px 0; }
.principle-card + .principle-card { padding-left: 28px; border-left: 1px solid #d3d0c5; }
.card-index, .footer-label { color: #797a70; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.card-symbol { position: relative; width: 43px; height: 43px; margin: 32px 0 21px; border: 1px solid #aeb5a5; border-radius: 50%; }
.card-symbol::before, .card-symbol::after, .card-symbol span { position: absolute; display: block; content: ""; }
.symbol-place::before { inset: 11px 12px 10px; border: 1px solid var(--green); border-radius: 60% 40% 60% 45%; transform: rotate(25deg); }
.symbol-place::after { top: 18px; left: 20px; width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }
.symbol-voice::before { top: 13px; left: 18px; width: 7px; height: 15px; border: 1px solid var(--green); border-radius: 8px; }
.symbol-voice::after { top: 17px; left: 12px; width: 19px; height: 14px; border: 1px solid var(--green); border-top: 0; border-radius: 0 0 12px 12px; }
.symbol-voice span { top: 32px; left: 21px; width: 1px; height: 4px; background: var(--green); }
.symbol-source::before { inset: 10px 12px; border: 1px solid var(--green); border-radius: 1px; }
.symbol-source::after { top: 18px; left: 17px; width: 10px; height: 1px; background: var(--orange); box-shadow: 0 4px 0 var(--green); }
.principle-card h3, .step-grid h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.principle-card p, .step-grid p { max-width: 270px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.quote-section { padding: 79px 0; background: var(--green); color: white; text-align: center; }
.quote-inner { position: relative; }
.quote-mark { color: #d78a64; font-family: var(--serif); font-size: 59px; line-height: .8; }
.quote-inner blockquote { margin: 12px 0 20px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.18; }
.quote-inner > p { margin: 0; color: #c7cfc4; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.closing-section { padding-top: 90px; }
.closing-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .8fr; gap: 65px; align-items: center; padding: 58px 65px; background: #e9e5d8; }
.closing-card > div { position: relative; z-index: 1; }
.closing-copy { max-width: 360px; }
.closing-copy > p { font-size: 13px; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: white; }
.closing-decoration { position: absolute; top: -130px; right: 18%; color: rgba(194,101,67,.08); font: italic 430px/.9 var(--serif); pointer-events: none; }
.closing-decoration::before { content: "a"; }

.site-footer { padding: 62px 0 0; background: #242d27; color: #f4f1e9; }
.footer-main { display: grid; grid-template-columns: 1.1fr .65fr .75fr 1fr; gap: 45px; padding-bottom: 54px; }
.brand-light .brand-mark { background: #f4f1e9; color: var(--green); }
.brand-light .brand-name span { color: #e59a73; }
.footer-brand > p, .footer-note p { margin: 19px 0 0; color: #c1c5bb; font-size: 11px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-links .footer-label, .footer-note .footer-label { margin-bottom: 5px; color: #bfc7bb; }
.footer-links a { color: #f4f1e9; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: #e59a73; }
.footer-note { max-width: 260px; }
.footer-note p { margin-top: 13px; }
.footer-note a { display: inline-block; margin: 12px 14px 0 0; color: #f4f1e9; font-size: 10px; }
.footer-policy-button { margin: 12px 14px 0 0; padding: 0; border: 0; background: transparent; color: #f4f1e9; font: inherit; font-size: 10px; text-decoration: underline; cursor: pointer; }
.footer-policy-button:hover { color: #e59a73; }
.footer-bottom { display: flex; justify-content: space-between; padding: 18px 0 20px; border-top: 1px solid rgba(255,255,255,.14); color: #bfc4b9; font-size: 9px; }
.cookie-notice { position: fixed; z-index: 30; right: 20px; bottom: 20px; left: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 940px; margin-inline: auto; padding: 20px 24px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 35px rgba(32,35,31,.18); }
.cookie-notice[hidden] { display: none; }
.cookie-notice-copy strong { display: block; margin-bottom: 5px; font-size: 13px; }
.cookie-notice-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.cookie-notice-copy a { color: var(--green); font-weight: 700; }
.cookie-notice .button { flex: 0 0 auto; cursor: pointer; border: 0; font: inherit; font-size: 11px; }

.page-hero { padding: 85px 0 78px; background: #eeece4; }
.page-hero-soft { background: #e9e5d8; }
.page-hero-inner { max-width: 850px; }
.page-hero h1 { margin: 0 0 23px; font-size: clamp(64px, 8vw, 102px); line-height: .98; }
.page-lead { max-width: 590px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.page-hero .button { margin-top: 28px; }
.content-section { background: var(--white); }
.content-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 80px; }
.content-aside { display: flex; align-items: center; gap: 12px; align-self: start; padding-top: 11px; color: var(--green); }
.aside-number { font: 26px var(--serif); color: var(--orange); }
.content-aside p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.prose { max-width: 680px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.prose h2 { margin: 0 0 20px; color: var(--ink); font-size: clamp(35px, 4vw, 48px); line-height: 1.12; }
.prose h2:not(:first-child) { margin-top: 38px; }
.prose h3 { margin: 28px 0 12px; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.25; }
.prose p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose .hero-actions { margin-top: 28px; }
.values-section, .steps-section { background: #eeece4; }
.values-section h2, .steps-section h2 { margin-bottom: 48px; }
.value-list { max-width: 850px; border-top: 1px solid #d3d0c5; }
.value-list article { display: grid; grid-template-columns: 90px 1fr; gap: 15px; padding: 24px 0; border-bottom: 1px solid #d3d0c5; }
.value-list article > span, .step-grid article > span { color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.value-list h3 { margin-bottom: 7px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.value-list p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.status-section { padding: 27px 0; background: #e1e5dc; }
.status-inner { display: flex; align-items: flex-start; gap: 13px; }
.status-dot { flex: 0 0 auto; margin-top: 7px; background: var(--green); }
.status-inner p { max-width: 830px; margin: 0; color: #4f5d50; font-size: 12px; line-height: 1.8; }
.contribution-note { display: flex; gap: 14px; margin-top: 28px; padding: 20px; background: #eeece4; }
.note-symbol { flex: 0 0 auto; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); font: italic 14px var(--serif); }
.contribution-note p { margin: 0; color: #5c5e56; font-size: 12px; line-height: 1.8; }
.contribution-note strong { color: var(--ink); }
.steps-section { background: var(--white); }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step-grid article { min-height: 155px; padding: 22px 20px 0 0; }
.step-grid article + article { padding-left: 20px; border-left: 1px solid var(--line); }
.step-grid h3 { margin-top: 24px; }
.account-section { background: #eeece4; }
.account-card { max-width: 600px; padding: 36px; background: var(--white); border: 1px solid var(--line); }
.account-card-wide { max-width: 800px; margin-inline: auto; }
.form-stack { display: flex; flex-direction: column; gap: 19px; }
.form-stack label, .source-fields label { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.form-stack input:not([type="checkbox"]), .form-stack textarea, .form-stack select, .search-form input { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid #c9c6bc; border-radius: 1px; background: var(--white); color: var(--ink); font: 400 13px var(--sans); }
.form-stack textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus, .search-form input:focus { outline: 3px solid rgba(194,101,67,.25); border-color: var(--orange); }
.checkbox-label { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 10px !important; color: var(--muted) !important; font-weight: 400 !important; line-height: 1.7; }
.checkbox-label input { margin: 3px 0 0; accent-color: var(--green); }
.checkbox-label a, .form-footnote a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-footnote { margin: 19px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.notice { margin: 0 0 23px; padding: 15px 18px; border-left: 3px solid var(--green); background: #eaf0e8; color: var(--green-deep); font-size: 12px; line-height: 1.7; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice.error { border-color: #a33f33; background: #f7e8e5; color: #742d25; }
.notice ul { padding-left: 20px; }
.empty-state { padding: 28px; border: 1px solid var(--line); background: #fbfaf6; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; font: 30px var(--serif); }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.data-table th, .data-table td { padding: 15px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.data-table tbody th { font-weight: 600; }
.data-table a { color: var(--green); font-weight: 700; }
.status-badge { display: inline-block; padding: 5px 8px; background: #e9e5d8; font-size: 10px; }
.logout-form { margin-top: 23px; }
.logout-form button { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--sans); }
.account-card-wide .form-stack { gap: 17px; }
.form-stack fieldset { display: flex; flex-direction: column; gap: 16px; margin: 8px 0; padding: 22px; border: 1px solid var(--line); }
.source-fields legend { padding: 0 9px; font-family: var(--serif); font-size: 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions button:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.button-danger { background: #f0e3dc; color: #7b3325; border: 1px solid #c99a88; cursor: pointer; }
.form-stack button { cursor: pointer; font-family: var(--sans); }
.search-form { display: flex; max-width: 600px; gap: 9px; margin-top: 30px; }
.search-form input { flex: 1; min-width: 0; }
.search-form .button { border: 0; cursor: pointer; font-family: var(--sans); }
.search-form-large { max-width: 700px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.category-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 50px; }
.category-list > span { width: 100%; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.category-list a { padding: 9px 12px; border: 1px solid var(--line); text-decoration: none; font-size: 11px; }
.category-list small { padding-left: 5px; color: var(--orange); }
.territory-search { margin-bottom: 36px; }
.territory-area { margin-bottom: 44px; }
.territory-area-title { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 11px var(--sans, inherit); letter-spacing: .14em; text-transform: uppercase; }
.territory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.territory-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 20px 44px 20px 20px; border: 1px solid var(--line); background: #fbfaf6; text-decoration: none; overflow-wrap: anywhere; }
.territory-card:hover, .territory-card:focus-visible { border-color: var(--orange); background: var(--white); }
.territory-card-name { font: 26px var(--serif); line-height: 1.1; }
.territory-card-meta { color: var(--muted); font-size: 11px; }
.territory-badge { align-self: flex-start; margin-top: auto; padding: 3px 8px; background: var(--orange); color: var(--white); font-size: 10px; font-weight: 700; }
.territory-card-arrow { position: absolute; top: 18px; right: 18px; color: var(--orange); }
.territory-count, .territory-legend { color: var(--muted); font-size: 12px; }
.place-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.place-results a { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); text-decoration: none; }
.place-results span { color: var(--muted); font-size: 11px; }
.territory-tools input { width: 100%; max-width: 420px; padding: 12px 14px; border: 1px solid var(--line); font: inherit; }
.letter-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 30px; }
.letter-index a { min-width: 34px; padding: 7px 0; border: 1px solid var(--line); text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; }
.letter-group { margin-bottom: 28px; scroll-margin-top: 90px; }
.letter-heading { margin-bottom: 10px; font: 36px var(--serif); color: var(--orange); }
.place-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.place-list a { display: block; padding: 5px 0; text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
.place-list a:hover { text-decoration: underline; }
.place-list small { margin-left: 4px; padding: 1px 6px; background: var(--orange); color: var(--white); font-size: 10px; font-weight: 700; }
[hidden] { display: none !important; }
.word-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 40px; padding: 0; list-style: none; }
.word-entry { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--orange); background: #fbfaf6; overflow-wrap: anywhere; }
.word-dialect { font: 30px/1.1 var(--serif); text-decoration: none; }
a.word-dialect:hover { text-decoration: underline; }
.word-meta { color: var(--muted); font-size: 11px; font-style: italic; }
.word-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.word-italian { font-size: 15px; line-height: 1.5; }
.word-places { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 12px; }
.word-places .word-label { width: 100%; }
.word-title { font-style: normal; }
.word-hero-italian { margin-top: 14px; font-size: 20px; }
.word-hero-italian .word-label { display: inline; margin-right: 8px; }
.meaning-translation { font-style: normal; }
.tradition-dialect { font-family: var(--serif); font-weight: 400; line-height: 1.25; }
.tradition-card .tradition-dialect { margin: 8px 0 12px; font-size: 24px; }
.tradition-card .tradition-dialect a { text-decoration: none; }
.tradition-card .tradition-dialect a:hover { text-decoration: underline; }
.tradition-card .word-italian { margin: 0 0 10px; }
.tradition-text.tradition-dialect { padding-left: 20px; border-left: 3px solid var(--orange); font-size: clamp(24px, 4vw, 34px); }
.tradition-italian { margin: 24px 0; padding: 16px 20px; background: #fbfaf6; border: 1px solid var(--line); }
.tradition-italian p { margin: 0; font-size: 18px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.archive-card { min-height: 205px; padding: 23px; border: 1px solid var(--line); background: #fbfaf6; }
.archive-card h2, .archive-card h3 { margin: 20px 0 10px; font: 25px/1.12 var(--serif); }
.archive-card h2 a, .archive-card h3 a { text-decoration: none; }
.archive-card h2 a:hover, .archive-card h3 a:hover { color: var(--orange); }
.archive-card p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.archive-meta { margin-top: 18px; color: var(--green); font-size: 9px; font-weight: 600; letter-spacing: .07em; }
.moderation-content, .tradition-content { max-width: 820px; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.tradition-text { padding: 25px; background: #eeece4; font: 25px/1.7 var(--serif); }
.source-review, .revision-history, .variant-section { margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--line); }
.source-review h2, .revision-history h2, .variant-section h2 { font: 27px var(--serif); }
.source-review p, .revision-history li, .variant-section li { color: var(--muted); font-size: 12px; line-height: 1.8; }
.verification-note { font-style: italic; }
.revision-history ul, .variant-section ul { padding-left: 20px; }
.revision-history li + li, .variant-section li + li { margin-top: 14px; }
.moderation-form { margin-top: 35px; padding: 24px; background: #eeece4; }
.moderation-form .button { min-height: 43px; }
.status-badge { white-space: nowrap; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 8px 13px; border: 1px solid var(--line); background: #fbfaf6; text-decoration: none; font-size: 11px; font-weight: 700; transition: border-color .15s ease, background .15s ease; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { border-color: var(--orange); background: var(--white); color: var(--orange); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; margin: 0 0 36px; }
.admin-stats > div { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: var(--white); }
.admin-stats span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-stats strong { font: 42px/1 var(--serif); color: var(--ink); }
.admin-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 36px; }
.admin-link-grid a { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 132px; padding: 24px 44px 24px 24px; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.admin-link-grid a::after { position: absolute; top: 22px; right: 20px; color: var(--orange); font-size: 15px; content: "↗"; }
.admin-link-grid a:hover, .admin-link-grid a[aria-current="page"] { border-color: var(--orange); box-shadow: 0 8px 22px rgba(32,35,31,.06); transform: translateY(-2px); }
.admin-link-grid strong { font: 25px/1.15 var(--serif); color: var(--ink); }
.admin-link-grid span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-subheading { margin: 44px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); font: 30px/1.15 var(--serif); }
.role-form, .inline-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.role-form select, .inline-edit input, .data-table select { min-height: 36px; padding: 6px 10px; border: 1px solid #c9c6bc; background: var(--white); font: 400 12px var(--sans); }
.role-form button, .inline-edit button, .data-table button { min-height: 36px; padding: 0 13px; border: 1px solid var(--green); background: var(--green); color: white; font: 700 11px var(--sans); cursor: pointer; }
.role-form button:hover, .inline-edit button:hover, .data-table button:hover { background: var(--green-deep); }
.inline-action { display: inline-block; margin: 4px 6px 0 0; }
.inline-action button { min-height: 28px; padding: 0 9px; border: 1px solid #c99a88; background: #f7e8e5; color: #742d25; font: 600 10px var(--sans); cursor: pointer; }
.admin-card { margin: 0 0 22px; padding: 24px 26px; border: 1px solid var(--line); background: var(--white); }
.admin-card h3 { margin: 0 0 8px; font: 26px/1.15 var(--serif); }
.admin-card details { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); background: #fbfaf6; }
.admin-card summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--green); }

@media (min-width: 1400px) { .container { width: min(1240px, calc(100% - 96px)); } }
@media (max-width: 800px) {
    .container { width: min(100% - 42px, 600px); }
    .header-inner { min-height: 72px; }
    .desktop-nav { gap: 17px; }
    .desktop-nav a { font-size: 11px; }
    .hero { padding-top: 46px; }
    .hero-grid { grid-template-columns: 1fr .88fr; gap: 20px; min-height: 390px; }
    .hero h1 { font-size: clamp(57px, 9vw, 76px); }
    .hero-art { min-height: 340px; }
    .art-sun { width: 125px; }
    .art-ring-one { width: 230px; height: 230px; }
    .art-ring-two { width: 265px; height: 265px; }
    .hero-lead { font-size: 13px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
    .hero-footnote { margin-top: 30px; }
    .section-pad { padding: 76px 0; }
    .intro-grid { gap: 38px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
    .closing-card { padding: 43px 38px; gap: 30px; }
    .footer-main { gap: 30px; }
    .content-grid { grid-template-columns: 1fr; gap: 32px; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .container { width: calc(100% - 40px); }
    .header-inner { min-height: 68px; }
    .desktop-nav { display: none; }
    .site-menu { position: relative; display: block; }
    .site-menu summary { list-style: none; padding: 10px 0 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
    .site-menu summary::-webkit-details-marker { display: none; }
    .site-menu summary::after { content: " +"; color: var(--orange); }
    .site-menu[open] summary::after { content: " −"; }
    .nav-links { position: absolute; top: 42px; right: 0; display: flex; min-width: 205px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 17px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 24px rgba(32,35,31,.09); }
    .nav-links a { padding: 13px 0; }
    .nav-links .nav-cta { margin: 5px 0 7px; padding: 12px; text-align: center; }
    .hero { padding-top: 43px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-copy { padding-bottom: 0; }
    .hero h1 { font-size: clamp(62px, 16vw, 82px); }
    .hero-lead { max-width: 390px; font-size: 14px; }
    .hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 18px; }
    .hero-footnote { margin-top: 27px; }
    .hero-art { min-height: 300px; }
    .art-sun { top: 35px; right: 17%; width: 125px; }
    .art-ring-one { top: 20px; right: 8%; width: 230px; height: 230px; }
    .art-ring-two { top: 2px; right: 2%; width: 265px; height: 265px; }
    .hero-rule { padding-top: 21px; font-size: 8px; }
    .section-pad { padding: 67px 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 23px; }
    .intro-grid h2, .section-heading h2, .closing-card h2, .values-section h2, .steps-section h2 { font-size: clamp(32px, 11vw, 43px); }
    .principle-grid { grid-template-columns: 1fr; }
    .principle-card { min-height: unset; padding: 23px 0 28px; }
    .principle-card + .principle-card { padding: 23px 0 28px; border-left: 0; border-top: 1px solid #d3d0c5; }
    .card-symbol { margin: 23px 0 16px; }
    .principle-card p { max-width: 360px; }
    .quote-section { padding: 63px 0; }
    .quote-inner blockquote { font-size: 34px; }
    .closing-section { padding-top: 45px; }
    .closing-card { grid-template-columns: 1fr; gap: 20px; padding: 38px 25px; }
    .closing-decoration { top: 15px; right: 5%; font-size: 210px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 35px 20px; padding-bottom: 37px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-note { max-width: 200px; }
    .footer-bottom { gap: 16px; font-size: 8px; }
    .page-hero { padding: 65px 0 57px; }
    .page-hero h1 { font-size: clamp(40px, 15vw, 67px); overflow-wrap: anywhere; }
    .prose, .plain-list li, .archive-card { overflow-wrap: anywhere; }
    .territory-grid, .place-results, .word-list, .admin-link-grid { grid-template-columns: 1fr; }
    .word-dialect { font-size: 26px; }
    .place-list { grid-template-columns: repeat(2, 1fr); }
    .page-lead { font-size: 14px; }
    .content-aside { padding-top: 0; }
    .prose h2 { font-size: clamp(28px, 9.5vw, 37px); }
    .value-list article { grid-template-columns: 42px 1fr; }
    .step-grid { grid-template-columns: 1fr 1fr; }
    .step-grid article { min-height: 160px; padding: 19px 14px 16px 0; }
    .step-grid article + article { padding-left: 14px; }
    .step-grid article:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .step-grid article:nth-child(4) { border-top: 1px solid var(--line); }
    .account-card { padding: 25px 19px; }
    .archive-grid { grid-template-columns: 1fr; }
    .search-form { align-items: stretch; flex-direction: column; }
    .search-form .button { width: 100%; }
    .form-actions > * { flex: 1 1 100%; }
    .form-stack fieldset { padding: 17px 13px; }
    .cookie-notice { right: 10px; bottom: 10px; left: 10px; align-items: stretch; flex-direction: column; gap: 13px; padding: 17px; }
    .cookie-notice .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
