/* Shiba Run landing page v3 — one hero screen, no scroll.
   The painting follows the visitor's local time of day (html[data-time]);
   the copy column lives in the painting's open right-hand sky.
   html.flat = no-JS fallback (day painting via <noscript>, no tod dots). */

@font-face {
  font-family: "Baloo 2";
  src: url("assets/Baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --washi: #f9efda;
  --ink: #3a2e24;
  --navy: #2e4168;
  --teal: #3e9c8c;
  --vermilion: #d9542e;
  --wood: #a9714b;

  /* Copy ink + its halo flip together after dark. */
  --hero-ink: var(--ink);
  --hero-halo: 249 239 218; /* --washi in rgb */
}
html[data-time="night"] {
  --hero-ink: var(--washi);
  --hero-halo: 16 22 45;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Baloo 2", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--washi);
}

.hero {
  position: relative;
  height: 100svh; min-height: 480px;
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 42% bottom;
}

/* Copy column in the open sky, right of the pup. */
.copy {
  position: absolute;
  right: 6vw; top: 50%;
  transform: translateY(-56%);
  width: min(44vw, 560px);
  text-align: center;
  color: var(--hero-ink);
}
.logo {
  width: min(100%, 420px); height: auto;
  filter: drop-shadow(0 6px 14px rgb(var(--hero-halo) / 0.55));
}
.tagline {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.4vw + 0.6rem, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
  text-shadow:
    0 0 6px rgb(var(--hero-halo) / 0.9),
    0 0 18px rgb(var(--hero-halo) / 0.7),
    0 2px 28px rgb(var(--hero-halo) / 0.6);
}
.stores {
  margin-top: 1.6rem;
  display: flex; justify-content: center; align-items: center;
  gap: 0.9rem; flex-wrap: wrap;
}
.stores img {
  height: clamp(44px, 6.5vh, 58px); width: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(58 46 36 / 0.35);
  transition: transform 0.12s;
}
.stores a:hover img { transform: translateY(-2px); }
/* App Store: present but not yet linkable (iOS ships later). */
.stores .soon { position: relative; display: block; cursor: default; }
.stores .soon img { opacity: 0.45; }
.stores .soon em {
  position: absolute; left: 50%; bottom: -0.15rem; transform: translateX(-50%);
  font-style: normal; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.05rem 0.4rem; border-radius: 6px; white-space: nowrap;
  background: rgb(58 46 36 / 0.82); color: #fff;
}

/* Time-of-day dots. */
.tod {
  position: absolute;
  right: 1rem; bottom: 3.4rem;
  display: flex; gap: 0.55rem;
}
html.flat .tod { display: none; }
.tod button {
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  border: 2px solid rgb(var(--hero-halo) / 0.9);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.12s, transform 0.12s;
}
.tod button:hover { opacity: 1; transform: scale(1.15); }
.tod button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px rgb(var(--hero-halo) / 0.4); }
.tod [data-set="dawn"]  { background: #f6d9c4; }
.tod [data-set="day"]   { background: #8ecfee; }
.tod [data-set="dusk"]  { background: #f7b478; }
.tod [data-set="night"] { background: #2e4168; }

footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem 0.8rem;
  text-align: center;
  font-size: clamp(0.75rem, 1.6vh, 0.9rem);
  color: var(--hero-ink);
  text-shadow: 0 0 8px rgb(var(--hero-halo) / 0.9), 0 0 16px rgb(var(--hero-halo) / 0.7);
}
footer a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}
footer a:hover { color: var(--vermilion); }
.heart { color: var(--vermilion); text-shadow: none; }

/* Portrait: logo + tagline in the sky up top, the pup mid-frame, store
   badges parked above the footer so nothing sits on the dog. The tod dots
   go away — time is auto-picked, and phones don't have room for the toy. */
@media (max-aspect-ratio: 5/6) {
  .hero-art { object-position: 26% bottom; }
  .copy {
    inset: 5svh 6vw 3.9rem;
    right: 6vw; top: 5svh;
    transform: none;
    width: auto;
    display: flex; flex-direction: column; align-items: center;
  }
  .logo { width: min(68vw, 300px); }
  .stores { margin-top: auto; gap: 0.7rem; }
  /* Sized so both badges share one row down to 360px-wide screens. */
  .stores img { height: clamp(38px, 5vh, 46px); }
  .tod { display: none; }
}

/* Short landscape screens (phones on their side): scale the copy column by
   height so the badges don't fall off the bottom. */
@media (min-aspect-ratio: 5/6) and (max-height: 620px) {
  .hero { min-height: 320px; } /* keep one true screen, no scroll */
  .copy { transform: translateY(-52%); }
  .logo { width: min(100%, 58vh); }
  .tagline { margin-top: 0.6rem; font-size: clamp(0.85rem, 2.8vh, 1.1rem); }
  .stores { margin-top: 0.9rem; }
  .stores img { height: clamp(32px, 9vh, 46px); }
  /* Badges end up near the bottom edge; tuck the footer to the left so
     the privacy link never hides behind them. */
  footer { text-align: left; padding-left: 1.1rem; }
}

/* ---- shared bits kept for 404.html ---- */
.cta {
  display: inline-block;
  padding: 0.5em 1.2em;
  background: var(--vermilion); color: var(--washi);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.9vh, 1.05rem);
  box-shadow: 0 3px 0 rgb(58 46 36 / 0.35);
  transition: transform 0.12s;
}
.cta:hover { transform: translateY(-2px); }

/* ---- privacy.html ---- */
.plain {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.2rem 4rem;
  line-height: 1.6;
}
.plain h1 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.plain .date { opacity: 0.6; font-size: 0.85rem; margin-bottom: 1.6rem; }
.plain h2 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.plain p, .plain li { margin-bottom: 0.6rem; }
.plain ul { padding-left: 1.2rem; }
.plain a { color: var(--vermilion); text-underline-offset: 3px; }
.plain .home { display: inline-block; margin-top: 2rem; }
