:root {
  color-scheme: light;
  --page: #f9faf3;
  --ink: #172c21;
  --body: #45564a;
  --line: #dbe2d4;
  --green: #234735;
  --sage: #eaf0e4;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
main, section, details, .screenshots { scroll-margin-top: 24px; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.037em; }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.55rem); line-height: 1.04; }
:focus-visible { outline: 3px solid #8e6025; outline-offset: 4px; }

.shell { width: min(100% - 80px, 1220px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 10px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid #e5e9de; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; line-height: 1.2; text-decoration: none; }
.brand-edition { display: block; margin-top: 4px; color: var(--body); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.19em; text-transform: uppercase; }
.emblem { position: relative; display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; overflow: hidden; border-radius: 13px; color: #e9efbe; background: #2c4c37; }
.emblem i { width: 2px; height: 20px; background: currentColor; transform: rotate(34deg); border-radius: 8px; }
.emblem::before, .emblem::after { position: absolute; width: 12px; height: 8px; border-radius: 90% 0 85% 0; background: currentColor; content: ''; }
.emblem::before { top: 11px; left: 17px; transform: rotate(-28deg); }
.emblem::after { top: 16px; left: 9px; transform: rotate(103deg); }
.site-nav { display: flex; gap: clamp(16px, 3.2vw, 41px); align-items: center; }
.site-nav a { font-size: 0.9rem; font-weight: 660; text-decoration: none; white-space: nowrap; }
.site-nav a:not(.button):hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 10px 19px; border: 1px solid transparent; border-radius: 9px; font-weight: 690; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.header-contact { min-height: 39px; padding: 8px 18px; border-color: #cbd7ca; }
.header-contact:hover, .secondary:hover { border-color: #6a8871; background: #ecf1e6; }

.hero { position: relative; display: flex; min-height: clamp(445px, 42vw, 526px); margin-top: 28px; align-items: center; isolation: isolate; overflow: hidden; border: 1px solid #dce3ce; border-radius: 27px; background: #f0f1db; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 34%; background: url('/assets/woodland-valley.webp') 58% center / cover no-repeat, linear-gradient(143deg, #f0f1db 15%, #d1dfb8 58%, #8caa81); }
.hero-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, #f0f1db 2%, rgba(240, 241, 219, 0.95) 10%, rgba(240, 241, 219, 0.32) 34%, transparent 59%); content: ''; }
.hero-copy { position: relative; width: min(66%, 660px); padding: clamp(36px, 6vw, 76px); padding-right: 14px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #315540; font-size: 0.83rem; font-weight: 780; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; }
.eyebrow > span { width: 19px; height: 1px; background: #69835b; }
.hero h1 { margin-top: 16px; font-size: clamp(2.85rem, 5.25vw, 5.15rem); line-height: 0.98; }
.hero h1 em { color: #426746; font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 385px; margin-top: 23px; color: #3c5140; font-size: clamp(1rem, 1.55vw, 1.13rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.primary { color: white; background: #254936; }
.primary:hover { background: #183526; }
.secondary { border-color: #b1bfab; background: rgba(249, 250, 243, 0.78); }
.mail-icon { position: relative; display: inline-block; flex: 0 0 19px; width: 19px; height: 14px; overflow: hidden; border: 1.5px solid currentColor; border-radius: 3px; }
.mail-icon::after { position: absolute; width: 10px; height: 10px; top: -6px; left: 3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); content: ''; }

.support-topics { padding-block: 45px 67px; }
.support-topics h2 { margin-bottom: 16px; font: 730 1.13rem/1.35 system-ui, sans-serif; letter-spacing: -0.01em; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.topic { display: flex; min-width: 0; gap: 13px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fdfdf8; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.topic:hover { border-color: #8ca48c; background: #f1f5e9; }
.topic strong, .topic small { display: block; }
.topic strong { line-height: 1.35; }
.topic small { color: var(--body); font-size: 0.875rem; }
.topic-icon { display: grid; position: relative; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #315540; background: var(--sage); }
.topic-icon::before, .topic-icon::after { position: absolute; content: ''; }
.person::before { top: 11px; width: 9px; height: 9px; border: 1.5px solid; border-radius: 50%; }
.person::after { bottom: 10px; width: 17px; height: 10px; border: 1.5px solid; border-radius: 8px 8px 3px 3px; }
.receipt::before { width: 15px; height: 19px; border: 1.5px solid; border-radius: 3px; }
.receipt::after { width: 7px; height: 5px; border-block: 1.5px solid; }
.gear::before { width: 17px; height: 17px; border: 1.5px solid; border-radius: 6px; transform: rotate(45deg); }
.gear::after { width: 7px; height: 7px; border: 1.5px solid; border-radius: 50%; }

.game-section { padding-block: 72px 78px; border-block: 1px solid #dfe5d9; background: #eef2e8; }
.game-copy { display: grid; grid-template-columns: 1fr 0.89fr; gap: 36px; align-items: end; }
.game-copy h2, .faq-intro h2 { margin-top: 10px; }
.game-copy > div > p:not(.eyebrow), .contact-panel p { color: var(--body); }
.game-copy > div > p + p { margin-top: 8px; }
.screenshots { margin-top: 38px; }
.screenshots h3 { margin-bottom: 14px; font-size: 1.05rem; font-weight: 740; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.1vw, 25px); }
.screenshot { position: relative; display: block; overflow: hidden; border: 1px solid #b6c8b7; border-radius: 14px; background: #d7e2d2; cursor: zoom-in; }
.screenshot img { width: 100%; height: auto; aspect-ratio: 9 / 16; transition: transform 240ms ease; }
.screenshot:hover img { transform: scale(1.032); }
.zoom { position: absolute; right: 10px; bottom: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #fff7; border-radius: 50%; color: white; background: #142f24e0; font-size: 1.35rem; line-height: 1; }
.gallery figcaption { margin-top: 8px; color: var(--body); font-size: 0.92rem; font-weight: 620; }
.lightbox { position: fixed; max-width: calc(100vw - 32px); max-height: calc(100dvh - 24px); padding: 10px; overflow: auto; border: 1px solid #789279; border-radius: 16px; color: white; background: #1b3226; }
.lightbox::backdrop { background: #0a1a12dc; }
.lightbox img { width: auto; max-height: calc(100dvh - 100px); margin: auto; border-radius: 9px; object-fit: contain; }
.lightbox figcaption { padding: 7px 42px 0 4px; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 1px solid #fff7; border-radius: 50%; color: white; background: #182e25ef; font-size: 1.7rem; line-height: 1; cursor: pointer; }

.faq-section { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 32px; padding-block: 77px 68px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 4px; font-weight: 660; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: #416b49; }
.faq-list details > p { padding: 0 45px 17px 4px; color: var(--body); }
.faq-toggle { position: relative; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid #cbd9ca; border-radius: 50%; color: #315540; }
.faq-toggle::before, .faq-toggle::after { position: absolute; top: 11px; left: 7px; width: 9px; height: 1px; background: currentColor; content: ''; }
.faq-toggle::after { transform: rotate(90deg); }
details[open] .faq-toggle::after { transform: none; }

.contact-section { padding-bottom: 65px; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px clamp(20px, 5vw, 65px); border: 1px solid #d3dece; border-radius: 17px; background: #e7efdf; }
.contact-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-panel p { margin-top: 9px; }
.contact-button { flex-shrink: 0; color: white; background: #244936; }
.contact-button:hover { background: #163726; }
.site-footer { padding-block: 26px; border-top: 1px solid #dce4d7; background: #f1f4eb; }
.site-footer p { margin-top: 10px; color: var(--body); font-size: 0.85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 9px 23px; font-size: 0.9rem; font-weight: 640; }
.site-footer nav a { text-decoration: none; }
.footer-email { font-weight: 480; }

.legal-layout { max-width: 860px; padding-block: 39px 75px; }
.back-link { color: var(--green); font-size: 0.95rem; font-weight: 660; text-underline-offset: 4px; }
.legal { margin-top: 22px; padding: clamp(22px, 5vw, 55px); border: 1px solid var(--line); border-radius: 20px; background: #fdfdf8; }
.legal h1 { margin-block: 10px 13px; font-size: clamp(2.65rem, 6vw, 4.6rem); line-height: 1.05; }
.legal h2 { margin-bottom: 8px; font: 720 1.17rem/1.4 system-ui, sans-serif; letter-spacing: -0.01em; }
.legal section { margin-top: 25px; }
.legal p:not(.eyebrow), .legal li { color: var(--body); }
.legal p + p { margin-top: 9px; }
.legal p.eyebrow { letter-spacing: 0.1em; }
.legal a { color: var(--green); overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .shell { width: calc(100% - 56px); }
  .hero-copy { padding-left: 40px; }
  .topic { padding: 14px 11px; }
  .topic-icon { flex-basis: 37px; width: 37px; height: 37px; }
  .person::before { top: 9px; }
  .person::after { bottom: 8px; }
  .footer-inner { align-items: flex-start; }
  .site-footer nav { justify-content: flex-end; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .site-nav { gap: 12px; }
  .site-nav .game-nav { display: none; }
  .header-contact { padding-inline: 10px; }
  .brand { gap: 7px; font-size: 0.93rem; }
  .brand-edition { font-size: 0.7rem; }
  .emblem { flex-basis: 36px; width: 36px; height: 36px; }
  .hero { min-height: 0; margin-top: 17px; flex-direction: column; align-items: stretch; border-radius: 17px; }
  .hero-art { position: relative; inset: auto; order: 2; min-height: clamp(185px, 50vw, 285px); background-position: center 57%; }
  .hero-art::after { background: linear-gradient(#f0f1db 0%, rgba(240, 241, 219, 0.25) 23%, transparent 45%); }
  .hero-copy { width: 100%; padding: 28px 21px 16px; }
  .hero h1 { margin-top: 12px; font-size: clamp(2.1rem, 9.05vw, 4.1rem); }
  .hero-copy > p:not(.eyebrow) { margin-top: 16px; }
  .actions { margin-top: 18px; }
  .actions .button { padding-inline: 12px; font-size: 0.91rem; }
  .support-topics { padding-block: 34px 46px; }
  .topic-grid, .game-copy, .faq-section { grid-template-columns: 1fr; }
  .topic-grid { gap: 8px; }
  .topic { padding: 11px 12px; }
  .game-section { padding-block: 48px 52px; }
  .game-copy, .faq-section { gap: 18px; }
  .wide-only { display: none; }
  .screenshots { margin-top: 27px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 19px; }
  .screenshot { border-radius: 10px; }
  .faq-section { padding-block: 51px 47px; }
  .faq-list details > p { padding-right: 12px; }
  .contact-section { padding-bottom: 47px; }
  .contact-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
  .contact-panel { gap: 17px; padding-block: 25px; }
  .footer-inner { gap: 16px; }
  .site-footer nav { justify-content: flex-start; }
}

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