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

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

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: Georgia, "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

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

p {
  margin: 0 0 1.05em;
}

h1,
h2,
h3,
.brand,
.pill,
.foot-brand,
dt {
  font-family: "Space Grotesk", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 1rem 0;
}

article[id] {
  scroll-margin-top: 1.4rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 3px solid #000;
  padding: 0.9rem 1.1rem 0.9rem;
  display: grid;
  gap: 0.8rem;
  background: #fff;
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: clamp(1.6rem, 8vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.menuline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  justify-content: space-between;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 16rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 2px solid #000;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.1;
  background: #fff;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pill:hover,
.pill:focus-visible {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.search {
  flex: 0 0 auto;
  width: 100%;
  max-width: 15rem;
}

.search input {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 0.95rem;
}

.search input::placeholder {
  color: #444;
}

.search input:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: grid;
  margin-bottom: 1.5rem;
  background: #000;
  color: #fff;
  border-radius: 0 0 36px 36px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 15px 15px;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 2.1rem 1.2rem 2.4rem;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 9.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.dek {
  margin: 0 0 0 auto;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #ededed;
}

/* ---------- shell ---------- */

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.1rem 3rem;
}

.spread {
  display: grid;
  gap: 1.6rem;
}

.spread-fig {
  margin: 0;
  border-radius: 28px;
  border-bottom: 6px solid #000;
  overflow: hidden;
  background: #000;
  animation: rise 0.5s ease both;
}

.spread-fig .fig-img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.spread-fig figcaption {
  padding: 0.55rem 1rem;
  background: #000;
  color: #fff;
  font-family: "Space Grotesk", "Microsoft YaHei", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-align: right;
}

/* ---------- prose ---------- */

.prose {
  max-width: 66ch;
  font-size: 1.06rem;
  line-height: 1.76;
  overflow-wrap: break-word;
}

.prose > article {
  padding-bottom: 2.2rem;
  border-bottom: 1px solid #000;
  animation: rise 0.5s ease both;
}

.prose > article:nth-child(1) { animation-delay: 0.04s; }
.prose > article:nth-child(2) { animation-delay: 0.09s; }
.prose > article:nth-child(3) { animation-delay: 0.14s; }
.prose > article:nth-child(4) { animation-delay: 0.19s; }
.prose > article:nth-child(5) { animation-delay: 0.24s; }
.prose > article:nth-child(6) { animation-delay: 0.29s; }
.prose > article:nth-child(7) { animation-delay: 0.34s; }

.prose > article:last-child {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

.prose h2 {
  margin: 1.9rem 0 0.25rem;
  font-size: clamp(1.35rem, 5.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.prose h2 + hr {
  width: 58px;
  border: 0;
  border-top: 4px solid #000;
  margin: 0 0 1rem;
}

.prose h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.16rem;
}

.prose h3 + hr {
  width: 34px;
  border: 0;
  border-top: 3px solid #000;
  margin: 0 0 0.8rem;
}

.prose article:first-child > p:first-of-type::first-letter {
  float: left;
  font-family: "Space Grotesk", Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.78;
  padding: 0.12em 0.34rem 0 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose a {
  border-bottom: 2px solid #000;
}

.prose a:hover {
  background: #000;
  color: #fff;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1.05rem 0;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  font-size: 1.24rem;
  line-height: 1.5;
}

.prose figure {
  margin: 1.4rem 0;
  border-radius: 28px;
  overflow: hidden;
  border-bottom: 5px solid #000;
}

.prose figure img {
  width: 100%;
  filter: grayscale(1);
}

.prose figcaption {
  padding: 0.5rem 0.9rem;
  background: #000;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

/* ---------- rail ---------- */

.rail {
  border: 2px solid #000;
  border-bottom-width: 6px;
  border-radius: 28px;
  padding: 0.95rem 1.05rem 0.8rem;
  background: #fff;
  animation: rise 0.5s ease both;
  animation-delay: 0.12s;
}

.rail h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.rail hr {
  width: 30px;
  border: 0;
  border-top: 4px solid #000;
  margin: 0 0 0.4rem;
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.15rem;
  border-bottom: 1px solid #000;
  font-size: 0.97rem;
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

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

.rail a:hover,
.rail a:focus-visible {
  background: #000;
  color: #fff;
  padding-left: 0.6rem;
}

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

.foot {
  background: #000;
  color: #fff;
  border-radius: 36px 36px 0 0;
  margin-top: 2.2rem;
  padding: 2.4rem 1.2rem 1.3rem;
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.9rem;
}

.foot-addr {
  font-style: normal;
}

.foot-brand {
  display: block;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.foot nav dl {
  margin: 0;
  display: grid;
  gap: 0.1rem;
}

.foot dt {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 0.45rem;
}

.foot dd {
  margin: 0;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 2px solid transparent;
  font-size: 0.97rem;
  transition: border-color 0.16s ease;
}

.foot a:hover,
.foot a:focus-visible {
  border-bottom-color: #fff;
}

.foot-base {
  max-width: 1180px;
  margin: 1.9rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  text-align: center;
  font-size: 0.86rem;
  opacity: 0.85;
}

.foot-base p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- breakpoints ---------- */

@media (min-width: 620px) {
  .masthead {
    padding: 1.1rem 1.6rem 1rem;
  }
  .shell {
    padding: 0 1.6rem 3.4rem;
  }
  .hero-copy {
    padding: 2.6rem 1.8rem 3rem;
  }
  .foot {
    padding: 2.8rem 1.6rem 1.4rem;
  }
  .foot-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 1.6rem 2.4rem;
  }
  .foot-links {
    grid-column: 2;
  }
}

@media (min-width: 900px) {
  .hero {
    min-height: 45vh;
    border-radius: 0 0 48px 48px;
  }
  .shell {
    padding: 0 2rem 4rem;
  }
  .spread {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    grid-template-areas:
      "fig rail"
      "prose rail";
    gap: 1.5rem 2.8rem;
    align-items: start;
  }
  .spread-fig {
    grid-area: fig;
  }
  .prose {
    grid-area: prose;
  }
  .rail {
    grid-area: rail;
    position: sticky;
    top: 1.4rem;
  }
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .foot-links {
    grid-column: auto;
  }
}

@media (min-width: 1100px) {
  .prose {
    max-width: 68ch;
  }
  .prose > article:nth-child(n + 3) {
    column-count: 2;
    column-gap: 2.6rem;
  }
  .prose > article:nth-child(n + 3) h2,
  .prose > article:nth-child(n + 3) hr {
    column-span: all;
  }
  .prose > article:nth-child(n + 3) blockquote,
  .prose > article:nth-child(n + 3) figure {
    column-span: all;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .prose > article,
  .spread-fig,
  .rail {
    animation: none;
  }
  .pill,
  .rail a,
  .foot a {
    transition: none;
  }
}

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