/* Speech pages — palette taken from the Mother of Peace book cover (sky #ACDDEB / navy #023E62). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #0C6E9E;
  --brand-dark:  #023E62;
  --brand-light: #EAF6FB;
  --sky:         #ACDDEB;
  --navy:        #023E62;
  --ink:         #062033;
  --ink-700:     #1F3D52;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --bg:          #FFFFFF;
  --bg-subtle:   #F7FAFC;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.speech-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.speech-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.nav-logo-top { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.nav-logo-main { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.nav-back { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); text-decoration: none; padding: 0.45rem 0.8rem; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.nav-back:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ── LAYOUT ── */
.speech-inner { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.speech { padding: 3.5rem 0 4rem; }

/* ── HEAD ── */
.speech-head { margin-bottom: 2rem; }
.speech-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 0.85rem;
}
.speech-meta { font-size: 0.82rem; font-weight: 600; color: var(--brand-dark); letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.speech-context { font-size: 1rem; color: var(--muted); line-height: 1.65; }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: inline-flex; gap: 0.25rem; padding: 0.25rem;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 999px; margin-bottom: 2rem;
}
.lang-btn {
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 1.1rem; border: none; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--navy); color: #fff; }

/* ── BODY ── */
.speech-body p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.16rem; line-height: 1.85; color: var(--ink-700);
  margin-bottom: 1.35rem;
}
.speech-body p:first-child { font-size: 1.32rem; color: var(--ink); }
.speech-body[lang="ko"] p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.06rem; line-height: 2;
  word-break: keep-all;
}

.lang-note {
  margin-top: 1.75rem; padding: 0.9rem 1.1rem;
  background: var(--bg-subtle); border-left: 3px solid var(--sky);
  border-radius: 0 8px 8px 0;
  font-size: 0.83rem; color: var(--muted); line-height: 1.6;
}

.speech-source {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted); line-height: 1.6;
}
.speech-source a { color: var(--brand); font-weight: 600; }

/* ── SHARE ── */
.share { margin-top: 2.5rem; padding: 1.5rem; background: var(--brand-light); border-radius: 12px; }
.share-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 0.9rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--brand-dark);
  border: 1px solid rgba(2,62,98,0.18); text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.share-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── MORE ── */
.more { background: var(--bg-subtle); border-top: 1px solid var(--border); padding: 3rem 0 3.5rem; }
.more-head { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: 1.5rem; }
.more-grid { display: grid; gap: 1rem; }
.more-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.25rem 1.4rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 0.3s cubic-bezier(0.16,1,0.3,1), transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s;
}
.more-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(2,62,98,0.12); border-color: var(--sky); }
.more-date { font-size: 0.72rem; font-weight: 600; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; }
.more-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.more-excerpt { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ── FOOTER (identical to the homepage) ── */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.83rem; line-height: 1.6; }
.footer-hash { display: inline-block; margin-top: 1rem; font-size: 0.8rem; font-weight: 700; color: var(--sky); letter-spacing: 0.02em; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.78rem; }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; text-align: center; gap: 0.35rem; font-size: 0.72rem; } }

@media (max-width: 640px) {
  .speech { padding: 2.25rem 0 3rem; }
  .speech-body p { font-size: 1.08rem; line-height: 1.8; }
  .speech-body p:first-child { font-size: 1.18rem; }
  .nav-logo-main { font-size: 0.9rem; }
}
