/* Self-hosted fonts — avoids loading from Google's CDN, which would send
   every visitor's IP address to Google on each page load without consent
   (a GDPR issue for EU visitors). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f5efe3;
  --charcoal: #262523;
  --red: #cb3a2c;
  --red-dark: #a92e22;
  --yellow: #f5c400;
  --secondary-text: #7c7566;
  --muted: #a79e8c;
  --border: #ded5c2;
  --card: #fbf7ee;
  --success: #0f6e56;
  --success-bg: #e1f5ee;
  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 26px;
  --max-width: 880px;
  --shadow-soft: 0 8px 24px rgba(38, 37, 35, 0.08);
  --shadow-lift: 0 14px 32px rgba(38, 37, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: var(--red);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  background: rgba(245, 239, 227, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

header.site-header img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-small);
}

header.site-header .brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--charcoal);
}

header.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

header.site-header nav a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

header.site-header nav a:hover,
header.site-header nav a[aria-current='page'] {
  color: var(--red);
}

@media (max-width: 640px) {
  header.site-header .wrap {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  header.site-header nav {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  header.site-header nav a {
    font-size: 0.85rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: var(--yellow);
  top: -140px;
  left: -100px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: var(--red);
  opacity: 0.18;
  bottom: -120px;
  right: -80px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero img.logo-large {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-lift);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 16px;
}

.platform-pill {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.hero p.subtitle {
  font-size: 1.15rem;
  color: var(--secondary-text);
  max-width: 560px;
  margin: 0 auto 32px;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-lift);
  margin: 48px auto 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-medium);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.badge.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(203, 58, 44, 0.3);
}

.badge.secondary {
  background: var(--card);
  color: var(--charcoal);
  border: 1px solid var(--border);
}

.badge:hover {
  transform: translateY(-2px);
}

.badge.primary:hover {
  box-shadow: 0 12px 24px rgba(203, 58, 44, 0.38);
}

/* ---------- Sections ---------- */

section {
  padding: 32px 0 64px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 1.7rem;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--secondary-text);
  max-width: 480px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 24px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.95rem;
}

.languages {
  text-align: center;
}

.lang-pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.lang-pill img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border);
}

/* ---------- Family strip (home teaser) ---------- */

.family-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  padding: 4px 4px 12px;
}

.family-strip .mini-avatar {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
}

.family-strip .avatar-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  font-size: 1.6rem;
}

.family-strip span.name {
  font-size: 0.8rem;
  color: var(--secondary-text);
  font-weight: 500;
}

.cta-inline {
  text-align: center;
  margin-top: 24px;
}

/* ---------- Family / character cards ---------- */

.avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  font-size: 2.4rem;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

.family-intro p {
  max-width: 640px;
}

.family-hero-photo {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-lift);
  margin: 0 auto 56px;
}

.family-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.family-grid {
  display: grid;
  justify-content: center;
  gap: 22px;
}

.family-grid--3,
.family-grid--2 {
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
}

.family-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 250px));
}

.family-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 250px));
}

@media (max-width: 620px) {
  .family-grid--3,
  .family-grid--2 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.character-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: 28px 24px;
  text-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

@media (max-width: 620px) {
  .character-card {
    display: block;
    width: 100%;
    max-width: 280px;
  }
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.character-card h3 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}

.character-card .role-line {
  color: var(--secondary-text);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.level-pill {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.character-card p.bio {
  font-size: 0.92rem;
  color: var(--charcoal);
  margin: 0 0 14px;
  text-align: left;
}

.character-card p.quote {
  font-style: italic;
  color: var(--secondary-text);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

/* ---------- Static content pages ---------- */

main.page {
  padding: 48px 0 80px;
}

main.page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

main.page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

main.page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
}

main.page h3.faq-question {
  font-size: 1.05rem;
  margin-top: 24px;
}

main.page p,
main.page li {
  color: var(--charcoal);
}

main.page ul {
  padding-left: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 28px;
  margin-top: 24px;
}

.contact-card a {
  font-weight: 600;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

footer.site-footer .links {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--secondary-text);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--red);
}
