/* ===== CSS Variables ===== */
:root {
  --color-bg:       #F5F0EB;
  --color-bg-alt:   #EDE7E0;
  --color-ink:      #2C2420;
  --color-ink-light:#6B5E54;
  --color-cinnabar: #B5453A;
  --color-gold:     #C9A96E;
  --color-border:   #E0D8CF;
  --color-card-bg:  #FFFDFB;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans:  "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --max-width:  720px;
  --section-gap: 80px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-bg);
  line-height: 1.8;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.koi-wrap {
  position: relative;
  width: 280px;
  height: 130px;
  margin: 0 auto 32px;
}

.koi-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  animation: koi-swim 6s ease-in-out infinite;
}

/* Ripple circles */
.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  margin-top: -80px;
  margin-left: -80px;
  border: 1px solid rgba(181, 69, 58, 0.12);
  border-radius: 50%;
  animation: ripple 4s ease-out infinite;
  pointer-events: none;
  z-index: 1;
}
.r2 { animation-delay: 1.3s; }
.r3 { animation-delay: 2.6s; }

.site-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.site-tagline {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-ink-light);
  letter-spacing: 0.15em;
}

/* ===== Section Titles ===== */
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-cinnabar);
  border-radius: 2px;
}

/* ===== About ===== */
.about {
  padding: var(--section-gap) 0;
  background-color: var(--color-bg);
}

.about-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-ink);
}

.about-content p:last-child {
  color: var(--color-ink-light);
}

/* ===== Site Info ===== */
.site-info {
  padding: var(--section-gap) 0;
  background-color: var(--color-bg-alt);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 13px;
  color: var(--color-ink-light);
  letter-spacing: 0.04em;
}

.info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink);
  word-break: break-all;
}

/* ===== Report ===== */
.report {
  padding: var(--section-gap) 0;
  background-color: var(--color-bg);
}

.report-desc {
  font-size: 16px;
  color: var(--color-ink-light);
  margin-bottom: 24px;
  line-height: 1.9;
}

.report-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.report-link:hover,
.report-link:focus-visible {
  border-color: var(--color-cinnabar);
  box-shadow: 0 2px 8px rgba(181, 69, 58, 0.1);
}

.report-link-title {
  font-weight: 500;
  font-size: 15px;
}

.report-link-url {
  font-size: 13px;
  color: var(--color-ink-light);
}

/* ===== Footer ===== */
.site-footer {
  padding: 40px 0;
  background-color: var(--color-bg-alt);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.filing {
  margin-bottom: 8px;
}

.filing a {
  color: var(--color-ink-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}

.filing a:hover,
.filing a:focus-visible {
  color: var(--color-cinnabar);
  text-decoration: underline;
}

.copyright {
  font-size: 13px;
  color: var(--color-border);
}

/* ===== Scroll Fade-in ===== */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes koi-swim {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  25%      { transform: translateX(8px) translateY(-4px) rotate(1.5deg); }
  50%      { transform: translateX(0) translateY(-7px) rotate(0deg); }
  75%      { transform: translateX(-8px) translateY(-4px) rotate(-1.5deg); }
}

@keyframes ripple {
  0%   { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .koi-svg, .ripple { animation: none; }
  .fade-section { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Focus Visible ===== */
a:focus-visible,
.report-link:focus-visible {
  outline: 2px solid var(--color-cinnabar);
  outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --section-gap: 48px;
  }

  .hero { min-height: 70vh; }

  .koi-wrap {
    width: 200px;
    height: 95px;
    margin-bottom: 24px;
  }

  .site-title { font-size: 40px; }
  .site-tagline { font-size: 16px; }
  .section-title { font-size: 22px; }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .report-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
