/* Venu & Vena: the Paper Garden look on the web (docs: venu-vena-studio docs/STYLE-GUIDE.md, section 4). */

@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Andika"; src: url(/fonts/andika.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Garden palette from the episodes. */
  --sky: #c4e2e8;
  --hill-1: #a4ca96;
  --hill-2: #7eb670;
  --grass: #68a058;
  --sun: #fac450;
  --banner: #face70;
  --red: #de5446;
  --venu: #e8833a;
  --vena: #2a9d8f;
  /* Page. Text colours are darker than the art colours so they pass WCAG AA on the paper. */
  --paper: #fbf6ec;
  --card: #fffdf8;
  --rim: #ffffff;
  --ink: #2d2a26;
  --ink-soft: #5a5249;
  --venu-ink: #a64a12;
  --vena-ink: #1b6b62;
  --link: #1b6b62;
  --button: #1b6b62;
  --button-ink: #ffffff;
  --shadow: 0 2px 0 rgba(80, 60, 30, 0.06), 0 10px 22px -8px rgba(80, 60, 30, 0.28);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --radius: 16px 20px 14px 22px / 20px 14px 22px 16px;
  --tap: 48px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font: 1.125rem/1.6 "Andika", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--venu); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Baloo 2", "Andika", system-ui, sans-serif; line-height: 1.15; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 0.8em; }
.small { font-size: 0.95rem; color: var(--ink-soft); }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--card); padding: 12px 16px; z-index: 10; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */

.site-header { background: var(--sky); position: relative; z-index: 2; }
.home .site-header { background: transparent; position: absolute; inset: 0 0 auto 0; z-index: 3; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: block; padding: 4px; margin-left: -4px; }
.logo img { width: 128px; }
.home .logo { display: none; } /* the big wordmark is right below */
.home .header-row { justify-content: center; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; margin-right: -8px; }
.menu a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  font: 700 1.05rem/1 "Baloo 2", system-ui, sans-serif; color: #1f2a2c; text-decoration: none; border-radius: 999px;
}
.menu a:hover { background: rgba(255, 255, 255, 0.55); }
.menu a[aria-current="page"] { background: #fffdf8; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden; background: var(--sky);
  padding: 96px 16px 0; text-align: center;
}
.sky img { position: absolute; pointer-events: none; }
.sun { width: 64px; right: 14px; top: 62px; }
.cloud-1 { display: none; width: 120px; left: -40px; top: 200px; opacity: 0.95; }
.cloud-2 { width: 120px; right: 26%; top: 18px; opacity: 0.9; display: none; }

.hero-stage {
  position: relative; z-index: 1; max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "strip strip" "venu vena";
  align-items: end; column-gap: 8px;
}
.hero-strip {
  grid-area: strip; justify-self: center; width: min(100%, 460px);
  background: url(/img/strip.webp) center / 100% 100% no-repeat;
  padding: 22px 26px 24px; margin-bottom: -6px; position: relative; z-index: 2;
}
.hero-strip h1 { margin: 0; }
.hero-strip h1 img { width: 100%; }
.tagline { margin: 4px 0 0; font: 600 clamp(1.1rem, 0.95rem + 0.9vw, 1.55rem)/1.2 "Baloo 2", system-ui, sans-serif; color: #263a5c; }
.hero-venu, .hero-vena { position: relative; z-index: 1; filter: drop-shadow(0 6px 6px rgba(40, 60, 30, 0.18)); }
.hero-venu { grid-area: venu; justify-self: end; width: min(44vw, 230px); margin-bottom: -18px; }
.hero-vena { grid-area: vena; justify-self: start; width: min(40vw, 206px); margin-bottom: -14px; }
.hills { position: relative; width: 100vw; min-width: 760px; max-width: none; margin: -44px 0 0 50%; transform: translateX(-50%); }

@media (min-width: 760px) {
  .hero { padding-top: 84px; }
  .hero-stage { grid-template-columns: 1fr auto 1fr; grid-template-areas: "venu strip vena"; column-gap: 0; }
  .hero-strip { width: 520px; margin: 0 -14px 84px; align-self: center; }
  .hero-venu { width: 300px; margin-bottom: -30px; }
  .hero-vena { width: 268px; margin-bottom: -24px; }
  .sun { width: 110px; top: 60px; right: 9%; }
  .cloud-1 { display: block; width: 190px; left: 4%; top: 70px; }
  .cloud-2 { display: block; width: 170px; top: 40px; }
  .hills { margin-top: -120px; }
}

/* The cream page tears in over the grass. */
.intro {
  position: relative; background: var(--paper) var(--grain); margin-top: -28px; padding: 30px 0 8px; z-index: 1;
}
.intro::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: var(--paper);
  -webkit-mask: url(/img/torn-edge.png) center top / 1200px 24px repeat-x; mask: url(/img/torn-edge.png) center top / 1200px 24px repeat-x;
}
.lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem); text-align: center; margin-bottom: 1em; }
.intro .actions { justify-content: center; }

/* ---------------------------------------------------------------- shared pieces */

