:root {
  color-scheme: light;
  --background: #ffffff;
  --pearl: #fbfaf6;
  --surface: rgba(255, 255, 255, .78);
  --text: #073744;
  --muted: #68828f;
  --line: #dce9eb;
  --orange: #ed6b3b;
  --aqua: #18b8cb;
  --teal: #064756;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-clear: rgba(240, 255, 255, .3);
  --glass-regular: rgba(244, 254, 254, .54);
  --glass-line: rgba(255, 255, 255, .72);
  --glass-shadow: 0 14px 36px rgba(6, 71, 86, .12);
  --max: 84rem;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.nav,
footer {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

.nav {
  position: absolute;
  z-index: 5;
  top: .9rem;
  left: 50%;
  display: flex;
  width: min(calc(100% - 3rem), var(--max));
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  padding: 0 1.35rem;
  border: 1px solid var(--glass-line);
  border-radius: 2rem;
  background: var(--glass);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-links a {
  color: var(--text);
  font-size: .95rem;
  text-decoration: none;
  transition: color .16s ease;
}

.nav-links a { font-size: .95rem; }

.nav-links a + a {
  position: relative;
}

.nav-links a + a::before {
  position: absolute;
  top: 50%;
  left: -.85rem;
  width: 1px;
  height: 1.25rem;
  background: var(--line);
  content: "";
  transform: translateY(-50%);
}

.nav-links a:hover { color: var(--aqua); }

main { min-height: calc(100vh - 10.4rem); }

.home-page main {
  background-color: #fff;
  background-image: url("assets/hero-water-pixel.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero {
  min-height: 30rem;
  background-color: #fff;
  background-image: url("assets/hero-water-pixel.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-page .hero { background: transparent; }

.hero-inner {
  display: flex;
  width: min(calc(100% - 3rem), var(--max));
  min-height: 30rem;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2,
.package-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

h1 {
  max-width: 42rem;
  margin-bottom: 1.4rem;
  font-size: clamp(4.4rem, 7.4vw, 7.25rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.065em;
}

h1 span { display: block; }

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-width: 10.7rem;
  padding: .93rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: 0 10px 28px rgba(6, 71, 86, .11), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover { transform: translateY(-2px); }

.primary {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(6, 71, 86, .82);
}

.primary:hover { background: rgba(10, 113, 128, .88); }

.secondary {
  border-color: rgba(7, 55, 68, .26);
  color: var(--text);
  background: var(--glass);
}

.secondary:hover { border-color: var(--aqua); }

.button-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: .38rem;
  object-fit: cover;
}

.character-stage {
  display: flex;
  width: min(36rem, 100%);
  min-height: 30rem;
  padding: 2.25rem 0 2.5rem;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.hero-character {
  display: block;
  width: min(12.5rem, 100%);
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.creator-name {
  margin: -.8rem 0 .7rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.creator-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
}

.creator-links a {
  display: inline-flex;
  width: 8.6rem;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .58rem .8rem;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  color: var(--text);
  background: var(--glass-clear);
  box-shadow: 0 12px 30px rgba(6, 71, 86, .14), 0 2px 5px rgba(6, 71, 86, .08), inset 0 1px 0 rgba(255, 255, 255, .98), inset 0 -1px 0 rgba(7, 55, 68, .08);
  backdrop-filter: blur(24px) saturate(185%) contrast(1.04) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(1.04) brightness(1.06);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.creator-links a:hover {
  border-color: rgba(255, 255, 255, .96);
  background: rgba(245, 255, 255, .42);
  box-shadow: 0 16px 36px rgba(6, 71, 86, .18), 0 2px 6px rgba(6, 71, 86, .09), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(7, 55, 68, .08);
  transform: translateY(-2px);
}

.creator-links a:focus-visible {
  outline: 3px solid rgba(24, 184, 203, .38);
  outline-offset: 3px;
}

.creator-links img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.creator-links .sileo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: .38rem;
}

.packages { background: rgba(255, 255, 255, .93); }

.home-page .packages { background: transparent; }

.packages-inner {
  width: min(calc(100% - 3rem), 76rem);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.section-heading { margin-bottom: 1.3rem; }

.home-page .section-heading h2 {
  color: rgba(7, 55, 68, .94);
  font-size: clamp(2.35rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.07em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .78), 0 10px 28px rgba(6, 71, 86, .13);
}

.package-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .55rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: transform .16s ease;
}

.package-card:hover { transform: translateX(.3rem); }

.home-page .package-card {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 1.45rem;
  outline: 1px solid rgba(7, 55, 68, .05);
  background: var(--glass-regular);
  box-shadow: 0 20px 46px rgba(6, 71, 86, .15), 0 3px 8px rgba(6, 71, 86, .07), inset 0 1px 0 rgba(255, 255, 255, .98), inset 0 -1px 0 rgba(7, 55, 68, .08);
  backdrop-filter: blur(30px) saturate(175%) contrast(1.03) brightness(1.05);
  -webkit-backdrop-filter: blur(30px) saturate(175%) contrast(1.03) brightness(1.05);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-page .package-card + .package-card { margin-top: .85rem; }

.home-page .package-card:hover {
  border-color: rgba(255, 255, 255, .98);
  background: rgba(247, 255, 255, .64);
  box-shadow: 0 24px 52px rgba(6, 71, 86, .18), 0 4px 10px rgba(6, 71, 86, .08), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(7, 55, 68, .07);
  transform: translateY(-2px);
}

.home-page .package-card:focus-visible {
  outline: 3px solid rgba(24, 184, 203, .38);
  outline-offset: 3px;
}

.package-icon {
  display: block;
  flex: 0 0 5.6rem;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 1.25rem;
  object-fit: cover;
}

.package-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: .32rem;
}

.package-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .7rem;
}

.package-name {
  font-size: 1.85rem;
  font-weight: 700;
}

.package-description {
  color: var(--muted);
  font-size: 1.05rem;
}

.badge {
  padding: .25rem .55rem;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  color: rgba(7, 55, 68, .7);
  background: rgba(230, 252, 252, .38);
  box-shadow: 0 7px 18px rgba(6, 71, 86, .1), inset 0 1px 0 rgba(255, 255, 255, .94), inset 0 -1px 0 rgba(7, 55, 68, .07);
  backdrop-filter: blur(18px) saturate(175%) brightness(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(175%) brightness(1.05);
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .creator-links a { background: rgba(247, 255, 255, .88); }
  .home-page .package-card { background: rgba(250, 255, 255, .94); }
  .badge { background: rgba(238, 252, 252, .92); }
}

.package-page {
  width: min(calc(100% - 3rem), 62rem);
  min-height: 46rem;
  margin: 0 auto;
  padding: 5.5rem 0 7rem;
}

.package-page::before {
  position: absolute;
  z-index: -1;
  top: 5rem;
  right: 0;
  left: 0;
  height: 24rem;
  background: url("assets/hero-water-pixel.png") center bottom / cover no-repeat;
  content: "";
  opacity: .42;
  pointer-events: none;
}

.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--muted);
  text-decoration: none;
}

.back:hover { color: var(--aqua); }
.package-page h1 { max-width: 48rem; font-size: clamp(3.6rem, 6vw, 5.5rem); }
.package-page h2 { margin: 3rem 0 1rem; font-size: 1.55rem; }
.package-page p,
.package-page li { max-width: 48rem; color: var(--muted); line-height: 1.7; }
.package-page li + li { margin-top: .55rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 2rem;
}

.meta span {
  padding: .38rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  font-size: .78rem;
}

.note {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--orange);
  background: var(--pearl);
}

.source-notice {
  margin: 2.25rem 0 0;
  font-size: .76rem;
}

.source-notice a {
  color: rgba(7, 55, 68, .52);
  text-decoration-color: rgba(7, 55, 68, .2);
  text-underline-offset: .2em;
}

.source-notice a:hover { color: var(--text); }

.source-page h1 { max-width: 54rem; }

.source-actions {
  display: flex;
  max-width: 48rem;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 2rem 0 3.5rem;
}

.source-actions .button { min-width: 13.5rem; }

.source-action-icon {
  border-radius: 0;
  object-fit: contain;
  filter: invert(1);
}

.source-details {
  max-width: 48rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 38px rgba(6, 71, 86, .08);
}

.source-details h2 { margin-top: 0; }

.source-facts {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.source-facts div {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 1rem;
}

.source-facts dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.source-facts dd { margin: 0; }

.source-facts code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: .78rem;
}

footer {
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 56rem) {
  h1 { font-size: clamp(4rem, 9vw, 6rem); }
}

@media (max-width: 44rem) {
  .nav,
  footer,
  .hero-inner,
  .packages-inner,
  .package-page { width: min(calc(100% - 2rem), var(--max)); }

  .nav-links { gap: 1rem; }

  .nav {
    top: .55rem;
    width: calc(100% - 1rem);
    height: 4.25rem;
    padding: 0 1rem;
  }

  .hero {
    min-height: 30rem;
    background-position: 63% bottom;
  }

  .hero-inner {
    min-height: 30rem;
  }

  h1 { font-size: clamp(3.75rem, 18vw, 5.2rem); }
  .lead { font-size: 1.2rem; }
  .character-stage { min-height: 30rem; padding: 1.5rem 0 1.6rem; }
  .hero-character { width: min(11.5rem, 58vw); }
  .creator-name { margin-top: -1rem; }
  .creator-links { gap: .55rem; }
  .creator-links a { width: 8.25rem; }

  .packages-inner { padding-top: 1.25rem; }
  .package-card { align-items: flex-start; gap: 1rem; }
  .package-icon { flex-basis: 4.3rem; width: 4.3rem; height: 4.3rem; border-radius: 1rem; }
  .package-name { font-size: 1.45rem; }
  .package-description { font-size: .92rem; }
  .badge { font-size: .66rem; }
  .package-page h1 { font-size: clamp(2.55rem, 11.6vw, 3rem); white-space: nowrap; }
  .source-page h1 { white-space: normal; }
  .source-actions { flex-direction: column; }
  .source-actions .button { width: 100%; }
  .source-facts div { grid-template-columns: 1fr; gap: .3rem; }

  footer {
    min-height: 6.5rem;
    align-items: center;
  }
}

@media (max-width: 28rem) {
  .actions { flex-direction: column; }
  .button { width: 100%; }
}

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