:root {
  --color-page: #f6f8f8;
  --color-panel: #ffffff;
  --color-panel-muted: #eef2f1;
  --color-line: #dde4e1;
  --color-accent: #1f9d55;
  --color-accent-strong: #15753e;
  --color-accent-soft: #e3f3ea;
  --color-text: #1b221f;
  --color-text-muted: #5d6a64;
  --color-success: #1e8e4e;
  --color-warning: #b7791f;
  --color-error: #c2453a;
  --color-mint: #e7f6ee;
  --color-sky: #e3f0f7;
  --color-highlight: #fbfdfc;
  --color-frame: #37453f;
  --color-frame-soft: #c9d3cf;
  --color-overlay: rgba(27, 34, 31, 0.42);
  --color-shadow-float: rgba(27, 34, 31, 0.2);
  --color-shadow-soft: rgba(27, 34, 31, 0.1);
  --color-shadow-accent: rgba(31, 157, 85, 0.22);
  --color-white-glint: rgba(255, 255, 255, 0.35);
  --color-transparent: rgba(255, 255, 255, 0);
  --color-mint-clear: rgba(231, 246, 238, 0);
  --color-sky-clear: rgba(227, 240, 247, 0);
  --color-highlight-mid: rgba(251, 253, 252, 0.55);
  --color-highlight-clear: rgba(251, 253, 252, 0);

  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-hero: 38px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-float: 0 34px 70px -24px var(--color-shadow-float), 0 12px 28px -14px var(--color-shadow-soft);
  --shadow-tight: 0 14px 30px -14px var(--color-shadow-float), 0 3px 8px -2px var(--color-shadow-soft);
  --shadow-frame: 0 48px 90px -44px var(--color-shadow-accent), 0 18px 40px -26px var(--color-shadow-float);
  --shadow-button: 0 10px 22px -10px var(--color-shadow-accent), 0 1px 2px var(--color-shadow-soft);
  --shadow-soft: 0 6px 18px -10px var(--color-shadow-float);

  --content-width: 1120px;
  --header-width: 1280px;
  --reading-width: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(72px, 9vw, 128px);
  --header-height: 72px;
  --motion-fast: 150ms;
  --motion-normal: 420ms;
}

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

html {
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.nav-open {
  overflow: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: clip;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  flex-shrink: 0;
}

a {
  color: var(--color-accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

ul,
ol {
  padding-left: 1.35em;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

code {
  padding: 0.12em 0.38em;
  border-radius: var(--radius-sm);
  background: var(--color-panel-muted);
  color: var(--color-text);
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  margin: 24px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-panel-muted);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  overflow-wrap: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-panel-muted);
  color: var(--color-text);
  font-weight: 700;
}

blockquote {
  margin-inline: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--reading {
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
}

.header-wrap {
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}

.section--tint {
  border-block: 1px solid var(--color-line);
  background: linear-gradient(135deg, var(--color-mint), var(--color-sky));
  color: var(--color-text);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 5px 13px 5px 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.eyebrow-dot,
.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 780;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 740;
  line-height: 1.28;
}

h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.title-accent {
  color: var(--color-accent);
}

.no-break {
  white-space: nowrap;
}

.lead {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.7;
}

.prose {
  color: var(--color-text);
}

.prose > * {
  max-width: 100%;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.prose h2 {
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose a {
  font-weight: 600;
}

.muted {
  color: var(--color-text-muted);
}

.mono {
  font-family: var(--font-mono);
}

.panel,
.card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  color: var(--color-text);
}

.panel {
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow-float);
}

.card {
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid > * {
  min-width: 0;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-panel);
  box-shadow: var(--shadow-button);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}

.button:hover {
  background: var(--color-accent-strong);
  color: var(--color-panel);
  transform: translateY(-1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.menu-toggle:focus-visible,
.language-button:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 3px;
}

.button--secondary {
  border-color: var(--color-line);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.button--secondary:hover {
  border-color: var(--color-frame-soft);
  background: var(--color-panel-muted);
  color: var(--color-text);
}

.button--small {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 0.9rem;
}

.button svg {
  width: 18px;
  height: 18px;
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-page);
  color: var(--color-text);
}

.site-header__row {
  display: flex;
  height: var(--header-height);
  align-items: center;
}

.site-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--color-text);
}

.site-brand__logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.site-brand__sub {
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  display: flex;
  align-items: center;
}

.site-nav__item + .site-nav__item::before {
  content: "·";
  margin-inline: 13px;
  color: var(--color-frame-soft);
  font-weight: 700;
}

.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 2px;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.header-tools {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-left: 22px;
}

.language-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding-inline: 13px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.language-button__short {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 4;
  width: 174px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-tight);
  list-style: none;
}

.language-menu[hidden] {
  display: none;
}

.language-menu a {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--color-panel-muted);
  color: var(--color-text);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 21px;
  height: 21px;
}

.mobile-veil {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 1;
  border: 0;
  background: var(--color-overlay);
}

.mobile-veil[hidden] {
  display: none;
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: 2;
  max-height: calc(100dvh - var(--header-height));
  padding: 12px var(--gutter) 22px;
  overflow-y: auto;
  border-top: 1px solid var(--color-line);
  background: var(--color-panel);
  color: var(--color-text);
  overscroll-behavior: contain;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-drawer a {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  font-weight: 650;
  text-decoration: none;
}

.mobile-drawer__languages {
  margin-top: 16px;
}

.mobile-drawer__label {
  margin: 0;
  padding-block: 8px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer {
  padding-top: 72px;
  padding-bottom: 28px;
  border-top: 1px solid var(--color-line);
  background: var(--color-panel);
  color: var(--color-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.25fr 0.8fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 320px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 7px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--motion-normal), transform var(--motion-normal);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

.tilt {
  transform: rotate(-2deg);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .site-brand__sub {
    display: none;
  }

  .site-nav__item + .site-nav__item::before {
    margin-inline: 8px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .header-tools {
    margin-left: 14px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: clamp(28px, 6vw, 30px);
    letter-spacing: -0.018em;
  }

  .site-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .language-menu {
    display: none;
  }

  .language-button__full {
    display: none;
  }

  .language-button__short {
    display: inline;
  }

  .menu-toggle {
    display: grid;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --section-space: 72px;
  }

  body {
    font-size: 15.5px;
  }

  h1 {
    font-size: clamp(24px, 7.5vw, 30px);
  }

  h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .wrap,
  .header-wrap {
    width: 100%;
    padding-inline: var(--gutter);
  }

  .grid--2,
  .grid--3,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    flex: 1 1 180px;
  }

  .panel,
  .card {
    border-radius: var(--radius-lg);
  }

  .tilt,
  [class*="tilt"] {
    transform: none !important;
  }

  .footer-grid {
    gap: 30px;
  }

  .site-footer {
    padding-top: 56px;
  }
}

@media (max-width: 390px) {
  .site-brand {
    font-size: 15px;
  }

  .site-brand__logo {
    width: 31px;
    height: 31px;
  }

  .language-button {
    padding-inline: 10px;
  }
}