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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --grey:#585858;
  --rail:96px;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans Hebrew','Helvetica Neue',Arial,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  letter-spacing:.01em;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.12;letter-spacing:-.02em;font-weight:700}
p{margin:0 0 1.1em}
ul,ol,dl,dd{margin:0}
::selection{background:var(--ink);color:var(--paper)}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ---------- 页头：手机为顶栏，桌面为左侧固定竖排 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  background:var(--paper);
  border-bottom:1px solid var(--ink);
  padding-left:6px;
}

.mark{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:44px;
  min-width:46px;
  min-height:44px;
  margin:6px 8px 6px 0;
  border:1px solid var(--ink);
  font-size:20px;
  font-weight:700;
  line-height:1;
  transition:background .2s ease,color .2s ease;
}
.mark:hover,
.mark:focus-visible{background:var(--ink);color:var(--paper)}
.mark-i{width:24px;height:24px;object-fit:cover}
.mark-t{display:block}

.masthead nav{
  flex:1;
  overflow-x:auto;
  scrollbar-width:none;
}
.masthead nav::-webkit-scrollbar{display:none}

.masthead nav p{
  display:flex;
  margin:0;
}

.masthead nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  font-size:16px;
  white-space:nowrap;
  border-left:1px solid rgba(0,0,0,.14);
  transition:background .18s ease,color .18s ease;
}
.masthead nav a:hover,
.masthead nav a:focus-visible{background:var(--ink);color:var(--paper)}

@media (min-width:900px){
  body{padding-left:var(--rail)}
  .masthead{
    position:fixed;
    inset:0 auto 0 0;
    width:var(--rail);
    flex-direction:column;
    align-items:flex-start;
    border-bottom:0;
    border-right:1px solid var(--ink);
    padding:12px 0;
    overflow-y:auto;
  }
  .mark{margin:0 0 20px 12px}
  .masthead nav{
    flex:0 0 auto;
    width:100%;
    margin-top:auto;
    overflow:visible;
    border-top:1px solid var(--ink);
  }
  .masthead nav p{flex-direction:column}
  .masthead nav a{
    min-height:44px;
    padding:11px 12px;
    font-size:16px;
    line-height:1.25;
    border-left:0;
    border-bottom:1px solid rgba(0,0,0,.14);
  }
}

/* ---------- 首屏 ---------- */
.hero{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:1.5rem;
  min-height:100svh;
  padding:2rem 1rem 1rem;
  background-image:radial-gradient(rgba(0,0,0,.22) 1px,transparent 1px);
  background-size:20px 20px;
  background-position:0 0;
}

.hero-top{display:flex;align-items:flex-start}

.hero h1{
  font-size:clamp(2.6rem,11vw,7.5rem);
  line-height:.92;
  letter-spacing:-.045em;
  word-break:break-word;
}

.hero-fig{
  position:relative;
  margin:0;
  min-height:36vh;
  border:1px solid var(--ink);
  overflow:hidden;
  background:repeating-linear-gradient(135deg,rgba(0,0,0,.08) 0 1px,transparent 1px 12px);
}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  will-change:transform;
}

@media (min-width:700px){
  .hero{padding:2.5rem 2rem 1.5rem}
}

@media (min-width:900px){
  .hero{padding:3.5rem 2.5rem 1.5rem;scroll-margin-top:0}
  .hero-fig{min-height:42vh}
}

/* ---------- 主体：正文 + 右栏 ---------- */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  border-top:1px solid var(--ink);
}

@media (min-width:1000px){
  main{grid-template-columns:minmax(0,1fr) 304px}
}

.feature{
  min-width:0;
  padding:2rem 1rem 3rem;
}

@media (min-width:700px){
  .feature{padding:3rem 2.5rem 4rem}
}

@media (min-width:1200px){
  .feature{padding:4rem 4.5rem 5rem 3rem}
}

.feature-head{
  padding-bottom:1.4rem;
  margin-bottom:2rem;
  border-bottom:1px solid var(--ink);
}

.feature-head h2{
  font-size:clamp(1.45rem,3.4vw,2.15rem);
}

.subtitle{
  margin:1rem 0 0;
  padding-left:.9rem;
  border-left:3px solid var(--ink);
  font-size:1.02rem;
  font-weight:400;
  line-height:1.7;
  color:var(--grey);
}

