@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --lime: #87ff71;
  --gold: #ffce5c;
  --ink: #192617;
  --paper: #eefbe6;
  --ink-soft: rgba(25, 38, 23, 0.55);
  --line: 3px;
  --r: 28px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --font: 'Outfit', 'Work Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

main section[id] { scroll-margin-top: 9rem; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  border-bottom: var(--line) dashed var(--lime);
  padding: 0.55rem var(--pad) 0.7rem;
}

.brandline {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 4rem;
}

.brand {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1.1;
  padding: 0.15rem 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand .logo { width: auto; height: 34px; border-radius: 8px; }

.tri {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 46px;
  height: 42px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: translateY(-50%) rotate(11deg);
}

.navline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.navflat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.15rem;
  margin: 0;
}

.navflat a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.72rem;
  font-size: 16px;
  color: var(--paper);
  border-bottom: var(--line) dotted transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.navflat a:hover,
.navflat a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.drop { display: none; }

.drop summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  transform: rotate(-1.5deg);
}

.drop summary::-webkit-details-marker { display: none; }

.droppanel {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  margin-top: 0.55rem;
  display: grid;
  gap: 0.15rem;
  background: var(--gold);
  color: var(--ink);
  border: var(--line) dashed var(--ink);
  border-radius: var(--r);
  padding: 0.7rem;
  box-shadow: 8px 8px 0 rgba(135, 255, 113, 0.5);
}

.droppanel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  border-bottom: 2px dotted rgba(25, 38, 23, 0.35);
}

.droppanel a:last-child { border-bottom: 0; }

.cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1.2rem;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  transform: rotate(1.6deg);
  box-shadow: 4px 4px 0 var(--lime);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--lime);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: 70vh;
  padding: clamp(2rem, 6vw, 4rem) var(--pad);
}

.hero-solo { grid-template-columns: 1fr; }

.hero-fig {
  margin: 0;
}

.hero-img {
  width: 100%;
  border-radius: var(--r);
  transform: rotate(-2deg);
  box-shadow: 10px 10px 0 var(--gold);
  will-change: transform;
}

.hero-text { text-align: center; }

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--lime);
}

.hero-desc {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(238, 251, 230, 0.82);
}

/* ---------- body ---------- */

.cols {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2.4rem);
  align-items: start;
  padding: 0 var(--pad) clamp(2rem, 5vw, 3.5rem);
}

.rail {
  position: sticky;
  top: 9.5rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--r);
  padding: 1.1rem 1rem 1.3rem;
  transform: rotate(-1deg);
  box-shadow: 6px 6px 0 rgba(135, 255, 113, 0.45);
}

.rail h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.rail hr {
  border: 0;
  border-top: var(--line) dotted rgba(25, 38, 23, 0.45);
  margin: 0.6rem 0 0.7rem;
}

.rail-list { display: grid; gap: 0.1rem; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.3rem 0.15rem;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 2px dotted rgba(25, 38, 23, 0.28);
}

.rail-list a:last-child { border-bottom: 0; }

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #1e4a1a;
  text-decoration: underline 2px var(--ink);
  text-underline-offset: 3px;
}

.prose {
  min-width: 0;
  max-width: 76ch;
}

.prose > section {
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--r);
  padding: clamp(1.15rem, 3vw, 2.1rem);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  position: relative;
}

.prose > section:nth-of-type(even) { background: var(--lime); }

.prose > section:nth-of-type(3n) {
  background: var(--ink);
  color: var(--paper);
  border: var(--line) dashed var(--lime);
}

.prose > section::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px dotted currentColor;
  opacity: 0.4;
  pointer-events: none;
}

.prose h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.3rem 0 0.4rem;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.35;
}

.prose hr {
  border: 0;
  border-top: var(--line) dashed currentColor;
  opacity: 0.35;
  margin: 0.3rem 0 1rem;
}

.prose p {
  margin: 0 0 0.95rem;
  font-size: 17.5px;
  line-height: 1.78;
}

.prose p:last-child { margin-bottom: 0; }

.prose a {
  text-decoration: underline 2.5px currentColor;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.35rem; }

.prose li { margin-bottom: 0.45rem; line-height: 1.7; }

.prose img { border-radius: 20px; margin: 0.6rem 0; }

.prose blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 5px solid currentColor;
  opacity: 0.92;
}

.prose strong { font-weight: 700; }

/* ---------- footer ---------- */

.foot {
  position: relative;
  background: var(--gold);
  color: var(--ink);
  padding: clamp(2rem, 6vw, 3.2rem) var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  border-top: var(--line) dashed var(--ink);
  background-image: radial-gradient(rgba(25, 38, 23, 0.22) 1.6px, transparent 1.7px);
  background-size: 18px 18px;
  overflow: hidden;
}

.foot::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -26px;
  width: 110px;
  height: 110px;
  background: var(--lime);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: rotate(8deg);
  mix-blend-mode: multiply;
}

.foot p { margin: 0; }

.foot-brand {
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  position: relative;
  z-index: 1;
}

.foot-copy {
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.foot small {
  text-align: center;
  font-size: 16px;
  color: rgba(25, 38, 23, 0.75);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .rail { position: static; transform: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 1.6rem; }
  .hero-fig { order: 2; }
  .hero-text { order: 1; }
}

@media (max-width: 820px) {
  .navflat { display: none; }
  .drop { display: block; }
  .navline { position: relative; }
  .prose { max-width: 100%; }
}

@media (max-width: 620px) {
  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.8rem;
    padding-bottom: 1.6rem;
  }
  .prose p { font-size: 17px; }
  .tri { width: 36px; height: 33px; }
  .prose > section::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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