:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --ink: #15251f;
  --muted: #5c6863;
  --line: #d9ded8;
  --forest: #1c332b;
  --yellow: #f4c95d;
  --coral: #e96f51;
  --mint: #b9d6c8;
  --white: #ffffff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #1769aa; outline-offset: 4px; }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 40px), var(--max)); margin: 18px auto 0; padding: 12px 16px; border: 1px solid rgba(21,37,31,.12); border-radius: 18px; background: rgba(247,248,244,.92); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; line-height: 1.05; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .03em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 3px; width: 32px; height: 32px; padding: 4px; border-radius: 9px; background: var(--forest); }
.brand-mark i { border-radius: 50%; background: var(--yellow); }
.brand-mark i:nth-child(2) { background: var(--coral); }
.brand-mark i:nth-child(3) { grid-column: 1 / 3; border-radius: 5px; background: var(--white); }
nav { display: flex; gap: 6px; }
nav a { padding: 8px 12px; border-radius: 10px; color: #33433d; font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a:hover { background: white; }
.menu-button { display: none; border: 0; border-radius: 10px; background: var(--forest); color: white; padding: 8px 12px; font: inherit; font-weight: 700; }

main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.hero { min-height: 700px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(44px, 8vw, 110px); padding: 80px 0 110px; }
.eyebrow { margin: 0 0 14px; color: #8b482f; font-size: .78rem; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -.065em; }
.hero-lead { max-width: 620px; margin-bottom: 34px; color: #45534e; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 21px; border-radius: 12px; background: var(--forest); color: white; font-weight: 800; text-decoration: none; }
.primary-button:hover { background: #2a4a3f; }
.hero-board { display: grid; grid-template-columns: repeat(2, minmax(115px, 1fr)); gap: 12px; transform: rotate(2deg); }
.tile { aspect-ratio: 1; display: grid; place-items: end start; padding: 18px; border-radius: 26px; color: var(--forest); font-size: clamp(.8rem, 2vw, 1.1rem); font-weight: 900; letter-spacing: .08em; box-shadow: 0 18px 50px rgba(21,37,31,.12); }
.tile-a { background: var(--yellow); transform: translateY(16px); }
.tile-b { background: var(--coral); color: white; }
.tile-c { background: var(--mint); transform: translateY(16px); }
.tile-d { background: var(--forest); color: white; }

.games-section { padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-heading h2, .about-section h2, .contact-section h2 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.05em; }
.section-heading > p { max-width: 590px; margin: 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 8px 28px rgba(21,37,31,.045); }
.game-card > img, .letter-icon { width: 100%; height: clamp(220px, 19vw, 280px); object-fit: cover; background: #e4e8e3; }
.game-card > img { padding: 44px; object-fit: contain; }
.game-card.featured > img { background: #273d4b; }
.letter-icon { display: grid; place-items: center; color: white; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: -.08em; }
.time-echo .letter-icon { background: linear-gradient(145deg, #44385d, #786aa2); }
.merge-card .letter-icon { background: linear-gradient(145deg, #bf653f, #ecb34f); }
.card-copy { padding: 24px; }
.meta { min-height: 24px; margin-bottom: 10px; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .04em; }
.status { display: inline-block; margin-right: 7px; padding: 2px 8px; border-radius: 999px; background: #e9edea; color: #32453d; font-size: .72rem; }
.game-card h3 { margin-bottom: 9px; font-size: 1.42rem; line-height: 1.2; letter-spacing: -.025em; }
.game-card p:not(.meta) { min-height: 78px; color: var(--muted); }
.game-card a { display: inline-block; color: #1c5a45; font-weight: 800; text-underline-offset: 4px; }

.about-section { padding: 110px 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 130px); }
.about-grid p { color: var(--muted); }
.about-grid .about-lead { color: var(--ink); font-size: clamp(1.25rem, 2.5vw, 1.8rem); line-height: 1.45; }
.contact-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; margin-bottom: 40px; padding: 80px; border-radius: 32px; background: var(--forest); color: white; }
.contact-section .eyebrow { color: var(--yellow); }
.contact-card { color: #dce5e1; }
.email-link { display: inline-block; margin-top: 18px; color: white; font-size: clamp(1.1rem, 2.5vw, 1.55rem); font-weight: 850; text-underline-offset: 6px; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0 45px; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 90px; }
  .hero-board { width: min(520px, 85%); margin: 0 auto; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading, .about-grid, .contact-section { grid-template-columns: 1fr; }
  .contact-section { gap: 36px; padding: 54px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max)); }
  .site-header { margin-top: 10px; }
  .menu-button { display: block; }
  nav { position: absolute; top: calc(100% + 8px); right: 0; display: none; min-width: 170px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 15px 40px rgba(21,37,31,.13); }
  nav.open { display: grid; }
  nav a { min-height: 44px; display: flex; align-items: center; }
  .hero { gap: 60px; padding: 72px 0 82px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero-board { width: 92%; gap: 8px; }
  .tile { border-radius: 20px; padding: 13px; }
  .games-section, .about-section { padding: 76px 0; }
  .section-heading { gap: 20px; margin-bottom: 32px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card > img { padding: 54px; }
  .contact-section { gap: 30px; margin-inline: -4px; padding: 38px 24px; border-radius: 24px; }
  footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
