@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

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

/* ── Variables ─────────────────────────────── */
:root {
  --bg:   #F5F0E8;
  --card: #FEFCF6;
  --text: #2D2D2D;
  --text-dim: rgba(45,45,45,0.55);
  --gold: #D4A017;
  --gold-light: #E8C84A;
  --ok: #4A7C59;
  --danger: #C0392B;
  --card-border: rgba(0,0,0,0.15);
  --pattern: rgba(45,45,45,0.06);
  --border: 1.5px dashed var(--card-border);
  --font: 'Indie Flower', cursive;
  --max-w: 720px;
}

/* ── Body ──────────────────────────────────── */
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  /* notebook ruled lines — light blue horizontals */
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 27px,
      rgba(100,149,237,0.12) 27px,
      rgba(100,149,237,0.12) 28px
    );
  background-size: 100% 28px;
}

/* red margin line — like a real notebook */
body::before {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 1px;
  background: rgba(220,60,60,0.18);
  pointer-events: none;
  z-index: 1;
}

/* crosshatch in bottom third */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33vh;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 7px,
      var(--pattern) 7px,
      var(--pattern) 8px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 15px,
      var(--pattern) 15px,
      var(--pattern) 16px
    );
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* ── Layout ────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
  position: relative;
  z-index: 2;
}

/* ── Cards — wobbly hand-drawn feel ────────── */
.card {
  background: var(--card);
  border: var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  transform: rotate(-0.3deg);
  position: relative;
  /* mimic wobbly border via uneven border-radius */
  border-radius: 6px 10px 8px 12px;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.04);
}
.card:nth-child(even) {
  transform: rotate(0.35deg);
  border-radius: 10px 6px 12px 8px;
}
.card:nth-child(3n) {
  transform: rotate(-0.15deg);
  border-radius: 8px 12px 6px 10px;
}
.card:nth-child(4n) {
  transform: rotate(0.5deg);
  border-radius: 12px 8px 10px 6px;
}

/* ── Typography ────────────────────────────── */
h1 {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: .25rem;
}
h2 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: .75rem;
  /* scribble divider — dashed underline */
  border-bottom: 1.5px dashed var(--gold);
  padding-bottom: .35rem;
}
h3 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: .5rem;
}
p { margin-bottom: .75rem; }
ul { padding-left: 1.5rem; margin-bottom: .75rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--gold); }
a { color: var(--gold); text-decoration-style: wavy; }
a:hover { color: var(--gold-light); }
strong { color: var(--gold); }
em { color: var(--text-dim); }

.tagline {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

/* ── Logo ──────────────────────────────────── */
.logo-img {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  transform: rotate(-2deg);
}

/* ── Badges — wobbly shape ─────────────────── */
.badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.badge {
  display: inline-block;
  border: var(--border);
  border-radius: 6px 10px 8px 12px;
  padding: .6rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  transition: background .15s, transform .15s;
  transform: rotate(-0.5deg);
}
.badge:nth-child(2) {
  transform: rotate(0.5deg);
  border-radius: 10px 6px 12px 8px;
}
.badge:hover {
  background: var(--gold);
  color: #fff;
  transform: rotate(0deg) scale(1.03);
}

/* ── Footer ────────────────────────────────── */
footer {
  text-align: center;
  padding: 1.5rem 0 0;
  border-top: 1.5px dashed var(--card-border);
  margin-top: 2rem;
  font-size: .95rem;
}
footer a {
  margin: 0 .75rem;
  text-decoration-style: wavy;
}

/* ── FAQ ───────────────────────────────────── */
.faq-q {
  font-weight: bold;
  margin-top: 1rem;
  color: var(--gold);
}
.faq-a { margin-bottom: .5rem; }


/* ── Language switcher ─────────────────────── */
.lang-switcher {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.85rem;
  z-index: 10;
}
.lang-btn {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card);
  border: var(--border);
  border-radius: 6px 10px 8px 12px;
  padding: .4rem .8rem;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.lang-chevron {
  opacity: 0.35;
  transition: opacity .15s;
}
.lang-btn:hover .lang-chevron {
  opacity: 0.7;
}
.lang-btn:hover {
  background: var(--gold);
  color: #fff;
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: .5rem;
  background: var(--card);
  border: var(--border);
  border-radius: 8px;
  padding: .5rem 0;
  max-height: 60vh;
  overflow-y: auto;
  min-width: 170px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.1);
}
.lang-dd-item {
  display: block;
  padding: .45rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .1s;
  white-space: nowrap;
}
.lang-dd-item:hover {
  background: rgba(212,160,23,0.1);
  color: var(--gold);
}
.lang-dd-item.active {
  color: var(--gold);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 480px) {
  body::before { left: 16px; }
  .wrap { padding: 1.5rem 1rem 3rem; }
  h1 { font-size: 1.8rem; }
  .tagline { font-size: 1.1rem; }
  .card { padding: 1.25rem 1rem; }
}
