/* ===========================================================
   Base styles for ムダシル。
   Minimal reset + body typography + container + buttons.
   =========================================================== */

/* --- Reset (lightweight, avoid global mass-resets that fight Cocoon) --- */
*, *::before, *::after { box-sizing: border-box; }

/* --- Body --- */
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (max-width: 640px) {
	body { font-size: var(--fs-body-m); }
}

/* --- Headings (page-wide defaults; per-context overrides in components/article CSS) --- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 900;
	line-height: var(--lh-heading);
	color: var(--ink);
	letter-spacing: .005em;
	text-wrap: pretty;
}

/* --- Links --- */
a {
	color: var(--brand);
	text-decoration: none;
	transition: color .15s ease;
}
a:hover { color: var(--brand-deep); }

/* --- Container --- */
.container {
	padding-inline: 16px;
}
@media (min-width: 640px) {
	.container { padding-inline: 24px; }
}
@media (min-width: 960px) {
	.container {
		padding-inline: 36px;
		max-width: 1180px;
		margin-inline: auto;
	}
}

/* --- Buttons (used by btn-brand, btn-ghost) --- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 12px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: var(--fs-ui);
	border: none;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
}
.btn:hover { color: #fff; }
.btn-brand {
	background: var(--brand);
	box-shadow: 0 4px 0 var(--brand-deep);
}
.btn-brand:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 var(--brand-deep);
}
.btn-ghost {
	background: var(--paper);
	color: var(--ink);
	border: 1.5px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); }

/* --- Site header / brand (basic, refined in P2) --- */
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	background: rgba(253, 248, 238, .92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1.5px solid var(--line);
}
@media (min-width: 960px) {
	.site-header-inner {
		padding: 18px 36px;
	}
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
	flex-shrink: 0;            /* keep the brand on one row even when nav is wide */
	white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img,
.brand svg {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
}
.brand__name {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 20px;
	letter-spacing: .01em;
	line-height: 1;
	white-space: nowrap;       /* prevent per-character wrap on narrow containers */
}
.brand__dot { color: var(--brand); }

@media (min-width: 640px) {
	.brand img,
	.brand svg {
		width: 40px;
		height: 40px;
		flex: 0 0 40px;
	}
	.brand__name { font-size: 24px; }
}

/* --- Site footer (basic) --- */
.site-footer-inner {
	padding: 24px 16px;
	background: var(--bg);
	border-top: 1.5px solid var(--line);
	font-size: var(--fs-meta);
	color: var(--ink-soft);
}
@media (min-width: 960px) {
	.site-footer-inner { padding: 40px 36px; }
}
.site-footer__copy {
	margin-top: 16px;
	font-size: var(--fs-mini);
	color: var(--ink-mute);
}
