/* ===========================================================
   E.N.A. 1943 — site styles
   Palette: pine / moss / brass / limestone / paper
   Type:    Archivo (headings, UI) + Newsreader (narrative)
   =========================================================== */

:root {
  --pine:      #0E2620;
  --pine-deep: #081814;
  --moss:      #37604F;
  --brass:     #A8763C;
  --brass-lit: #D9AE6A;
  --limestone: #E9E7DF;
  --paper:     #FBFAF7;
  --ash:       #5C6862;
  --rule:      rgba(14, 38, 32, 0.14);
  --rule-dark: rgba(233, 231, 223, 0.18);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --s-1:  0.875rem;
  --s0:   1.0625rem;
  --s1:   1.25rem;
  --s2:   1.5rem;
  --s3:   1.9375rem;
  --s4:   2.5rem;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 34rem;
  --shell: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--pine);
  font-family: var(--serif);
  font-size: var(--s0);
  line-height: 1.65;
  font-optical-sizing: auto;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass-lit);
  color: var(--pine-deep);
  font-family: var(--sans);
  font-weight: 600;
  padding: .75rem 1rem;
  z-index: 50;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- masthead ---------- */

.masthead {
  background: var(--pine-deep);
  color: var(--limestone);
  border-bottom: 1px solid var(--rule-dark);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: .9rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--sans);
  text-decoration: none;
  margin-right: auto;
}
.wordmark b {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.wordmark span {
  font-size: .8rem;
  font-weight: 500;
  color: var(--brass-lit);
  letter-spacing: .1em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.9rem, 3vw, 1.75rem);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
}
.nav a {
  color: var(--limestone);
  text-decoration: none;
  padding-block: .25rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }

.lang {
  order: 2;
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--limestone);
  font: inherit;
  letter-spacing: .06em;
  padding: .35rem .7rem;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--brass);
  color: var(--pine-deep);
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 50% -10%, #17362C 0%, var(--pine) 45%, var(--pine-deep) 100%);
  color: var(--limestone);
  padding-block: clamp(3rem, 9vw, 6rem);
  text-align: center;
}

.hero__inner { max-width: 44rem; margin-inline: auto; }

/* the engraved bronze plaque — the one loud object on the page */
.plaque {
  --plate: linear-gradient(168deg, #C79A55 0%, #9C6F33 34%, #B98E4C 58%, #8A5F2A 100%);
  display: inline-block;
  position: relative;
  background: var(--plate);
  color: #33240E;
  font-family: var(--sans);
  padding: clamp(1.4rem, 4vw, 2.1rem) clamp(2rem, 7vw, 3.75rem);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 224, .55),
    inset 0 -2px 4px rgba(0, 0, 0, .35),
    0 18px 40px rgba(0, 0, 0, .45);
  animation: plaque-in 900ms ease-out both;
}

@keyframes plaque-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.plaque::after {
  /* rivets */
  content: "";
  position: absolute;
  inset: .5rem;
  border: 1px solid rgba(51, 36, 14, .3);
  border-radius: 2px;
  pointer-events: none;
}

.plaque b,
.plaque i,
.plaque em {
  display: block;
  font-style: normal;
  text-shadow: 0 1px 0 rgba(255, 244, 218, .45);
}
.plaque b {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-indent: .22em;
  line-height: 1;
}
.plaque hr {
  border: 0;
  height: 1px;
  background: rgba(51, 36, 14, .45);
  margin: .85rem auto;
  width: 60%;
}
.plaque i {
  font-size: clamp(.7rem, 2.4vw, .85rem);
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
}
.plaque em {
  font-size: clamp(.62rem, 2.2vw, .72rem);
  font-weight: 500;
  letter-spacing: .18em;
  text-indent: .18em;
  margin-top: .55rem;
  font-weight: 600;
  color: #2E2009;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  margin-top: clamp(2rem, 6vw, 3rem);
}

.hero__lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.6;
  color: rgba(233, 231, 223, .82);
  max-width: 32rem;
  margin: 1.1rem auto 0;
}

.actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn--solid {
  background: var(--brass-lit);
  color: var(--pine-deep);
}
.btn--solid:hover { background: #EBC688; }
.btn--ghost {
  background: none;
  color: var(--limestone);
  border-color: rgba(233, 231, 223, .38);
}
.btn--ghost:hover { background: rgba(233, 231, 223, .1); }

/* ---------- sections ---------- */

.band { padding-block: clamp(3rem, 8vw, 5.5rem); }
.band--pale { background: var(--limestone); }
.band--dark { background: var(--pine); color: var(--limestone); }

.band__head { max-width: var(--measure); margin-bottom: clamp(2rem, 5vw, 3rem); }
.band__head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.band__head p {
  margin-top: .9rem;
  color: var(--ash);
  font-size: var(--s1);
}
.band--dark .band__head p { color: rgba(233, 231, 223, .75); }

/* ---------- chronology ---------- */

.record { border-top: 1px solid var(--rule); }

.entry {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--rule);
}

