:root {
  --ink: #2b2118;
  --muted: #8a7a68;
  --bg: #fdf9f2;
  --accent: #e79a3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 28px;
}

.site-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.site-header nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .site-header { padding: 16px 18px; }
  .site-name { font-size: 16px; }
  .site-header nav a { margin-left: 12px; font-size: 14px; }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero-name {
  font-size: clamp(38px, 7vw, 58px);
  font-weight: normal;
  margin: 22px 0 0;
  letter-spacing: 0.02em;
}

.under-construction {
  font-size: clamp(28px, 6vw, 44px);
  margin: 0 0 10px;
}

.uc-sub { color: var(--muted); margin: 0; }

/* --- Home sections --- */
.home-sections {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-top: 30px;
}

.home-sections a {
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.home-sections a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.home-sep { color: var(--muted); font-size: 19px; }

/* --- Section pages --- */
.page {
  width: min(640px, 100%);
  text-align: left;
  align-self: center;
  padding: 8px 0 32px;
}

.page h1 { font-size: clamp(34px, 7vw, 48px); margin: 8px 0 4px; }
.page h2 { font-size: 20px; margin: 30px 0 4px; }
.page p { line-height: 1.65; }
.page-intro { color: var(--muted); font-style: italic; margin-top: 0; }
.lang-note { color: var(--muted); font-size: 13px; font-style: italic; }

.topic-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 18px; }
.topic-list li { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid #eadfc9; padding-top: 14px; }
.topic-title { font-size: 18px; font-weight: bold; }
.topic-meta { font-size: 13px; color: var(--accent); }
.topic-desc { font-size: 15px; color: var(--muted); line-height: 1.55; }

.site-footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* --- Lion animation --- */
.lion { animation: lion-bob 3.4s ease-in-out infinite; }
.lion .mane { transform-origin: 100px 100px; animation: mane-breathe 3.4s ease-in-out infinite; }
.lion .eye { transform-box: fill-box; transform-origin: center; animation: lion-blink 4.6s infinite; }
.lion .ear-l { transform-box: fill-box; transform-origin: bottom right; animation: ear-wiggle 5.2s ease-in-out infinite; }
.lion .ear-r { transform-box: fill-box; transform-origin: bottom left; animation: ear-wiggle 5.2s ease-in-out infinite reverse; }

@keyframes lion-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes mane-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes lion-blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.08); }
  97% { transform: scaleY(1); }
}
@keyframes ear-wiggle {
  0%, 88%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-7deg); }
  96% { transform: rotate(5deg); }
}
