:root {
  color-scheme: light;
  --bg: #fff8e8;
  --paper: rgba(255, 253, 246, 0.9);
  --paper-solid: #fffdf7;
  --text: #352312;
  --muted: #765d43;
  --line: rgba(127, 82, 33, 0.18);
  --mango: #ffb22e;
  --mango-deep: #ed761f;
  --leaf: #5f9f6b;
  --cream: #fff0bd;
  --shadow: 0 24px 72px rgba(149, 83, 20, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 178, 46, 0.34), transparent 24rem),
    radial-gradient(circle at 10% 88%, rgba(95, 159, 107, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--bg) 0%, #fff1c9 52%, #ffe4ae 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango));
  box-shadow: 0 14px 30px rgba(237, 118, 31, 0.24);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.site-nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.76);
  box-shadow: 0 12px 32px rgba(142, 86, 27, 0.10);
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.language-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.76);
  box-shadow: 0 12px 32px rgba(142, 86, 27, 0.10);
}

.lang-button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.lang-button.is-active {
  color: #fffaf0;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango));
  box-shadow: 0 10px 22px rgba(237, 118, 31, 0.22);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.feature-grid a:hover,
.feature-grid a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #3f250f;
  background: var(--cream);
  transform: translateY(-1px);
  outline: none;
}

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 6px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
  margin: 8px 0 18px;
}

.hero.single {
  grid-template-columns: 1fr;
}

.hero > div,
.hero-note,
.panel,
.stats {
  border: 1px solid rgba(127, 82, 33, 0.15);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero > div {
  padding: clamp(30px, 5vw, 56px);
}

.hero-note {
  align-self: stretch;
  padding: 28px;
}

.hero-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--mango-deep);
  font-size: 1.08rem;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--mango-deep);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--leaf);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lead,
.body-copy,
.hero-note p,
.feature-grid p,
.contribution-list li {
  color: var(--muted);
  line-height: 1.72;
  font-weight: 650;
}

.lead {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.stats article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 253, 246, 0.70);
  border: 1px solid rgba(127, 82, 33, 0.12);
}

.stats strong {
  display: block;
  color: var(--mango-deep);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.panel {
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(127, 82, 33, 0.12);
  border-radius: 20px;
  background: rgba(255,255,255,0.58);
}

.feature-grid a,
.site-footer a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 8px;
  padding: 0 13px;
  border-radius: 999px;
  color: #5f3c1f;
  background: rgba(255, 240, 189, 0.72);
  border: 1px solid rgba(127, 82, 33, 0.15);
  font-size: 0.9rem;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}

details {
  margin-top: 14px;
  border: 1px solid rgba(127, 82, 33, 0.14);
  border-radius: 20px;
  background: rgba(255, 253, 246, 0.58);
  overflow: hidden;
}

summary {
  padding: 18px 20px;
  color: #5f3c1f;
  cursor: pointer;
  font-weight: 900;
}

.contribution-list {
  margin: 0;
  padding: 0 22px 22px 44px;
  columns: 2;
  column-gap: 36px;
}

.contribution-list li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
}

.archive-list {
  columns: 1;
}

.cover-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.cover-strip img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-solid);
  box-shadow: 0 14px 28px rgba(142, 86, 27, 0.14);
}

.cover-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  padding: 0 20px 22px;
}

.cover-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-solid);
  box-shadow: 0 10px 22px rgba(142, 86, 27, 0.12);
}

code {
  padding: 0.12em 0.34em;
  border-radius: 6px;
  background: rgba(255, 240, 189, 0.72);
  color: #5f3c1f;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
  }

  .cover-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 26px, var(--max));
  }

  .hero,
  .feature-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .language-switch {
    justify-self: stretch;
    justify-content: space-between;
  }

  .lang-button {
    flex: 1;
  }

  .hero > div,
  .hero-note,
  .panel {
    padding: 22px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .contribution-list {
    columns: 1;
    padding-left: 34px;
  }

  .cover-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
  }
}
