@layer base {
  body {
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-base);
    overflow-wrap: break-word;
  }

  /* 既存テンプレート（.green 内のリンク等）の色を維持しつつ、低詳細度で上書き可能にする */
  :where(a) {
    color: var(--color-text);
  }

  :where(img) {
    max-inline-size: 100%;
    block-size: auto;
    vertical-align: top;
  }

  /* destyle.css がフォーム・ボタンの outline を消去するため、キーボードフォーカスリングを明示提供 */
  :where(a:any-link, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }

  /* destyle.css の [hidden] { display: none; } を上書きし、hidden="until-found" のページ内検索を有効化 */
  @supports (content-visibility: hidden) {
    [hidden="until-found" i] {
      display: block;
      content-visibility: hidden;
    }
  }
}
