@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/assets/Fredoka_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('/assets/Fredoka_700Bold.ttf') format('truetype'); }

:root {
  --night: #141c38;
  --panel: #0f1530;
  --yellow: #ffd21f;
  --cream: #fbf3e4;
  --dim: rgba(251, 243, 228, 0.74);
  --line: rgba(251, 243, 228, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--yellow); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .brand { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; line-height: 1.15; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-size: 22px; letter-spacing: 0.5px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.top { display: flex; gap: 18px; font-family: 'Fredoka', sans-serif; font-weight: 600; }
nav.top a { color: var(--dim); text-decoration: none; padding: 10px 0; }
nav.top a:hover, nav.top a[aria-current='page'] { color: var(--cream); }

/* Home */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex; align-items: center;
  background: var(--night) url('/assets/room.jpg') center bottom / cover no-repeat;
  overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,56,0.55) 0%, rgba(20,28,56,0.2) 45%, rgba(20,28,56,0.75) 100%); }
.hero .wrap { position: relative; z-index: 1; text-align: center; padding-top: 48px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(48px, 13vw, 96px); margin: 0; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero .tag { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(20px, 5vw, 28px); margin: 8px 0 0; }
.hero .tag em { font-style: normal; color: var(--yellow); }
.hero .mosquito { width: 92px; height: auto; margin: 34px auto 30px; display: block; animation: hover 0.6s ease-in-out infinite alternate; }
@keyframes hover { from { transform: translate(-3px, -2px) rotate(-2deg); } to { transform: translate(3px, 2px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero .mosquito { animation: none; } }
.badge {
  display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--yellow); color: #1b1530;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 19px;
}
.hero .small { color: var(--dim); margin-top: 14px; font-size: 15px; }

.how { padding: 56px 0 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.steps b { font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--yellow); font-size: 20px; display: block; margin-bottom: 4px; }

/* Text pages */
main.doc { padding: 40px 0 56px; }
main.doc h1 { font-size: clamp(32px, 8vw, 44px); margin: 0 0 6px; }
main.doc .updated { color: var(--dim); margin: 0 0 28px; font-size: 15px; }
main.doc h2 { font-size: 24px; margin: 36px 0 8px; }
main.doc h3 { font-size: 19px; margin: 24px 0 4px; }
main.doc p, main.doc li { color: var(--cream); }
main.doc ul { padding-left: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }
.card p:first-child { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--yellow); }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--dim); font-size: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
footer.site a { color: var(--dim); }
.card h2:first-child { margin-top: 0; }
.center { text-align: center; }
@media (max-width: 380px) {
  header.site .brand .word { display: none; }
  nav.top { gap: 14px; }
  .badge { font-size: 17px; padding: 12px 20px; }
}
