/* ==========================================================================
   Malawi Hajj Operators — site stylesheet
   Designed and built by TM DigitalStudio
   --------------------------------------------------------------------------
   1. Fonts          5. Header & nav      9. Partners
   2. Tokens         6. Hero              10. Contact & form
   3. Base           7. Sections          11. Footer
   4. Utilities      8. Principles        12. Motion & print
   ========================================================================== */

/* 1. Fonts — self-hosted, subset to Latin (and five Arabic words for Amiri) */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-italic-var.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Amiri Subset"; src: url("../fonts/amiri-subset.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* 2. Tokens */
:root {
  /* colour — derived from the letterhead and poster */
  --green-900: #0b3326;   /* footer, deepest */
  --green-800: #0d3a2a;   /* primary brand green */
  --green-700: #17523d;
  --green-600: #1f6a4f;
  --ivory:     #f8f4ea;
  --ivory-2:   #efe8d7;
  --paper:     #fffdf8;
  --gold:      #b08a3e;   /* rules, ornaments, large type on green */
  --gold-lt:   #d6b872;   /* text on green */
  --gold-ink:  #7a5c22;   /* gold text on ivory (AA) */
  --slate:     #1e2a36;   /* body text */
  --slate-2:   #4b5663;   /* secondary text (AA on ivory) */
  --line:      #d9cfb8;   /* hairlines on ivory */
  --mw-black:  #000000;
  --mw-red:    #ce1126;
  --mw-green:  #339e35;
  --error:     #a3261c;
  --ok:        #17523d;

  /* type */
  --serif: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --arabic: "Amiri Subset", "Amiri", "Traditional Arabic", "Noto Naskh Arabic", "Geeza Pro", serif;

  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.9vw, 3.9rem);

  /* space & layout */
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 2.5rem);
  --section: clamp(4rem, 2.8rem + 5vw, 7rem);
  --radius: 2px;

  /* arch shape, used as a mask on photographs */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 135' preserveAspectRatio='none'%3E%3Cpath d='M0 135V50C0 22 28 7 50 0c22 7 50 22 50 50v85z'/%3E%3C/svg%3E");
  /* eight-pointed star lattice (khatam), gold hairline */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23d6b872' stroke-width='1'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h15M49 32h15M32 0v15M32 49v15'/%3E%3C/g%3E%3C/svg%3E");
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--slate);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--green-800); margin: 0 0 0.6em; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green-800); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
main:focus { outline: none; }
::selection { background: var(--gold-lt); color: var(--green-900); }

/* 4. Utilities */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--slate-2); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--green-800); color: var(--ivory); padding: 0.75rem 1.1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; color: var(--ivory); }
.prose { max-width: 38rem; }
.prose p { font-size: var(--fs-lead); line-height: 1.7; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: 600 0.98rem/1.2 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--green { background: var(--green-800); color: var(--ivory); }
.btn--green:hover { background: var(--green-700); color: #fff; }
.btn--gold { background: var(--gold-lt); color: var(--green-900); }
.btn--gold:hover { background: #e3c98c; color: var(--green-900); }
.btn--line { border-color: rgba(214,184,114,.7); color: var(--ivory); background: transparent; }
.btn--line:hover { border-color: var(--gold-lt); background: rgba(214,184,114,.12); color: #fff; }
.btn--quiet { border-color: var(--line); color: var(--green-800); background: transparent; }
.btn--quiet:hover { border-color: var(--green-700); color: var(--green-800); }

/* the arch */
.arch { position: relative; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; overflow: hidden; background: var(--green-700); }
.arch picture { width: 100%; height: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* 5. Header & navigation */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--green-800); min-width: 0; }
.brand:hover { color: var(--green-800); }
.brand__emblem { width: 4.4rem; height: auto; flex: none; }
.brand__name { font-family: var(--serif); font-size: clamp(1rem, 0.9rem + 0.45vw, 1.22rem); line-height: 1.15; max-width: 13.5em; }

.navtoggle { display: none; }
.sitenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.6rem; }
.sitenav a:not(.btn) { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.5rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.sitenav a:not(.btn):hover { color: var(--green-800); border-bottom-color: var(--line); }
.sitenav a[aria-current="page"]:not(.btn) { color: var(--green-800); border-bottom-color: var(--gold); }
.sitenav .btn { min-height: 2.75rem; padding: 0.6rem 1.15rem; }
.sitenav .btn[aria-current="page"] { background: var(--green-700); }

@media (max-width: 899px) {
  .js .navtoggle {
    display: inline-flex; align-items: center; gap: 0.6rem; flex: none;
    min-height: 2.9rem; padding: 0.5rem 0.9rem; background: transparent;
    border: 1px solid var(--line); border-radius: var(--radius); color: var(--green-800);
    font: 600 0.95rem var(--sans); cursor: pointer;
  }
  .navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 1.15rem; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .navtoggle__bars { position: relative; }
  .navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
  .navtoggle__bars::before { top: -6px; }
  .navtoggle__bars::after { top: 6px; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .masthead__inner { flex-wrap: wrap; }
  .sitenav { flex-basis: 100%; }
  .sitenav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1rem; }
  .sitenav li { border-top: 1px solid var(--line); }
  .sitenav a:not(.btn) { display: block; padding: 0.9rem 0.25rem; border-bottom: 0; font-size: 1.05rem; }
  .sitenav a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--gold); padding-left: 0.85rem; }
  .sitenav__cta { padding-top: 1rem; border-top: 1px solid var(--line); }
  .sitenav .btn { width: 100%; min-height: 3rem; }
  .js .sitenav { display: none; }
  .js .sitenav.is-open { display: block; }
}
@media (max-width: 420px) {
  .brand__emblem { width: 3.5rem; }
  .brand__name { font-size: 0.95rem; max-width: 10.5em; }
  .navtoggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .js .navtoggle { padding: 0.5rem 0.8rem; min-width: 2.9rem; justify-content: center; }
}

/* 6. Hero */
.hero {
  position: relative; color: var(--ivory); background-color: var(--green-800);
  background-image: linear-gradient(90deg, rgba(13,58,42,1) 0%, rgba(13,58,42,.95) 50%, rgba(13,58,42,.9) 100%), var(--lattice);
  background-size: auto, 64px 64px;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--gold) 0, var(--gold-lt) 50%, var(--gold) 100%); opacity: .85; }
