@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root{
  --mint:#b4fde1;
  --blue:#add8e6;
  --ink:#172620;
  --ink-70:rgba(23,38,32,.70);
  --ink-30:rgba(23,38,32,.30);
  --ink-12:rgba(23,38,32,.12);
  --deep:#0a5c45;
  --topbar:44px;
  --rail:248px;
  --r:24px;
  --glass:rgba(255,255,255,.70);
  --sh-in:inset -4px -4px 0 rgba(23,38,32,.06), inset 4px 4px 0 rgba(255,255,255,.78);
  --sh-out:0 10px 0 -2px rgba(23,38,32,.10), 0 22px 34px -14px rgba(23,38,32,.30);
  --font-title:"Poiret One","Didact Gothic","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-body:"Didact Gothic","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(173,216,230,.66), transparent 42%),
    radial-gradient(circle at 10% 82%, rgba(180,253,225,.85), transparent 48%),
    linear-gradient(165deg,#f4fffa 0%,#e8f8ff 55%,#f8fffc 100%);
  min-height:100vh;
}

h1,h2,h3{text-wrap:balance}

a{color:var(--deep)}
a:focus-visible,
button:focus-visible{outline:3px solid var(--deep);outline-offset:3px;border-radius:14px}

.ticker{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--topbar);
  margin:0;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-title);
  font-size:14px;
  letter-spacing:.20em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#0f2018;
  background:linear-gradient(90deg,var(--mint),var(--blue) 50%,var(--mint));
  border-bottom:3px solid var(--ink);
  z-index:60;
}

.side{
  position:fixed;
  top:var(--topbar);
  left:0;
  bottom:0;
  width:var(--rail);
  padding:18px 16px 26px;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(234,255,246,.92));
  border-right:3px solid var(--ink);
  z-index:50;
  transition:box-shadow .3s ease-out;
}

.side.is-scrolled{box-shadow:8px 0 26px -12px rgba(23,38,32,.35)}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:8px 12px;
  border:3px solid var(--ink);
  border-radius:20px;
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-family:var(--font-title);
  font-size:20px;
  letter-spacing:.05em;
  box-shadow:var(--sh-in), 0 6px 0 rgba(23,38,32,.12);
  transition:transform .2s ease-out;
}

.brand:hover{transform:translateY(-2px)}
.brand:active{transform:translateY(1px)}

.brand-logo{width:34px;height:34px;object-fit:contain;border-radius:10px}
.brand-mark{font-size:22px;line-height:1}
.brand-name{line-height:1.2}

.side-nav p{display:flex;flex-direction:column;gap:9px;margin:0}

.side-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 15px;
  border:3px solid var(--ink);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  line-height:1.35;
  box-shadow:var(--sh-in), 0 5px 0 rgba(23,38,32,.12);
  transition:transform .2s ease-out, background .2s ease-out;
}

.side-nav a:hover{background:var(--mint);transform:translate(-1px,-2px)}
.side-nav a:active{transform:translate(0,1px);box-shadow:var(--sh-in), 0 2px 0 rgba(23,38,32,.12)}

main{
  padding:calc(var(--topbar) + 26px) 28px 40px calc(var(--rail) + 28px);
}

.wrap{
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:26px;
  align-items:start;
}

.rail{
  order:1;
  position:sticky;
  top:calc(var(--topbar) + 24px);
  padding:18px;
  border:3px solid var(--ink);
  border-radius:28px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:var(--sh-in), var(--sh-out);
}

.rail h2{
  margin:0;
  font-family:var(--font-title);
  font-size:19px;
  letter-spacing:.14em;
}

.subtitle{
  margin:2px 0 0;
  font-size:15px;
  line-height:1.6;
  color:var(--ink-70);
  letter-spacing:.04em;
}

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

.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:7px 12px;
  border:2.5px solid var(--ink-12);
  border-radius:14px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  line-height:1.35;
  background:rgba(255,255,255,.6);
  transition:background .25s ease-out, border-color .25s ease-out;
}

.rail-list a:hover,
.rail-list a.is-on{background:var(--mint);border-color:var(--ink-30)}

.page{order:2;min-width:0}

.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:16px;
  padding:34px 26px 0;
  overflow:hidden;
  border:4px solid var(--ink);
  border-radius:34px;
  background:linear-gradient(150deg,var(--mint),var(--blue) 68%,#ffffff);
  box-shadow:var(--sh-in), var(--sh-out);
}

.hero--text{padding-bottom:36px}

.hero-bg{
  position:absolute;
  top:6%;
  right:10px;
  font-family:var(--font-title);
  font-size:clamp(52px,9vw,124px);
  line-height:.92;
  letter-spacing:.08em;
  color:rgba(23,38,32,.10);
  white-space:nowrap;
  pointer-events:none;
  user-select:none;
  will-change:transform;
}

.hero-copy{
  position:relative;
  z-index:2;
  margin-left:auto;
  max-width:34ch;
  text-align:right;
}

.hero h1{
  margin:0;
  font-family:var(--font-title);
  font-size:clamp(30px,4.4vw,52px);
  line-height:1.22;
  letter-spacing:.02em;
}

.hero h1 + .subtitle{font-size:16px}

.hero-art{
  position:relative;
  z-index:1;
  margin:0;
  align-self:stretch;
}

.hero-art img{
  display:block;
  width:100%;
  height:clamp(150px,25vh,260px);
  object-fit:cover;
  border:4px solid var(--ink);
  border-bottom:0;
  border-radius:26px 26px 0 0;
  box-shadow:inset -3px -3px 0 rgba(23,38,32,.10);
  will-change:transform;
}

