:root {
  /* sampled from the logo: forest green ground, gold, olive, cream */
  --ink: #0a2b1d;
  --ink-deep: #041a11;
  --ink-lift: #12432c;
  --cream: #f6f2e6;
  --cream-dim: rgba(246, 242, 230, 0.66);
  --accent: #d6af4d;
  --olive: #7a9a2e;
  --rule: rgba(214, 175, 77, 0.3);
  --measure: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  background: var(--ink);
  background-image:
    radial-gradient(120% 90% at 50% 118%, var(--ink-deep) 0%, transparent 62%),
    radial-gradient(90% 70% at 50% -20%, var(--ink-lift) 0%, transparent 70%);
  color: var(--cream);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2rem);
  text-align: center;
  animation: rise 900ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1.1rem, 4vw, 2.25rem);
  background: rgba(4, 26, 17, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(214, 175, 77, 0.16);
}

/* brand: logo + wordmark, always on the left */

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(214, 175, 77, 0.4);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
  white-space: nowrap;
  transition: color 180ms ease;
}

.brand-text em {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand:hover .brand-text { color: #fff; }

/* everything else sits on the right */

.topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.75rem);
}

.topbar-nav {
  display: flex;
  gap: clamp(1.1rem, 2.8vw, 1.9rem);
  font-size: 1.12rem;
}

.topbar-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.topbar-nav a:hover { color: var(--cream); }

.topbar-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* on wide screens the nav and the social icons sit inline in the bar;
   .topbar-menu is only a wrapper for the burger panel below */
.topbar-menu { display: contents; }

/* ---------- burger menu (small screens only) ---------- */

.navtoggle {
  display: none;
  position: relative;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(214, 175, 77, 0.28);
  border-radius: 9px;
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
}

.navtoggle:hover {
  color: var(--cream);
  border-color: rgba(214, 175, 77, 0.5);
}

.navtoggle-icon,
.navtoggle-icon::before,
.navtoggle-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 120ms ease, background-color 120ms ease;
}

.navtoggle-icon { position: relative; }

.navtoggle-icon::before,
.navtoggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.navtoggle-icon::before { top: -0.36rem; }
.navtoggle-icon::after { top: 0.36rem; }