.hero__inner { display: grid; gap: 3rem; align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 6rem); }
.hero__season { font-family: var(--serif); color: var(--gold-lt); font-size: 1.1rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.85rem; }
.hero__season::before { content: ""; width: 2.25rem; height: 1px; background: var(--gold); }
.hero__title { color: var(--ivory); margin-bottom: 1.4rem; font-size: clamp(2.3rem, 1.5rem + 3vw, 3.55rem); }
@media (min-width: 1100px) { .hero__title span { white-space: nowrap; } }
.hero__lead { font-size: var(--fs-lead); line-height: 1.7; color: #e9e3d3; max-width: 36rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__figure { margin: 0; position: relative; width: min(100%, 25rem); justify-self: center; aspect-ratio: 100 / 135; }
.hero__figure .arch { position: absolute; inset: 0; }
.arch-line { position: absolute; max-width: none; top: -0.9rem; left: -0.9rem; width: calc(100% + 1.8rem); height: calc(100% + 0.9rem); pointer-events: none; }
.arch-line path { fill: none; stroke: var(--gold); stroke-width: 1.25px; vector-effect: non-scaling-stroke; }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 4.5rem; }
  .hero__figure { width: 100%; max-width: 26rem; justify-self: end; }
}
@media (max-width: 959px) {
  .hero__figure { width: min(78%, 22rem); }
}

