/* Hush & Hearth landing page: tokens, type, layout, header and footer. Colors follow docs/art-bible.md */
@font-face { font-family: "Patrick Hand"; src: url("/fonts/PatrickHand-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/PixelifySans.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #15122a;
  --night-2: #1b1734;
  --dusk: #2c2554;
  --line: #3a3360;
  --hush: #8a7fa8;
  --hush-dim: #5c5578;
  --parchment: #fff1c4;
  --paper: #f4e7c5;
  --ink: #2f2540;
  --text: #ddd6ea;
  --muted: #aaa2c2;
  --amber: #ffb35c;
  --teal: #8ce0c2;
  --gold: #f2c94c;
  --head: "Patrick Hand", "Segoe Print", "Comic Sans MS", cursive;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, #1a1533 0, var(--night) 40rem) var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--amber); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--parchment); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .5rem 1rem; background: var(--amber); color: var(--night); border-radius: 8px; }
.skip:focus { top: 1rem; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem;
  padding: .7rem 16px;
  background: rgba(21, 18, 42, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--pixel); font-size: 1.3rem; color: var(--parchment); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.logo span, .title span { color: var(--amber); }
.links { display: flex; gap: 1.25rem; order: 3; width: 100%; font-size: .95rem; }
.links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.links a:hover { color: var(--parchment); }
.langs { display: flex; gap: .25rem; margin-left: auto; }
.langs a { padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; }
.langs a[aria-current] { background: var(--amber); border-color: var(--amber); color: var(--night); }
@media (min-width: 760px) {
  .top { padding: .8rem 24px; flex-wrap: nowrap; }
  .links { order: 0; width: auto; margin-left: 1rem; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }
.band { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.two { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; } }
.eyebrow { margin: 0 0 .6rem; color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.teal-text { color: var(--teal); }
.lead { font-size: 1.15rem; max-width: 64ch; }
.note { color: var(--muted); font-size: .95rem; }
.sub { margin-top: 2.5rem; }

.shot { margin: 2.5rem 0 0; }
.shot img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.shot figcaption { margin-top: .6rem; font-family: var(--head); font-size: 1.15rem; color: var(--muted); }

.fog {
  height: 110px;
  background: repeating-conic-gradient(var(--hush) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
  opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, #000 55%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 45%, #000 55%, transparent);
}

.badge {
  display: inline-flex; align-items: center; gap: .6rem; text-align: left;
  margin: .5rem 0 0; padding: .55rem 1.1rem .55rem .85rem;
  border: 1px solid rgba(255, 179, 92, .45); border-radius: 22px;
  background: rgba(255, 179, 92, .1); color: var(--parchment);
}
.badge strong { font-weight: 600; }
.badge .os { padding-left: .6rem; border-left: 1px solid rgba(255, 179, 92, .35); color: var(--muted); font-size: .9rem; }
.lamp { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 3px rgba(255, 179, 92, .6); animation: flicker 3.2s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .78; } 50% { opacity: .95; } 70% { opacity: .85; } }

.foot { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot .logo.small { font-size: 1.1rem; margin-bottom: .8rem; }
.foot .copy { margin: 0; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