.entry__year {
  font-family: var(--sans);
  font-size: var(--s2);
  font-weight: 700;
  color: var(--brass);
  letter-spacing: -0.01em;
  padding-top: .15rem;
}

.entry__body { max-width: var(--measure); }
.entry__body h3 {
  font-size: var(--s1);
  margin-bottom: .5rem;
}
.entry__body p { color: #24382F; }

@media (max-width: 40rem) {
  .entry { grid-template-columns: 1fr; gap: .4rem; }
}

@media (max-width: 44rem) {
  .masthead__inner { gap: .5rem 1rem; padding-block: .6rem; }
  .nav { order: 3; width: 100%; justify-content: flex-start; gap: 1.25rem; }
  /* comfortable thumb targets on touch screens */
  .nav a { padding-block: .7rem; }
  .lang button { padding: .7rem .85rem; }
  .wordmark { padding-block: .5rem; }
  .foot__inner a { display: inline-block; padding-block: .4rem; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}

.testimony {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--pine);
  color: var(--limestone);
  border-left: 4px solid var(--brass);
}
.testimony p {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.5;
  font-style: italic;
}
.testimony footer {
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .85rem;
  font-weight: 500;
  color: var(--brass-lit);
}

/* ---------- ledger (the numbers) ---------- */

.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.ledger div {
  background: var(--pine);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.ledger dt {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(233, 231, 223, .7);
  margin-bottom: .6rem;
}
.ledger dd {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brass-lit);
}
.ledger p {
  margin: .75rem 0 0;
  font-size: var(--s-1);
  line-height: 1.55;
  color: rgba(233, 231, 223, .72);
}

/* ---------- plan steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.steps > li {
  counter-increment: step;
  list-style: none;
  border-top: 2px solid var(--brass);
  padding-top: 1rem;
}
.steps > li::before {
  content: counter(step) " / 3";
  display: block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: .6rem;
}
.steps h3 { font-size: var(--s1); margin-bottom: .5rem; }
.steps p { color: var(--ash); font-size: var(--s-1); line-height: 1.6; }

/* ---------- call to action ---------- */

.call {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 44rem;
}
.call h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.call p { color: rgba(233, 231, 223, .82); font-size: var(--s1); }
.call .actions { justify-content: flex-start; margin-top: .5rem; }

/* ---------- forms ---------- */

.formwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .formwrap { grid-template-columns: 19rem minmax(0, 1fr); }
}

.formwrap aside h2 { font-size: var(--s2); margin-bottom: .8rem; }
.formwrap aside p { color: var(--ash); font-size: var(--s-1); line-height: 1.65; }

.form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.field { margin-bottom: 1.4rem; }

.field > label,
.fieldset > legend {
  display: block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .45rem;
  padding: 0;
}

.field .hint {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  color: var(--ash);
  margin-bottom: .45rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: var(--s0);
  color: var(--pine);
  background: #fff;
  border: 1px solid #C4C9C3;
  border-radius: 2px;
  padding: .65rem .75rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--moss); }

.fieldset {
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0;
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .5rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid #C4C9C3;
  border-radius: 2px;
  padding: .65rem .8rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .9rem;
  background: #fff;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.choice:hover { border-color: var(--moss); }
.choice input { accent-color: var(--moss); margin: 0; }
.choice:has(input:checked) {
  border-color: var(--moss);
  background: #EEF3F0;
  font-weight: 600;
}

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: var(--s-1);
  line-height: 1.5;
  color: var(--ash);
  margin-bottom: 1.4rem;
}
.consent input { accent-color: var(--moss); margin-top: .25rem; flex: none; }

.form .btn--solid {
  background: var(--pine);
  color: var(--limestone);
}
.form .btn--solid:hover { background: var(--moss); }
.form .btn[disabled] { opacity: .55; cursor: progress; }

.status {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  padding: .75rem .9rem;
  border-left: 3px solid var(--ash);
  background: #F1F3F0;
}
.status[data-state="ok"]   { border-left-color: var(--moss); background: #EAF2ED; color: #1E4536; }
.status[data-state="bad"]  { border-left-color: #9B3A2A; background: #F8EDEA; color: #7A2C1F; }
.status:empty { display: none; }

.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */

.foot {
  background: var(--pine-deep);
  color: rgba(233, 231, 223, .75);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: var(--s-1);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
  align-items: flex-end;
}
.foot a { color: var(--brass-lit); }
.foot strong {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--limestone);
  margin-bottom: .4rem;
}
