:root {
  color-scheme: light;
  --forest: #102e25;
  --forest-deep: #0b231c;
  --forest-soft: #214339;
  --ivory: #f8f5ec;
  --paper: #fffdf8;
  --gold: #d8af54;
  --gold-light: #f0ce80;
  --gold-ink: #765518;
  --ink: #1b2e25;
  --muted: #526057;
  --line: #dfdacb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.15rem, 4.5vw, 3.75rem);
  --section: clamp(3.25rem, 7.1vw, 6.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font: 1rem/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
svg:has(> use) { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #9f721a; outline-offset: 4px; }
.hero :focus-visible, .footer :focus-visible, .statement :focus-visible { outline-color: var(--gold-light); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h2, .catalog h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.15; letter-spacing: -.022em; }
small { font-size: .8rem; }
section[id] { scroll-margin-top: 1.25rem; }

.wrap { width: min(100% - var(--gutter) * 2, 73rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .6rem; left: .6rem; padding: .65rem 1rem; color: var(--forest); background: var(--gold-light); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.utility { padding: .38rem 0; color: #f0dfb4; background: var(--forest-deep); font-size: .67rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.utility .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .72rem; }
.utility a { text-decoration: none; }
.masthead { position: relative; z-index: 1; color: var(--forest-deep); background: var(--ivory); border-bottom: 1px solid #d3cbb6; }
.masthead > .wrap { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .67rem; flex: none; text-decoration: none; font: 700 1.47rem/1.05 var(--serif); letter-spacing: -.035em; }
.brand span { display: block; }
.brand small { display: block; margin-top: .2rem; color: var(--gold-ink); font: 750 .59rem/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .26rem; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem clamp(.8rem, 2.25vw, 1.95rem); }
.nav-link { text-decoration: none; font-size: .84rem; font-weight: 650; }
.nav-link:hover, .nav-link:focus-visible { text-decoration: underline; }
.masthead .btn { font-size: .78rem; min-height: 2.55rem; padding: .45rem .88rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.85rem; padding: .66rem 1.05rem; border: 1px solid transparent; border-radius: .25rem; color: inherit; background: transparent; text-decoration: none; font-size: .83rem; font-weight: 760; line-height: 1.3; transition: background-color .16s, color .16s, border-color .16s; }
.btn svg { width: 1rem; height: 1rem; flex: none; }
.btn-gold { color: #172417; background: var(--gold-light); border-color: var(--gold-light); }
.btn-gold:hover { background: #ffdf96; border-color: #ffdf96; }
.btn-outline { color: inherit; border-color: currentColor; }
.btn-outline:hover { color: var(--forest-deep); background: var(--ivory); border-color: var(--ivory); }
.btn-dark { color: var(--paper); background: var(--forest); border-color: var(--forest); }
.btn-dark:hover { background: #265343; border-color: #265343; }
.btn-light { color: var(--forest); background: var(--paper); border-color: #b8b7a7; }
.btn-light:hover { background: #eee9da; border-color: #9b9b87; }

.eyebrow, .section-kicker { display: flex; align-items: center; gap: .62rem; margin-bottom: .85rem; color: var(--gold-ink); font-size: .7rem; font-weight: 780; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before, .section-kicker::before { content: ""; width: 1.65rem; border-top: 1px solid currentColor; flex: none; }

.hero { isolation: isolate; position: relative; overflow: hidden; color: var(--ivory); background: linear-gradient(125deg, #102e25 20%, #183b2f 72%, #112e25); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .7; background: repeating-linear-gradient(128deg, transparent 0 31px, #e4bb6215 32px, transparent 33px 62px); mask-image: linear-gradient(105deg, transparent 35%, #000 92%); pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: -1; right: -5rem; bottom: -17rem; width: 44rem; height: 35rem; border: 1px solid #d8af542c; border-radius: 50%; box-shadow: 0 0 0 1.6rem #d8af5409, 0 0 0 3.15rem #d8af5409; transform: rotate(-32deg); pointer-events: none; }
.hero-grid { display: grid; align-items: center; grid-template-columns: 1.12fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.25rem, 6.3vw, 5.5rem); }
.hero-copy { min-width: 0; }
.hero-motto {
  margin-bottom: 1rem;
  padding-inline-start: .75rem;
  border-inline-start: 2px solid var(--gold);
  color: #ffe4ab;
  font-size: clamp(.85rem, 1.45vw, 1.05rem);
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: .045em;
  text-wrap: balance;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 14ch; font-size: clamp(3rem, 6.75vw, 5.35rem); line-height: .94; letter-spacing: -.065em; text-wrap: balance; }
.hero h1 em, .hero h1 strong { color: var(--gold-light); font-weight: inherit; }
.hero-copy p:not(.eyebrow, .hero-motto) { max-width: 33rem; margin-top: 1.35rem; color: #e1e9dd; font-size: clamp(.96rem, 1.65vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.65rem; }
.hero-actions .btn { padding-inline: 1.14rem; }
.hero-actions .btn-outline { color: var(--ivory); border-color: #a8b8aa; }
.hero-actions .btn-outline:hover { color: var(--forest-deep); background: var(--ivory); border-color: var(--ivory); }

.hero-figure { display: grid; gap: .9rem; min-width: 0; margin-inline: .25rem .5rem; }
.flag-frame { isolation: isolate; position: relative; padding: clamp(.45rem, 1vw, .85rem); border: 1px solid #b58b49; background: #14291e; box-shadow: 0 1.6rem 3rem #071c13a0; transform: rotate(-1.25deg); }
.flag-frame::before { content: ""; position: absolute; z-index: -1; inset: .4rem -.6rem -.65rem .65rem; border: 1px solid #e7bf686b; pointer-events: none; }
.flag-frame img, .flag-frame > svg { width: 100%; height: auto; background: #176c35; }
.flag-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .8rem; margin-top: .42rem; color: #f2ddb0; font-size: .72rem; letter-spacing: .08em; }
.flag-caption a { color: #f2ddb0; }

.trust { background: #ede7d7; border-bottom: 1px solid #d9d0ba; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; gap: .75rem; padding: 1.05rem 1rem; color: var(--forest); font-size: .83rem; line-height: 1.4; }
.trust-item:first-child { padding-inline-start: 0; }
.trust-item + .trust-item { border-inline-start: 1px solid #d4c9ae; padding-inline-start: clamp(.9rem, 3vw, 2.2rem); }
.trust-item strong { display: block; font-size: .87rem; }
.trust-item span { color: var(--forest); font-weight: 700; }
.trust-link span { text-decoration: underline; text-underline-offset: .2em; }
.trust-link:hover span { color: var(--gold-ink); }
.trust-item svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--gold-ink); }

.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(1.35rem, 3.5vw, 2.4rem); }
.section-head > p:not(.section-kicker), .section-head > div > p:not(.section-kicker) { max-width: 42rem; margin-top: .85rem; color: var(--muted); }
.catalog { background: var(--ivory); }
.catalog-intro, .catalog-entry > .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; }
.catalog-intro { align-items: end; }
.catalog-intro .btn { flex: none; }
.catalog-entry { padding-block: clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.catalog-entry > .wrap { align-items: center; }
.catalog-entry h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; }
.catalog-entry p { margin-top: .4rem; color: var(--muted); font-size: .91rem; }
.catalog-tools { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .85fr); align-items: end; gap: .85rem; padding: 1rem; background: #efebdf; border: 1px solid var(--line); border-radius: .28rem; }
.field { display: grid; min-width: 0; gap: .3rem; color: var(--forest-deep); font-size: .82rem; font-weight: 720; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; min-height: 2.8rem; padding: .62rem .73rem; border: 1px solid #b4b7a8; border-radius: .23rem; color: var(--ink); background: var(--paper); font-size: .87rem; font-weight: 450; line-height: 1.35; }
.field textarea { min-height: 6rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #68736a; opacity: 1; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; margin-block: 1.25rem .8rem; color: var(--muted); font-size: .84rem; }
.catalog-controls { display: flex; flex-wrap: wrap; gap: .42rem; }
.catalog-bar button, #catalog-clear { font-size: .79rem; }
#example-toggle:not(.btn), #catalog-clear:not(.btn) { min-height: 2.5rem; padding: .35rem .6rem; color: var(--forest); background: transparent; border: 1px solid #b7b29e; border-radius: .23rem; font-weight: 700; }
#example-toggle[aria-pressed="true"] { color: var(--paper); background: var(--forest); border-color: var(--forest); }

.catalog-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.listing-card, .empty-state { min-width: 0; padding: clamp(1rem, 3vw, 1.45rem); background: var(--paper); border: 1px solid var(--line); border-radius: .27rem; }
.listing-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.listing-card h3, .listing-card p { overflow-wrap: anywhere; }
.listing-card p { color: var(--muted); font-size: .9rem; }
.listing-card .listing-meta { color: var(--gold-ink); font-size: .75rem; font-weight: 700; }
.listing-tag { display: inline-block; padding: .18rem .47rem; color: var(--gold-ink); background: #f5ecd5; border-radius: .19rem; font-size: .67rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.listing-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: .3rem; font-size: .81rem; font-weight: 650; }
.listing-actions a:hover { color: var(--gold-ink); }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: start; gap: .5rem; min-height: 9.8rem; align-content: center; border-inline-start: 3px solid #bd9348; }
.empty-state p { max-width: 42rem; color: var(--muted); font-size: .94rem; }
.empty-state .btn { margin-top: .25rem; }

.statement { isolation: isolate; position: relative; overflow: hidden; padding-block: clamp(2.9rem, 6.8vw, 5.3rem); color: var(--ivory); background: var(--forest); }
.statement::after { content: ""; position: absolute; z-index: -1; right: -8rem; top: -7rem; width: 27rem; height: 27rem; border: 1px solid #d8af5438; transform: rotate(40deg); box-shadow: 0 0 0 1.25rem #d8af5411, 0 0 0 2.5rem #d8af5409; pointer-events: none; }
.statement .section-kicker, .statement .eyebrow { color: var(--gold-light); }
.statement-grid { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(1.55rem, 7vw, 6rem); }
.statement-quote { color: var(--gold-light); font: italic 500 clamp(1.75rem, 4.15vw, 3.6rem)/1.1 var(--serif); letter-spacing: -.04em; }
.statement-quote cite, .statement-quote footer { display: block; margin-top: .78rem; color: #efe5cd; font: 700 .73rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.statement-copy { display: grid; gap: .7rem; }
.statement-copy p { color: #e1e9dd; }
.statement-copy a { color: var(--gold-light); }
.statement-copy h2 { font-size: clamp(1.95rem, 3.45vw, 3rem); }

.principle-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.principle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principle, .guide-card { display: grid; border: 1px solid var(--line); border-radius: .24rem; background: var(--paper); }
.principle, .guide-card { grid-template-rows: auto 1fr; overflow: hidden; border-top: 2px solid var(--gold); }
.principle-copy, .guide-card-copy { display: grid; gap: .65rem; padding: clamp(1rem, 2.7vw, 1.5rem); }
.principle-copy { grid-template-rows: auto auto 1fr auto; }
.guide-card-copy { align-content: start; }
.principle p, .guide-card p { color: var(--muted); font-size: .91rem; }
.principle a { justify-self: start; color: var(--gold-ink); font-size: .8rem; font-weight: 720; }
.section-note { max-width: 52rem; margin-top: 1.4rem; padding-inline-start: .9rem; border-inline-start: 2px solid var(--gold); color: var(--muted); font-size: .9rem; }
.section-note a { color: var(--forest); font-weight: 660; }
.guide { background: #f3efe4; border-top: 1px solid var(--line); }
.principle-number { color: var(--gold-ink); font: 600 1.28rem/1.2 var(--serif); }
.guide-card a { color: var(--forest); font-weight: 650; }

.signup { background: #ede7d7; border-block: 1px solid #e2d9c4; }
.signup-grid, .support-grid { display: grid; align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.6rem, 6vw, 5.6rem); }
.signup-grid > div:first-child > p:not(.section-kicker), .support-grid > div:first-child > p:not(.section-kicker) { margin-top: .82rem; color: var(--muted); }
.signup-links { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1rem; }
.signup-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid #d8ceb8;
  border-radius: .45rem;
}
.signup-grid li, .support-grid li { margin-block: .27rem; }
.signup-grid ul, .support-grid ul { padding-inline-start: 1.15rem; }
.business-form, .pix-card { display: grid; justify-items: start; gap: 1rem; min-width: 0; padding: clamp(1rem, 3vw, 1.65rem); background: var(--paper); border: 1px solid #d8ceb8; border-radius: .3rem; }
.form-grid { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.form-grid .full { grid-column: 1 / -1; }
.business-form > p, .pix-card > p { color: var(--muted); font-size: .89rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink); font-size: .85rem; line-height: 1.5; }
.check input { flex: none; width: 1.1rem; height: 1.1rem; margin: .12rem 0 0; accent-color: var(--forest); }
.form-status, #pix-status { color: var(--forest); font-size: .83rem; font-weight: 660; }
.form-status:empty, #pix-status:empty { position: absolute; }
.support { background: #f6efdb; border-bottom: 1px solid #e6d9b6; }
.support-grid { align-items: center; }
.pix-card { border-inline-start: 3px solid #b98734; }
.pix-card svg { color: var(--gold-ink); width: 1.5rem; height: 1.5rem; }
#pix-details { display: grid; align-items: start; grid-template-columns: minmax(0, 11.25rem) minmax(0, 1fr); gap: 1rem; width: 100%; }
.pix-qr { display: block; width: 100%; max-width: 11.25rem; height: auto; border: 1px solid var(--line); border-radius: .2rem; }
.pix-instructions { display: grid; justify-items: start; gap: .65rem; min-width: 0; }
#pix-pending p, #pix-details p { color: var(--muted); font-size: .88rem; }
#pix-manual { width: 100%; color: var(--forest); font-size: .82rem; }
#pix-manual summary { cursor: pointer; }
#pix-code { display: block; width: 100%; margin-top: .5rem; padding: .55rem; border: 1px solid var(--line); border-radius: .2rem; color: var(--ink); background: var(--paper); font: .75rem/1.4 monospace; resize: vertical; }

.faq { background: var(--ivory); }
.faq-list { display: grid; gap: .2rem; max-width: 50rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: .12rem 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--forest-deep); padding: .75rem .25rem; font-weight: 730; }
.faq-list summary::marker { color: var(--gold-ink); }
.faq-list details p { padding: 0 .25rem .85rem; color: var(--muted); }

.footer { color: #e0e8de; background: var(--forest-deep); padding-top: clamp(2rem, 5vw, 3.4rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; padding-bottom: 1.75rem; }
.footer-grid > * { min-width: 0; }
.footer .brand { color: var(--ivory); }
.footer .brand small { color: var(--gold-light); }
.footer-grid p, .footer-grid li, .footer-bottom { color: #cad8cb; font-size: .83rem; }
.footer-grid p { max-width: 22rem; margin-top: .45rem; }
.footer-grid ul { list-style: none; margin: .45rem 0 0; padding: 0; }
.footer-grid li + li { margin-top: .28rem; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-grid nav { display: flex; flex-wrap: wrap; align-content: center; gap: .55rem 1.15rem; font-size: .84rem; }
.footer-grid h2, .footer-grid h3 { font: 750 .79rem/1.3 var(--sans); color: var(--gold-light); letter-spacing: .05em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: .95rem; border-top: 1px solid #c5d7c140; }

@media (max-width: 60rem) {
  .masthead > .wrap { flex-wrap: wrap; padding-block: .7rem; }
  .main-nav { gap: .35rem 1rem; }
  .hero-grid { gap: 2.2rem; }
  .catalog-tools { grid-template-columns: 1fr 1fr; }
  .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  .hero-grid, .statement-grid, .signup-grid, .support-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero h1 { max-width: 14ch; }
  .hero-figure { max-width: 30rem; }
  .signup-photo { max-width: 26rem; aspect-ratio: 3 / 2; }
  .trust-grid { grid-template-columns: 1fr; padding-block: .35rem; }
  .trust-item, .trust-item:first-child, .trust-item + .trust-item { padding: .66rem 0; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid #d4c9ae; }
  .catalog-results, .principle-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 34rem) {
  #pix-details { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 31rem) {
  .utility { font-size: .59rem; letter-spacing: .085em; }
  .masthead > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .5rem; }
  .masthead .brand { grid-column: 1 / -1; }
  .main-nav { gap: .35rem .65rem; }
  .main-nav .nav-link { font-size: .75rem; }
  .masthead .btn { min-height: 2.12rem; padding: .33rem .53rem; font-size: .72rem; }
  .hero h1 { font-size: clamp(2.9rem, 12vw, 3.75rem); }
  .hero-actions .btn { padding-inline: .78rem; }
  .catalog-tools, .catalog-results, .principle-grid, .guide-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.community { border-top: 1px solid var(--line); }
.history-note { max-width: 52rem; margin-top: 1.4rem; }
.field small { color: var(--muted); font-size: .77rem; font-weight: 500; }

.community-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2.2vw, 1.4rem);
  padding: 0;
  list-style: none;
}

.community-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--paper);
}

.community-step > img, .principle > img, .guide-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.community-step-copy {
  display: grid;
  gap: .6rem;
  padding: clamp(1rem, 2.4vw, 1.45rem);
}

.community-step-copy p { color: var(--muted); font-size: .91rem; }

.community-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: clamp(1.1rem, 3vw, 1.8rem);
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: .45rem;
  color: var(--ivory);
  background: var(--forest-deep);
}

.community-cta p { margin-top: .35rem; color: #dae5d6; font-size: .9rem; }
.community-cta-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.community-cta :focus-visible { outline-color: var(--gold-light); }

@media (max-width: 46rem) {
  .community-steps { grid-template-columns: 1fr; }
}
