/*
 * Monochrome tokens — layout lives in style.css
 */
:root {
  --bg: #ebebe9;
  --surface: #f7f7f5;
  --ink: #0a0a0a;
  --ink-muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --column: 28rem;
  --gutter: clamp(0.75rem, 4vw, 1.5rem);
}

/* 外部リンク: ボタン末尾の進行形シェブロン（正本 SVG は script.js と一致させる） */
.link-go {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-go svg {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
}

a.link-external:not(.btn):not(.activity-inline-link):not(.simple-list a) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

:focus-visible {
  outline: 2px solid rgba(10, 10, 10, 0.35);
  outline-offset: 4px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