.body{
  margin-top:26px;
  padding:26px clamp(16px,3vw,38px) 34px;
  border:3px solid var(--ink);
  border-radius:30px;
  background:rgba(255,255,255,.74);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:var(--sh-in), var(--sh-out);
  overflow-wrap:break-word;
}

.body > *:first-child{margin-top:0}
.body section{scroll-margin-top:calc(var(--topbar) + 20px)}
.body section + section{
  margin-top:36px;
  padding-top:30px;
  border-top:3px dashed var(--ink-12);
}

.body h2{
  margin:0 0 10px;
  font-family:var(--font-title);
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.38;
  letter-spacing:.02em;
}

.body h2 + p{color:var(--ink-70);font-size:16px}

.body h3{margin:22px 0 8px;font-size:19px;line-height:1.45}
.body p{margin:0 0 14px}
.body ul,.body ol{margin:0 0 16px;padding-left:1.3em}
.body li{margin:0 0 8px}
.body img{max-width:100%;height:auto;border-radius:18px;border:3px solid var(--ink)}
.body time{display:inline-block;font-size:15px;letter-spacing:.06em;color:var(--ink-70)}
.body blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  border-left:5px solid var(--blue);
  border-radius:0 16px 16px 0;
  background:rgba(173,216,230,.28);
}
.body blockquote p:last-child{margin:0}
.body a{text-underline-offset:3px}

.foot{
  margin-top:38px;
  padding:22px;
  border:3px solid var(--ink);
  border-radius:32px;
  background:linear-gradient(160deg,rgba(255,255,255,.9),rgba(232,255,248,.92));
  box-shadow:var(--sh-in), var(--sh-out);
}

.cta{
  padding:24px 20px;
  border:3px solid var(--ink);
  border-radius:26px;
  text-align:center;
  background:linear-gradient(140deg,var(--mint),var(--blue));
  box-shadow:var(--sh-in), 0 8px 0 rgba(23,38,32,.12);
}

.cta h2{
  margin:0;
  font-family:var(--font-title);
  font-size:clamp(22px,3vw,30px);
  letter-spacing:.06em;
}

.cta .subtitle{color:rgba(23,38,32,.72)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  margin-top:14px;
  padding:10px 26px;
  border:3px solid var(--ink);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:16px;
  text-decoration:none;
  box-shadow:var(--sh-in), 0 6px 0 rgba(23,38,32,.16);
  transition:transform .2s ease-out;
}

.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(1px);box-shadow:var(--sh-in), 0 2px 0 rgba(23,38,32,.16)}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:20px;
}

.foot-cols dl{
  margin:0;
  padding:14px 16px;
  border:3px solid var(--ink);
  border-radius:22px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--sh-in), 0 5px 0 rgba(23,38,32,.08);
}

.foot-cols dt{
  margin-bottom:6px;
  font-family:var(--font-title);
  font-size:15px;
  letter-spacing:.18em;
  color:var(--deep);
}

.foot-cols dd{margin:0;font-size:16px;line-height:1.5}

.foot-cols a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:4px 10px;
  border-radius:12px;
  color:var(--ink);
  text-decoration:none;
}

.foot-cols a:hover{background:var(--mint)}
.f-brand{display:inline-block;padding:4px 0;font-family:var(--font-title);letter-spacing:.05em}

.copy{
  margin:20px 0 0;
  padding-top:14px;
  border-top:3px dashed var(--ink-12);
  font-size:15px;
  letter-spacing:.08em;
  color:var(--ink-70);
  text-align:center;
}

@media (max-width:1120px){
  .wrap{grid-template-columns:200px minmax(0,1fr)}
  .rail{padding:14px}
}

@media (max-width:940px){
  .ticker{
    position:static;
    height:auto;
    justify-content:flex-start;
    padding:8px 14px;
    font-size:13px;
    letter-spacing:.12em;
  }
  .side{
    position:sticky;
    top:0;
    bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:3px solid var(--ink);
  }
  .side.is-scrolled{box-shadow:0 8px 22px -10px rgba(23,38,32,.4)}
  .brand{flex:0 0 auto;min-height:44px;padding:6px 12px;font-size:17px}
  .side-nav{flex:1 1 auto;min-width:0}
  .side-nav p{flex-direction:row;gap:8px}
  .side-nav a{white-space:nowrap;min-height:44px;padding:9px 14px;font-size:15px}
  main{padding:16px 14px 32px}
  .wrap{grid-template-columns:minmax(0,1fr);gap:18px}
  .page{order:1}
  .rail{order:2;position:static}
  .rail-list{flex-direction:row;flex-wrap:wrap;gap:8px}
  .rail-list li{flex:1 1 46%}
  .rail-list a{justify-content:center;text-align:center;font-size:15px}
  .hero{min-height:auto;padding:26px 18px 0;border-radius:28px}
  .hero--text{padding-bottom:28px}
  .hero-bg{font-size:clamp(46px,15vw,90px);top:4%}
  .hero h1{font-size:clamp(27px,7.4vw,40px)}
  .body{padding:20px 16px 26px;border-radius:26px}
  .foot{padding:16px;border-radius:26px}
  .foot-cols{grid-template-columns:minmax(0,1fr);gap:12px}
}

@media (max-width:520px){
  .hero-copy{max-width:none}
  .hero h1{line-height:1.28}
  .rail-list li{flex:1 1 100%}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .hero-bg,.hero-art img{will-change:auto}
  .brand,.side-nav a,.btn{transition:none}
}

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