:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body {
  --bg: #fbf9fd;
  --ink: #211c34;
  --muted: #5d576a;
  --line: #e9e3ef;
  --paper: #fff;
  --accent: #513b8d;
  --soft: #efe5ff;
  --art: #e5d4fc;
  --halo: #fbf4ff;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}
body[data-site="waiki"] {
  --bg: #f7f9ff; --ink: #161f39; --muted: #515d76; --line: #dbe2f1;
  --accent: #253f82; --soft: #e6eeff; --art: #18336e; --halo: #4875b5;
}
body[data-site="stickerme"] {
  --bg: #fff8fb; --ink: #33182f; --muted: #6e4b68; --line: #eedee8;
  --accent: #872c71; --soft: #f9e3f3; --art: #ebafe0; --halo: #ffe5f0;
}
body[data-site="birth"] {
  --bg: #f9f8f1; --ink: #23342b; --muted: #526459; --line: #e2e5d9;
  --accent: #2e5948; --soft: #e7eee0; --art: #bbccb0; --halo: #eef0d8;
  --display: Georgia, "Times New Roman", serif;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
figure, ul { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1160px, 100% - 72px); margin-inline: auto; }
.skip {
  position: absolute; top: .5rem; left: .5rem; z-index: 2;
  background: var(--paper); padding: .75rem 1rem; transform: translateY(-160%);
}
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.bar, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.bar { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.03rem; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 24%; flex: 0 0 auto; }
.bar nav, .footer nav { display: flex; align-items: center; gap: clamp(13px, 2.6vw, 29px); }
.bar nav > a:not(.button) { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.bar nav > a[aria-current="page"], .bar nav > a.in-blog { color: var(--ink); }
.bar nav > a:hover, .footer nav > a:hover, .quiet-link:hover, .back:hover { text-decoration: underline; text-underline-offset: 4px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 47px; padding: 10px 17px; border-radius: 12px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 690; white-space: nowrap;
}
.button:hover { filter: brightness(.89); text-decoration: none; }
.bar .button { min-height: 39px; padding-inline: 12px; font-size: .86rem; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  gap: clamp(30px, 6.1vw, 90px); align-items: center; padding-block: clamp(45px, 6.5vw, 94px);
}
.hero-copy { min-width: 0; }
.home-film { width: 100%; background: #171621; }
.home-film-summary { display: none; }
@media (min-width: 800px) {
  .home-film-summary {
    display: block;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .home-film-summary .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
    padding-block: 6px;
  }
  .home-film-summary p { font-weight: 700; }
  .home-film-summary .button { min-height: 40px; padding-block: 6px; }
}
.home-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.home-film video::cue { background: #161521df; font-size: clamp(13px, 2.15vw, 30px); }
body[data-site="birth"] .home-film video::cue {
  background: transparent;
  color: #fff;
  font-size: clamp(15px, 2.15vw, 30px);
  font-weight: 700;
  text-shadow: -.08em -.08em 0 #000, 0 -.08em 0 #000, .08em -.08em 0 #000,
    -.08em 0 0 #000, .08em 0 0 #000,
    -.08em .08em 0 #000, 0 .08em 0 #000, .08em .08em 0 #000;
}
.home-film.has-caption-overlay { position: relative; }
.home-film.has-caption-overlay video::cue { opacity: 0; }
.home-film-caption {
  position: absolute;
  inset-inline: 5%;
  inset-block-end: max(3.6rem, 10%);
  margin: 0;
  color: #fff;
  font: 700 clamp(15px, 2.15vw, 30px)/1.25 system-ui, sans-serif;
  -webkit-text-stroke: .16em #000;
  paint-order: stroke fill;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
}
.home-film-intro { padding-block: clamp(28px, 5vw, 60px); }
.home-film-intro h1 {
  margin-block: 12px 15px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.home-film-intro .lead { max-width: 54ch; }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: .78rem; font-weight: 780; letter-spacing: .085em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.hero h1 { font-size: clamp(2.9rem, 5.2vw, 5.2rem); letter-spacing: -.062em; font-weight: 790; line-height: 1.02; margin: 19px 0 20px; }
body[data-site="birth"] .hero h1, body[data-site="birth"] .story h1 { font-weight: 600; letter-spacing: -.045em; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.63vw, 1.26rem); line-height: 1.63; max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 21px; align-items: center; margin-top: 27px; }
.generation-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  width: fit-content;
  max-width: 100%;
  padding: clamp(13px, 2vw, 19px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.generation-notice > p {
  max-width: 43ch;
  color: var(--ink);
  font-weight: 630;
  line-height: 1.5;
}
.generation-notice .button { white-space: normal; }
.quiet-link, .back { color: var(--accent); font-size: .94rem; font-weight: 680; text-decoration: none; }
.quiet-link span { margin-left: 3px; }
.platform { margin-top: 15px; color: var(--muted); font-size: .81rem; line-height: 1.5; }
.showcase {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  min-height: clamp(385px, 43vw, 533px); border-radius: 34px; padding: 28px 24px 48px;
  background: radial-gradient(ellipse at 55% 37%, var(--halo), var(--art) 68%);
}
.orbit {
  position: absolute; z-index: -1; width: 91%; aspect-ratio: 1; border: 1px solid #fff8;
  border-radius: 50%; transform: rotate(-23deg) scaleY(.8);
  box-shadow: 0 0 0 35px #ffffff19, 0 0 0 76px #ffffff14;
}
.product {
  width: auto; height: clamp(320px, 34vw, 432px); aspect-ratio: 462 / 1000; object-fit: cover;
  border-radius: 21px; border: 1px solid #fff7; box-shadow: 0 24px 54px #2113303d;
}
.showcase figcaption {
  position: absolute; right: 18px; bottom: 17px; display: flex; gap: 9px; align-items: center;
  border: 1px solid #fff; border-radius: 13px; padding: 7px 10px 7px 7px;
  background: #fffffff4; color: var(--ink); font-size: .81rem; font-weight: 740;
}
.showcase figcaption img, .article-cta img { border-radius: 24%; }
.features, .journal { padding-block: 33px 52px; }
.section-title { margin-bottom: 22px; }
.section-title h2, .section-title h1 { font-size: clamp(1.95rem, 3.55vw, 3.4rem); letter-spacing: -.045em; margin-top: 7px; }
.feature-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.feature-list li {
  border: 1px solid var(--line); border-radius: 20px; background: var(--paper);
  padding: 22px clamp(18px, 2.6vw, 33px) 25px;
}
.feature-number {
  display: inline-block; background: var(--soft); color: var(--accent);
  font-size: .77rem; font-weight: 730; letter-spacing: .06em; padding: 6px 8px; border-radius: 7px;
}
.feature-list h3 { margin: 15px 0 8px; font-size: 1.19rem; letter-spacing: -.015em; }
.feature-list p, .summary { color: var(--muted); line-height: 1.6; }
.journal { padding-bottom: 75px; }
.post-list { display: grid; gap: 16px; }
.post-card {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  border-radius: 22px; background: var(--soft); padding: clamp(20px, 3.3vw, 37px);
  text-decoration: none;
}
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.post-card h3 { margin: 10px 0 8px; font-size: clamp(1.4rem, 2.55vw, 2.15rem); letter-spacing: -.035em; }
.post-card .summary { margin-bottom: 12px; max-width: 62ch; }
time { color: var(--muted); font-size: .83rem; }
.arrow {
  display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%;
  background: var(--paper); color: var(--accent); font-weight: 800;
}
.index { padding-top: clamp(45px, 8vw, 112px); min-height: 52vh; }
.story { padding-block: 42px 73px; max-width: 820px; }
.story-head { margin: 29px 0 31px; padding: clamp(22px, 4.5vw, 47px); border-radius: 26px; background: var(--soft); }
.story h1 { font-size: clamp(2.15rem, 5vw, 4.15rem); line-height: 1.06; letter-spacing: -.051em; margin: 12px 0 14px; }
.story-deck { color: var(--muted); line-height: 1.58; font-size: clamp(1rem, 2vw, 1.18rem); margin-bottom: 13px; }
.prose { max-width: 68ch; padding-inline: clamp(0px, 1.5vw, 18px); margin-inline: auto; font-size: 1.06rem; line-height: 1.72; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: clamp(1.35rem, 2.8vw, 1.89rem); line-height: 1.22; letter-spacing: -.026em; margin: 1.55em 0 .45em; }
.references a { display: block; color: var(--accent); text-underline-offset: 4px; }
.article-cta {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-top: 33px; padding: 14px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 16px;
}
.article-cta .button { margin-left: auto; }
.footer { border-top: 1px solid var(--line); padding-block: 22px 29px; }
.footer nav { gap: 10px 20px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.footer nav a { text-decoration: none; }
.analytics-consent {
  border-block-end: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.45;
}
.analytics-consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 10px;
}
.analytics-consent-copy { flex: 1 1 24rem; min-inline-size: 0; }
.analytics-details > summary {
  inline-size: fit-content;
  min-block-size: 24px;
  margin-block-start: 2px;
  color: var(--accent);
  cursor: pointer;
}
.analytics-details > summary:hover { text-decoration: underline; }
.analytics-disclosure { max-inline-size: 64ch; }
.analytics-disclosure p { margin-block: 6px; }
.analytics-consent .analytics-privacy {
  display: block;
  inline-size: fit-content;
  margin-block-start: 4px;
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.analytics-options button {
  min-block-size: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.analytics-options button:hover,
.analytics-options button[aria-pressed="true"] { border-color: var(--accent); }

@media (max-width: 790px) {
  .analytics-options { flex: 1 0 100%; }
  .wrap { width: min(690px, 100% - 44px); }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 26px; }
  .hero h1 { max-width: 18ch; }
  .showcase { min-height: 390px; }
  .feature-list { grid-template-columns: 1fr; gap: 9px; }
  .feature-list li { padding: 18px 19px; }
  .feature-list h3 { margin-top: 10px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 65px; gap: 6px; }
  .bar .brand { gap: 7px; font-size: .92rem; }
  .bar .brand img { width: 32px; height: 32px; }
  .bar nav { gap: 12px; }
  .bar nav .nav-home { display: none; }
  .bar .button { min-height: 36px; padding-inline: 9px; gap: 5px; font-size: .77rem; }
  .hero h1 { font-size: clamp(2.35rem, 11.7vw, 3.5rem); }
  .showcase { border-radius: 23px; min-height: 370px; padding-bottom: 43px; }
  .product { height: 307px; border-radius: 15px; }
  .showcase figcaption { bottom: 10px; right: 10px; }
  .showcase figcaption img { height: 25px; width: 25px; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 14px; }
}
