/* 쭈니박스 공용 스타일.
   페이지가 여러 장이 되면서 인라인에서 분리했다. 한 번 받으면 캐시되므로
   페이지를 옮겨 다닐 때 다시 받지 않는다.
   색은 :root 와 prefers-color-scheme 블록의 변수로만 관리한다. */

:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --paper-deep: #f3ecdd;
  --ink: #40392e;
  --ink-soft: #6f6657;
  --accent: #3f6b39;
  --accent-soft: #dcead2;
  --leaf-1: #a8c89a;
  --leaf-2: #8db47f;
  --leaf-3: #6f9a63;
  --trunk: #8a7158;
  --trunk-deep: #6f5a45;
  --hill: #e9e0c9;
  --apple: #d96c57;
  --apple-deep: #c05a46;
  --card: #fffdf7;
  --line: #e5dcc8;
  --cta-text: #fdfcf7;
  --focus-ring: #2f5c2a;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #171b22;
    --paper-deep: #131720;
    --ink: #e8e2d4;
    --ink-soft: #a99f8c;
    --accent: #9cc48e;
    --accent-soft: #2a3a28;
    --leaf-1: #3d5c42;
    --leaf-2: #33503a;
    --leaf-3: #294231;
    --trunk: #5d4c3c;
    --trunk-deep: #4a3d31;
    --hill: #1f2733;
    --apple: #c96454;
    --apple-deep: #a84f3f;
    --card: #1e242e;
    --line: #303845;
    --cta-text: #16210f;
    --focus-ring: #b5d8a8;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    'Apple SD Gothic Neo',
    'Malgun Gothic',
    sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
}
a[href^='http'],
a[href^='mailto:'],
.url,
.email {
  overflow-wrap: anywhere;
}
::selection {
  color: var(--ink);
  background: var(--accent-soft);
}
:where(a, button, input, textarea, select, summary, pre, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--cta-text);
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  border-radius: 0 0 12px 12px;
  transform: translateY(-110%);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.wordmark small {
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 6px;
  font-size: 0.8em;
}
.top a.visit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}
.top a.visit:hover {
  border-bottom-color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding: 40px 0 24px;
  min-height: min(78dvh, 640px);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero .sub {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 26em;
  margin-bottom: 28px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--accent);
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent);
  white-space: nowrap;
}
.cta:hover {
  transform: translateY(-2px);
}
.cta:active {
  transform: translateY(0) scale(0.98);
}

.tree-stage svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 소개 ===== */
.story {
  max-width: 620px;
  margin: 56px auto 0;
  padding: 0 24px;
  text-align: center;
}
.story h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.story p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.story p + p {
  margin-top: 12px;
}

/* ===== 프로젝트 ===== */
.branches {
  margin: 64px 0 0;
  padding: 56px 0 64px;
  background: var(--paper-deep);
}
.branches h2 {
  font-size: 1.3rem;
  margin-bottom: 28px;
}
.branches .lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 46em;
  margin-bottom: 28px;
}
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.game-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
.game-group h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.group-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.game-group ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-group li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  /* 손가락으로 누르기 넉넉하게 */
  padding: 9px 14px;
  transition: border-color 0.15s ease;
}
.game-group li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* 목록 아래의 이동 링크. 밑줄만 있으면 터치 영역이 30px 남짓이라
   손가락으로 누르기 어렵다. 최소 44px을 확보한 옅은 알약 모양으로 둔다. */
.go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--accent-soft);
  border-radius: 999px;
  transition: border-color 0.15s ease;
  white-space: nowrap;
}
.go:hover {
  border-color: var(--accent);
}
.story.wide {
  max-width: 680px;
  text-align: left;
  margin-top: 56px;
}
.story.wide h2 {
  text-align: center;
}
.story a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
.story a:hover {
  border-bottom-color: var(--accent);
}

