/**
 * ojikanri-base.css
 * CSS Reset + base element styles for "煌" theme.
 */

/* ── Google Fonts ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote,
dl, dd {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

/* ── Base ───────────────────────────────────────────── */
html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--oji-font-family);
	font-size: var(--oji-font-size-base);
	font-weight: var(--oji-font-weight-normal);
	line-height: var(--oji-line-height);
	letter-spacing: var(--oji-letter-spacing);
	color: var(--oji-color-text);
	background: var(--oji-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	position: relative;
}

/* Subtle noise texture overlay */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	opacity: 0.015;
	pointer-events: none;
	z-index: 0;
}

/* ── Links ──────────────────────────────────────────── */
a {
	color: var(--oji-color-accent-gold);
	text-decoration: none;
	transition: color var(--oji-transition-fast), text-shadow var(--oji-transition-fast);
}

a:hover,
a:focus {
	color: var(--oji-color-accent-gold-light);
	text-shadow: 0 0 8px rgba(212, 175, 87, 0.4);
	text-decoration: none;
}

/* ── Headings ───────────────────────────────────────── */
h1, h2, h3 {
	font-family: var(--oji-font-display);
	font-weight: var(--oji-font-weight-medium);
	line-height: 1.4;
	color: var(--oji-color-text);
	letter-spacing: 0.04em;
}

h4, h5, h6 {
	font-family: var(--oji-font-family);
	font-weight: var(--oji-font-weight-bold);
	line-height: 1.4;
	color: var(--oji-color-text);
}

h1 { font-size: var(--oji-font-size-3xl); }
h2 { font-size: var(--oji-font-size-2xl); }
h3 { font-size: var(--oji-font-size-xl); }
h4 { font-size: var(--oji-font-size-lg); }
h5 { font-size: var(--oji-font-size-md); }
h6 { font-size: var(--oji-font-size-base); }

/* Gold accent for important headings */
.heading--gold {
	background: var(--oji-gradient-gold);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ── Images ─────────────────────────────────────────── */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ── Misc ───────────────────────────────────────────── */
::selection {
	background-color: var(--oji-color-accent-gold);
	color: var(--oji-color-bg);
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

/* ── Layout Utilities ───────────────────────────────── */
.container {
	width: 100%;
	max-width: var(--oji-container-sm);
	margin-inline: auto;
	padding-inline: var(--oji-space-md);
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.container {
		max-width: var(--oji-container-md);
		padding-inline: var(--oji-space-lg);
	}
}

@media (min-width: 1024px) {
	.container {
		max-width: var(--oji-container-lg);
	}
}

.main-content {
	padding-top: calc(var(--oji-nav-height) + var(--oji-space-xl));
	padding-bottom: var(--oji-space-3xl);
	min-height: calc(100vh - var(--oji-nav-height));
	position: relative;
	z-index: 1;
}

/* ── Screen-reader only ─────────────────────────────── */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes oji-shimmer {
	0% { background-position: -200% center; }
	100% { background-position: 200% center; }
}

@keyframes oji-pulse-glow {
	0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 87, 0.2); }
	50% { box-shadow: 0 0 20px rgba(212, 175, 87, 0.4); }
}

@keyframes oji-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes oji-scale-in {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

/* Page entry animation */
.main-content > .container {
	animation: oji-fade-in 0.5s ease-out;
}
