/* Nihonjo website. Arkhime house style: true black, rose accent, Plus Jakarta Sans. */

:root {
  color-scheme: dark;

  --bg: #000000;
  --fg: #ffffff;
  --muted: #b4b4bb;
  --card: #0f0f11;
  --card-2: #18181b;
  --border: #26262b;
  --accent: #ff4f6d;
  --accent-solid: #ff2d55;
  --accent-2: #ffb59a;
  --accent-3: #ffc768;
  --danger: #ff6b6b;
  --success: #4ade80;
  --glow: rgba(255, 45, 85, 0.3);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-jp: "Noto Sans JP", "Plus Jakarta Sans", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.jp {
  font-family: var(--font-jp);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--accent-solid);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  background: var(--card-2);
  text-decoration: none;
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--accent-solid);
  margin-left: 6px;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 16px 16px;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--accent-solid);
  color: #fff;
  box-shadow: 0 6px 20px -6px var(--glow);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: var(--card);
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--card-2);
  border-color: #3a3a41;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.45);
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.1);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 30% 35%, rgba(255, 45, 85, 0.28), transparent 70%),
    radial-gradient(30% 40% at 75% 30%, rgba(255, 199, 104, 0.14), transparent 70%);
  pointer-events: none;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 15, 17, 0.8);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .lead {
  max-width: 34rem;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Stroke-order practice board */

.board {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.9), rgba(15, 15, 17, 0.9));
  box-shadow: 0 30px 80px -40px var(--glow);
}

.board-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.tile svg {
  width: 100%;
  height: 100%;
}

.tile .guide {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.6;
  stroke-dasharray: 2 2.5;
  fill: none;
}

.tile .ghost {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile .stroke {
  fill: none;
  stroke: var(--fg);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.42s cubic-bezier(0.5, 0, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 0.3s + 0.4s);
}

.tile:last-child .stroke {
  stroke: var(--accent);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.board-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.board-caption .reading {
  font-size: 15px;
  color: var(--muted);
}

.board-caption .reading strong {
  color: var(--fg);
  font-weight: 700;
}

.replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.replay:hover {
  color: var(--fg);
}

.replay svg {
  width: 14px;
  height: 14px;
}

.board-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tile .stroke {
    animation: none;
    stroke-dashoffset: 0;
  }

  .replay {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 44px;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker .jp {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }
}

/* Feature cards */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(255, 79, 109, 0.12);
  color: var(--accent);
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 700;
}

.feature:nth-child(3n + 2) .feature-icon {
  background: rgba(255, 199, 104, 0.12);
  color: var(--accent-3);
}

.feature:nth-child(3n + 3) .feature-icon {
  background: rgba(255, 181, 154, 0.12);
  color: var(--accent-2);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step, cjk-decimal);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-jp);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Platforms */

.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s;
}

a.platform:hover {
  text-decoration: none;
  border-color: rgba(255, 79, 109, 0.5);
  background: var(--card-2);
}

.platform svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--accent);
}

.platform strong {
  font-size: 17px;
}

.platform span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .platforms {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .platforms {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq .answer p {
  margin: 0 0 10px;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.cta-band .hero-glow {
  inset: -60% -20% auto;
  height: 420px;
}

.cta-band > :not(.hero-glow) {
  position: relative;
}

.cta-band h2 {
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0 auto 26px;
  max-width: 30rem;
  color: var(--muted);
}

.cta-band .hero-actions {
  justify-content: center;
}

@media (max-width: 560px) {
  .cta-band {
    padding: 44px 22px;
  }
}

/* ---------- Inner pages ---------- */

.page {
  padding: 56px 0 96px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 36rem;
}

.page-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255, 79, 109, 0.1);
  color: var(--accent);
  font-family: var(--font-jp);
  font-size: 48px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .page-icon {
    width: 72px;
    height: 72px;
    font-size: 36px;
    border-radius: 18px;
  }
}

/* Download list */

.dl-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.dl-list {
  display: grid;
  gap: 12px;
}

.dl-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.dl-row .os-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--card-2);
  color: var(--accent);
}

.dl-row .os-icon svg {
  width: 26px;
  height: 26px;
}

.dl-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.dl-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dl-row .btn {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

@media (max-width: 620px) {
  .dl-row {
    grid-template-columns: 44px 1fr;
  }

  .dl-row .os-icon {
    width: 44px;
    height: 44px;
  }

  .dl-row .btn {
    grid-column: 1 / -1;
  }
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.note {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.note h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.note p,
.note ol {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.note ol {
  padding-left: 20px;
}

.note code {
  font-size: 13px;
}

@media (max-width: 760px) {
  .notes {
    grid-template-columns: 1fr;
  }
}

code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--card-2);
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* Prose (privacy policy) */

.prose {
  max-width: 760px;
}

.prose .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.prose h2 {
  margin: 40px 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 24px 0 6px;
  font-size: 17px;
}

.prose p,
.prose li {
  color: #d6d6db;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose .summary {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.prose .summary ul {
  margin: 8px 0 0;
}

.prose .summary p {
  margin: 0;
  font-weight: 700;
  color: var(--fg);
}

/* ---------- Account ---------- */

.auth-wrap {
  display: grid;
  place-items: start center;
  padding-top: 56px;
  padding-bottom: 96px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-card .sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 79, 109, 0.12);
  color: var(--accent);
  font-family: var(--font-jp);
  font-size: 26px;
  font-weight: 700;
}

.auth-icon.ok {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.auth-icon.warn {
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
}

.auth-icon svg {
  width: 26px;
  height: 26px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 109, 0.2);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 14px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.message.error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
}

.message.info {
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--card-2);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-solid);
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-row .who {
  min-width: 0;
}

.account-row .who strong,
.account-row .who span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-row .who span {
  color: var(--muted);
  font-size: 14px;
}

.stack {
  display: grid;
  gap: 10px;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 8px auto;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

[hidden] {
  display: none !important;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand p {
  margin: 10px 0 0;
  max-width: 22rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.footer-legal p {
  margin: 0 0 4px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  padding: 64px 0;
}

.not-found .big {
  font-family: var(--font-jp);
  font-size: clamp(88px, 18vw, 160px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.not-found h1 {
  margin: 16px 0 8px;
  font-size: 28px;
}

.not-found p {
  margin: 0 0 24px;
  color: var(--muted);
}