/* open: the three bars fold into a cross */
.topbar.menu-open .navtoggle-icon { background: transparent; }
.topbar.menu-open .navtoggle-icon::before { top: 0; transform: rotate(45deg); }
.topbar.menu-open .navtoggle-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 34rem) {
  /* brand stays left, language switch and burger sit on the right */
  .topbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .topbar-right { flex: none; gap: 0.6rem; }
  .brand-text { font-size: 1.1rem; }

  .navtoggle { display: inline-flex; }

  /* the panel drops out of the bar, full width, closed by default */
  .topbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem clamp(1.1rem, 4vw, 2.25rem) 1rem;
    /* opaque, not translucent: the panel sits over body copy and has to
       stay legible */
    background: var(--ink-deep);
    border-bottom: 1px solid rgba(214, 175, 77, 0.16);
    box-shadow: 0 14px 28px rgba(2, 12, 8, 0.45);
  }

  .topbar.menu-open .topbar-menu { display: block; }

  .topbar-menu .topbar-nav {
    flex-direction: column;
    gap: 0;
    font-size: 1.08rem;
  }

  .topbar-menu .topbar-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(214, 175, 77, 0.12);
  }

  /* the social icons are hidden in the bar at this width — the panel
     is where they belong instead */
  .topbar-menu .social--bar {
    display: flex;
    justify-content: flex-start;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- language switch ---------- */

.lang {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  color: var(--cream-dim);
}

.lang button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem 0.15rem;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.lang button:hover { color: var(--cream); }

.lang button[aria-pressed="true"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1px;
}

/* on small screens the switch shares the bar with the burger, so it
   steps down about 2px from the 0.98rem above */
@media (max-width: 34rem) {
  .lang {
    gap: 0.35rem;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
  }
}

.lang button:focus-visible,
.topbar-nav a:focus-visible,
.brand:focus-visible,
.guide a:focus-visible,
footer a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- logo ---------- */

.logo {
  width: clamp(13rem, 46vw, 19rem);
  margin: 0 auto clamp(1.25rem, 4vw, 2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(214, 175, 77, 0.35), 0 18px 44px rgba(0, 0, 0, 0.45);
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

/* ---------- tricolour ---------- */

.tricolore {
  display: block;
  width: 5.5rem;
  height: 2px;
  margin: clamp(1.5rem, 5vw, 2.25rem) auto 0;
  background: linear-gradient(90deg, #009246 0 33.33%, #f6f2e6 33.33% 66.66%, #ce2b37 66.66% 100%);
  border-radius: 2px;
  opacity: 0.9;
}

/* ---------- wordmark ---------- */

.mark h1 {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.mark h1 .amp {
  font-style: italic;
  color: var(--accent);
}

.tagline {
  margin: 1.1rem auto 0;
  max-width: 28rem;
  font-size: clamp(0.9rem, 2.6vw, 1.02rem);
  color: var(--cream-dim);
}

/* ---------- horizon rule ---------- */

.horizon {
  height: 1px;
  margin: clamp(2rem, 7vw, 3.25rem) 0;
  background: linear-gradient(90deg, transparent, var(--rule) 12%, var(--rule) 88%, transparent);
  box-shadow: 0 0 12px rgba(214, 175, 77, 0.16);
  transform-origin: center;
  animation: draw 1200ms 200ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

/* ---------- body copy ---------- */

.body p {
  margin: 0;
  font-size: clamp(0.95rem, 2.7vw, 1.06rem);
  color: rgba(246, 242, 230, 0.86);
  text-wrap: pretty;
}

.soon {
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

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

footer {
  margin-top: clamp(2.5rem, 8vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--cream-dim);
}

footer a {
  color: var(--cream-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}

footer a:hover {
  color: var(--cream);
  border-color: var(--accent);
}

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw {
  from { opacity: 0; transform: scaleX(0.4); }
  to   { opacity: 1; transform: none; }
}

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



/* ---------- utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ================= guide page ================= */

body.page {
  display: block;
  min-height: 100svh;
}

.guide {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 8vw, 5rem);
  text-align: left;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.guide h1 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.guide .lede {
  margin: 0 0 clamp(2rem, 6vw, 3rem);
  font-size: clamp(1rem, 2.9vw, 1.15rem);
  color: var(--cream-dim);
  text-wrap: pretty;
}

.guide .lede strong { color: var(--cream); font-weight: 500; }

.guide section { margin: 0 0 clamp(2.5rem, 7vw, 3.75rem); }

.guide h2 {
  margin: 0 0 0.9rem;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 4.2vw, 1.7rem);
  line-height: 1.2;
  color: var(--cream);
}

.guide h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}

.guide h3.sub {
  margin: clamp(1.75rem, 5vw, 2.25rem) 0 1rem;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: 1.15rem;
}

.guide p { margin: 0 0 0.85rem; text-wrap: pretty; }
.guide p:last-child { margin-bottom: 0; }
.guide strong { color: var(--cream); font-weight: 600; }

.guide a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(214, 175, 77, 0.45);
}

.guide a:hover { text-decoration-color: var(--accent); }

/* ---------- icons ---------- */

.ico {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico .tick { stroke: var(--olive); }

/* ---------- the two dates ---------- */

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

.date-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(214, 175, 77, 0.22);
  border-radius: 10px;
  background: rgba(18, 67, 44, 0.4);
}

.date-card.urgent {
  border-color: rgba(206, 43, 55, 0.5);
  background: rgba(206, 43, 55, 0.08);
}

.date-card .ico { margin-bottom: 0.6rem; }
.date-card.urgent .ico { stroke: #e6707a; }

.date-card .date {
  margin: 0 0 0.4rem;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--cream);
}

.date-card p:not(.date) {
  font-size: 0.92rem;
  color: var(--cream-dim);
}

/* ---------- checklist ---------- */

.checks {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
  text-wrap: pretty;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  transform: rotate(-45deg);
}

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

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.steps li > div { flex: 1; min-width: 0; }

.steps p {
  font-size: 0.95rem;
  color: var(--cream-dim);
}

/* ---------- button ---------- */

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(214, 175, 77, 0.5);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  background: rgba(214, 175, 77, 0.12);
  border-color: var(--accent);
}

/* ---------- ways to send ---------- */

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

.way {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(244, 237, 226, 0.12);
  border-radius: 10px;
  background: rgba(18, 67, 44, 0.28);
}

.way-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--cream);
}

.tag {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(122, 154, 46, 0.22);
  color: #b6d16a;
}

.way .addr {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cream-dim);
}

.way .small,
.guide .small {
  font-size: 0.84rem;
  color: rgba(246, 242, 230, 0.5);
}

/* ---------- note ---------- */

.note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(214, 175, 77, 0.07);
  font-size: 0.92rem;
  color: var(--cream-dim);
  text-wrap: pretty;
}

