/* Vedabee - picture-book layout: wide honey-tinted pages, honeycomb character tiles, rounded Baloo display type */
:root {
  --honey-50: #fff9ee;
  --honey-100: #fdefd3;
  --paper: #fffdf8;
  --saffron: #e8622a;
  --saffron-deep: #c94c19;
  --honey: #f2b33d;
  --bark: #4a2511;
  --bark-soft: #6e4630;
  --teal: #2e8c8a;
  --leaf: #5f9c3a;
  --line: #f0dfbf;

  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.92rem;
  --step-0: 1.08rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 2.8rem);
  --step-4: clamp(2.5rem, 7vw, 4.2rem);

  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--honey-50);
  color: var(--bark);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--saffron-deep); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; color: var(--bark); }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-2); font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--bark-soft); max-width: 36ch; }
.measure { max-width: 62ch; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 56px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--saffron); }
.brand span b { color: var(--honey); font-weight: 800; }
.nav { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: var(--bark); text-decoration: none; padding: 6px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--honey-100); }
.nav a[aria-current="page"] { background: var(--saffron); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  padding: 12px 24px; border-radius: 999px; text-decoration: none;
  background: var(--saffron); color: #fff; border: 3px solid var(--saffron);
  box-shadow: 0 4px 0 var(--saffron-deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--saffron-deep); }
.btn.ghost { background: transparent; color: var(--bark); border-color: var(--bark); box-shadow: 0 4px 0 var(--bark); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { padding-block: 48px 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 .hl { color: var(--saffron); }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 6% 4% 2% 6%;
  background: var(--honey-100); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
}
.hero-art img { position: relative; animation: hover 5s ease-in-out infinite; }
@keyframes hover { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.langs { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--step--1); }
.langs span { background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 2px 12px; font-weight: 700; }

/* ---------- sections ---------- */
.section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; }
.band { background: var(--paper); border-block: 2px solid var(--line); }
.band-saffron { background: var(--saffron); color: #fff; }
.band-saffron h2, .band-saffron .eyebrow { color: #fff; }

/* ---------- honeycomb ---------- */
.hive { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; list-style: none; padding: 0; margin: 0; }
.hive li { width: 150px; }
.hive a { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--bark); text-align: center; }
.hex {
  --c: var(--saffron);
  width: 128px; aspect-ratio: 1 / 1.1; max-width: 100%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--c);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; color: #fff;
  transition: transform .2s ease;
}
.hive a:hover .hex { transform: scale(1.06) rotate(-3deg); }
.hive .name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.hive .tag { font-size: var(--step--1); color: var(--bark-soft); line-height: 1.3; }

/* ---------- feature trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trio > div { display: grid; gap: 10px; align-content: start; }
.trio .num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--honey); color: var(--bark); font-family: var(--display); font-weight: 800; font-size: 1.4rem;
}

/* ---------- books ---------- */
.book-feature { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.cover {
  aspect-ratio: 3 / 4; border-radius: 8px 20px 20px 8px; max-width: 100%;
  background: linear-gradient(160deg, #f6a04b, var(--saffron) 60%, var(--saffron-deep));
  box-shadow: inset 14px 0 0 rgba(0,0,0,.12), 0 18px 30px -12px rgba(74,37,17,.45);
  color: #fff; padding: 28px 24px 24px 38px; display: grid; align-content: space-between;
}
.cover .t { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.cover .s { font-size: .9rem; opacity: .95; }
.cover .glyph { font-family: var(--display); font-size: 5rem; line-height: 1; opacity: .9; }
.series { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.series li { background: var(--honey-100); border-radius: 12px; padding: 6px 14px; font-weight: 700; font-size: var(--step--1); }

/* ---------- character pages ---------- */
.char {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; align-items: start;
  padding-block: 44px; border-bottom: 2px dashed var(--line);
  scroll-margin-top: 20px;
}
.char:last-child { border-bottom: 0; }
.char .hex { width: 160px; font-size: 3.6rem; }
.char-body { display: grid; gap: 14px; }
.char-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.char-title .dev { font-family: var(--display); font-size: var(--step-1); color: var(--bark-soft); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.fact { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; }
.fact h4 { font-size: 1.05rem; color: var(--teal); }
.fact p { font-size: 1rem; line-height: 1.55; }
.symbol { font-size: var(--step--1); color: var(--bark-soft); }
.symbol b { color: var(--bark); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.jump a { display: block; padding: 4px 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); text-decoration: none; font-weight: 700; color: var(--bark); font-size: var(--step--1); }
.jump a:hover { border-color: var(--saffron); }

/* ---------- about ---------- */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.mv article { background: var(--paper); border-radius: var(--radius); padding: 30px; border: 2px solid var(--line); display: grid; gap: 12px; align-content: start; }
.mv article.vision { background: var(--bark); color: var(--honey-50); border-color: var(--bark); }
.mv article.vision h2 { color: var(--honey); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.values li { display: grid; gap: 6px; align-content: start; }
.values b { font-family: var(--display); font-size: 1.25rem; color: var(--saffron-deep); }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.founder { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.founder .hex { width: 96px; font-size: 2rem; }
.founder .role { color: var(--teal); font-weight: 700; }
.founder-body { display: grid; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bark); color: var(--honey-100); padding-block: 44px; font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--honey); }
.site-footer .f-brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--honey); line-height: 1; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .book-feature, .mv, .founders { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; order: -1; }
  .trio { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-feature .cover { max-width: 280px; }
}
@media (max-width: 600px) {
  .char { grid-template-columns: 1fr; gap: 18px; }
  .char .hex { width: 110px; font-size: 2.6rem; }
  .facts, .values { grid-template-columns: 1fr; }
  .hive li { width: 130px; }
  .hex { width: 108px; }
  .section { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  * { transition: none !important; }
}

/* ---------- coming soon ---------- */
.coming .wrap { display: grid; gap: 16px; justify-items: center; text-align: center; padding-block: 24px 40px; }
.coming img { width: min(300px, 70%); animation: hover 5s ease-in-out infinite; }
.coming .lede { margin: 0 auto; }

/* ---------- activities ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 700 var(--step--1)/1 var(--body); color: var(--bark); cursor: pointer;
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; list-style: none; padding: 0; margin: 0; }
.sheet { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.sheet .thumb { background: var(--honey-100); padding: 18px 22px 0; }
.sheet .thumb img { border-radius: 6px 6px 0 0; box-shadow: 0 -2px 12px rgba(74,37,17,.15); aspect-ratio: 210 / 297; object-fit: cover; object-position: top; width: 100%; }
.sheet-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.sheet-body h3 { font-size: 1.35rem; }
.sheet-body p { font-size: 1rem; line-height: 1.5; color: var(--bark-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: .8rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--honey-100); }
.sheet .btn { justify-self: start; margin-top: 6px; font-size: 1rem; padding: 9px 18px; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .tips { grid-template-columns: 1fr; } }
.tips > div { display: grid; gap: 8px; align-content: start; }
[hidden] { display: none !important; }

/* ---------- copyright ---------- */
.legal { display: grid; gap: 12px; max-width: 760px; }
.legal h2 { font-size: var(--step-2); margin-top: 14px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal li::marker { color: var(--saffron); }
.legal .updated { color: var(--bark-soft); font-size: var(--step--1); margin-top: 12px; }

/* ---------- home teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.teaser-copy { display: grid; gap: 10px; }
@media (max-width: 700px) { .teaser { grid-template-columns: 1fr; } }
