@font-face {
  font-family: "WS Forest Retreat";
  src: url("../fonts/WS_ForestRetreat.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "WS Black Copal";
  src: url("../fonts/WS_BlackCopal.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "WS Corsicana";
  src: url("../fonts/WS_Corsicana.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "WS Long View";
  src: url("../fonts/WS_LongView.otf") format("opentype");
  font-display: swap;
}

:root {
  --burgundy: #5A1A20;
  --burgundy-deep: #421217;
  --apricot: #F3C9B1;
  --apricot-soft: #efbfa3;
  --narcissus: #9D7738;
  --chilli: #B34337;
  --alyssum: #EAE4DF;
  --max-w: 1400px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--burgundy);
  color: var(--apricot);
  font-family: "WS Long View", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body.bg-textured {
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px) clamp(20px, 5vw, 48px);
  text-align: center;
}

.shell--top {
  justify-content: flex-start;
  padding-top: clamp(48px, 10vh, 96px);
}

.lockup {
  width: min(420px, 70vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.lockup--sm { width: min(260px, 60vw); }
.lockup--md { width: min(340px, 70vw); }

.btn {
  display: inline-block;
  padding: 0.95em 2.4em;
  background: var(--apricot);
  color: var(--burgundy);
  font-family: "WS Black Copal", "WS Long View", serif;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 240ms ease, background 240ms ease, color 240ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--alyssum);
  outline: none;
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--apricot);
  border: 1px solid var(--apricot);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--apricot);
  color: var(--burgundy);
}

.eyebrow {
  font-family: "WS Long View", serif;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--apricot);
  line-height: 1.9;
  margin: 0;
}

.lead {
  font-family: "WS Long View", serif;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--apricot);
  max-width: 56ch;
  margin: 0 auto;
}

.spaced {
  margin-top: clamp(28px, 5vh, 56px);
}

.spaced--sm {
  margin-top: clamp(16px, 2.5vh, 28px);
}

.tight {
  margin-top: clamp(12px, 2vh, 20px);
}

/* ---------- Splash ---------- */
.splash .lockup {
  margin-bottom: clamp(28px, 5vh, 56px);
}

.splash .eyebrow {
  margin-top: clamp(28px, 5vh, 48px);
}

/* ---------- Form ---------- */
.form-wrap {
  width: min(640px, 100%);
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(28px, 5vh, 44px);
}

.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }

.field label {
  font-family: "WS Long View", serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apricot);
}

.field input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--apricot);
  color: var(--apricot);
  padding: 14px 14px;
  font-family: "WS Long View", serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 0;
  outline: none;
  transition: border-color 240ms ease, background 240ms ease;
}

.field input:focus {
  border-color: var(--alyssum);
  background: rgba(243, 201, 177, 0.06);
}

.field input::placeholder { color: rgba(243, 201, 177, 0.55); }

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--apricot);
  -webkit-box-shadow: 0 0 0 1000px var(--burgundy) inset;
  caret-color: var(--apricot);
}

.honeypot {
  position: absolute;
  left: -5000px;
  top: -5000px;
  visibility: hidden;
}

.form-actions {
  margin-top: clamp(28px, 5vh, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.form-error,
.form-success {
  font-family: "WS Long View", serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  min-height: 1.5em;
  text-align: center;
}

.form-error { color: var(--alyssum); }

/* ---------- Welcome ---------- */
.welcome { max-width: 720px; margin-inline: auto; }

.welcome .lead { max-width: 50ch; }

.socials {
  margin-top: clamp(28px, 5vh, 48px);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "WS Long View", serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 201, 177, 0.55);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--alyssum);
  outline-offset: 3px;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer { font-size: 10px; bottom: 12px; }
  .shell--top { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