.note.official {
  border-left-color: rgba(244, 237, 226, 0.3);
  background: rgba(246, 242, 230, 0.05);
  font-size: 0.86rem;
}

.guide .tricolore { margin-top: clamp(2rem, 6vw, 3rem); }

.guide footer { margin-top: 1.5rem; }

/* ---------- home CTA ---------- */

.cta {
  margin: clamp(1.75rem, 5vw, 2.5rem) 0 0;
  font-size: 0.95rem;
}

.cta a {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(214, 175, 77, 0.5);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.cta a:hover {
  background: rgba(214, 175, 77, 0.12);
  border-color: var(--accent);
}

/* ================= site footer ================= */

.sitefoot {
  display: block;
  width: 100%;
  padding: 1.5rem clamp(1.25rem, 5vw, 2rem) 1.75rem;
  border-top: 1px solid rgba(214, 175, 77, 0.16);
  background: rgba(4, 26, 17, 0.5);
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(246, 242, 230, 0.5);
  text-wrap: pretty;
}

.sitefoot p { margin: 0; }

.heart {
  width: 0.9322em;
  height: 0.9322em;
  vertical-align: -0.08em;
  fill: #ce2b37;
}

body.page .sitefoot { margin-top: clamp(2rem, 6vw, 3rem); }

.sitefoot a {
  color: var(--cream-dim);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(214, 175, 77, 0.4);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.sitefoot a:hover {
  color: var(--cream);
  text-decoration-color: var(--accent);
}

.sitefoot a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ================= social links ================= */

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

/* 44x44 hit target around a ~22px glyph */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--cream-dim);
  border: 0;
  border-bottom: 0;
  text-decoration: none;
  transition: color 180ms ease;
}

.social svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.social a:hover { color: var(--accent); }

.social a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

/* in the site footer: its own centred row above the credit lines */
.sitefoot .social {
  margin: -0.35rem 0 0.55rem;
}

/* on the home page: its own line inside the contact cluster */
.social--contact {
  flex: 1 0 100%;
  margin-top: 0.15rem;
}

@media (min-width: 60rem) {
  .guide { font-size: 1.06rem; }
  .guide h1 { font-size: clamp(2.6rem, 4.4vw, 3.6rem); }
  .guide h2 { font-size: 1.85rem; }
  .guide .lede { font-size: 1.24rem; }
  .guide p { max-width: 46rem; }
  .guide .checks li { max-width: 46rem; }
}

/* ---------- social icons in the top bar ---------- */

.social--bar {
  gap: 0.1rem;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(214, 175, 77, 0.22);
}

.social--bar a {
  width: 2.4rem;
  height: 2.4rem;
}

.social--bar svg { width: 1.2rem; height: 1.2rem; }

@media (max-width: 46rem) {
  .social--bar { display: none; }
}

/* ================= home hero background ================= */

/* Florence dissolving into New York, behind a heavy green wash so
   the cream text keeps its contrast. Alphas are the approved wash
   plus 5 points. */
body.home {
  background-image:
    linear-gradient(
      to bottom,
      rgba(4, 26, 17, 0.91) 0%,
      rgba(10, 43, 29, 0.85) 38%,
      rgba(4, 26, 17, 0.96) 100%
    ),
    url("/hero-sm.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 42%;
  background-attachment: scroll;
}

@media (min-width: 56rem) {
  body.home {
    background-image:
      linear-gradient(
        to bottom,
        rgba(4, 26, 17, 0.91) 0%,
        rgba(10, 43, 29, 0.83) 38%,
        rgba(4, 26, 17, 0.96) 100%
      ),
      url("/hero.jpg");
  }
}

/* keep the bar and footer legible over the photograph */
body.home .topbar { background: rgba(4, 26, 17, 0.9); }
body.home .sitefoot { background: rgba(4, 26, 17, 0.86); }

/* a soft dark pool directly behind the centred column */
body.home main {
  position: relative;
  isolation: isolate;
}

body.home main::before {
  content: "";
  position: absolute;
  inset: -2rem -3rem;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 50%, rgba(4, 26, 17, 0.72) 0%, transparent 72%);
  pointer-events: none;
}