/* ---------- 正文区块（来自 page.content） ---------- */
.feature section{
  margin-top:2.4rem;
  padding-top:1.6rem;
  border-top:2px solid var(--ink);
  scroll-margin-top:76px;
}

@media (min-width:900px){
  .feature section{scroll-margin-top:28px}
}

.feature section h2{
  font-size:clamp(1.28rem,2.6vw,1.9rem);
  margin:0 0 1rem;
  letter-spacing:-.015em;
}

.feature section h3{
  font-size:1.15rem;
  margin:1.9rem 0 .7rem;
}

.feature section p{margin:0 0 1.05em}

.feature section:first-of-type > p:first-of-type::first-letter{
  float:left;
  padding:.06em .12em 0 0;
  font-size:3.4em;
  line-height:.82;
  font-weight:700;
}

.feature a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

.feature ul,
.feature ol{padding-left:1.2rem;margin:0 0 1.1em}
.feature li{margin:0 0 .45em}

.feature blockquote{
  margin:2rem 0;
  padding:1.2rem 0;
  border-top:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  font-size:1.24rem;
  font-weight:500;
  line-height:1.5;
}
.feature blockquote p{margin:0 0 .6em}
.feature blockquote p:last-child{margin:0}

.feature figure{margin:1.7rem 0}
.feature img{width:100%;height:auto}
.feature figcaption,
.feature small{
  display:block;
  padding-top:.55rem;
  font-size:1rem;
  line-height:1.5;
  color:var(--grey);
}

@media (min-width:1100px){
  .feature section{column-count:2;column-gap:3rem}
  .feature section h2,
  .feature section h3,
  .feature section figure,
  .feature section blockquote{column-span:all}
}

/* ---------- 右栏 ---------- */
.rail-aside{
  padding:2rem 1rem 3rem;
  border-top:2px solid var(--ink);
}

@media (min-width:1000px){
  .rail-aside{
    position:sticky;
    top:0;
    align-self:start;
    max-height:100vh;
    overflow:auto;
    padding:3rem 1.4rem;
    border-top:0;
    border-left:1px solid var(--ink);
  }
}

.rail-aside .aside-t{
  font-size:1rem;
  letter-spacing:.22em;
  padding-bottom:.6rem;
  margin-bottom:.3rem;
  border-bottom:3px solid var(--ink);
}

.rail-aside ul{list-style:none;padding:0}

.rail-aside a{
  display:block;
  min-height:44px;
  padding:11px 0;
  font-size:1rem;
  border-bottom:1px solid rgba(0,0,0,.15);
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}

.rail-aside a:hover,
.rail-aside a:focus-visible{
  background:var(--ink);
  color:var(--paper);
  padding-left:.5rem;
}

/* ---------- 页脚 ---------- */
.colophon{
  border-top:4px solid var(--ink);
  padding:2.5rem 1rem 1.5rem;
}

.giant{
  margin:0 0 1.8rem;
  font-size:clamp(3rem,15vw,11rem);
  font-weight:700;
  line-height:.82;
  letter-spacing:-.05em;
  word-break:break-word;
}

.cols{
  display:grid;
  grid-template-columns:1fr;
  gap:1.8rem;
  padding-top:2rem;
  border-top:1px solid var(--ink);
}

@media (min-width:700px){
  .cols{grid-template-columns:repeat(3,1fr);gap:2.5rem}
}

.cols dt{
  font-size:1rem;
  font-weight:700;
  letter-spacing:.18em;
  margin-bottom:.5rem;
}

.cols dd{
  font-size:1rem;
  line-height:1.6;
  padding:4px 0;
}

.cols dd a{
  display:block;
  min-height:40px;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.12);
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}

.cols dd a:hover,
.cols dd a:focus-visible{
  background:var(--ink);
  color:var(--paper);
  padding-left:.5rem;
}

.copy{
  margin:2.6rem 0 0;
  padding-top:1.2rem;
  border-top:1px solid var(--ink);
  text-align:center;
  font-size:1rem;
}

@media (min-width:700px){
  .colophon{padding:3rem 2rem 1.8rem}
}

/* ---------- 动效 ---------- */
.rv{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay:calc(var(--i,0) * 60ms);
}

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

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
  .hero-img{transform:none !important}
}

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