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

:root{
  --sand:#f6eddf;
  --sand-deep:#efe1cc;
  --paper:#fbf5ea;
  --ink:#172623;
  --ink-soft:#3d4a45;
  --teal:#5cc6b0;
  --teal-deep:#3d9c89;
  --clay:#d4c4a8;
  --terra:#c67b5c;
  --olive:#6b7b3c;
  --shadow:0 10px 26px rgba(23,38,35,.12);
  --shadow-soft:0 4px 14px rgba(23,38,35,.07);
}

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

html{scroll-behavior:smooth;}

body{
  margin:0;
  font-family:'Quicksand',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--sand);
  background-image:
    radial-gradient(rgba(23,38,35,.055) 1px, transparent 1px),
    radial-gradient(rgba(198,123,92,.07) 1px, transparent 1px);
  background-size:8px 8px, 15px 15px;
  background-position:0 0, 4px 6px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

.strip{
  background:var(--teal);
  color:var(--ink);
  font-size:14px;
  letter-spacing:.16em;
  padding:7px 12px;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border-bottom:1px solid rgba(23,38,35,.16);
}
.strip p{margin:0;}

.masthead{
  position:sticky;
  top:0;
  z-index:30;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px 16px;
  padding:12px clamp(12px,4vw,40px);
  background:rgba(246,237,223,.92);
  border-bottom:1px dashed rgba(23,38,35,.24);
  backdrop-filter:blur(6px);
}

.mast-nav{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:16px;min-width:0;}
.mast-right{justify-content:flex-end;}
.mast-nav a{
  display:inline-block;
  padding:10px 2px;
  color:var(--ink-soft);
  text-decoration:none;
  line-height:1.3;
  border-bottom:2px solid transparent;
  transition:color .2s ease-out,border-color .2s ease-out;
}
.mast-nav a:hover,.mast-nav a:focus-visible{color:var(--teal-deep);border-bottom-color:var(--teal);}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:6px 10px;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
}
.brand-word{
  font-family:'Caveat',cursive;
  font-weight:700;
  font-size:30px;
  line-height:1;
  letter-spacing:.02em;
}
.mark{width:32px;height:32px;border-radius:52% 48% 56% 44%;object-fit:cover;display:block;}
.mark-dot{
  width:14px;height:14px;display:block;
  border-radius:62% 38% 54% 46%;
  background:var(--teal);
  box-shadow:0 0 0 4px rgba(92,198,176,.28);
}

.hero{
  position:relative;
  isolation:isolate;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:70px 20px 100px;
  overflow:hidden;
  background:radial-gradient(120% 78% at 50% 8%, rgba(212,196,168,.6), rgba(246,237,223,0) 72%);
}

.hero-word{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index:0;
  font-family:'Caveat',cursive;
  font-weight:700;
  font-size:clamp(92px,26vw,258px);
  line-height:.8;
  letter-spacing:.02em;
  color:rgba(198,123,92,.2);
  white-space:nowrap;
  pointer-events:none;
  user-select:none;
}

.hero-img{
  position:absolute;
  z-index:1;
  object-fit:cover;
  background:var(--clay);
  box-shadow:var(--shadow);
}
.hero-img-a{
  top:7%;left:3%;
  width:clamp(108px,22vw,222px);
  border-radius:12px 4px 14px 5px;
  transform:rotate(-6deg);
}
.hero-img-b{
  bottom:8%;right:3%;
  width:clamp(96px,18vw,184px);
  border-radius:5px 13px 4px 11px;
  transform:rotate(5deg);
}

.hero-copy{position:relative;z-index:2;max-width:760px;text-align:center;}
.hero-copy h1{
  margin:0 0 20px;
  font-size:clamp(30px,7vw,56px);
  line-height:1.16;
  font-weight:700;
  letter-spacing:.01em;
  text-shadow:0 2px 0 rgba(246,237,223,.92), 0 0 24px rgba(246,237,223,.9);
}

.cue{
  display:inline-block;
  padding:12px 24px;
  border-radius:999px;
  background:var(--ink);
  color:var(--sand);
  font-size:16px;
  letter-spacing:.12em;
  text-decoration:none;
  box-shadow:var(--shadow-soft);
  transition:transform .25s ease-out,background .25s ease-out;
}
.cue:hover,.cue:focus-visible{background:var(--teal-deep);transform:translateY(-2px);}

.stage{padding:clamp(28px,5vw,64px) clamp(14px,4vw,40px);}

.wrap{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:226px minmax(0,1fr);
  gap:clamp(18px,3vw,40px);
  align-items:start;
}

.rail{
  position:sticky;
  top:92px;
  padding:16px 14px;
  border-radius:16px 6px 18px 8px;
  background:linear-gradient(180deg, rgba(212,196,168,.62), rgba(92,198,176,.15));
  box-shadow:var(--shadow-soft);
}
.rail-tag{
  margin:0 0 10px;
  font-family:'Caveat',cursive;
  font-size:23px;
  line-height:1;
  letter-spacing:.06em;
  color:var(--terra);
}
.rail-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;}
.rail-nav a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:11px 8px;
  border-radius:9px 3px 10px 4px;
  color:var(--ink-soft);
  font-size:16px;
  line-height:1.3;
  text-decoration:none;
  transition:background .2s ease-out,color .2s ease-out,padding-left .2s ease-out;
}
.rail-nav .dot{
  width:7px;height:7px;flex:0 0 auto;
  border-radius:50%;
  background:var(--clay);
  transition:background .2s ease-out,transform .2s ease-out;
}
.rail-nav a:hover,.rail-nav a:focus-visible,.rail-nav a.is-active{
  background:rgba(251,245,234,.9);
  color:var(--ink);
  padding-left:13px;
}
.rail-nav a:hover .dot,.rail-nav a.is-active .dot{background:var(--teal-deep);transform:scale(1.3);}

