:root {
  --bg: #f7f4ef;
  --ink: #252924;
  --muted: #697168;
  --leaf: #536848;
  --leaf-soft: #e6eddf;
  --line: #ddd8cf;
  --paper: #fffcf7;
  --hover: #efeae2;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 28px;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  list-style: none;
}

.nav-link:hover,
.menu > summary:hover,
.nav-link.is-active,
.menu.is-current > summary {
  background: var(--hover);
}

.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }

.chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-1px);
}

.menu[open] > summary .chevron {
  transform: rotate(225deg) translateY(-1px);
}

.menu { position: relative; }

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 228px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(37, 41, 36, 0.1);
  display: flex;
  flex-direction: column;
}

.menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}

.menu-panel a:hover,
.menu-panel a.is-active {
  background: var(--leaf-soft);
  color: var(--leaf);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 10px 9px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero-card {
  text-align: center;
  max-width: 520px;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 36px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(48px, 12vw, 80px);
  font-weight: 600;
  letter-spacing: -0.06em;
  margin: 0 0 20px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.domain {
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-top: 48px !important;
}

.doc {
  width: min(860px, calc(100% - 40px));
  margin: 32px auto 80px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 48px 56px;
  box-shadow: 0 8px 30px rgba(37, 41, 36, 0.04);
}

html[dir="rtl"] .doc {
  text-align: right;
}

.doc h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.doc h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.doc h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.doc h4 {
  font-size: 16px;
  margin: 22px 0 8px;
}

.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3f3a;
}

.doc p { margin: 0 0 14px; }

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-inline-start: 22px;
}

.doc li { margin: 0 0 8px; }

.doc a {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc strong {
  color: var(--ink);
  font-weight: 700;
}

.doc .notice {
  font-weight: 650;
  color: var(--ink);
}

@media (max-width: 760px) {
  .topbar { padding: 10px 16px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 8px 12px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  body.nav-open .nav { display: flex; }

  .menu-panel {
    position: static;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
  }

  .doc {
    width: calc(100% - 24px);
    margin: 16px auto 48px;
    padding: 24px 20px 36px;
    border-radius: 16px;
  }
}
