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

:root {
  --paper: #fafaf8;
  --ink: #1a1a1a;
  --gray: #4a4a4a;
  --soft: #f1efe9;
  --line: #d9d6ce;
  --radius: 28px;
  --shadow: 0 22px 46px -30px rgba(26, 26, 26, 0.6);
  --edge: 1.5px solid var(--ink);
}

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

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

body {
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  font-family: "Didact Gothic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: repeat;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Poiret One", "Didact Gothic", "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.16;
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 3px;
}

/* 顶栏 */
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(14px, 3vw, 30px);
  border-bottom: var(--edge);
  background: var(--paper);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  border: var(--edge);
  border-radius: 50%;
  text-decoration: none;
  transform: rotate(-4deg);
  background: #fff;
}

.mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.mark-txt {
  font-family: "Poiret One", serif;
  font-size: 21px;
  line-height: 1;
}

.bar-brand {
  font-family: "Poiret One", serif;
  font-size: 17px;
  letter-spacing: 0.24em;
  padding-left: 2px;
}

.drawer {
  position: relative;
  margin-left: auto;
}

.drawer summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  font-size: 16px;
  letter-spacing: 0.16em;
  border: 1.5px dashed var(--ink);
  border-radius: 12px;
  background: #fff;
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer[open] summary {
  background: var(--ink);
  color: var(--paper);
  border-style: solid;
}

.menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px;
  position: absolute;
  right: 0;
  top: 100%;
  width: 236px;
  background: var(--paper);
  border: var(--edge);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 40;
}

.menu li {
  margin: 0;
}

.menu .grp {
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--gray);
  padding: 8px 12px 3px;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 12px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 9px;
}

.menu a:hover {
  background: var(--soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bar-contact {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

/* 二级锚点条 */
.strip {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 8px clamp(10px, 3vw, 30px);
  border-bottom: var(--edge);
  background: #f6f4ee;
  overflow-x: auto;
  scrollbar-width: thin;
}

.strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  font-size: 16px;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  border: 1px dashed transparent;
  border-radius: 999px;
  transition: transform 0.12s steps(2), color 0.12s steps(2), border-color 0.12s steps(2);
}

.strip a:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px) rotate(-1.2deg);
}

/* 主体骨架 */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.hero {
  display: grid;
  gap: clamp(22px, 5vw, 46px);
  align-items: center;
  min-height: 84vh;
  padding: clamp(26px, 6vw, 60px) clamp(16px, 4vw, 40px);
  border-bottom: 1.5px dashed var(--line);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 6.6vw, 4.2rem);
  letter-spacing: 0.02em;
  text-align: left;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 16px;
  text-decoration: none;
  border: var(--edge);
  border-radius: 999px;
  background: #fff;
  transition: transform 0.12s steps(2), background 0.12s steps(2), color 0.12s steps(2);
}

.hero-link:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1.4deg);
}

.hero-fig {
  margin: 0;
  position: relative;
  transform: rotate(1.4deg);
  will-change: transform;
}

.hero-fig::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 12%;
  width: 84px;
  height: 24px;
  background: rgba(74, 74, 74, 0.2);
  transform: rotate(5deg);
  border-radius: 2px;
  z-index: 2;
}

.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  border: var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: grayscale(0.16) contrast(1.05);
}

.hero-sketch {
  display: block;
  width: 100%;
  height: auto;
  border: var(--edge);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

/* 侧栏 */
.rail {
  padding: 6px clamp(16px, 4vw, 40px) 26px;
  border-bottom: 1.5px dashed var(--line);
}

.rail-title {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--gray);
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: rail;
}

.rail li {
  counter-increment: rail;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 0 12px;
}

.rail a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 16px;
  color: var(--gray);
  text-decoration: none;
}

.rail a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: "Poiret One", serif;
  font-size: 13px;
  color: var(--ink);
}

.rail a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 正文 */
article {
  min-width: 0;
  padding: 26px clamp(16px, 4vw, 40px) 12px;
}

article .kicker {
  display: block;
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--gray);
  margin: 0 0 6px;
}

article > h2 {
  margin: 0 0 26px;
  font-size: clamp(1.6rem, 4.4vw, 2.1rem);
}

article > section {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 38px);
  margin: 0 0 30px;
  box-shadow: var(--shadow);
  scroll-margin-top: 108px;
}

article > section:nth-of-type(odd) {
  transform: rotate(-0.28deg);
}

article > section:nth-of-type(even) {
  transform: rotate(0.34deg);
}

article section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
}

article section h3 {
  margin: 26px 0 10px;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
}

article small {
  display: block;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 4px;
}

article h2 + small,
article h3 + small {
  margin-top: 10px;
}

article p {
  margin: 0 0 1em;
}

article ul,
article ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

article li {
  margin: 0 0 0.5em;
  line-height: 1.8;
}

article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gray);
  text-underline-offset: 4px;
}

article a:hover {
  text-decoration-color: var(--ink);
  background: #efeee6;
}

article blockquote {
  margin: 0 0 1.2em;
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--line);
  color: var(--gray);
}

article img {
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
  margin-top: 42px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 18px;
  border-top: 2px solid var(--ink);
  background: #f4f2ec;
}

.cta {
  grid-column: 1 / -1;
}

.cta a {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 4px 8px;
  font-family: "Poiret One", serif;
  font-size: clamp(1.6rem, 5.4vw, 2.7rem);
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  transition: transform 0.12s steps(2);
}

.cta a:hover {
  transform: rotate(-0.8deg) translateX(2px);
}

.foot-name {
  margin: 0;
  font-family: "Poiret One", serif;
  font-size: 20px;
  letter-spacing: 0.2em;
}

.foot-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.foot-links a:hover {
  color: var(--ink);
  border-bottom-style: solid;
}

.foot-bar {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  text-align: center;
  font-size: 16px;
  color: var(--gray);
  border-top: 1px solid var(--line);
}

/* 入场 */
.js article > * {
  opacity: 0;
  transition: opacity 0.26s steps(3);
}

.js article > *.in {
  opacity: 1;
}

/* 断点 */
@media (min-width: 900px) {
  main {
    grid-template-columns: 196px minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "rail art";
    column-gap: clamp(22px, 3vw, 46px);
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    align-items: start;
  }

  .hero {
    grid-area: hero;
    grid-template-columns: 1.04fr 0.96fr;
    min-height: 100vh;
    padding-left: 0;
    padding-right: 0;
  }

  .rail {
    grid-area: rail;
    position: sticky;
    top: 72px;
    align-self: start;
    padding: 40px 0 40px;
    border-bottom: 0;
  }

  .rail ol {
    display: block;
  }

  .rail li {
    border: 0;
    border-bottom: 1px dashed var(--line);
    border-radius: 0;
    padding: 0;
  }

  section {
    grid-area: art;
    padding: 40px 0 12px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 420px) {
  .bar-brand {
    font-size: 15px;
    letter-spacing: 0.16em;
  }

  .bar-contact {
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js section > * {
    opacity: 1;
  }

  .hero-fig {
    transform: none;
  }
}

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