/* Shared styles for Rabbit Hangul Typing content pages */
:root {
  --green: #3a5a40;
  --green-dark: #2d4632;
  --yellow: #ffe66d;
  --card: #ffffff;
  --ink: #2b3a2f;
  --muted: #5d6f62;
  --line: #e2e8e3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.site {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--green);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / nav */
.site-header {
  background: var(--green-dark);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

/* EasyHangul logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.logo-text {
  font-family: 'Space Grotesk', 'Pretendard', sans-serif;
  font-size: 25px; font-weight: 700; letter-spacing: -.5px; line-height: 1;
}
.logo-easy { color: #ffffff; font-weight: 500; }
.logo-hangul { color: #ffe66d; font-weight: 700; }
.logo:hover { opacity: .8; }

/* Logo floating on the game page */
.game-logo {
  position: fixed;
  top: 14px; left: 16px;
  z-index: 10;
}
.site-nav a {
  color: #d7e3da;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* Content card */
main.content {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 28px auto;
  padding: 0 16px;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.card h1 {
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.card .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.card h2 {
  font-size: 20px;
  color: var(--green-dark);
  margin: 26px 0 10px;
}
.card h3 {
  font-size: 16px;
  color: var(--green-dark);
  margin: 18px 0 8px;
}
.card p { margin-bottom: 14px; }
.card ul, .card ol { margin: 0 0 14px 22px; }
.card li { margin-bottom: 8px; }
.card a { color: #2f7d4d; }
.card strong { color: var(--green-dark); }
.card .kbd {
  display: inline-block;
  background: #f1f3ef;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #44513f;
}
.card .lead {
  font-size: 17px;
  color: var(--muted);
}
.cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--yellow);
  color: #344e41;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 10px;
}
.cta:hover { background: #fff3a0; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #aebfb2;
  text-align: center;
  padding: 20px 16px;
  font-size: 13px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 10px;
}
.site-footer a { color: #cdd9d0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 540px) {
  .card { padding: 26px 20px; }
  .card h1 { font-size: 24px; }
}