.sheet{min-width:0;}

.sheet-head{
  margin:0 0 26px;
  padding-bottom:14px;
  border-bottom:2px solid rgba(23,38,35,.14);
}
.sheet-head h2{
  margin:0 0 6px;
  font-family:'Caveat',cursive;
  font-size:clamp(30px,5vw,42px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:.02em;
  color:var(--ink);
}
.subtitle{margin:0;font-size:16px;line-height:1.7;color:var(--ink-soft);}

.note > div{
  margin:0 0 22px;
  padding:clamp(18px,3.5vw,34px);
  border-radius:4px;
  background:var(--paper);
  box-shadow:var(--shadow-soft);
  scroll-margin-top:104px;
}
.note > div:nth-child(even){background:#f7efe1;}

.note h2{margin:0 0 .55em;font-size:clamp(21px,3.4vw,26px);line-height:1.35;}
.note h3{margin:1.3em 0 .5em;font-size:20px;line-height:1.4;}
.note p{margin:0 0 1em;}
.note p:last-child{margin-bottom:0;}
.note ul,.note ol{margin:0 0 1em;padding-left:1.35em;}
.note li{margin:.32em 0;}
.note a{color:var(--teal-deep);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;}
.note a:hover{color:var(--terra);}
.note img{border-radius:6px;margin:.4em 0;}
.note blockquote{
  margin:1.2em 0;
  padding:12px 18px;
  border-left:4px solid var(--teal);
  border-radius:0 6px 6px 0;
  background:rgba(92,198,176,.14);
}
.note code{
  font-size:.92em;
  padding:2px 5px;
  border-radius:4px;
  background:rgba(23,38,35,.08);
}
.note strong{color:var(--ink);}

.totop{margin:6px 0 0;text-align:right;}
.totop a{
  display:inline-block;
  padding:12px 18px;
  font-size:16px;
  color:var(--ink-soft);
  text-decoration:none;
  border-bottom:2px dotted var(--clay);
}
.totop a:hover,.totop a:focus-visible{color:var(--teal-deep);border-bottom-color:var(--teal);}

.foot{
  margin-top:36px;
  padding:clamp(30px,5vw,60px) clamp(16px,4vw,40px) 24px;
  background:var(--ink);
  color:var(--sand);
}
.foot-brand{
  max-width:1080px;
  margin:0 auto 20px;
  font-family:'Caveat',cursive;
  font-weight:700;
  font-size:clamp(46px,12vw,116px);
  line-height:.9;
  letter-spacing:.02em;
  color:rgba(212,196,168,.5);
  word-break:break-all;
}
.foot-grid{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}
.foot-grid dl{margin:0;min-width:0;}
.foot-grid dt{
  margin-bottom:8px;
  font-size:15px;
  letter-spacing:.16em;
  color:var(--teal);
}
.foot-grid dd{
  margin:0;
  font-size:16px;
  line-height:1.6;
  color:rgba(246,237,223,.82);
}
.foot-grid dd a{
  display:inline-block;
  padding:8px 0;
  color:rgba(246,237,223,.82);
  text-decoration:none;
}
.foot-grid dd a:hover,.foot-grid dd a:focus-visible{color:var(--teal);}
.foot-mark{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  font-family:'Caveat',cursive;
  font-size:26px;
  line-height:1;
  color:var(--clay);
}
.foot-mark .mark{width:44px;height:44px;}
.foot-mark .mark-dot{width:22px;height:22px;background:var(--teal);box-shadow:0 0 0 6px rgba(92,198,176,.22);}
.foot-base{
  max-width:1080px;
  margin:26px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(246,237,223,.18);
  text-align:center;
}
.foot-base p{margin:0;font-size:15px;line-height:1.7;color:rgba(246,237,223,.6);}

.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease-out,transform .6s ease-out;}
.reveal.in{opacity:1;transform:none;}

@media (max-width:860px){
  .masthead{
    position:static;
    grid-template-columns:minmax(0,1fr);
    gap:4px;
    padding:10px 14px;
    text-align:center;
  }
  .brand{order:-1;justify-self:center;}
  .mast-nav{justify-content:center;font-size:15px;gap:2px 10px;}
  .mast-right{justify-content:center;}
  .hero{padding:44px 16px 84px;min-height:88svh;}
  .wrap{grid-template-columns:minmax(0,1fr);}
  .rail{position:static;padding:12px;border-radius:12px;}
  .rail-tag{margin-bottom:6px;font-size:20px;}
  .rail-nav ul{
    flex-direction:row;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:6px;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .rail-nav a{white-space:nowrap;padding:10px 12px;background:rgba(251,245,234,.85);}
  .rail-nav a:hover,.rail-nav a.is-active{padding-left:12px;}
  .note > div{scroll-margin-top:24px;}
  .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
}

@media (max-width:400px){
  .hero-word{font-size:clamp(84px,30vw,150px);}
  .hero-img-a{top:5%;left:2%;}
  .hero-img-b{bottom:6%;right:2%;}
  .foot-grid{grid-template-columns:minmax(0,1fr);}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .reveal{opacity:1;transform:none;transition:none;}
  .cue,.mast-nav a,.rail-nav a,.rail-nav .dot,.totop a{transition:none;}
}

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