/*
Theme Name: D-Dealer Block Theme
Theme URI: https://github.com/sgmr-factory/D-Dealer-Block-T
Author: SGMR factory
Author URI: https://github.com/sgmr-factory
Description: D-Dealer is a modern, dark-mode compatible block theme tailored for digital tool portfolios and business sites.
Version: 1.0.2build11
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: d-dealer
Tags: block-patterns, full-site-editing, custom-colors, editor-style, wide-blocks
*/

/* 1. Global CSS Design Tokens */
:root {
  --wp--preset--color--base: #f8fafc;
  --wp--preset--color--main: #0f172a;
  --wp--preset--color--sub: #64748b;
  --wp--preset--color--head: #0f172a;
  --wp--preset--color--accent: #0284c7;
  --wp--preset--color--accent-light: #38bdf8;
  --wp--preset--color--card-bg: #ffffff;
  --wp--preset--color--card-border: #e2e8f0;
  --wp--preset--color--white: #ffffff;
  --wp--preset--color--dark-surface: #0f172a;
  --wp--preset--color--dark-card: #1e293b;
  --wp--preset--color--dark-border: #334155;
  --surface-bg: #ffffff;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
}

html.is-dark,
body.is-dark,
[data-theme="dark"] {
  --wp--preset--color--base: #0b1120;
  --wp--preset--color--main: #f8fafc;
  --wp--preset--color--sub: #94a3b8;
  --wp--preset--color--head: #f8fafc;
  --wp--preset--color--accent: #38bdf8;
  --wp--preset--color--accent-light: #7dd3fc;
  --wp--preset--color--card-bg: #1e293b;
  --wp--preset--color--card-border: #334155;
  --surface-bg: #1e293b;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --card-bg: #1e293b;
  --card-border: #334155;
}

/* 2. Base Resets & Typography (Block Editor Friendly - No clobbering !important) */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--main);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .wp-block-heading {
  color: var(--wp--preset--color--head);
}

a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.85; }

/* 3. Core Block List Bullets & Spacing */
ul.wp-block-list, ol.wp-block-list,
.wp-block-post-content ul, .wp-block-post-content ol {
  padding-left: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}
ul.wp-block-list, .wp-block-post-content ul { list-style-type: disc; }
ol.wp-block-list, .wp-block-post-content ol { list-style-type: decimal; }
ul.wp-block-list li, ol.wp-block-list li {
  display: list-item;
  margin-bottom: 0.5rem;
}
