/* Snowbreak site. Layout cue: ponos.jp (white, playful wordmark, condensed caps nav,
   image cards with an accent bar). Our twist: section titles run vertically on the left. */

:root {
  --bg: #ffffff;
  --snow: #f2f7ff;
  --ink: #1b2333;
  --muted: #5a6476;
  --line: #e4eaf2;
  --accent: #2e7cf6;      /* logo and decoration (large text only) */
  --link: #1f63d6;        /* links and buttons: 5.5:1 on white */
  --accent-ink: #ffffff;
  --accent-soft: #e6f0ff;
  --header-h: 68px;
  --radius: 18px;
  --font-logo: "Fredoka", "Arial Rounded MT Bold", "Nunito Sans", system-ui, sans-serif;
  --font-label: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* Per-product colors; a product page overrides these via body.theme-<slug>. */
  --p-bg: var(--snow);
  --p-ink: var(--ink);
  --p-accent: var(--link);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.logo:hover { text-decoration: none; }
.logo-small { font-size: 26px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav a {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- Sections with vertical titles ---------- */
.sec {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 104px 32px;
}
.sec + .sec { border-top: 1px solid var(--line); }
.sec-label {
  writing-mode: vertical-rl;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  margin: 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
}
.sec-label::before {
  content: "";
  width: 6px; height: 48px;
  border-radius: 3px;
  background: var(--p-accent);
}
.sec-body { min-width: 0; }
.sec-intro { font-size: 20px; line-height: 1.7; max-width: 46ch; margin: 0 0 32px; }
.sec-body h3 { font-family: var(--font-logo); font-weight: 600; font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.sec-body p { margin: 0 0 16px; max-width: 68ch; }
.lead-big {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.2;
  margin: 0 0 28px;
  max-width: 20ch;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--snow) 100%);
  text-align: center;
  padding: 40px 20px 96px;
}
.hero-mark {
  position: relative; z-index: 2;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(72px, 15vw, 200px);
  line-height: .95;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0;
}
.hero-tag {
  position: relative; z-index: 2;
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink);
  margin: 18px 0 0;
}
.kv-item {
  position: absolute; z-index: 1;
  width: clamp(64px, 9vw, 120px);
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: 0 14px 30px rgba(27, 35, 51, .14);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.kv-item img { width: 100%; height: 100%; object-fit: cover; }
.kv-1 { top: 14%; left: 12%; animation-delay: -1s; }
.kv-2 { top: 18%; right: 13%; animation-delay: -3s; }
.kv-3 { bottom: 20%; left: 18%; animation-delay: -2s; }
.kv-4 { bottom: 16%; right: 19%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.flake {
  position: absolute; top: -12px; z-index: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: #cfe0fb;
  animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(110vh); } }
.scroll-down {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-down::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: var(--muted); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Product cards (ponos-style: media tile with an accent bar) ---------- */
.products-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.card { color: var(--ink); display: block; }
.card:hover { text-decoration: none; }
.card-media {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--card-bg, var(--snow));
  border-left: 6px solid var(--card-accent, var(--accent));
  border-radius: 4px var(--radius) var(--radius) 4px;
  overflow: hidden;
}
.card-media img { width: 34%; border-radius: 24%; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.06) rotate(-2deg); }
.card-name {
  font-family: var(--font-logo); font-weight: 600; font-size: 22px; line-height: 1.25;
  margin: 14px 0 2px;
}
.card-sub { font-size: 15px; color: var(--muted); margin: 0; }
.card-big .card-media img { width: 26%; }
.card-big .card-name { font-size: 30px; }
.card-big .card-sub { font-size: 17px; }
.card-list { display: grid; gap: 22px; align-content: start; }
.card-list .card-media { aspect-ratio: 16 / 8; }
.card-list .card-media img { width: 26%; }
.card-list .card-name { font-size: 19px; margin-top: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 28px; }

.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line); vertical-align: -3px; margin-right: 6px; }
.badge {
  display: inline-block;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; vertical-align: middle;
  background: var(--snow); color: var(--muted);
}
.badge-live { background: #e3f6e9; color: #1d7a3c; }
.badge-beta { background: #fff2d9; color: #8a5a00; }
.badge-dev { background: #efeaff; color: #5a3fb0; }

/* ---------- Lists, tables, buttons ---------- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news time { font-family: var(--font-label); letter-spacing: .06em; color: var(--muted); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; color: var(--muted); }
.facts dd { margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-logo); font-weight: 600; font-size: 18px;
  padding: 14px 30px; border-radius: 999px;
  background: var(--p-accent); color: #fff;
  border: 2px solid var(--p-accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--p-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--p-bg); border-radius: var(--radius); padding: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Product pages ---------- */
.product-hero { background: var(--p-bg); color: var(--p-ink); }
.product-hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 88px 32px 80px;
  display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
}
.product-icon { width: 168px; border-radius: 24%; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.product-name { font-family: var(--font-logo); font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 10px 0 12px; }
.product-tagline { font-size: 21px; margin: 0; max-width: 40ch; }
.coming { font-family: var(--font-logo); font-weight: 600; font-size: 19px; margin: 18px 0 0; }
.crumbs { font-family: var(--font-label); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.crumbs a { color: inherit; opacity: .7; }
/* Product themes (one line each). */
.theme-paw-stamps { --p-bg: #fff6e0; --p-ink: #2b2117; --p-accent: #c83e31; }
.theme-mimuji { --p-bg: #fff6e0; --p-ink: #2b2117; --p-accent: #c83e31; } /* shares Paw Stamps' sticker-book look on purpose */
.theme-doodlelearn { --p-bg: #eee9fa; --p-ink: #1c1733; --p-accent: #40367a; }
.theme-evertails { --p-bg: #f6efe6; --p-ink: #3b2f28; --p-accent: #a35537; }

/* ---------- Simple documents (privacy, support) ---------- */
.doc { max-width: 760px; }
.doc h2 { font-family: var(--font-logo); font-weight: 600; font-size: 24px; margin: 36px 0 10px; }
.doc ul { padding-left: 22px; }
.updated { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--snow); border-top: 1px solid var(--line); }
.site-footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px 32px 40px; display: grid; gap: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { font-family: var(--font-label); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.copyright { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .products-feature { grid-template-columns: 1fr; }
  .card-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .site-header { padding: 0 16px; }
  .logo { font-size: 28px; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    content: ""; display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .menu-toggle-bars::before { position: absolute; top: -7px; }
  .menu-toggle-bars::after { position: absolute; top: 7px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 8px 16px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 0; font-size: 16px; }
  .sec { grid-template-columns: 1fr; gap: 20px; padding: 64px 16px; }
  .sec-label { writing-mode: horizontal-tb; position: static; font-size: 24px; }
  .sec-label::before { width: 32px; height: 5px; }
  .news li, .facts div { grid-template-columns: 1fr; gap: 4px; }
  .product-hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 56px 16px 48px; }
  .product-icon { width: 112px; }
  .site-footer-inner { padding: 40px 16px 32px; }
  .kv-item { width: 58px; }
  .kv-1 { top: 8%; left: 6%; } .kv-2 { top: 10%; right: 6%; }
  .kv-3 { bottom: 14%; left: 8%; } .kv-4 { bottom: 12%; right: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
