:root {
  --ink: #17231f;
  --ink-soft: #5d6962;
  --paper: #f5f3ed;
  --card: #fffefa;
  --line: #d7ddd5;
  --green: #174b3d;
  --green-dark: #0d362a;
  --green-soft: #e5efe8;
  --coral: #df654c;
  --shadow: 0 18px 48px rgba(29, 44, 35, 0.08);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

button,
code,
pre { font-family: var(--mono); }

button { cursor: pointer; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(223, 101, 76, 0.34);
  outline-offset: 3px;
}

code { color: var(--green-dark); font-size: 0.9em; }

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.42;
}

.ambient-one {
  top: -20rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(213, 230, 215, 0.95), rgba(213, 230, 215, 0) 70%);
}

.ambient-two {
  top: 70rem;
  left: -20rem;
  background: radial-gradient(circle, rgba(247, 216, 193, 0.7), rgba(247, 216, 193, 0) 70%);
}

.site-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hero { padding: 86px 0 82px; }

h1,
h2,
h3 { margin: 0; font-family: var(--display); letter-spacing: -0.055em; }

h1 {
  max-width: 900px;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 600;
  line-height: 0.98;
}

h1 code { color: var(--coral); font-size: 0.84em; }

.nowrap { white-space: nowrap; }

.hero-subheading {
  margin-top: 26px;
  color: var(--green);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.hero-copy code { color: var(--coral); }

.comparison-section {
  padding: 38px 0 70px;
  border-top: 1px solid var(--line);
}

.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1; }

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.map-card-canada { border-color: #bdd3c5; }

.map-card-header {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px 20px;
}

.map-card-header h3 { line-height: 1; }
.map-card-header code { color: var(--coral); font-size: clamp(19px, 2.4vw, 27px); font-weight: 500; }

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.62;
  min-height: 275px;
  overflow: hidden;
  background: #d8ece7;
}

.map-frame iframe,
.map-frame > .leaflet-container {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-frame .leaflet-control-attribution { font-size: 9px; }
.map-frame .leaflet-control-zoom a { color: var(--green-dark); }

.map-placeholder {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 7px;
  padding: 20px;
  color: var(--green);
  text-align: center;
  background: linear-gradient(145deg, #dcefe9, #c8e2df);
}

.map-placeholder strong { font-family: var(--display); font-size: 17px; }
.map-placeholder span:last-child { color: #54726b; font-size: 11px; }
.placeholder-crosshair { margin-bottom: 4px; color: var(--coral); font-family: var(--display); font-size: 29px; line-height: 1; }

.embed-section {
  display: grid;
  grid-template-columns: minmax(200px, 0.55fr) minmax(0, 1.45fr);
  gap: 42px;
  align-items: start;
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.embed-section h2 { font-size: clamp(38px, 5vw, 58px); line-height: 0.95; }

.recipe-card {
  overflow: hidden;
  border: 1px solid #c8d6cc;
  border-radius: 15px;
  background: #183e34;
  box-shadow: var(--shadow);
}

.recipe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 70px;
  padding: 16px 20px;
  color: #f6eee2;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}

.recipe-header code { color: #f3b19b; font-size: 0.95em; }

.copy-code {
  padding: 9px 13px;
  border: 1px solid rgba(203, 224, 211, 0.5);
  border-radius: 6px;
  color: #f6eee2;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.copy-code:hover { border-color: #ee977b; color: #ee977b; }

.recipe-card pre {
  overflow: auto;
  margin: 0;
  padding: 22px 20px 25px;
  color: #e4f2e8;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.recipe-card pre code { color: #e4f2e8; }

.guidance {
  max-width: 780px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.guidance code { color: var(--coral); }

.site-footer {
  min-height: 64px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  max-width: calc(100% - 48px);
  padding: 10px 14px;
  border-radius: 8px;
  color: #f8f4eb;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .embed-section { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 30px, 1200px); }
  .hero { padding: 55px 0 48px; }
  h1 { font-size: clamp(40px, 13vw, 62px); }
  .hero-copy { font-size: 17px; }
  .comparison-section { padding-top: 30px; }
  .map-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 230px; }
  .embed-section { padding: 48px 0; }
  .guidance { font-size: 16px; }
}
