/* tegaki-kanji-writing.com — minimal, readable, no framework */

:root {
  --bg: #faf9f7;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #2d4a3e;
  --border: #e2e0dc;
  --max: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  max-width: 100%;
}

.site-logo:hover {
  color: var(--accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-nav a {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem 1.25rem;
}

.site-footer__inner {
  max-width: 52rem;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__inner p {
  margin: 0 0 0.5rem;
}

.site-footer__inner p:last-child {
  margin-bottom: 0;
}

/* Layout wrapper for sticky footer feel */
body {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose .note {
  font-size: 0.9375rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.08);
  color: #fff;
}
