:root {
	/* Typography scale for consistent, readable text */
	--base-font-size: 18px;
	/* 1rem */
	--base-line-height: 1.7;
	--base-letter-spacing: 0.05em;
	/* small tracking for Latin text */
	--heading-line-height: 1.2;
	--heading-letter-spacing: 0.04em;
	--container-max-width: 900px;
}

body {
	font-family: 'Roboto', 'Yu Gothic', 'Meiryo', sans-serif;
	margin: 0;
	background: #f7f9fb;
	color: #222;
	font-size: var(--base-font-size);
	line-height: var(--base-line-height);
	letter-spacing: var(--base-letter-spacing);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

header {
	background: #1a237e;
	color: #fff;
	padding: 32px 0 24px 0;
	text-align: center;
	box-shadow: 0 2px 8px rgba(30, 40, 100, 0.08);
}

h1 {
	margin: 0;
	font-size: 32px;
	line-height: var(--heading-line-height);
	letter-spacing: var(--heading-letter-spacing);
}

h2 {
	font-size: 24px;
	margin-bottom: 12px;
	color: #1a237e;
	line-height: 1.25;
}

h5 {
	font-size: 16px;
	margin: 0;
	font-weight: 400;
	letter-spacing: 0.04em;
}

p {
	font-size: var(--base-font-size);
	color: #444;
	margin: 0 auto;
	max-width: 72ch;
	/* keep paragraphs a readable measure */
}

nav {
	margin-top: 16px;
}

nav a {
	color: #fff;
	text-decoration: none;
	margin: 0 18px;
	font-weight: 700;
	font-size: var(--base-font-size);
	transition: color 0.2s;
}

nav a:hover {
	color: #ffca28;
}

.container {
	max-width: var(--container-max-width);
	margin: 40px auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(30, 40, 100, 0.08);
	padding: 40px 32px;
}

.intro {
	text-align: center;
	margin-bottom: 40px;
}



.works {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}

.work-card {
	background: #f3f6fa;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(30, 40, 100, 0.05);
	padding: 24px;
	transition: box-shadow 0.2s;
}

.work-card:hover {
	box-shadow: 0 6px 24px rgba(30, 40, 100, 0.12);
}

.work-title {
	font-size: 24px;
	color: #1a237e;
	margin-bottom: 8px;
	line-height: 1.3;
}

.work-desc {
	color: #333;
	font-size: var(--base-font-size);
	margin-bottom: 12px;
	line-height: 1.6;
}

.work-link {
	color: #3949ab;
	text-decoration: underline;
	font-size: var(--base-font-size);
	letter-spacing: 0.02em;
}

footer {
	text-align: center;
	padding: 24px 0;
	background: #e8eaf6;
	color: #666;
	font-size: var(--base-font-size);
	margin-top: 48px;
	line-height: 1.6;
}

/* Platform toggle */
.platform-toggle {
	display: inline-flex;
	gap: 8px;
	margin: 12px 0 18px 0;
}

.platform-btn {
	appearance: none;
	border: 1px solid rgba(30, 40, 100, 0.12);
	background: #fff;
	color: #1a237e;
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.12s, box-shadow 0.12s, transform 0.06s;
}

.platform-btn:hover {
	box-shadow: 0 4px 10px rgba(30, 40, 100, 0.06);
	transform: translateY(-1px);
}

.platform-btn.active {
	background: linear-gradient(180deg, #3949ab, #2f3aa5);
	color: #fff;
	border-color: transparent;
}

.platform-contents {
	margin-top: 6px;
}

.platform-content {
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.platform-content.hidden {
	display: none;
	opacity: 0;
	transform: translateY(6px);
}

/* Small screens: make buttons full-width-ish */
@media (max-width: 420px) {
	.platform-toggle {
		width: 100%;
	}

	.platform-btn {
		flex: 1 1 50%;
		text-align: center;
	}

	ul,
	ol {
		margin-left: 0;
		padding-left: 0;
		/* keep bullets but inline with text; use `list-style: none;` if you want to hide bullets */
		list-style-position: inside;
	}

	ul li,
	ol li {
		padding-left: 0;
	}
}

/* inline code styling for examples and placeholders */
code {
	background: rgba(212, 212, 212, 0.678);
	color: rgba(148, 0, 0, 0.87);
	padding: 0.1rem 0.35rem;
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, "Roboto Mono", "Yu Gothic UI", monospace;
	font-size: var(--base-font-size);
}

/* Responsive images */
img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

.badge {
	width: 200px;
	max-width: 45%;
	height: auto;
	vertical-align: middle;
}

.screenshot {
	width: 100%;
	max-width: 780px;
	height: auto;
	display: block;
	margin: 12px 0;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(30, 40, 100, 0.06);
}

@media (max-width: 520px) {
	.badge {
		max-width: 48%;
		width: 48%;
	}

	.screenshot {
		max-width: 100%;
	}
}