:root {
  color-scheme: light;
  --ink: #2d2924;
  --ink-muted: #665d53;
  --ink-subtle: #82776b;
  --ivory: #fffdf9;
  --surface: #ffffff;
  --surface-soft: #fbf7ef;
  --surface-muted: #f7f1e7;
  --surface-accent: #ead8bd;
  --gold: #a4773f;
  --gold-dark: #815a2d;
  --gold-soft: #d8bd8c;
  --border: rgba(80, 58, 37, 0.14);
  --border-strong: rgba(80, 58, 37, 0.24);
  --focus: rgba(164, 119, 63, 0.28);
  --success: #315f3d;
  --success-bg: #e9f3eb;
  --error: #7a3b2c;
  --error-bg: #f7e9e5;
  --radius-sm: .65rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.75rem;
  --shadow-card: 0 1rem 2.5rem rgba(45, 33, 24, 0.07);
  --shadow-lifted: 0 1.75rem 4.75rem rgba(45, 33, 24, 0.12);
  --font-body: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ivory); }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea { font: inherit; }
a { color: inherit; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.dev-banner { display: flex; justify-content: center; gap: .7rem 1rem; flex-wrap: wrap; padding: .65rem 1rem; background: #fff2c7; border-bottom: 1px solid #e4c96f; color: #563f12; font-size: .78rem; line-height: 1.45; text-align: center; }
.dev-banner strong { text-transform: uppercase; letter-spacing: .08em; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(calc(100% - 2rem), 78rem); min-height: 6.6rem; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand__logo { display: block; width: clamp(6.6rem, 10vw, 8rem); height: auto; max-height: 5.7rem; }
.security-mark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-muted); font-size: .72rem; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.security-mark__icon { position: relative; width: 1rem; height: 1.15rem; border: 1.5px solid var(--gold-dark); border-radius: .2rem .2rem .35rem .35rem; }
.security-mark__icon::before { content: ""; position: absolute; left: 50%; top: -.48rem; width: .58rem; height: .52rem; border: 1.5px solid var(--gold-dark); border-bottom: 0; border-radius: .5rem .5rem 0 0; transform: translateX(-50%); }

.page-shell { width: min(calc(100% - 2rem), 72rem); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5.4rem) 0 clamp(3.5rem, 7vw, 6rem); }
.intro-panel { max-width: 47rem; margin: 0 auto clamp(2rem, 5vw, 3.3rem); text-align: center; }
.eyebrow { margin: 0 0 .85rem; color: var(--gold-dark); font-size: .7rem; font-weight: 650; letter-spacing: .19em; line-height: 1.4; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5vw, 4.15rem); line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.12; }
.lede { max-width: 42rem; margin: 1.2rem auto 0; color: var(--ink-muted); font-size: clamp(.98rem, 1.5vw, 1.08rem); line-height: 1.7; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 1.45rem; color: var(--ink-muted); font-size: .78rem; }
.trust-row span { display: inline-flex; align-items: center; gap: .42rem; }
.trust-dot { width: .38rem; height: .38rem; border-radius: 999px; background: var(--gold); }