/* 7. Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--ivory-2); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__sub { color: var(--slate-2); font-size: var(--fs-lead); margin: 0; }

.split { display: grid; gap: 1.5rem 4rem; }
.split__head h2 { max-width: 14em; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split__head { position: relative; padding-top: 0.25rem; }
  .split__head::after { content: ""; display: block; width: 4.5rem; height: 1px; background: var(--gold); margin-top: 1.75rem; }
}

/* diamond-marked lists */
.aims { list-style: none; padding: 0; margin: 1.75rem 0 0; border-top: 1px solid var(--line); }
.aims li { position: relative; padding: 0.85rem 0 0.85rem 1.75rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.aims li::before { content: ""; position: absolute; left: 0.2rem; top: 1.38rem; width: 0.5rem; height: 0.5rem; background: var(--gold); transform: rotate(45deg); }

/* photo band */
.band { position: relative; isolation: isolate; color: var(--ivory); min-height: 26rem; display: flex; align-items: center; }
.band__img, .band__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__img img { object-fit: cover; object-position: 50% 55%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,51,38,.95) 0%, rgba(11,51,38,.86) 45%, rgba(11,51,38,.35) 100%); }
.band__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.band__inner > * { max-width: 34rem; }
.band__title { color: var(--ivory); }
.band p { color: #e6dfcd; font-size: var(--fs-lead); margin-bottom: 1.75rem; }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
@media (max-width: 700px) { .band::before { background: rgba(11,51,38,.88); } }

/* page heads (inner pages) */
.pagehead { background-color: var(--green-800); background-image: linear-gradient(rgba(13,58,42,.93), rgba(13,58,42,.93)), var(--lattice); background-size: auto, 64px 64px; color: var(--ivory); position: relative; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); opacity: .8; }
.pagehead__inner { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.pagehead h1 { color: var(--ivory); margin-bottom: 0.9rem; }
.pagehead__season { font-family: var(--serif); color: var(--gold-lt); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.85rem; }
.pagehead__season::before { content: ""; width: 2rem; height: 1px; background: var(--gold); }
.pagehead__lead { font-size: var(--fs-lead); color: #e6dfcd; max-width: 38rem; margin: 0; }

/* about */
.about { display: grid; gap: 3rem; align-items: center; }
.about__figure { margin: 0; justify-self: center; width: min(100%, 22rem); }
.arch--soft { aspect-ratio: 100 / 135; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 5rem; } .about__figure { justify-self: end; } }

.note { max-width: 48rem; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
.note__title { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.note p { font-size: var(--fs-lead); }
.note__aside { color: var(--slate-2); font-size: 1rem !important; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.kiswa { height: clamp(12rem, 8rem + 16vw, 24rem); overflow: hidden; background: var(--green-900); }
.kiswa picture, .kiswa img { width: 100%; height: 100%; }
.kiswa img { object-fit: cover; object-position: 75% 35%; }

.next { text-align: center; max-width: 42rem; }
.next p { color: var(--slate-2); font-size: var(--fs-lead); }
.next__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 1.5rem; }

/* 8. Principles */
.principles { background: var(--paper); border-block: 1px solid var(--line); }
.principles__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.75rem 0.75rem; position: relative; }
.principle__ar { font-family: var(--arabic); font-size: clamp(2.1rem, 1.7rem + 1.5vw, 2.9rem); line-height: 1.5; color: var(--gold-ink); margin-bottom: 0.35rem; }
.principle__term { font-family: var(--serif); font-size: 1.55rem; color: var(--green-800); line-height: 1.2; }
.principle__meaning { color: var(--slate-2); font-size: 0.98rem; margin-top: 0.3rem; }
@media (max-width: 739px) {
  .principle { border-top: 1px solid var(--line); }
  .principle:nth-child(odd) { border-right: 1px solid var(--line); }
  .principle:last-child { grid-column: 1 / -1; border-right: 0; }
}
@media (min-width: 740px) {
  .principles__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .principle { padding: 1rem 0.75rem 0.5rem; }
  .principle + .principle::before {
    content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--line);
  }
  .principle + .principle::after {
    content: ""; position: absolute; left: -5px; top: calc(50% - 5px); width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--gold); transform: rotate(45deg);
  }
}

/* 9. Partners */
.orgs { background: var(--ivory-2); }
.orgs__grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .orgs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.org { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green-800); padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; }
.org__logo { height: 4rem; width: auto; object-fit: contain; margin-bottom: 1.25rem; }
.org__name { font-size: 1.45rem; margin-bottom: 0.4rem; }
.org__role { color: var(--gold-ink); font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }
.org__text { margin: 0; color: var(--slate); }
.org__text--pending, .profile__text--pending { color: var(--slate-2); font-style: italic; }
.orgs__more { margin: 2.5rem 0 0; text-align: center; }

