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

:root{
  --teal:#5cc6b0;
  --teal-deep:#2b8574;
  --sand:#d4c4a8;
  --ink:#172623;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --paper:#f4ede2;
  --paper-2:#e9dfcd;
  --line:rgba(23,38,35,.16);
  --glass:rgba(255,253,247,.58);
  --shadow:0 20px 44px -30px rgba(23,38,35,.55);
  --head:'Syne','Manrope',system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --body:'Manrope',system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  font-family:var(--body);
  font-size:1.06rem;
  line-height:1.75;
  color:var(--ink);
  background:
    radial-gradient(circle at 14% 6%, rgba(92,198,176,.20), transparent 44%),
    radial-gradient(circle at 88% 2%, rgba(198,123,92,.18), transparent 42%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  overflow-x:hidden;
}

body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(23,38,35,.18) .6px, transparent .8px);
  background-size:4px 4px;
  opacity:.45;
  mix-blend-mode:multiply;
}

a{color:var(--teal-deep)}
a:focus-visible,
button:focus-visible{outline:2px solid var(--clay); outline-offset:3px}

.top,
.anchorbar,
.hero,
.shell,
.foot{position:relative; z-index:1}

.top{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:1240px;
  margin:0 auto;
  padding:14px clamp(16px,4vw,44px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:var(--ink);
}

.brand-mark{
  width:30px;
  height:30px;
  border-radius:4px;
  object-fit:cover;
  border:1px solid var(--line);
  background:var(--sand);
}

.brand-name{
  font-family:var(--head);
  font-weight:700;
  font-size:1.14rem;
  letter-spacing:.07em;
}

.anchorbar{
  position:sticky;
  top:0;
  z-index:6;
  background:rgba(244,237,226,.86);
  backdrop-filter:blur(14px) saturate(1.1);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.anchorbar ol{
  display:flex;
  gap:5px;
  align-items:center;
  list-style:none;
  margin:0 auto;
  padding:8px clamp(12px,3vw,32px);
  max-width:1240px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.anchorbar ol::-webkit-scrollbar{display:none}

.anchorbar li{flex:0 0 auto}

.anchorbar a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:9px 13px;
  border:1px solid transparent;
  border-radius:4px;
  color:var(--ink);
  text-decoration:none;
  font-size:.98rem;
  white-space:nowrap;
  transition:background .25s ease-out, border-color .25s ease-out;
}

.anchorbar a:hover,
.anchorbar a:focus-visible{
  background:var(--glass);
  border-color:var(--line);
}

.ico{width:8px;height:8px;fill:var(--teal-deep);flex:0 0 auto}

.hero{
  max-width:1240px;
  margin:14px auto 0;
  padding:0 clamp(12px,3vw,32px);
}

.hero-inner{
  position:relative;
  min-height:45vh;
  border-radius:4px;
  overflow:hidden;
  background:linear-gradient(142deg, var(--ink), #2b4a42 62%, #35635a);
  box-shadow:0 30px 60px -44px rgba(23,38,35,.8);
}

.hero-fig{
  position:absolute;
  inset:0;
  clip-path:polygon(0 0, 100% 0, 100% 84%, 0 100%);
  overflow:hidden;
}

.hero-fig img{
  display:block;
  width:100%;
  height:122%;
  object-fit:cover;
  transform:scale(1.06);
  will-change:transform;
}

.hero-inner::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(258deg, rgba(23,38,35,.74), rgba(23,38,35,.22) 58%, rgba(23,38,35,.04));
  pointer-events:none;
}

.hero-txt{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
  text-align:right;
  min-height:45vh;
  padding:clamp(18px,4vw,44px);
}

.hero-txt h1{
  margin:0;
  max-width:16em;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(1.85rem,6vw,3.5rem);
  line-height:1.14;
  letter-spacing:.01em;
  color:#fdf8ef;
  text-shadow:0 8px 30px rgba(23,38,35,.55);
}

.shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  gap:clamp(20px,3vw,44px);
  max-width:1240px;
  margin:clamp(26px,4vw,48px) auto 0;
  padding:0 clamp(16px,3vw,32px);
  align-items:start;
}

.body{
  counter-reset:sec;
  display:flex;
  flex-direction:column;
  gap:clamp(18px,2.6vw,30px);
  min-width:0;
}

.body > article{
  position:relative;
  counter-increment:sec;
  scroll-margin-top:118px;
  padding:clamp(20px,3vw,34px);
  border:1px solid rgba(255,255,255,.65);
  border-radius:4px;
  background:var(--glass);
  backdrop-filter:blur(14px) saturate(1.15);
  box-shadow:var(--shadow);
}

.body > article::after{
  content:'';
  position:absolute;
  left:0;
  top:26px;
  bottom:26px;
  width:3px;
  border-radius:2px;
  background:linear-gradient(180deg, var(--teal), rgba(92,198,176,0));
}

.body > article::before{
  content:counter(sec, decimal-leading-zero);
  position:absolute;
  top:13px;
  right:16px;
  font-family:var(--head);
  font-size:.82rem;
  letter-spacing:.2em;
  color:var(--clay);
}

.body h2{
  margin:0 0 10px;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(1.34rem,2.6vw,1.85rem);
  line-height:1.3;
  letter-spacing:.01em;
}

.body h3{
  margin:1.2em 0 .45em;
  font-family:var(--head);
  font-size:1.14rem;
  line-height:1.45;
}

.body p{
  margin:0 0 1em;
  font-size:1.06rem;
  line-height:1.85;
  color:#1f332f;
}

.body p:last-child{margin-bottom:0}

.body ul,
.body ol{
  margin:0 0 1em;
  padding-left:1.3em;
  line-height:1.85;
  font-size:1.04rem;
}

.body li{margin:.36em 0}

.body a{color:var(--teal-deep); text-underline-offset:3px}

.body img{
  max-width:100%;
  height:auto;
  border-radius:4px;
  display:block;
}

.body blockquote{
  margin:0 0 1em;
  padding:12px 18px;
  border-left:3px solid var(--clay);
  background:rgba(212,196,168,.32);
  border-radius:4px;
}

.rail{
  position:sticky;
  top:96px;
  align-self:start;
  padding:22px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:4px;
  background:var(--glass);
  backdrop-filter:blur(14px) saturate(1.15);
  box-shadow:var(--shadow);
}

.rail h2{
  margin:0 0 7px;
  font-family:var(--head);
  font-weight:700;
  font-size:1.16rem;
  letter-spacing:.05em;
}

.rail .subtitle{
  margin:0 0 16px;
  padding-bottom:14px;
  border-bottom:1px dashed var(--line);
  font-size:.95rem;
  line-height:1.65;
  color:#3a4f4a;
}

.rail ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.rail a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 10px;
  border-left:2px solid transparent;
  border-radius:4px;
  color:var(--ink);
  text-decoration:none;
  font-size:.98rem;
  transition:border-color .25s ease-out, background .25s ease-out;
}

