:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --white: #fffef8;
  --ink: #17251d;
  --muted: #48594e;
  --forest: #163b2b;
  --deep: #102b20;
  --mint: #bce9a7;
  --gold: #ffd26e;
  --line: #d7dfd1;
  --heading: "Bricolage Grotesque", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 "DM Sans", "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
a { color: #215b3a; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #bd6729; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--heading); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(2.15rem, 5vw, 3.3rem); }
h3 { font-size: 1.38rem; }
p { margin: .8rem 0 1rem; }
img { display: block; }
.wrap { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 5; padding: .6rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { background: var(--deep); color: var(--white); border-bottom: 1px solid #41614d; }
.header-inner { display: flex; min-height: 73px; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .55rem; font: 800 1.4rem/1 var(--heading); letter-spacing: -.04em; color: var(--white); text-decoration: none; }
.brand-domain { color: var(--mint); }
.primary-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.6rem; }
.primary-nav a, .site-footer a { color: var(--white); }
.primary-nav a { font-size: .91rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 44px; padding: .63rem 1rem; border: 1px solid transparent; border-radius: .55rem; font: 700 .91rem/1.2 "DM Sans", "Segoe UI", sans-serif; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(.94); }
.button-header { color: var(--mint); border-color: #65826a; }
.button-accent { background: var(--mint); color: var(--deep); }
.button-outline { border-color: #8eac92; color: var(--white); }
.button-solid { background: var(--forest); color: white; }
.hero {
  background-color: var(--forest);
  background-image: linear-gradient(100deg, #102b20 12%, #102b20f7 56%, #163b2bc9 100%), url("../images/pokemmo/autumn-route.webp");
  background-position: center, center 52%;
  background-size: cover;
  color: var(--white);
}
.hero-layout { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 3.5rem; padding-block: 40px; }
.hero h1 { font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; letter-spacing: -.075em; }
.eyebrow { margin: 0 0 1rem; color: var(--mint); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-description { max-width: 34rem; color: #e5efe4; font-size: 1.12rem; margin-block: 1rem 1.6rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.hero-regions { min-width: 0; border: 1px solid #62866c; border-radius: 1rem; background: var(--deep); overflow: hidden; }
.hero-regions img { width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; object-position: center 51%; }
.hero-regions ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hero-regions li + li { border-left: 1px solid #41614d; }
.hero-regions a { display: grid; min-height: 46px; place-items: center; color: var(--white); font-size: .8rem; font-weight: 700; text-decoration: none; }
.hero-regions a:hover { color: var(--mint); text-decoration: underline; background: var(--forest); }
.hero-regions a:focus-visible { outline: 2px solid var(--mint); outline-offset: -4px; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.calculator { padding-top: 2rem; }
.section-intro { max-width: 45rem; color: var(--muted); margin-bottom: 1.5rem; }
.tool { display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; border: 1px solid var(--line); border-radius: 1.05rem; overflow: hidden; background: var(--white); box-shadow: 0 12px 40px #23442c0d; }
.tool form, .result { padding: clamp(1rem, 3vw, 2rem); }
.form-top { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.text-button { background: transparent; color: #2b6040; border: 0; padding: .35rem .2rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.cost-row, .cost-header { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, 1fr); gap: .65rem; align-items: center; }
.cost-header { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cost-row { padding-block: .33rem; font-weight: 600; }
.cost-row-total input { grid-column: 2 / -1; }
.button-sample { background: #e9efe2; color: var(--deep); border-color: #c3d1bc; white-space: nowrap; }
.item-cost-help { margin: .6rem 0 0; }
input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: .4rem .6rem; background: #f8f9f1; color: var(--ink); border: 1px solid #a7b7a6; border-radius: .44rem; font: inherit; font-variant-numeric: tabular-nums; }
.market-row { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: .7rem; margin-top: .7rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.market-row label { font-weight: 700; line-height: 1.3; }
.market-row small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.form-note, .tool-note { font-size: .87rem; color: var(--muted); }
.result { color: var(--white); background: radial-gradient(ellipse at bottom right, #2e5c44, transparent 75%), var(--forest); }
.result h3 { color: #e0edda; font-size: 1.08rem; letter-spacing: 0; }
.result output { display: block; margin-top: .5rem; color: var(--gold); font-family: var(--heading); font-weight: 800; font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.12; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result dl { margin: 1.15rem 0; }
.result dl div { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem; border-bottom: 1px solid #698673; padding: .46rem 0; }
.result dt, .result dd { margin: 0; font-size: .9rem; }
.result dd { text-align: right; font-variant-numeric: tabular-nums; }
.result p { margin-bottom: 0; color: var(--mint); font-size: .94rem; }
.comparison-card { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid #698673; border-radius: .65rem; background: #102b2066; }
.comparison-card p { margin: .2rem 0 0; }
.comparison-card #comparison-title { margin: 0; color: var(--white); font-size: 1.04rem; font-weight: 700; }
.band { background: #e9efe2; border-block: 1px solid #d9e1d3; }
.guide-grid, .region-grid, .breeding-grid { display: grid; gap: 1rem; }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.region-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.guide-grid article, .region-grid article, .worked { padding: 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: .8rem; }
article p:last-child { margin-bottom: 0; }
.region-heading { display: flex; align-items: center; gap: .55rem; }
.region-icon { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: .55rem; background: #e4efdf; }
.region-icon img { image-rendering: pixelated; }
#johto .region-icon { background: #f4e6db; }
#hoenn .region-icon { background: #e1eef8; }
#sinnoh .region-icon { background: #f4efd8; }
#unova .region-icon { background: #ede6f3; }
.region-grid p { font-size: .9rem; }
.callout { margin-top: 1.25rem; padding: .9rem 1.1rem; border-left: 3px solid #478058; background: #dce9d7; }
.callout p { margin: .22rem 0 0; }
.gameplay { margin: 1.6rem 0 0; max-width: 780px; }
.gameplay figcaption { font-size: .9rem; margin-top: .65rem; color: var(--muted); }
.video { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; border-radius: 1rem; background: radial-gradient(ellipse at 65% 15%, #477859, transparent 65%), var(--deep); }
.video iframe { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; }
.video-launch { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: .75rem; color: white; text-align: center; text-decoration: none; font-weight: 700; }
.video-launch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-launch::after { content: ""; position: absolute; inset: 0; background: #102b2033; }
.video-launch:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.video-action { position: relative; z-index: 1; display: flex; align-items: center; gap: .65rem; padding: .5rem .85rem .5rem .55rem; border-radius: 999px; background: #102b20f2; font-size: clamp(.86rem, 2vw, 1rem); }
.play-icon { display: grid; place-items: center; flex: none; width: 2.75rem; aspect-ratio: 1; border-radius: 50%; background: var(--mint); color: var(--deep); }
.video-launch:hover .play-icon, .video-launch:focus-visible .play-icon { background: var(--gold); }
.breeding-grid { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 2rem; }
.worked strong { color: #215b3a; }
.faq details { border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 1.05rem; }
.faq summary { padding-block: .9rem; cursor: pointer; font-weight: 700; }
.faq details p { margin: 0 0 1rem; max-width: 52rem; }
.site-footer { background: var(--deep); color: #d7e7d8; padding-block: 2rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; }
.site-footer p { margin: .5rem 0 0; font-size: .89rem; }
.legal { max-width: 790px; min-height: 54vh; }
.legal h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8rem; }
.legal article { margin-top: 1.5rem; padding: clamp(1rem, 4vw, 2rem); border-radius: .9rem; background: var(--white); border: 1px solid var(--line); }
.legal article > :first-child { margin-top: 0; }
section[id], article[id] { scroll-margin-top: 1.25rem; }
@media (max-width: 925px) {
  .hero-layout { gap: 1.4rem; }
  .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-block: .65rem; row-gap: .25rem; }
  .button-header { display: none; }
  .primary-nav { order: 3; width: 100%; gap: .35rem 1.2rem; }
  .primary-nav a { padding-block: .4rem; }
  .hero-layout, .tool, .breeding-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 2rem; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .region-grid article { padding: .7rem; }
  .hero h1 { font-size: clamp(3.7rem, 13vw, 5rem); }
}
@media (max-width: 370px) {
  .calculator h2 { font-size: 1.8rem; }
  .primary-nav { gap: .2rem .75rem; }
  .button { padding-inline: .65rem; }
  .cost-row { font-size: .9rem; }
}
@media (min-width: 731px) and (max-height: 760px) {
  .hero-layout { padding-block: 23px; }
  .hero h1 { font-size: clamp(4rem, 9vw, 6rem); }
  .calculator { padding-top: 1.5rem; }
}

.guide-notes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem 2rem; margin-top: 1.75rem; }
@media (max-width: 730px) { .guide-notes { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field-error { grid-column: 1 / -1; margin: 0; color: #9d291b; font-size: .86rem; font-weight: 600; }
input[aria-invalid="true"] { border-color: #a83d2e; }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; }
.form-actions a, .form-actions button { align-items: center; min-height: 44px; }
.result-jump { display: none; font-size: .88rem; font-weight: 700; }
#breeding-result { scroll-margin-top: 1rem; }
@media (max-width: 730px) {
  .hero {
    background-image: linear-gradient(180deg, #102b20 8%, #102b20fa 55%, #102b20e8 100%), url("../images/pokemmo/autumn-route-mobile.webp");
    background-position: center, center bottom;
  }
  .result-jump { display: inline-flex; }
}
