/* Content pages (how it works, security, comparisons): the 404's tinted band on top,
   then a single reading column. Two voices: mono for the one big headline, serif for the rest. */
body { background: var(--ivory); }

/* Top band: a grainy sky with the engraved pup, like the landing page bands. */
.top { position: relative; margin: 12px; border-radius: 24px; overflow: hidden; }
@media (min-width: 768px) { .top { margin: 16px; border-radius: 32px; } }
.top > canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; }

.bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; }
@media (min-width: 768px) { .bar { padding: 24px 40px; } }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand .tile { width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.brand .tile img { width: 30px; }
.wordmark { display: block; height: 24px; aspect-ratio: 233 / 60; background: var(--ink-deep); -webkit-mask: url("assets/nara-wordmark.png") center / contain no-repeat; mask: url("assets/nara-wordmark.png") center / contain no-repeat; }
@media (max-width: 359px) { .wordmark { display: none; } }
.links { display: none; list-style: none; gap: 32px; font: 400 18px/28px var(--serif); }
@media (min-width: 900px) { .links { display: flex; } }
.links a { color: var(--ink-deep); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 500ms var(--ease); }
.links a:hover, .links a[aria-current="page"] { background-size: 100% 1px; }

.go { position: relative; font: 500 18px/24px var(--serif); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.go:active { transform: translateY(1px) scale(0.98); }
.go.solid { padding: 12px 20px; border-radius: 9999px; background-image: none; transition: background 300ms var(--ease), gap 700ms var(--ease), transform 200ms var(--ease), box-shadow 300ms var(--ease); }
.go.solid:hover { box-shadow: 0 8px 20px -10px rgba(20, 35, 127, 0.7); }
.go.solid:active { background: var(--ink-deep); transform: translateY(1px) scale(0.97); box-shadow: none; }
.bar .go.solid { padding: 8px 16px; font-size: 16px; }

.hero { position: relative; display: grid; gap: 8px; padding: 32px 24px 0; }
@media (min-width: 960px) { .hero { grid-template-columns: 6fr 5fr; gap: 48px; padding: 48px 64px 0; } }
.hero .words { align-self: center; padding-bottom: 32px; }
@media (min-width: 960px) { .hero .words { padding-bottom: 64px; } }
h1 { font-size: 36px; line-height: 40px; }
@media (min-width: 768px) { h1 { font-size: 60px; line-height: 1; } }
.say { margin-top: 24px; font-size: 20px; line-height: 28px; max-width: 560px; }
@media (min-width: 768px) { .say { font-size: 24px; line-height: 32px; } }
.cta { margin-top: 32px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.scene { position: relative; height: 240px; }
@media (min-width: 960px) { .scene { height: 400px; } }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease); }
.scene.ready canvas { opacity: 1; }
.scene canvas.pup { animation: breathe 6.4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; transform-origin: 50% 100%; }
@keyframes breathe { to { transform: translate3d(0, -4px, 0) rotate(-0.5deg); } }
@media (prefers-reduced-motion: reduce) { .scene canvas.pup { animation: none; } }

/* The reading column. */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 16px 96px; }
@media (min-width: 768px) { .doc { padding: 96px 40px 128px; } }
.doc section { padding-top: 48px; }
.doc section:first-of-type { padding-top: 0; }
.doc h2 { font: 500 30px/36px var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink-deep); }
.doc h2 + * { margin-top: 16px; }
.doc p, .doc li, .doc td, .doc th { font-size: 20px; line-height: 28px; text-wrap: pretty; }
@media (min-width: 768px) { .doc p, .doc li { font-size: 24px; line-height: 32px; } }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + .table, .doc .table + p { margin-top: 16px; }
.doc a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.doc a:hover { color: var(--ink-deep); }
.doc strong { font-weight: 500; color: var(--ink-deep); }
.doc ul { list-style: none; border-top: 1px solid var(--hair); }
.doc ul li { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.updated { margin-top: 64px; font-size: 16px; line-height: 24px; color: var(--muted); }

/* Comparison tables: hairline rows, no cards. */
.table { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.doc th { font-weight: 500; color: var(--ink-deep); }
.doc thead th { border-bottom-color: var(--ink); }
@media (max-width: 767px) { .doc th, .doc td { font-size: 16px; line-height: 24px; padding-right: 12px; } }

/* Related pages, then the one call to action. */
.more { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--hair); }
.more h2 { font-size: 24px; line-height: 32px; }
.more ul { margin-top: 16px; }
.ask { margin-top: 64px; text-align: center; }
.ask p { margin: 0 auto; max-width: 480px; }
.ask .go { margin-top: 24px; }

.foot { padding: 24px 16px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 24px; color: var(--muted); border-top: 1px solid var(--hair); }
@media (min-width: 768px) { .foot { padding: 24px 40px 40px; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--ink); }
