/*
Theme Name: RP-Official
Theme URI:
Author: Raptio
Description: WordPress.org公式サイト風モダン公式テーマ
Version: 1.6.5
License: MIT

base.css — デザイントークンとリセット/基本スタイル
全ページで共通して読み込まれる最も基礎的な層。
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ================================================================
    TOKENS
================================================================ */
:root {
    /* Brand blues — lifted from wordpress.org */
    --blue-0:   #f0f6fc;
    --blue-1:   #c7e0f4;
    --blue-5:   #0073aa;
    --blue-6:   #006799;
    --blue-7:   #005177;
    --blue-dark:#00294a;

    /* Neutrals */
    --white:    #ffffff;
    --gray-0:   #f6f7f7;
    --gray-1:   #f0f0f1;
    --gray-2:   #dcdcde;
    --gray-3:   #c3c4c7;
    --gray-4:   #8c8f94;
    --gray-5:   #50575e;
    --gray-6:   #1d2327;

    /* Accent */
    --accent:   #3858e9;   /* WP Blueberry */
    --accent-2: #e8f0fe;

    /* Semantic */
    --bg:       var(--white);
    --bg-alt:   var(--gray-0);
    --text:     var(--gray-6);
    --text-muted: var(--gray-5);
    --border:   var(--gray-2);

    /* Hero gradient — the WordPress.org signature deep-blue sweep */
    --hero-from: #00294a;
    --hero-to:   #0073aa;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Radius */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;

    /* Shadow */
    --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 8px 32px rgba(0,0,0,.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
}

/* ================================================================
    RESET / BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-alt);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* スティッキーフッター */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* メインコンテンツが余白を埋めてフッターを最下部へ押し下げる */
.site-main {
    flex: 1 0 auto;
}

a { color: var(--blue-5); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-6); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font);
    line-height: 1.2;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}