footer {
  padding: 40px 0 48px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
footer a:hover {
  color: var(--ink);
}

/* ===== 다중 페이지 공통 구조 ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, 1040px);
  min-height: 72px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand small,
.brand span {
  margin-left: 6px;
  color: var(--ink-soft);
  font-size: 0.8em;
  font-weight: 400;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--ink);
  border-color: var(--line);
}
.site-nav a[aria-current='page'],
.site-nav a.current {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.page-shell {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  padding-bottom: 88px;
}
.page-hero {
  max-width: 760px;
  padding: 64px 0 32px;
}
.page-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead,
.page-hero .lead {
  max-width: 46em;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.75;
}

.content-section {
  max-width: 860px;
  margin-top: 64px;
  scroll-margin-top: 24px;
}
.content-section > h2:first-child {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
}
.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
}
.section-heading > p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--ink-soft);
}
.content-grid,
.grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin-top: 24px;
}
.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.content-card,
.card,
.contact-card {
  min-width: 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.content-card > :first-child,
.card > :first-child,
.contact-card > :first-child {
  margin-top: 0;
}
.content-card h2,
.content-card h3,
.card h2,
.card h3,
.contact-card h2,
.contact-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.45;
}
.content-card p,
.card p,
.contact-card p {
  color: var(--ink-soft);
}
.content-card p + p,
.card p + p,
.contact-card p + p {
  margin-top: 10px;
}
.content-card time,
.card-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}
.content-card .text-link,
.card .text-link {
  margin-top: 16px;
}
.feature-card {
  margin-top: 24px;
}
.home-section {
  max-width: none;
}
.home-section .content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-grid {
  gap: 16px;
}
.home-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
}

/* 홈의 첫 실습과 기존 프로젝트 목록: 브랜드는 유지하고 읽기 순서만 정리한다. */
.home-page .hero {
  min-height: 440px;
  padding-top: 32px;
}
.home-page .tree-stage {
  max-width: 330px;
  justify-self: center;
}
.field-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.field-guide h2 {
  margin-top: 10px;
}
.field-evidence {
  padding: 24px;
  background: var(--paper-deep);
  border-radius: 16px;
}
.field-evidence h3 {
  font-size: 1rem;
}
.field-evidence dl > div {
  margin-top: 20px;
}
.field-evidence dt {
  color: var(--accent);
  font-weight: 700;
}
.field-evidence dd,
.field-evidence p {
  color: var(--ink-soft);
}
.field-evidence p {
  margin-top: 24px;
  font-size: 0.85rem;
}
.project-directory {
  margin-top: 56px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.project-directory summary {
  padding: 10px 0;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.project-directory > p {
  color: var(--ink-soft);
}
.reading-paths {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}
.reading-path {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 16px 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.reading-path h3 {
  margin: 0 0 8px;
}
.reading-path ol {
  padding-left: 1.3em;
}
.reading-path li + li {
  margin-top: 16px;
}
.reading-path li p {
  margin-top: 4px;
  font-size: 0.95rem;
}

.project-meta,
.note-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  list-style: none;
}
.project-meta > *,
.note-meta > *,
.article-meta > * {
  min-width: 0;
}
.project-meta dt,
.note-meta dt,
.project-meta strong,
.note-meta strong {
  color: var(--ink);
  font-weight: 700;
}
.project-meta dd,
.note-meta dd {
  margin-inline-start: 0;
}
.meta-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  list-style: none;
}
.meta-list strong,
.meta-list dt {
  color: var(--ink);
  font-weight: 700;
}
.meta-list strong {
  margin-right: 6px;
}
.document-meta {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px;
  max-width: 620px;
  margin-top: 22px;
}
.document-meta > div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.document-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.article-body {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.82;
}
.article-body > * + * {
  margin-top: 1.1em;
}
.article-body h2,
.article-body h3 {
  color: var(--ink);
  line-height: 1.4;
}
.article-body h2 {
  margin-top: 2.8em;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}
.article-body h3 {
  margin-top: 2em;
  font-size: 1.12rem;
}
.article-body ul,
.article-body ol,
.policy-list,
.contact-list {
  padding-left: 1.35em;
}
.article-body li + li,
.policy-list li + li,
.contact-list li + li {
  margin-top: 0.55em;
}
.article-body a,
.policy-page a,
.contact-page a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
.article-body blockquote {
  padding: 4px 0 4px 20px;
  color: var(--ink);
  border-left: 4px solid var(--accent-soft);
}
.article-body code {
  padding: 0.12em 0.35em;
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: 6px;
}
.article-body pre {
  max-width: 100%;
  padding: 18px 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.article-body pre code {
  padding: 0;
  background: transparent;
}
.article-body code {
  overflow-wrap: anywhere;
}
.article-body section > * + * {
  margin-top: 1em;
}
.article-body dt {
  margin-top: 1.4em;
  color: var(--ink);
}
.article-body dd {
  margin-top: 0.4em;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.table-wrap[tabindex] table {
  min-width: 620px;
}
.article-body caption {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.article-body th,
.article-body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-body th {
  color: var(--ink);
  background: var(--paper-deep);
}
.article-meta a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.note-callout {
  margin-top: 48px;
  padding: 20px 22px;
  color: var(--ink);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.note-callout > :first-child {
  margin-top: 0;
}
.note-callout > :last-child {
  margin-bottom: 0;
}
.note-callout h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.45;
}
.note-callout .article-body h2:first-child {
  margin-top: 0;
}
.note-callout a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.breadcrumb {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.breadcrumb ol,
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  padding: 0;
  list-style: none;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li + li::before {
  margin-right: 8px;
  color: var(--line);
  content: '/';
}
.breadcrumb a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.breadcrumb [aria-current='page'] {
  color: var(--ink-soft);
}

.site-footer {
  padding: 36px 0 44px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.site-footer .footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
}
.site-footer .nav-shell {
  min-height: auto;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 0;
}
.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}
.footer-row nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-row nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

/* ===== 정책, 문의, 오류 페이지 ===== */
.policy-meta {
  margin: 20px 0 36px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.policy-list,
.contact-list {
  color: var(--ink-soft);
}
.contact-card address {
  font-style: normal;
}
.contact-card .email,
.contact-card a[href^='mailto:'] {
  color: var(--accent);
  font-weight: 700;
}
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 32px;
  max-width: 860px;
  margin-top: 24px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.contact-panel h2 {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.4;
}
.contact-panel p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--ink-soft);
}
.contact-panel .cta {
  flex: none;
}
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 680px;
  margin-top: 28px;
}
.form-field {
  display: grid;
  gap: 7px;
}
.form-field label {
  color: var(--ink);
  font-weight: 700;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  caret-color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form-field textarea {
  min-height: 160px;
  resize: vertical;
}
.form-field ::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.form-help {
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.error-page,
.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: calc(100dvh - 210px);
  max-width: 680px;
  padding: 64px 0;
}
.error-page .error-code,
.not-found .error-code {
  color: var(--accent);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.error-page h1,
.not-found h1 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.25;
}
.error-page > .lead,
.not-found > .lead {
  max-width: 38em;
  margin-top: 14px;
  color: var(--ink-soft);
}
.error-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 28px;
}

.timeline {
  max-width: 820px;
  padding: 0;
  list-style: none;
}
.timeline > li {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 16px 28px;
  padding: 24px 0;
}
.timeline > li + li {
  border-top: 1px solid var(--line);
}
.timeline time {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.timeline h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  line-height: 1.45;
}
.timeline p {
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .home-page .hero {
    min-height: auto;
    padding-top: 28px;
  }
  .home-page .tree-stage {
    order: 0;
    max-width: 160px;
    margin-top: 12px;
  }
  .field-guide,
  .reading-path {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 8px;
    min-height: auto;
  }
  .tree-stage {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
  .games {
    grid-template-columns: 1fr;
  }
  .story {
    margin-top: 40px;
  }
  .skip-link {
    left: 16px;
  }
  .nav-shell {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    width: min(100% - 32px, 1040px);
    padding: 10px 0 8px;
  }
  .brand {
    align-self: flex-start;
  }
  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: visible;
  }
  .site-nav a {
    flex: 1 1 calc(33.333% - 4px);
    justify-content: center;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.88rem;
  }
  .page-shell {
    width: min(100% - 32px, 1040px);
    padding-bottom: 64px;
  }
  .page-hero {
    padding: 44px 0 24px;
  }
  .content-section {
    margin-top: 48px;
  }
  .content-grid,
  .grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .home-section .content-grid {
    grid-template-columns: 1fr;
  }
  .content-card,
  .card,
  .contact-card {
    padding: 20px;
  }
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .contact-panel .cta {
    justify-self: start;
  }
  .timeline > li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .site-footer .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: min(100% - 32px, 1040px);
  }
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .error-actions,
  .action-row {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .error-actions .cta,
  .error-actions .text-link,
  .action-row .cta,
  .action-row .go,
  .action-row .text-link {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cta:hover {
    transform: none;
  }
}
