:root {
  color-scheme: light;
  --paper: #fffdf8;
  --surface: #f5f8f5;
  --surface-strong: #e7f2eb;
  --ink: #1f2a2a;
  --muted: #5a6864;
  --line: #d7e1da;
  --accent: #2f6f54;
  --accent-strong: #204f3d;
  --coral: #ffb6b6;
  --sky: #dceef8;
  --brown: #4a3728;
  --shadow: 0 18px 48px rgba(31, 42, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brown);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(74, 55, 40, 0.12);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(74, 55, 40, 0.18);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--accent-strong);
  font-size: 1rem;
}

.site-nav,
.language-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.site-nav {
  justify-content: center;
}

.site-nav a,
.language-switch a {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.language-switch a:hover,
.site-nav a[aria-current="page"],
.language-switch a[aria-current="true"] {
  background: var(--surface-strong);
}

.hero {
  position: relative;
  min-height: calc(78svh - 4.2rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5rem max(1.25rem, calc((100vw - 1180px) / 2)) 6rem;
  background: #edf6f0;
  border-bottom: 1px solid rgba(74, 55, 40, 0.1);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  height: 1px;
  background: rgba(74, 55, 40, 0.18);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(41rem, 100%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.15rem;
}

.hero-copy p:not(.eyebrow) {
  width: min(38rem, 100%);
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.download-status,
.text-button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 720;
}

.download-status {
  border: 1px solid rgba(74, 55, 40, 0.2);
  background: var(--accent-strong);
  color: white;
}

.text-button {
  border: 1px solid rgba(74, 55, 40, 0.2);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.text-button:hover {
  background: white;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-pet {
  position: absolute;
  filter: drop-shadow(0 18px 22px rgba(74, 55, 40, 0.16));
}

.hero-pet.peach {
  right: max(2rem, calc((100vw - 1180px) / 2));
  bottom: 8%;
  width: min(31vw, 24rem);
}

.hero-pet.goma {
  right: max(18rem, calc((100vw - 720px) / 2));
  bottom: 17%;
  width: min(24vw, 18rem);
}

.section {
  padding: 4.8rem max(1.25rem, calc((100vw - 1180px) / 2));
}

.section.alt {
  background: var(--surface);
}

.section-header {
  max-width: 45rem;
  margin-bottom: 2rem;
}

.section-header p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.status-grid,
.pet-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-grid,
.pet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.status-card,
.pet-card,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.feature-card,
.status-card,
.notice-panel {
  padding: 1.2rem;
}

.feature-card p,
.status-card p,
.pet-card p,
.notice-panel p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.status-card strong {
  display: block;
  color: var(--accent-strong);
}

.pet-card {
  overflow: hidden;
}

.pet-card figure {
  margin: 0;
  padding: 1.4rem 1.4rem 0;
  background: var(--surface-strong);
}

.pet-card img {
  width: min(16rem, 100%);
  margin: 0 auto;
}

.pet-card figcaption {
  padding: 1rem 1.2rem 1.2rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7f0;
  box-shadow: var(--shadow);
}

.cta-band p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 2rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(74, 55, 40, 0.12);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.content-page {
  padding: 4rem max(1.25rem, calc((100vw - 880px) / 2));
}

.content-page header {
  margin-bottom: 2rem;
}

.content-page header p {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.content-section:first-of-type {
  border-top: 0;
}

.content-section h2 {
  font-size: 1.55rem;
}

.content-section ul {
  padding-left: 1.2rem;
}

.content-section li + li {
  margin-top: 0.45rem;
}

.content-section pre {
  overflow-x: auto;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-section code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.94em;
}

.meta-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
  font-weight: 720;
}

.meta-list dd {
  margin: 0;
}

.release-entry {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.release-entry:first-child {
  border-top: 0;
}

.release-entry time {
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .site-nav,
  .language-switch {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 17rem;
  }

  .hero-copy {
    width: min(38rem, 100%);
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-pet.peach {
    right: -1rem;
    bottom: 1.8rem;
    width: 17rem;
  }

  .hero-pet.goma {
    left: -1.5rem;
    right: auto;
    bottom: 3.6rem;
    width: 13.5rem;
  }

  .feature-grid,
  .status-grid,
  .pet-grid,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .site-nav a,
  .language-switch a {
    padding-inline: 0.55rem;
    font-size: 0.9rem;
  }

  .hero,
  .section,
  .content-page,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-bottom: 15rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .download-status,
  .text-button {
    width: 100%;
  }

  .hero-pet.peach {
    width: 14rem;
  }

  .hero-pet.goma {
    width: 11rem;
  }

  .meta-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