.rail a:hover,
.rail a:focus-visible{
  border-left-color:var(--teal);
  background:rgba(92,198,176,.16);
}

.foot{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:22px 18px;
  align-items:end;
  margin-top:clamp(42px,7vw,86px);
  padding:clamp(30px,5vw,58px) max(16px, calc((100vw - 1240px) / 2)) 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(92,198,176,.22), transparent 46%),
    var(--ink);
  color:var(--sand);
}

.foot-giant{
  grid-column:1 / -1;
  margin:0;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(2.2rem,9vw,5.2rem);
  line-height:.94;
  letter-spacing:-.03em;
  color:var(--sand);
  overflow-wrap:anywhere;
}

.foot-copy{
  grid-column:1 / 3;
  font-size:.88rem;
  color:rgba(212,196,168,.64);
}

.foot-links{
  grid-column:3 / 5;
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
  justify-content:flex-end;
  margin:0;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 2px;
  color:rgba(212,196,168,.94);
  text-decoration:none;
  font-size:.95rem;
  border-bottom:1px solid rgba(212,196,168,.28);
}

.foot-links a:hover,
.foot-links a:focus-visible{border-bottom-color:var(--teal); color:var(--teal)}

.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .72s cubic-bezier(.19,.9,.28,1), transform .72s cubic-bezier(.19,.9,.28,1);
}

.reveal.in{opacity:1; transform:none}

@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr); gap:26px}
  .rail{position:static; top:auto}
  .body > article{scroll-margin-top:110px}
}

@media (max-width:820px){
  .foot{grid-template-columns:minmax(0,1fr); gap:14px}
  .foot-links{grid-column:1 / -1; justify-content:flex-start}
  .foot-copy{grid-column:1 / -1}
}

@media (max-width:600px){
  body{font-size:1rem}
  .anchorbar a{padding:9px 11px; font-size:.94rem}
  .hero{margin-top:10px}
  .hero-inner,
  .hero-txt{min-height:46vh}
  .hero-fig{clip-path:polygon(0 0, 100% 0, 100% 90%, 0 100%)}
  .body > article{padding:20px 16px}
  .body > article::after{top:18px; bottom:18px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1; transform:none; transition:none}
  .hero-fig img{transform:none; height:100%}
}

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