.section { padding-block: 32px 8px; }
.section-lead { color: var(--ink-soft); margin-top: -0.2em; }
.more { margin-top: 16px; }
.more a, .actions a:not(.button) { display: inline-flex; align-items: center; min-height: var(--tap); }
.eyebrow { font: 700 0.95rem/1.3 "Baloo 2", system-ui, sans-serif; letter-spacing: 0.02em; color: var(--venu-ink); margin: 0 0 4px; }
.soon { font-weight: 700; color: var(--vena-ink); }

.card {
  background: var(--card); border: 3px solid var(--rim); border-radius: var(--radius); box-shadow: var(--shadow);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  font: 700 1.1rem/1 "Baloo 2", system-ui, sans-serif; text-decoration: none;
  background: var(--button); color: var(--button-ink); border: 3px solid var(--button);
  border-radius: 999px 999px 999px 999px / 999px 999px 999px 999px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.12s ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); }
.button.ghost { background: transparent; color: var(--link); border-color: currentColor; box-shadow: none; }

/* ---------------------------------------------------------------- video player */

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0e1a1d; }
.player-link, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-link img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--venu); border: 4px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  display: grid; place-items: center; transition: transform 0.12s ease;
}
.play svg { width: 40px; fill: #fff; margin-left: 4px; }
.player-link:hover .play { transform: scale(1.06); }
.player-link:focus-visible { outline-offset: -6px; outline-color: #fff; }

.newest { padding: 10px; display: grid; gap: 12px; }
.newest-text { padding: 2px 8px 6px; }
.newest h3 { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
@media (min-width: 900px) {
  .newest { grid-template-columns: 1.6fr 1fr; align-items: center; padding: 14px; }
}

/* ---------------------------------------------------------------- series tiles */

.tiles { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  display: grid; grid-template-columns: 100%; grid-template-rows: auto auto 1fr; align-content: start; height: 100%; padding: 12px 12px 14px;
  text-decoration: none; color: var(--ink); background: var(--card); border: 3px solid var(--rim);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.12s ease;
}
.tile:hover { transform: translateY(-2px) rotate(-0.4deg); }
.tile-art {
  display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; border-radius: 12px 16px 10px 14px; margin-bottom: 10px;
  background: var(--tile, var(--hill-1)); color: #fff7e6;
}
.glyph { font: 800 clamp(3.2rem, 2.6rem + 3vw, 4.6rem)/1 "Baloo 2", system-ui, sans-serif; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.12); }
.glyph.ink { color: #9c3a2e; text-shadow: none; }
.glyph-sm { font-size: clamp(2.3rem, 2rem + 2vw, 3.2rem); }
.glyph-svg { width: 72%; }
.tile-name { font: 700 1.2rem/1.2 "Baloo 2", system-ui, sans-serif; }
.tile-count { font-size: 0.95rem; color: var(--ink-soft); }
.tile-red { --tile: var(--red); }
.tile-sky { --tile: #4f8fc0; }
.tile-sun { --tile: #e9a23b; }
.tile-paper { --tile: #f3e6cc; }
.tile-grass { --tile: var(--grass); }
.tile-venu { --tile: var(--venu); }
.tile-vena { --tile: var(--vena); }

/* ---------------------------------------------------------------- apps and maker */

.app-card { display: grid; gap: 16px; padding: 14px; }
.app-card img { border-radius: 14px; width: 100%; max-width: 360px; justify-self: center; }
.app-card h3 { font-size: 1.8rem; margin-bottom: 0.2em; }
@media (min-width: 700px) {
  .app-card { grid-template-columns: 280px 1fr; align-items: center; padding: 18px 24px 18px 18px; }
}
.maker { padding: 22px 22px 18px; }
.maker .actions { margin-top: 8px; }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: 56px; position: relative; background: var(--grass); color: #13240f; padding: 30px 0 24px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: var(--grass);
  -webkit-mask: url(/img/torn-edge.png) center top / 1200px 24px repeat-x; mask: url(/img/torn-edge.png) center top / 1200px 24px repeat-x;
}
.site-footer a { color: #0f2a0c; }
.site-footer .small { color: #1d3519; }
.footer-grid { display: grid; gap: 12px 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer-brand { font: 800 1.6rem/1 "Baloo 2", system-ui, sans-serif; margin-bottom: 6px; }
.footer-brand .venu { color: #7a3209; }
.footer-brand .vena { color: #0d4d46; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
@media (min-width: 700px) { .footer-links { flex-direction: column; } }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.footer-note { margin-top: 12px; }

/* ---------------------------------------------------------------- simple pages */

.page-head { background: var(--sky); position: relative; padding: 18px 0 44px; }
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: var(--paper);
  -webkit-mask: url(/img/torn-edge.png) center top / 1200px 24px repeat-x; mask: url(/img/torn-edge.png) center top / 1200px 24px repeat-x;
}
.page-head h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); margin: 0; }
.prose { padding-block: 8px 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.tile-sun .glyph { color: #4a2c06; text-shadow: none; }

/* ---------------------------------------------------------------- videos page */

.page-lead { font-size: 1.15rem; margin: 6px 0 0; max-width: 40em; }
.chips { display: flex; gap: 8px; margin: 4px -16px 0; padding: 8px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--rim); box-shadow: var(--shadow);
  font: 700 1rem/1 "Baloo 2", system-ui, sans-serif; color: var(--ink); text-decoration: none;
}
.series { padding-top: 28px; scroll-margin-top: 8px; }
.series-head { display: flex; gap: 12px; align-items: center; }
.series-head h2 { margin: 0; }
.series-badge { flex: none; width: 18px; align-self: stretch; border-radius: 6px 9px 5px 8px; background: var(--tile); }
.series-blurb { color: var(--ink-soft); margin: 2px 0 0; }
.series-count { font-weight: 700; color: var(--vena-ink); white-space: nowrap; }
.row {
  list-style: none; margin: 14px -16px 0; padding: 4px 16px 14px; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(64vw, 250px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px; overscroll-behavior-x: contain;
}
.row:empty { display: none; }
.row-tall { grid-auto-columns: min(40vw, 170px); }
.ep { scroll-snap-align: start; }
.ep-title { font: 700 1.02rem/1.3 "Baloo 2", system-ui, sans-serif; margin: 8px 2px 0; }
.ep-meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0 2px; }
.row-empty { background: var(--card); border: 3px dashed var(--rim); border-radius: var(--radius); padding: 16px; margin-top: 12px; color: var(--ink-soft); }
.player.small .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-width: 3px; }
.player.small .play svg { width: 28px; margin-left: 3px; }
.player.tall { aspect-ratio: 9 / 16; }
.center { text-align: center; }
@media (min-width: 900px) {
  .row { margin-inline: 0; padding-inline: 0; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .row-tall { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 168px; overflow-x: auto; padding-bottom: 14px; }
}

/* ---------------------------------------------------------------- about page */

.pair { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 8px 0 16px; }
.pair img { width: min(42%, 220px); }
.pair img + img { width: min(37%, 196px); }
.venu-ink { color: var(--venu-ink); }
.vena-ink { color: var(--vena-ink); }
.ticks { padding-left: 1.3em; }
.ticks li { margin-bottom: 0.5em; padding-left: 0.2em; }
.ticks li::marker { color: var(--venu); font-size: 1.2em; }

/* ---------------------------------------------------------------- apps and Echo Pals */

.app-list { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 16px; }
.app-list h2 { margin-bottom: 0.2em; }
.app-hero { display: grid; gap: 4px; align-items: center; }
.app-hero img { width: min(62vw, 260px); justify-self: center; margin-bottom: -40px; position: relative; z-index: 1; filter: drop-shadow(0 8px 10px rgba(40, 60, 30, 0.2)); }
@media (min-width: 760px) { .app-hero { grid-template-columns: 1fr 300px; } .app-hero img { width: 300px; } }
.page-head .eyebrow a { color: inherit; }
.feature-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.feature-grid li { padding: 14px 16px 6px; }
.feature-grid h3 { font-size: 1.25rem; margin-bottom: 0.2em; color: var(--venu-ink); }
.pet-row { display: flex; justify-content: center; gap: 4%; margin-top: 18px; }
.pet-row img { width: min(28%, 180px); filter: drop-shadow(0 6px 8px rgba(40, 60, 30, 0.18)); }
.note { background: var(--card); border-left: 6px solid var(--sun); border-radius: 8px; padding: 12px 14px; }
.steps li { margin-bottom: 0.5em; padding-left: 0.2em; }
.steps li::marker { font: 700 1.05em "Baloo 2", system-ui, sans-serif; color: var(--venu-ink); }
.contact-card { margin: 8px 0 8px; }
.faq { background: var(--card); border: 3px solid var(--rim); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; min-height: var(--tap); padding: 12px 44px 12px 16px; position: relative; list-style: none;
  font: 700 1.08rem/1.3 "Baloo 2", system-ui, sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--vena-ink); }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 16px 6px; }
.page-head .eyebrow a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- feedback form */

.feedback { padding: 18px 18px 22px; margin-top: 8px; }
.feedback fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.feedback legend, .feedback .field { display: block; font: 700 1.15rem/1.3 "Baloo 2", system-ui, sans-serif; margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 6px 14px; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 999px; background: var(--paper);
}
.choices label:has(input:checked) { border-color: var(--vena-ink); background: color-mix(in srgb, var(--vena) 16%, var(--paper)); font-weight: 700; }
.choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--vena-ink); }
.scale span { font-size: 0.9rem; color: var(--ink-soft); }
.feedback textarea, .feedback input[type="email"] {
  display: block; width: 100%; margin: 0 0 22px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 12px; min-height: var(--tap);
}
.feedback textarea:focus, .feedback input:focus { border-color: var(--vena-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--vena) 40%, transparent); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback .button { width: 100%; cursor: pointer; font-size: 1.2rem; }
.center-actions { justify-content: center; }

.form-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--note-bg, #fde9e6);
  color: var(--note-ink, #8a2117);
  font-weight: 600;
}

