:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --card: #f8fafc;
  --border: #e2e8f0;
  --primary: #c2410c; /* 흰 글자 대비 5.2:1. 대표 색 #f97316은 아이콘·theme-color에 */
  --primary-fg: #ffffff;
}
/* Dark: the system setting unless the visitor picked a mode (prefs.js sets data-theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #020617;
    --fg: #f1f5f9;
    --muted: #94a3b8;
    --card: #0f172a;
    --border: #1e293b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020617;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --card: #0f172a;
  --border: #1e293b;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Header, page, footer: the footer stays at the bottom on short pages */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
main { max-width: 480px; margin: 0 auto; padding: 32px 20px 48px; text-align: center; }
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; word-break: keep-all; }
p { margin: 0 0 16px; color: var(--muted); word-break: keep-all; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 20px; text-align: left; }
.card img { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--border); }
.card .body { padding: 16px; }
.card h1 { font-size: 20px; margin: 0 0 4px; }
.card .meta { color: var(--muted); font-size: 14px; margin: 0; }
.btn {
  display: block; width: 100%; padding: 14px 16px; margin: 0 0 10px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn[hidden], [hidden] { display: none !important; }
.note { font-size: 13px; color: var(--muted); }

/* Header: same shape as the 따구리소식 header (round mark, bold 따구리 + lighter suffix) */
.site-header {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.site-header .bar { max-width: 960px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 50%; }
.wordmark { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark .suffix { color: var(--muted); margin-left: 2px; }
html[lang="en"] .wordmark .suffix { margin-left: 5px; }
.logo:hover .name, .logo:hover .suffix { color: var(--primary); }
.controls { display: flex; align-items: center; gap: 4px; }
.icon-btn, .lang-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 36px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.icon-btn { width: 36px; }
.lang-btn { padding: 0 10px; }
.icon-btn:hover, .lang-btn:hover { color: var(--primary); background: var(--card); }
/* Show the moon in light mode (tap for dark) and the sun in dark mode */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-sun { display: block; }
  :root:not([data-theme]) .icon-moon { display: none; }
}

/* Landing */
main.landing { max-width: 960px; padding-top: 40px; }
.features { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; text-align: left; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.feature .icon { color: #f97316; margin-bottom: 8px; }
.feature h2 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; word-break: keep-all; }
.feature p { margin: 0; font-size: 15px; }
.cta {
  max-width: 560px; margin: 0 auto 48px; padding: 28px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
}
.cta h2 { font-size: 22px; line-height: 1.35; margin: 0 0 10px; word-break: keep-all; }
.cta p strong { color: var(--fg); }
.cta .btn { margin-top: 4px; }
.cta > :last-child { margin-bottom: 0; }
/* "Coming soon" before release, in place of the App Store button */
.pill {
  display: inline-block; margin: 4px 0 12px; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--primary); background: rgba(249, 115, 22, 0.12);
}

/* Footer */
.site-footer { width: 100%; max-width: 960px; margin: 0 auto; padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-bottom: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer p { margin: 0; font-size: 13px; }

/* Hero: full-width Korean BBQ photo (Unsplash, credits in matjip-web/README.md) under a dark veil */
.hero {
  position: relative; text-align: center; color: #ffffff;
  padding: 56px 20px 48px;
  background: #1c1917 url("/assets/hero-800.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.78)); }
.hero-inner { position: relative; max-width: 480px; margin: 0 auto; }
.hero h1 { font-size: 30px; color: #ffffff; letter-spacing: -0.01em; }
.hero .lead, .hero .note { color: rgba(255, 255, 255, 0.86); }
.hero .pill { color: #ffffff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); }
.hero .note { margin: 0; }
@media (min-width: 640px) {
  .hero { padding: 120px 20px 112px; background-image: url("/assets/hero-1600.jpg"); }
  .hero-inner { max-width: 640px; }
  .hero h1 { font-size: 44px; line-height: 1.2; }
  .hero .lead { font-size: 19px; }
}
