:root {
  --sky: #7cc6e8;
  --orange: #e87b3a;
  --cream: #f5e6cc;
  --sand: #fbf3e2;
  --green: #3f7a4a;
  --navy: #1e3a5f;
  --ink: #2d455a;
  --muted: #5b7186;
  --line: rgba(30, 58, 95, .12);
  --shadow: 0 8px 24px rgba(30, 58, 95, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--sand);
  line-height: 1.65;
}
a { color: var(--green); font-weight: 800; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand { font-family: Fredoka, Nunito, system-ui, sans-serif; letter-spacing: 0; }
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 226, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(30, 58, 95, .08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
body > nav .brand,
footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
}
body > nav a.brand { text-decoration: none; }
body > nav .brand-hex,
footer .brand-hex {
  width: 34px;
  height: 34px;
  background: var(--orange);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.nav-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); text-decoration: none; }
.hero {
  background: linear-gradient(180deg, var(--sky), #b8e4f2 62%, var(--sand));
  padding: 54px 20px 46px;
}
.wrap { max-width: 1120px; margin: 0 auto; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1 { margin-top: 16px; font-size: clamp(38px, 6vw, 62px); line-height: 1.04; }
.lead { margin-top: 16px; color: #344f66; font-size: clamp(17px, 2vw, 20px); max-width: 720px; }
.answer-box, .card, .toc, .source-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.answer-box { padding: 22px; }
.answer-box strong { display: block; font-family: Fredoka, Nunito, sans-serif; font-size: 22px; margin-bottom: 8px; }
.answer-box p, .card p, .source-box p, li { color: var(--ink); }
.hero-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-media figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.breadcrumb {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 0 20px;
  color: #4a6275;
  font-size: 14px;
  font-weight: 600;
}
.breadcrumb a,
.breadcrumb a:link,
.breadcrumb a:visited {
  color: #334e64;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb-separator {
  color: rgba(91, 113, 134, .58);
  margin: 0 8px;
}
.breadcrumb [aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  font-weight: 900;
  text-decoration: none;
}
.button-link.primary {
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(232,123,58,.24);
}
.button-link.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.author-box {
  display: grid;
  gap: 8px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.editor-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.editor-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}
.ui-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ui-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ui-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ui-preview p {
  padding: 12px 14px;
  font-weight: 800;
}
main { padding: 40px 20px 72px; }
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.article {
  display: grid;
  gap: 24px;
}
section.card { padding: 26px; }
.card h2 { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 21px; margin: 18px 0 8px; }
.toc { padding: 20px; position: sticky; top: 78px; }
.toc h2 { font-size: 18px; margin-bottom: 10px; }
.toc ul, .source-box ul { padding-left: 18px; }
.toc li { margin: 7px 0; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.screenshot-placeholder {
  margin-top: 12px;
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(30,58,95,.24);
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbfd, #fbf3e2);
  color: var(--muted);
  text-align: center;
  padding: 18px;
  font-weight: 900;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
}
.fact-grid, .related-grid, .filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fact, .related, .filter-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.fact b, .filter-card b { display: block; margin-bottom: 5px; }
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-family: Fredoka, Nunito, sans-serif; }
.map-shell {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
}
.map-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--navy);
  padding: 5px 9px;
  box-shadow: 0 8px 18px rgba(30,58,95,.2);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}
.map-hotspot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}
.map-hotspot.resource { border-color: var(--green); }
.map-hotspot.resource::before { background: var(--green); }
.map-hotspot.route { border-color: #4fa9d1; }
.map-hotspot.route::before { background: #4fa9d1; }
.map-hotspot:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px var(--orange);
}
.hotspot-windmill { left: 55%; top: 38%; }
.hotspot-signal { left: 65%; top: 55%; }
.hotspot-farm { left: 78%; top: 67%; }
.hotspot-river { left: 53%; top: 84%; }
.hotspot-forest { left: 36%; top: 58%; }
.hotspot-pass { left: 78%; top: 18%; }
.map-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.map-note {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.location-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.location-card:hover {
  border-color: rgba(232,123,58,.45);
  box-shadow: 0 10px 24px rgba(30,58,95,.1);
}
.location-card b { display: block; margin-bottom: 5px; }
.legend-list { display: grid; gap: 10px; }
.legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}
.legend-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}
.legend-mark.resource { background: var(--green); }
.legend-mark.route { background: #4fa9d1; }
.legend-mark.collectible { background: #a05bbf; }
.pin-list { display: grid; gap: 10px; margin-top: 14px; }
.pin {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.route-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}
.route-dot.resource { background: var(--green); }
.route-dot.route { background: #4fa9d1; }
.badge {
  align-self: flex-start;
  white-space: nowrap;
  border-radius: 999px;
  background: #d6e8da;
  color: #24542d;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
}
.source-box { padding: 20px; }
.source-box h2 { font-size: 20px; margin-bottom: 10px; }
footer {
  background: var(--navy);
  color: #cfd9e6;
  padding: 48px 24px 28px;
  text-align: center;
}
footer .brand {
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}
footer p { font-size: 14px; opacity: .75; }
footer a { color: #f2a06b; }
.last-updated { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 800; }

@media (max-width: 860px) {
  .hero-grid, .content { grid-template-columns: 1fr; }
  .toc { position: static; }
  .fact-grid, .related-grid, .filter-grid, .location-grid { grid-template-columns: 1fr; }
  .ui-preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 36px; }
  section.card { padding: 20px; }
  .pin { flex-direction: column; }
}