.form-card { width: min(100%, 58rem); margin: 0 auto; padding: clamp(1.35rem, 4vw, 2.6rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.form-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.9rem; }
.required-note { flex: 0 0 auto; margin: .35rem 0 0; color: var(--ink-subtle); font-size: .72rem; }
.required-note span, label > span[aria-hidden="true"] { color: var(--gold-dark); }

.alert { margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; line-height: 1.5; }
.alert--error { border: 1px solid rgba(122,59,44,.23); background: var(--error-bg); color: var(--error); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section + .form-section--divided { margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.form-section > legend:not(.sr-only) { margin: 0 0 .35rem; padding: 0; font-family: var(--font-display); font-size: 1.3rem; }
.section-hint { margin: 0 0 1rem; color: var(--ink-muted); font-size: .83rem; line-height: 1.55; }
.field-grid { display: grid; gap: 1rem 1.15rem; }
.field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field--short { width: min(100%, 18rem); margin-top: 1rem; }
label { display: block; margin: 0 0 .45rem; font-size: .79rem; font-weight: 650; letter-spacing: .025em; }
.label-optional { margin-left: .35rem; color: var(--ink-subtle); font-size: .7rem; font-weight: 500; letter-spacing: .02em; }
input:not([type="checkbox"]):not([type="file"]), textarea { width: 100%; min-height: 3.15rem; padding: .78rem .9rem; border: 1px solid var(--border-strong); border-radius: .75rem; outline: 0; background: var(--surface); color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #968b7f; }
input:not([type="checkbox"]):not([type="file"]):hover, textarea:hover { border-color: rgba(129,90,45,.45); }
input:not([type="checkbox"]):not([type="file"]):focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem var(--focus); }
input:disabled, textarea:disabled { opacity: .68; cursor: wait; }

.drop-zone { position: relative; overflow: hidden; border: 1.5px dashed rgba(129,90,45,.38); border-radius: var(--radius-md); background: var(--surface-soft); transition: border-color 170ms ease, background 170ms ease, transform 170ms ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--gold); background: #f8f0e4; }
.drop-zone.is-dragging { transform: translateY(-1px); }
.drop-zone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone__label { display: flex; min-height: 13rem; margin: 0; padding: 1.6rem; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.drop-zone__icon { position: relative; display: block; width: 2.7rem; height: 2.15rem; margin-bottom: .85rem; border: 1.5px solid var(--gold-dark); border-radius: .45rem; background: rgba(255,255,255,.65); }
.drop-zone__icon::before { content: ""; position: absolute; left: 50%; top: -.45rem; width: 1.2rem; height: .85rem; border: 1.5px solid var(--gold-dark); border-bottom: 0; border-radius: .4rem .4rem 0 0; transform: translateX(-50%); }
.drop-zone__icon::after { content: "↑"; position: absolute; inset: 0; display: grid; color: var(--gold-dark); font-size: 1.1rem; place-items: center; }
.drop-zone__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.drop-zone__sub { margin: .35rem 0 1rem; color: var(--ink-muted); font-size: .82rem; font-weight: 400; }
.js .drop-zone input[type="file"]:focus + .drop-zone__label { outline: .18rem solid var(--focus); outline-offset: -.18rem; }

.button { display: inline-flex; min-height: 3.2rem; padding: .8rem 1.4rem; align-items: center; justify-content: center; gap: .75rem; border: 1px solid var(--gold-dark); border-radius: 999px; background: var(--gold-dark); color: #fffdf9; cursor: pointer; font-size: .73rem; font-weight: 700; letter-spacing: .075em; line-height: 1; text-decoration: none; text-transform: uppercase; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.button:hover { border-color: var(--gold); background: var(--gold); box-shadow: 0 .7rem 1.8rem rgba(129,90,45,.18); transform: translateY(-2px); }
.button:focus { outline: .18rem solid var(--focus); outline-offset: .16rem; }
.button--soft { border-color: var(--border); background: var(--surface-soft); color: var(--ink); }
.button--soft:hover { border-color: var(--gold-soft); background: var(--surface-accent); color: var(--ink); }
.button__arrow { width: .45rem; height: .45rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.button:disabled, .button.is-busy { transform: none; opacity: .62; cursor: not-allowed; box-shadow: none; }
.button.is-busy { cursor: wait; }

.file-list { margin-top: .85rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--surface); overflow: hidden; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .82rem .9rem; border-bottom: 1px solid var(--border); }
.file-row__copy { min-width: 0; display: grid; gap: .18rem; }
.file-row__copy strong { overflow: hidden; font-size: .84rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-row__copy span, .file-list__summary { color: var(--ink-muted); font-size: .72rem; }
.file-row__remove { flex: 0 0 auto; padding: .45rem .55rem; border: 0; background: transparent; color: var(--gold-dark); cursor: pointer; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.file-row__remove:hover { text-decoration: underline; text-underline-offset: .2rem; }
.file-list__summary { padding: .65rem .9rem; background: var(--surface-soft); }

.confirmation { margin-top: 1.8rem; padding-top: 1.45rem; border-top: 1px solid var(--border); }
.turnstile-stage { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turnstile-stage.is-interactive { position: static; width: auto; height: auto; margin-top: 1.25rem; overflow: visible; clip-path: none; white-space: normal; }
.turnstile-widget { width: 100%; min-height: .1rem; }
.security-check__noscript { margin: 1rem 0 0; color: var(--error); font-size: .78rem; }
.check { display: flex; align-items: flex-start; gap: .7rem; margin: 0; color: var(--ink-muted); font-size: .84rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.check input { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin: .12rem 0 0; accent-color: var(--gold-dark); }

.upload-progress { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
.upload-progress__top { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.upload-progress__top strong { font-weight: 700; }
#upload-percent { color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.progress-track { position: relative; height: .36rem; margin-top: .7rem; overflow: hidden; border-radius: 999px; background: #e8dfd2; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--gold-dark); transition: width 180ms ease; }
.progress-bar.is-processing { width: 42% !important; background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-soft) 50%, var(--gold-dark) 100%); animation: progress-travel 1.25s ease-in-out infinite alternate; }
@keyframes progress-travel { from { transform: translateX(-15%); } to { transform: translateX(150%); } }
.upload-progress p { margin: .6rem 0 0; color: var(--ink-muted); font-size: .76rem; line-height: 1.45; }

.form-actions { display: flex; align-items: center; gap: 1rem 1.4rem; margin-top: 1.5rem; }
.privacy-note { max-width: 27rem; margin: 0; color: var(--ink-subtle); font-size: .72rem; line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success-panel { padding: clamp(1rem, 3vw, 2rem) 0; text-align: center; outline: 0; }
.success-panel--standalone { padding: clamp(2rem, 5vw, 4rem); }
.success-panel__icon { position: relative; width: 3.3rem; height: 3.3rem; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--success-bg); }
.success-panel__icon::after { content: ""; position: absolute; left: 1.05rem; top: .88rem; width: 1.05rem; height: .62rem; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.success-panel > p:not(.eyebrow) { max-width: 34rem; margin: 1rem auto; color: var(--ink-muted); line-height: 1.6; }
.reference-wrap { display: inline-grid; gap: .25rem; min-width: min(100%, 22rem); margin: .7rem auto .4rem; padding: .85rem 1.2rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-soft); }
.reference-wrap span { color: var(--ink-subtle); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.reference-wrap strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1rem, 3vw, 1.25rem); letter-spacing: .07em; overflow-wrap: anywhere; }
.success-panel__note { font-size: .82rem; }
.success-panel .button { margin-top: .8rem; }
.page-shell--success { min-height: 65vh; display: grid; align-items: center; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface-muted); }
.site-footer__inner { display: flex; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; width: min(calc(100% - 2rem), 78rem); margin: 0 auto; padding: 1.35rem 0; color: var(--ink-muted); font-size: .68rem; }
.site-footer p { margin: 0; }

@media (max-width: 44rem) {
  .site-header__inner { min-height: 5.4rem; }
  .brand__logo { width: 6.1rem; max-height: 4.6rem; }
  .security-mark span:last-child { display: none; }
  .page-shell { width: min(calc(100% - 1.25rem), 72rem); padding-top: 2.1rem; }
  .intro-panel { text-align: left; }
  .trust-row { justify-content: flex-start; }
  .form-card { padding: 1.2rem; border-radius: 1.2rem; }
  .form-card__heading { display: block; }
  .required-note { margin-top: .7rem; }
  .field-grid--two { grid-template-columns: 1fr; }
  .field--short { width: 100%; }
  .drop-zone__label { min-height: 11rem; padding: 1.25rem; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .privacy-note { max-width: none; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
