:root {
  --paper: #f3eee4;
  --paper-deep: #e7dfd0;
  --ink: #16262a;
  --ink-soft: #4d5f63;
  --teal: #1b6b66;
  --teal-deep: #114843;
  --foam: #fffdf8;
  --line: #d8cfc0;
  --shadow: 0 18px 40px rgba(22, 38, 42, 0.08);
  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12191b;
    --paper-deep: #0c1214;
    --ink: #eef3f2;
    --ink-soft: #9aadaf;
    --teal: #5ec2b8;
    --teal-deep: #8ee0d6;
    --foam: #1a2426;
    --line: #2c3a3c;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  font-size: 14px;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.lang {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--foam);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-current="true"] {
  background: var(--teal);
  color: #fff;
}

.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.03em;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.stack {
  position: relative;
  min-height: 280px;
}

.note-card {
  position: absolute;
  width: min(100%, 320px);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 18px 22px;
}

.note-card:nth-child(1) {
  top: 8px;
  left: 8px;
  transform: rotate(-6deg);
}

.note-card:nth-child(2) {
  top: 48px;
  left: 56px;
  transform: rotate(3deg);
}

.note-card:nth-child(3) {
  top: 108px;
  left: 24px;
  transform: rotate(-1.5deg);
}

.note-card small {
  color: var(--teal);
  font-weight: 600;
}

.note-card p {
  margin: 8px 0 0;
}

.section {
  padding: 28px 0 64px;
}

.section h2 {
  font-size: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.meta {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

article.legal {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 36px;
  box-shadow: var(--shadow);
}

article.legal h2 {
  font-size: 20px;
  margin-top: 28px;
}

article.legal p,
article.legal li {
  color: var(--ink-soft);
}

article.legal ul {
  padding-left: 1.2em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

@media (max-width: 800px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .stack {
    min-height: 240px;
  }

  .site-header .wrap,
  .nav {
    flex-wrap: wrap;
  }
}
