/* ---------- Design tokens (palette inspired by MG logo: muted sage/forest green + warm cream + terracotta accent) ---------- */
:root {
  --paper: #ffffff;
  --paper-2: #faf6ef;
  --paper-3: #efe6d2;
  --ink: #1a1a1a;
  --ink-soft: #2b2f36;
  --ink-muted: #4f5a52;
  --rule: #d4d8d3;

  --green: #2d6a4f;
  --green-deep: #1b4332;
  --green-soft: #6a8f76;
  --leaf: #d8e8dc;

  --accent: #c8704d;
  --accent-deep: #9c5638;

  --font-display: "EB Garamond", "Garamond", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", "Garamond", Georgia, "Times New Roman", serif;

  --fs-base: 19px;
  --fs-body: 1.1rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.55rem;
  --fs-h2: 2.1rem;
  --fs-h1-min: 2.3rem;
  --fs-h1-max: 4rem;

  --container: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(45,106,79,0.06), transparent 55%),
    radial-gradient(ellipse at 100% 10%, rgba(200,112,77,0.05), transparent 55%);
  background-attachment: fixed;
  padding-bottom: 6.5rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--green-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--green);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo {
  width: 320px;
  height: auto;
  max-width: 100%;
  display: block;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.top-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.top-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.top-nav a:hover { background: var(--leaf); color: var(--green-deep); }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; position: relative; overflow: hidden; }
.hero-eyebrow {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(var(--fs-h1-min), 5.5vw, var(--fs-h1-max));
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--green); }
.hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,0.15); }

.btn-primary { background: var(--green); color: #fff; border-color: var(--green-deep); }
.btn-primary:hover { background: var(--green-deep); color: #fff; }

.btn-secondary { background: var(--accent); color: #1a1200; border-color: var(--accent-deep); }
.btn-secondary:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost {
  background: #fff; color: var(--green-deep);
  border-color: var(--green); box-shadow: none;
}
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn svg { flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: 3.25rem 0; scroll-margin-top: 1rem; }
.section-kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
.section-intro {
  font-size: var(--fs-lead);
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0 0 2.25rem;
}
.rule {
  border: 0;
  border-top: 2px solid var(--green);
  max-width: 60px;
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

/* ---------- Key date band ---------- */
.keydates {
  background: var(--green-deep);
  color: #fff;
  padding: 2.25rem 0;
  position: relative;
}
.keydates::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--accent);
}
.keydates .container {
  display: flex;
  justify-content: center;
  text-align: center;
}
.keydate h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.keydate p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0;
  color: #fff;
}

/* ---------- Instruction card ---------- */
.how-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.how-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.how-card .how-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.how-card ol {
  padding-left: 0;
  margin: 0 0 1.5rem;
  list-style: none;
  counter-reset: step;
}
.how-card ol li {
  counter-increment: step;
  position: relative;
  padding: 0.25rem 0 0.9rem 2.85rem;
  font-size: 1.08rem;
  line-height: 1.55;
}
.how-card ol li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.1rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- About ---------- */
.about { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about-address {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-deep);
  margin: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #e6ede8;
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}
footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
footer .brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}
footer .brand-wordmark .leaf { color: var(--green-soft); }
footer .brand-sub { color: #a9b6ad; display: block; margin-top: 6px; font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em; }
footer p { margin: 0; font-size: 1rem; color: #c9d4cd; }
footer a { color: var(--accent); }
footer .brand { margin-bottom: 0.25rem; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-actions {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--green-deep);
  border-top: 3px solid var(--accent);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  display: none;
  gap: 0.5rem;
  z-index: 50;
  box-shadow: 0 -6px 20px -10px rgba(0,0,0,0.4);
}
.mobile-actions .btn {
  flex: 1;
  min-height: 52px;
  font-size: 1.02rem;
  padding: 0.75rem 0.5rem;
  box-shadow: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root { --fs-body: 1.05rem; --fs-lead: 1.15rem; --fs-h2: 1.75rem; --fs-h3: 1.4rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-actions .btn { width: 100%; }
  .top-nav { display: none; }
  .mobile-actions { display: flex; }
  body { padding-bottom: 5.5rem; }
  .keydates { padding: 1.75rem 0; }
  .brand-logo { width: 240px; }
  .brand-sub { font-size: 0.85rem; }
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s var(--ease) forwards;
}
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
