:root {
  --mint: #b4fde1;
  --blue: #add8e6;
  --ink: #172620;
  --mint-2: #dcfdf1;
  --blue-2: #e0f2f9;
  --paper: #f7fffc;
  --line: #9fd9c4;
  --serif: "Cormorant Infant", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: linear-gradient(168deg, #eefdf7 0%, #e9f6fb 55%, #f6fffb 100%);
  background-attachment: fixed;
}

img { max-width: 100%; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: 0 0 14px 0;
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { left: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px clamp(14px, 4vw, 34px);
  background: rgba(247, 255, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--ink);
}

.brand {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
}
.brand:hover { color: #0d5a44; }

.top nav {
  flex: 1 1 240px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.top nav::-webkit-scrollbar { display: none; }
.top nav p {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 2px;
}
.top nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 3px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.top nav a:hover {
  border-color: var(--ink);
  background: var(--mint);
  transform: translateY(-2px);
}

.find {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.find input {
  width: min(28vw, 150px);
  min-height: 44px;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.1);
}
.find input::placeholder { color: #5c7a6c; }
.find button {
  min-width: 46px;
  min-height: 44px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(23, 38, 32, 0.35);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.find button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 3vw, 26px);
  max-width: 1120px;
  min-height: 45vh;
  margin: 22px auto 0;
  padding: clamp(16px, 3vw, 28px);
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: linear-gradient(200deg, var(--mint), var(--blue));
  box-shadow: inset -4px -4px 14px rgba(23, 38, 32, 0.18), 8px 8px 0 rgba(23, 38, 32, 0.14);
}

.hero-copy {
  flex: 1 1 300px;
  order: 2;
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 6px 15px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(23, 38, 32, 0.3);
  transform: rotate(-2deg);
}

.hero h1 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 5.2vw, 47px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.hero-desc {
  margin: 0;
  font-size: 17px;
  color: #1e3c35;
}

.collage {
  flex: 1 1 240px;
  order: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.collage:empty { display: none; }
.collage figure {
  flex: 1;
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 4px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset -3px -3px 8px rgba(23, 38, 32, 0.14);
}
.collage figure:nth-child(1) { transform: rotate(-3deg); }
.collage figure:nth-child(2) { transform: translateY(14px) rotate(3deg); }
.collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 24px;
  align-items: start;
  max-width: 1120px;
  margin: 26px auto 40px;
  padding: 0 clamp(14px, 4vw, 24px);
}

.body {
  padding: clamp(16px, 3vw, 32px);
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: inset -3px -3px 10px rgba(23, 38, 32, 0.08), 6px 6px 0 rgba(23, 38, 32, 0.12);
}

.body > div { max-width: 72ch; }

div > section {
  padding: clamp(16px, 2.4vw, 26px);
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  scroll-margin-top: 122px;
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}
div > section:nth-child(even) { background: var(--mint-2); }
div > section + section { margin-top: 18px; }
div > section:hover {
  transform: translateY(-3px);
  background: var(--blue-2);
}

div h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 700;
  line-height: 1.3;
}
div h2 > span {
  position: relative;
  display: inline-block;
  padding-left: 21px;
}
div h2 > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 11px;
  height: 11px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
}

div h3 {
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
}
div h3 > span {
  position: relative;
  display: inline-block;
  padding-left: 18px;
}
div h3 > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

div p { margin: 0 0 14px; }
div p:last-child { margin-bottom: 0; }

div a {
  color: #0f5c47;
  text-decoration: none;
  border-bottom: 3px solid var(--mint);
}
div a:hover { border-bottom-color: var(--ink); }

div img {
  display: block;
  height: auto;
  margin: 14px 0;
  border: 3px solid var(--ink);
  border-radius: 16px;
}

div ul,
div ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}
div li { margin-bottom: 6px; }

div blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 7px solid var(--blue);
  border-radius: 12px;
  background: var(--blue-2);
}
div blockquote p:last-child { margin-bottom: 0; }

.rail {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, var(--mint-2));
  box-shadow: inset -3px -3px 8px rgba(23, 38, 32, 0.1), 5px 5px 0 rgba(23, 38, 32, 0.12);
}
.rail h2 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
.rail h2 > span {
  position: relative;
  display: inline-block;
  padding-left: 17px;
}
.rail h2 > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}
.rail p { margin: 0; }
.rail p a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 3px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease-out, border-color 0.2s ease-out, background 0.2s ease-out;
}
.rail p a:hover {
  border-color: var(--ink);
  background: var(--mint);
  transform: translateX(-3px);
}
.rail-top { margin-top: 8px; }
.rail-top a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--blue);
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 28px;
  align-items: end;
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 28px clamp(14px, 4vw, 24px) 24px;
  border-top: 4px solid var(--ink);
}
.foot p { margin: 0; }
.foot-brand {
  font-family: var(--serif);
  font-size: clamp(42px, 10vw, 92px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.02em;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  justify-content: flex-end;
  font-size: 16px;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.foot-links a:hover { border-bottom-color: var(--ink); }
.foot small {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font-size: 16px;
  color: #31584a;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
div > section { animation: rise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
div > section:nth-child(1) { animation-delay: 0.02s; }
div > section:nth-child(2) { animation-delay: 0.07s; }
div > section:nth-child(3) { animation-delay: 0.12s; }
div > section:nth-child(4) { animation-delay: 0.17s; }
div > section:nth-child(5) { animation-delay: 0.22s; }
div > section:nth-child(6) { animation-delay: 0.27s; }
div > section:nth-child(7) { animation-delay: 0.32s; }

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .rail { position: static; }
}

@media (max-width: 760px) {
  .top { gap: 8px; }
  .top nav { order: 3; flex: 1 1 100%; }
  .find input { width: 116px; }
  .hero { min-height: 0; padding: 18px; border-radius: 22px; }
  .hero-copy { order: 1; flex: 1 1 100%; text-align: left; }
  .collage { order: 2; flex: 1 1 100%; }
  .collage figure { aspect-ratio: 4 / 3; }
  .collage figure:nth-child(2) { transform: translateY(8px) rotate(3deg); }
  div > section { scroll-margin-top: 138px; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
