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

:root {
  --paper: #fafaf8;
  --ink: #1a1a1a;
  --grey: #4a4a4a;
  --line: rgba(26, 26, 26, 0.28);
  --soft: rgba(26, 26, 26, 0.14);
  --font-body: 'Exo 2', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-head: 'Orbitron', "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --hand: 14px 4px 12px 5px / 5px 12px 4px 14px;
}

* { box-sizing: border-box; }

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

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  padding: 0 0 92px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 26, 26, 0.1) 1px, transparent 1.5px);
  background-size: 15px 15px;
  overflow-x: hidden;
}

a { color: var(--ink); }

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.22;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14vh clamp(20px, 6vw, 72px) 18vh;
  background-image: radial-gradient(rgba(26, 26, 26, 0.17) 1.2px, transparent 1.7px);
  background-size: 30px 30px;
}

.hero-copy {
  max-width: min(38rem, 52vw);
  margin-left: auto;
  text-align: right;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 4.3rem);
  letter-spacing: 0.01em;
  transform: rotate(-0.7deg);
}

.scribble {
  border: 0;
  height: 3px;
  width: min(64%, 15rem);
  margin: 1.1rem 0 1rem auto;
  background: var(--ink);
  border-radius: 3px 10px 4px 11px;
  transform: rotate(-1.4deg);
  opacity: 0.75;
}

.hero-desc {
  margin: 0;
  color: var(--grey);
  font-size: 1.05rem;
}

.collage {
  position: absolute;
  left: 4vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(40vw, 320px);
  height: min(46vh, 420px);
  margin: 0;
}

.collage img {
  position: absolute;
  width: 100%;
  height: 58%;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #e9e9e3;
  filter: grayscale(1) contrast(1.08);
  box-shadow: 7px 8px 0 rgba(26, 26, 26, 0.13);
}

.collage .shot-a {
  top: 0;
  left: 0;
  z-index: 1;
  animation: sway 11s ease-in-out infinite alternate;
}

.collage .shot-b {
  bottom: 0;
  left: 18%;
  z-index: 2;
  width: 84%;
  animation: sway2 8s ease-in-out infinite alternate;
}

@keyframes sway {
  from { transform: rotate(-4deg) translate(0, 0); }
  to { transform: rotate(-2.2deg) translate(5px, -10px); }
}

@keyframes sway2 {
  from { transform: rotate(6deg) translate(0, 0); }
  to { transform: rotate(4deg) translate(-6px, 7px); }
}

/* ---------- sheet ---------- */

.sheet {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(18px, 4vw, 40px) 0;
  align-items: start;
}

.side {
  position: sticky;
  top: 26px;
  border-left: 3px solid var(--ink);
  padding-left: 16px;
  transform: rotate(-0.5deg);
}

.side h2 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  letter-spacing: 0.2em;
}

.side hr {
  border: 0;
  border-top: 2px dotted var(--line);
  margin: 0.6rem 0 0.9rem;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.97rem;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.15rem;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px dashed var(--soft);
}

.side-list a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.side-top { margin: 1rem 0 0; }

.side-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--hand);
  background: var(--paper);
}

.side-top a:hover { background: var(--ink); color: var(--paper); }

/* ---------- div ---------- */

.article {
  min-width: 0;
  max-width: 70ch;
}

.article article {
  padding-bottom: 2.8rem;
  margin-bottom: 2.8rem;
  border-bottom: 2px dashed var(--soft);
  scroll-margin-top: 26px;
}

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

.article h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  transform: rotate(-0.4deg);
}

.article h3 {
  margin: 1.8rem 0 0.4rem;
  font-size: 1.13rem;
  color: var(--grey);
}

.article hr {
  border: 0;
  height: 8px;
  margin: 0.1rem 0 1.3rem;
  opacity: 0.5;
  background-image: radial-gradient(circle at 2px 4px, var(--ink) 1.7px, transparent 1.9px);
  background-size: 12px 8px;
  background-repeat: repeat-x;
}

.article p { margin: 0 0 1.1rem; }

.article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.article ul, .article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.article li { margin: 0.35rem 0; }

.article blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.1rem;
  background: #f0f0ea;
  border-left: 4px solid var(--grey);
  transform: rotate(-0.35deg);
  color: var(--grey);
}

.article strong { background: linear-gradient(transparent 62%, rgba(26, 26, 26, 0.18) 62%); }

.article img {
  display: block;
  height: auto;
  margin: 1.1rem 0;
  border: 2px solid var(--ink);
  filter: grayscale(1) contrast(1.05);
}

.article figure { margin: 1.2rem 0; }

.article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.96rem;
}

.article th, .article td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

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

.foot {
  margin-top: clamp(48px, 9vw, 110px);
  border-top: 3px solid var(--ink);
  background-color: #f1f1ec;
  background-image: radial-gradient(rgba(26, 26, 26, 0.12) 1px, transparent 1.5px);
  background-size: 17px 17px;
  padding: clamp(28px, 5vw, 54px) clamp(18px, 4vw, 44px) 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1120px;
  margin: 0 auto 2.2rem;
}

.foot-addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.foot-mark {
  font-family: var(--font-head);
  font-size: 1.06rem;
  letter-spacing: 0.1em;
}

.foot-addr a, .foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0;
  color: var(--grey);
  font-size: 0.96rem;
  text-decoration: none;
}

.foot-addr a:hover, .foot-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 3px;
}

.foot-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-word {
  margin: 0 0 0.9rem;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 11.5vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  opacity: 0.92;
  transform: rotate(-0.5deg);
}

.foot-copy {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* ---------- dock ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(250, 250, 248, 0.96);
  border-top: 2px solid var(--ink);
  backdrop-filter: blur(3px);
}

.dock.lean { box-shadow: 0 -7px 0 rgba(26, 26, 26, 0.09); }

.dock-menu { justify-self: start; position: relative; z-index: 3; }

.dock-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  border: 2px solid var(--ink);
  border-radius: var(--hand);
  background: var(--paper);
}

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

.dock-menu[open] summary {
  background: var(--ink);
  color: var(--paper);
}

.dock-menu[open] .burger {
  background: var(--paper);
  box-shadow: 0 -5px 0 var(--paper), 0 5px 0 var(--paper);
}

.burger {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.dock-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-0.8deg);
}

.dock-logo { display: block; filter: grayscale(1); }

.dock-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.85rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 2px dashed var(--line);
}

.dock-contact:hover { color: var(--ink); border-bottom-style: solid; }

/* ---------- drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: clamp(56px, 12vh, 108px) clamp(20px, 6vw, 64px) 120px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 26, 26, 0.16) 1.2px, transparent 1.7px);
  background-size: 28px 28px;
}

.drawer li { border-bottom: 1px solid var(--soft); }

.drawer a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.75rem 0.2rem;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 4.4vw, 1.55rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.drawer a:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 0.7rem;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  body { padding-bottom: 84px; }

  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 11vh 20px 9vh;
  }

  .collage {
    position: relative;
    left: auto;
    top: auto;
    transform: rotate(-2deg);
    width: 62%;
    height: 168px;
    margin: 0 0 26px auto;
  }

  .hero-copy {
    max-width: none;
    margin: 0;
    text-align: right;
  }

  .sheet {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 34px;
  }

  .side {
    position: static;
    transform: none;
    border-left: 0;
    border-top: 2px dashed var(--line);
    padding: 16px 0 0;
  }

  .side-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-addr { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .dock-lbl { display: none; }
  .side-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation: none !important;
    transition: none !important;
  }
}

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