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

:root {
  --pink: #eb879c;
  --pink-soft: #ffb6c1;
  --ink: #26171a;
  --deep: #b8536c;
  --muted: #6b565b;
  --bg: #fdf8f9;
  --card: #ffffff;
  --line: #ecd9de;
  --line-strong: #e0c3ca;
  --shadow: 0 1px 2px rgba(38, 23, 26, 0.05), 0 2px 8px rgba(38, 23, 26, 0.035);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

html.menu-open, html.menu-open body { overflow: hidden; }

.skip {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 120;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.9375rem;
  transition: top 0.2s ease;
}
.skip:focus { top: 10px; color: #fff; }

.strip {
  margin: 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: none;
  padding: 7px 16px 8px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 249, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--line-strong); background: #fff; }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.burger:hover { background: var(--ink); color: #fff; }
.burger-lines { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

.anchors { border-top: 1px solid var(--line); }
.anchors nav {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.anchors a:hover { color: var(--ink); border-bottom-color: var(--pink); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 88px 24px 48px;
  overflow-y: auto;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
}
.menu.is-open { transform: none; visibility: visible; }

.menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.menu-close:hover { background: var(--pink-soft); color: var(--ink); border-color: var(--pink-soft); }

.menu-nav {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
}
.menu-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 4px;
  color: #fff;
  font-size: clamp(1.25rem, 4.4vw, 1.9rem);
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.menu-nav a:hover, .menu-nav a:focus-visible { color: var(--pink-soft); padding-left: 12px; }
.menu.is-open .menu-nav a { animation: rise 0.28s ease both; }
.menu.is-open .menu-nav a:nth-child(2) { animation-delay: 0.03s; }
.menu.is-open .menu-nav a:nth-child(3) { animation-delay: 0.06s; }
.menu.is-open .menu-nav a:nth-child(4) { animation-delay: 0.09s; }
.menu.is-open .menu-nav a:nth-child(5) { animation-delay: 0.12s; }
.menu.is-open .menu-nav a:nth-child(6) { animation-delay: 0.15s; }
.menu.is-open .menu-nav a:nth-child(7) { animation-delay: 0.18s; }

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

main [id] { scroll-margin-top: 148px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: calc(100vh - 148px);
  padding: 48px 0 0;
}
.hero-copy { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.hero h1 {
  font-size: clamp(1.75rem, 7.6vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 22ch;
  font-weight: 600;
}
.lede {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.hero-img {
  width: 100%;
  max-height: 52vh;
  object-fit: cover;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 8px;
}

.side {
  position: sticky;
  top: 156px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 18px 24px;
}
.side h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }
.side hr { width: 34px; height: 3px; background: var(--pink); border: 0; margin: 12px 0 14px; }
.side-nav { display: flex; flex-direction: column; }
.side-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { color: var(--ink); }

.doc { min-width: 0; overflow-wrap: break-word; font-size: 1.0625rem; }
.doc > div { padding: 44px 0; border-top: 1px solid var(--line); }
.doc > div:first-child { border-top: 0; padding-top: 20px; }
.doc h2 { font-size: clamp(1.375rem, 3.4vw, 1.9rem); }
.doc h3 { font-size: 1.1875rem; margin: 1.8em 0 0.5em; }
.doc hr { width: 64px; height: 3px; background: var(--pink); border: 0; margin: 14px 0 22px; }
.doc p { color: #3a2a2e; }
.doc a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.2em; }
.doc li { margin: 0.4em 0; color: #3a2a2e; }
.doc li::marker { color: var(--pink); }
.doc blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: var(--card);
  border-left: 3px solid var(--pink);
  box-shadow: var(--shadow);
}
.doc blockquote p:last-child { margin-bottom: 0; }
.doc table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9375rem; }
.doc th, .doc td { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: left; }
.doc th { background: #fff; font-weight: 600; }
.doc img { margin: 1.2em 0; border: 1px solid var(--line); max-width: 100%; }
.doc strong { font-weight: 600; }

.site-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px 40px;
  margin-top: 84px;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  background: var(--card);
  border-top: 1px solid var(--line);
}
.site-foot > div { padding: 36px 0; }

.foot-brand h2 {
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.foot-brand hr { width: 46px; height: 3px; background: var(--pink); border: 0; margin: 16px 0 0; }

.foot-links dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.foot-links dt { font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--deep); line-height: 2.2; }
.foot-links dd { margin: 0; }
.foot-links dd a { display: flex; align-items: center; min-height: 40px; font-size: 0.9375rem; }
.foot-links dd a:hover { color: var(--deep); }

.foot-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); text-align: center; }
.foot-copy p { margin: 0; font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; }

@media (max-width: 880px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .side-nav a { border-bottom: 0; padding: 8px 0; min-height: 40px; }
  .hero { min-height: calc(100vh - 152px); padding-top: 32px; }
  .hero-img { max-height: 42vh; }
  .site-foot { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc > div { padding: 34px 0; }
}

@media (max-width: 480px) {
  .topbar { padding: 8px 16px; }
  .wrap { padding: 0 16px; }
  .brand-txt { font-size: 1rem; }
  .lede { font-size: 1rem; }
  .hero { min-height: calc(100vh - 148px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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