.profiles { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.profile { background: var(--paper); border: 1px solid var(--line); padding: 0 1.75rem 2rem; display: flex; flex-direction: column; }
.profile__mark { margin: 0 -1.75rem 1.75rem; min-height: 9rem; display: grid; place-items: center; padding: 1.5rem; background: var(--green-800); background-image: linear-gradient(rgba(13,58,42,.9), rgba(13,58,42,.9)), var(--lattice); background-size: auto, 64px 64px; border-bottom: 3px solid var(--gold); }
.profile__mark img { max-height: 6rem; width: auto; background: var(--paper); padding: 0.75rem; }
.profile__wordmark { font-family: var(--serif); color: var(--ivory); font-size: 1.5rem; line-height: 1.3; text-align: center; max-width: 13em; margin: 0; }
.profile__name { font-size: 1.5rem; }
.profile__text { margin-bottom: 1.5rem; }
.profile__sub { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--slate); margin: auto 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.profile .profile__text--pending:last-child { margin: 0; }
.profiles__note { max-width: 44rem; margin: 2.5rem auto 0; text-align: center; color: var(--slate-2); }

/* contact lists */
.clist { list-style: none; margin: 0; padding: 0; }
.clist li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.clist li:first-child { border-top: 1px solid var(--line); }
.clist__k { color: var(--slate-2); font-size: 0.92rem; }
.clist a { overflow-wrap: anywhere; font-weight: 500; }
.clist--lg a { font-size: 1.1rem; }
@media (max-width: 479px) { .clist li { grid-template-columns: 1fr; gap: 0.1rem; } .clist__k { font-size: 0.85rem; } }

/* 10. Contact & form */
.contact { display: grid; gap: 3.5rem; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 5rem; align-items: start; } }
.contact h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.contact__h2 { margin-top: 2.75rem; }
.contact__note { color: var(--slate-2); margin-top: 1.5rem; font-size: 0.98rem; }
.contact__figure { margin: 2.5rem 0 0; width: min(100%, 17rem); }
@media (max-width: 959px) { .contact__figure { display: none; } }
.orgcontacts { display: grid; gap: 1.5rem; }
.orgcontacts h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.contact__form { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green-800); padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); scroll-margin-top: 1.5rem; }
.form__row { display: grid; gap: 0 1.25rem; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; align-items: end; } }
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 0.4rem; color: var(--slate); }
.field__opt { font-weight: 400; color: var(--slate-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--slate);
  background: #fff; border: 1px solid #b9ae95; border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 3rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 9.5rem; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--green-800) 50%), linear-gradient(135deg, var(--green-800) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(176,138,62,.45); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__hint { font-size: 0.9rem; color: var(--slate-2); margin: 0.45rem 0 0; }
.field__err { color: var(--error); font-size: 0.92rem; font-weight: 600; margin: 0.4rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 0.92rem; color: var(--slate-2); padding: 1rem 0 0; margin: 0.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.btn--submit { min-width: 12rem; }
.btn--submit[disabled] { opacity: .75; cursor: progress; }
.btn--submit.is-loading .btn__label::before { content: ""; display: inline-block; width: 1rem; height: 1rem; margin-right: 0.6rem; vertical-align: -0.15rem; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { padding: 1rem 1.15rem; margin-bottom: 1.5rem; border-left: 4px solid; font-weight: 500; }
.form__status:focus { outline: none; }
.form__status--ok { background: #e6f0ea; border-color: var(--ok); color: #123f2f; }
.form__status--err { background: #f8e9e6; border-color: var(--error); color: #6e1a12; }
.form__status p { margin: 0; }
.form__status p + p { margin-top: 0.4rem; font-weight: 400; }

/* 404 */
.notfound__inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 860px) { .notfound__inner { grid-template-columns: 1.3fr 0.7fr; } }
.notfound__figure { margin: 0; width: min(100%, 18rem); justify-self: center; }
.notfound__links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; }
.notfound__links a { font-size: 1.1rem; font-weight: 500; }

/* 11. Footer */
.footer { background: var(--green-900); color: #d9d3c2; font-size: 0.98rem; }
.footer__flag { display: flex; height: 4px; }
.footer__flag span { flex: 1; }
.footer__flag span:nth-child(1) { background: var(--mw-black); }
.footer__flag span:nth-child(2) { background: var(--mw-red); }
.footer__flag span:nth-child(3) { background: var(--mw-green); }
.footer__inner { display: grid; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 3.5rem; } }
.footer__about { display: flex; gap: 1.25rem; align-items: flex-start; }
.footer__mw { width: 2.6rem; flex: none; opacity: .9; }
.footer__name { font-family: var(--serif); font-size: 1.35rem; color: var(--ivory); line-height: 1.25; margin-bottom: 0.25rem; }
.footer__season { color: var(--gold-lt); margin-bottom: 1rem; }
.footer__disclaimer { font-size: 0.9rem; color: #b9b3a2; max-width: 30rem; margin: 0; }
.footer__h { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--gold-lt); margin-bottom: 0.9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer a { color: #eee8d8; text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.25rem 1.5rem; border-top: 1px solid rgba(214,184,114,.25); font-size: 0.9rem; color: #b9b3a2; }
.footer__base p { margin: 0; }
.credit a { color: var(--gold-lt); text-decoration: underline; text-decoration-color: rgba(214,184,114,.45); text-underline-offset: 0.2em; }
.credit a:hover { color: #f0dcab; text-decoration-color: currentColor; }

/* 12. Motion & print */
@media (prefers-reduced-motion: no-preference) {
  .hero__text, .hero__figure { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero__figure { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .masthead nav, .navtoggle, .hero__figure, .band__img, .contact__form, .footer__flag { display: none !important; }
  .hero, .pagehead, .footer, .band { background: none !important; color: #000 !important; }
  .hero__title, .pagehead h1, .band__title, .footer__name { color: #000 !important; }
}
