/* Practice Studio site — colors match the app's Theme.swift (warm evergreen, apricot accent). */
:root {
  color-scheme: light dark;
  --canvas: #FAF8F2;
  --surface: #EEEEE4;
  --raised: #E2E7DA;
  --text: #263126;
  --muted: #56635A;
  --line: #CBD2C5;
  --accent: #9C4218;
  --accent-ink: #FFF8EF;
  --warn-bg: #FBEFD2;
  --warn-text: #5E4300;
  --radius: 22px;
  --radius-sm: 14px;
  --max: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #161B18;
    --surface: #222A24;
    --raised: #2C362E;
    --text: #F4F4EC;
    --muted: #A7B3A7;
    --line: #3A473D;
    --accent: #FFB16B;
    --accent-ink: #2B1A0B;
    --warn-bg: #3A3016;
    --warn-text: #F2CE6B;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-wrap: break-word;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.lang {
  font-size: 0.9rem; color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}
.lang:hover { background: var(--surface); }

/* Content */
main { padding: 32px 0 48px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 1.08rem; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
.lede { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.hero { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero img { width: 80px; height: 80px; border-radius: 18px; }
}

.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  background: var(--raised); color: var(--text);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 10px;
}

.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px; margin: 16px 0;
}
.card > :last-child { margin-bottom: 0; }
.card > :first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 12px; margin: 16px 0; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  border-radius: var(--radius-sm); padding: 12px 20px; margin: 4px 0 8px;
}
.button:hover { filter: brightness(1.08); }

.note {
  background: var(--warn-bg); color: var(--warn-text);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0;
}
.note > :last-child { margin-bottom: 0; }

details {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 10px 0;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details > :last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.release { border-top: 1px solid var(--line); padding-top: 8px; }
.release h2 { margin-top: 24px; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em;
  background: var(--raised); padding: 1px 5px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 0.9rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer .copy { margin-right: auto; }

/* Home: picture-first feature cards (kids look, parents read below) */
.hero .lede { font-size: 1.3rem; color: var(--text); font-weight: 600; }
.features { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { text-align: center; padding: 20px 12px; }
.feature-icon { display: block; font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.feature h3 { margin: 0 0 4px; font-size: 1.1rem; }
.feature p { font-size: 0.95rem; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; background: var(--raised); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.95rem; }
.chips li::before { content: "✓ "; color: var(--accent); }

/* Real app screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; margin: 16px 0 8px; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; text-align: center; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.shot figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
.shot figcaption strong { display: block; color: var(--text); font-size: 1.05rem; }
.shot-wide { max-width: 22rem; margin: 8px 0 18px; text-align: left; }
.shot-wide figcaption { font-size: 0.9rem; }
