:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --text: #2b2620;
  --muted: #8a8378;
  --accent: #c1440e;
  --accent-soft: #fbe9df;
  --border: #e8e3da;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.6;
}

/* ---- Nav ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.nav a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a.link:hover,
.nav a.link[aria-current="page"] {
  color: var(--accent);
}

/* ---- Page shell ---- */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ---- Home hero ---- */
h1 {
  font-size: 1.9rem;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  text-align: center;
}
.subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 auto 6px;
  text-align: center;
  max-width: 480px;
}
.date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 36px;
  text-align: center;
}

/* ---- Card grid (daily phrases) ---- */
.grid {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.index {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.category {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.speak-btn {
  margin-left: auto;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease;
  flex-shrink: 0;
}
.speak-btn:hover { background: var(--accent); color: #fff; }
.speak-btn:active { transform: scale(0.9); }
.speak-btn.playing { background: var(--accent); color: #fff; }
.word { font-size: 1.4rem; font-weight: 700; }
.romanization {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.meaning { font-weight: 600; margin-bottom: 10px; }
.usage {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  font-size: 0.9rem;
}
.usage .en { color: var(--text); }
.usage .kr { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }

/* ---- Article / content typography ---- */
.prose h1 { text-align: left; font-size: 2rem; }
.prose .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.prose h2 {
  font-size: 1.3rem;
  margin-top: 34px;
  margin-bottom: 10px;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--text);
}
.prose .example-kr { font-weight: 700; }
.prose .example-en { color: var(--muted); }

/* ---- Article index list ---- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.article-card .a-title {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.article-card .a-desc {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}
.site-footer .foot-links {
  margin-top: 6px;
}
.site-footer .foot-links a {
  margin: 0 8px;
}

/* ---- Simple contact form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--text);
}
.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
