/* Sky: Light Awaits - unofficial fan project landing page */

:root {
  --sky-pale: #EAF3F8;
  --sky-blue: #9DC7DD;
  --deep-blue: #17384A;
  --ink: #173042;
  --muted: #496577;
  --light-gold: #F2D9A6;
  --gold-soft: #F7EBD0;
  --surface: #FFFDF8;
  --night: #102A39;
  --on-dark: #E3EEF4;
  --on-dark-muted: #C3D6E1;
  --line: rgba(23, 56, 74, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
  --content-max: 1120px;
  --pad-x: 20px;
  --section-y: 60px;
  --header-h: 72px;
  --shadow-soft: 0 18px 50px rgba(23, 56, 74, 0.12);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-pale);
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(157, 199, 221, 0.35);
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--deep-blue);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--deep-blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--deep-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--pad-x));
  margin-inline: auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--deep-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline-color: var(--light-gold);
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(240, 247, 251, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(240, 247, 251, 0.78);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
  }
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(23, 56, 74, 0.1);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  row-gap: 4px;
  padding-top: max(6px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--deep-blue);
  border-radius: 10px;
}

.brand-mark {
  flex: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-blue);
  border: 1px solid rgba(23, 56, 74, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
  white-space: nowrap;
}

.site-nav {
  width: 100%;
}

.site-nav ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--deep-blue);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav a.is-active {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}

@media (min-width: 560px) {
  .site-nav {
    width: auto;
  }

  .site-nav ul {
    display: flex;
    gap: 4px;
  }

  .site-nav a {
    background: transparent;
    border-color: transparent;
    font-size: 1rem;
  }
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  list-style: none;
}

.badges-left {
  justify-content: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.badge-unofficial {
  background: var(--surface);
  color: var(--deep-blue);
  border: 1px solid rgba(23, 56, 74, 0.35);
}

.badge-android {
  background: var(--deep-blue);
  color: #fff;
  border: 1px solid var(--deep-blue);
}

.badge-android::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--light-gold);
  box-shadow: 0 0 0 3px rgba(242, 217, 166, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  line-height: 1.3;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, background-color 0.2s ease;
  touch-action: manipulation;
}

.btn-primary {
  position: relative;
  background-color: var(--deep-blue);
  background-image: linear-gradient(180deg, #1D4358 0%, var(--deep-blue) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 56, 74, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:focus-visible {
  outline-color: var(--deep-blue);
  box-shadow: 0 0 0 6px var(--light-gold);
}

.btn-icon {
  flex: none;
  color: var(--light-gold);
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.btn-label {
  font-size: 1.0625rem;
}

.btn-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: #D3E4EE;
}

.btn-secondary {
  background: rgba(255, 253, 248, 0.6);
  color: var(--deep-blue);
  border: 2px solid var(--deep-blue);
}

.btn-block {
  display: flex;
  width: 100%;
}

@media (hover: hover) {
  .site-nav a:not(.is-active):hover {
    background: rgba(157, 199, 221, 0.3);
  }

  .btn-primary:hover {
    background-color: #0F2C3C;
    background-image: linear-gradient(180deg, #19394B 0%, #0F2C3C 100%);
    box-shadow: 0 14px 34px rgba(23, 56, 74, 0.3), 0 0 0 6px rgba(242, 217, 166, 0.55);
  }

  .btn-secondary:hover {
    background: var(--surface);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255, 246, 221, 0.55), transparent 70%),
    linear-gradient(180deg, #F5FAFC 0%, var(--sky-pale) 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: clamp(28px, 7vw, 88px);
  padding-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 6vw, 5.5rem);
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin-bottom: 14px;
}

.tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  color: var(--deep-blue);
  margin-bottom: 14px;
}

.hero-desc {
  max-width: 34em;
  margin: 0 auto 28px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto 20px;
}

.hero .disclaimer-short {
  max-width: 34em;
  margin-inline: auto;
}

.disclaimer-short {
  font-size: 1rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  margin-top: -16px;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: clamp(190px, 30vw, 520px);
  object-fit: cover;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: rise-in 0.8s var(--ease-out) both;
  }

  .hero-content > :nth-child(2) { animation-delay: 0.06s; }
  .hero-content > :nth-child(3) { animation-delay: 0.12s; }
  .hero-content > :nth-child(4) { animation-delay: 0.18s; }
  .hero-content > :nth-child(5) { animation-delay: 0.24s; }
  .hero-content > :nth-child(6) { animation-delay: 0.3s; }
  .hero-content > :nth-child(7) { animation-delay: 0.36s; }

  .hero-art img {
    animation: art-in 1.4s ease both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(1.02);
  }
}

/* Sections */
.section {
  padding-block: var(--section-y);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow-light {
  color: var(--light-gold);
}

h2 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
}

/* About */
.about {
  background: var(--sky-pale);
}

.about-grid {
  display: grid;
  gap: 20px;
}

.about-body {
  max-width: 62ch;
}

.facts {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  list-style: none;
}

.fact {
  position: relative;
  padding: 22px 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(23, 56, 74, 0.05);
}

.fact h3 {
  font-size: 1.25rem;
  margin: 14px 0 6px;
}

.fact p {
  font-size: 1rem;
  color: var(--muted);
}

.fact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--deep-blue);
  background: linear-gradient(145deg, #FBF1DA, var(--light-gold));
  box-shadow: inset 0 0 0 1px rgba(201, 154, 74, 0.25);
}

@media (min-width: 600px) and (max-width: 899px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
  }
}

/* Visual */
.visual {
  padding-top: 0;
}

.visual-figure {
  margin: 0;
}

.visual-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky-blue);
  box-shadow: 0 30px 70px rgba(23, 56, 74, 0.2), 0 0 0 1px rgba(23, 56, 74, 0.06);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.visual-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
}

.visual-figure figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
}

.visual-figure figcaption svg {
  flex: none;
  margin-top: 3px;
}

@media (max-width: 479px) {
  .visual-frame img {
    aspect-ratio: 4 / 3;
    object-position: 35% 50%;
  }
}

/* Download */
.download {
  position: relative;
  color: var(--on-dark);
  padding-top: calc(var(--section-y) + clamp(24px, 4vw, 56px));
  background:
    radial-gradient(ellipse 60% 45% at 85% 110%, rgba(242, 217, 166, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 35% at 10% 10%, rgba(157, 199, 221, 0.18), transparent 70%),
    linear-gradient(180deg, var(--deep-blue) 0%, #1D4458 100%);
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: clamp(28px, 5vw, 72px);
  background: url("../img/cloud-edge.svg") center top / 100% 100% no-repeat;
  pointer-events: none;
}

.download::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255, 253, 248, 0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 70%, rgba(255, 253, 248, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 22%, rgba(255, 253, 248, 0.6), transparent 60%),
    radial-gradient(1px 1px at 64% 82%, rgba(255, 253, 248, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 36%, rgba(255, 253, 248, 0.6), transparent 60%),
    radial-gradient(1px 1px at 92% 64%, rgba(255, 253, 248, 0.5), transparent 60%);
  pointer-events: none;
}

.download-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}

.download h2 {
  color: var(--surface);
  margin-bottom: 16px;
}

.download-intro > p:not(.eyebrow) {
  max-width: 36em;
  color: var(--on-dark);
}

.download :focus-visible {
  outline-color: var(--light-gold);
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  counter-increment: step;
  color: var(--on-dark);
}

.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--deep-blue);
  background: var(--light-gold);
}

.steps li span {
  padding-top: 3px;
}

.steps strong {
  color: #fff;
}

.download-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px 18px;
  box-shadow: 0 30px 70px rgba(4, 18, 27, 0.4), inset 0 0 0 1px rgba(242, 217, 166, 0.6);
}

.download-card :focus-visible {
  outline-color: var(--deep-blue);
}

.download-card .btn-primary {
  margin-bottom: 16px;
}

.download-note {
  font-size: 1rem;
  color: var(--ink);
}

.platform-note {
  font-size: 1rem;
  padding: 10px 14px;
  border-left: 4px solid var(--light-gold);
  background: #F7F0E0;
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}

.platform-note[hidden] {
  display: none;
}

.build-info {
  font-size: 1rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* FAQ */
.faq-inner {
  max-width: calc(820px + 2 * var(--pad-x));
}

.faq h2 {
  margin-bottom: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid rgba(23, 56, 74, 0.14);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
  border-color: rgba(23, 56, 74, 0.3);
  box-shadow: 0 10px 30px rgba(23, 56, 74, 0.08);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 58px 14px 20px;
  font-weight: 600;
  color: var(--deep-blue);
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
  -webkit-user-select: none;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky-pale);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}

.faq details[open] summary::after {
  content: "\2212";
  background: var(--light-gold);
}

.faq-answer {
  padding: 0 20px 18px;
}

@media (hover: hover) {
  .faq summary:hover {
    background: rgba(157, 199, 221, 0.16);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-answer {
    animation: rise-in 0.35s var(--ease-out) both;
  }
}

.faq-cta {
  margin-top: 24px;
}

.faq-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--on-dark);
  padding-top: 56px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  font-size: 1rem;
}

.site-footer a {
  color: #fff;
  text-decoration-color: var(--light-gold);
}

.site-footer :focus-visible {
  outline-color: var(--light-gold);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-id {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--surface);
}

.footer-disclaimer {
  max-width: 68ch;
  color: var(--on-dark);
}

.footer-note,
.footer-link-note {
  color: var(--on-dark-muted);
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-gold);
  margin-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(227, 238, 244, 0.14);
}

.footer-bottom p {
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

.site-footer-compact {
  padding-top: 8px;
}

.site-footer-compact .footer-bottom {
  margin-top: 0;
  border-top: 0;
}

/* 404 page */
.hero-404 .hero-content {
  padding-top: clamp(24px, 5vw, 64px);
}

.nf-code {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 3rem + 14vw, 10rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sky-blue);
  background: linear-gradient(180deg, #9DC7DD 0%, #E7C27F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-404 h1 {
  font-size: clamp(2rem, 1.4rem + 3.5vw, 3.5rem);
}

/* Progressive reveal (only enabled by JS when motion is allowed) */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (min-width: 768px) {
  :root {
    --pad-x: 32px;
    --section-y: 84px;
  }

  /* Sticky header only where it fits on one row; on small screens it would cover too much. */
  html {
    scroll-padding-top: calc(var(--header-h) + 8px);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    padding-bottom: 6px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
  }

  .download-card {
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .footer-about {
    grid-row: span 2;
  }
}

@media (min-width: 900px) {
  .download-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-x: 40px;
    --section-y: 104px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
  }

  .footer-about {
    grid-row: auto;
  }
}

@media (max-width: 359px) {
  :root {
    --pad-x: 16px;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-mark {
    display: none;
  }

  .btn {
    padding-inline: 18px;
  }
}

/* Small phones with short screens (e.g. 320 x 568): keep the main CTA in the first view. */
@media (max-width: 479px) and (max-height: 640px) {
  .hero-content {
    padding-top: 16px;
  }

  .badges {
    margin-bottom: 12px;
  }

  .hero h1 {
    margin-bottom: 10px;
  }

  .tagline {
    margin-bottom: 10px;
  }

  .hero-desc {
    margin-bottom: 18px;
  }

  .nf-code {
    font-size: 3.25rem;
    margin-bottom: 8px;
  }

  .hero-404 .tagline {
    font-size: 1.125rem;
  }

  .hero-404 h1 {
    font-size: 1.75rem;
  }
}

/* Short landscape screens (phones turned sideways) */
@media (max-height: 500px) and (orientation: landscape) {
  html {
    scroll-padding-top: 8px;
  }

  .site-header {
    position: relative;
  }

  .hero-content {
    padding-top: 12px;
  }

  .badges {
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(2rem, 1rem + 3vw, 2.75rem);
    margin-bottom: 6px;
  }

  .tagline {
    margin-bottom: 8px;
  }

  .hero-desc {
    margin-bottom: 16px;
  }

  .hero-art img {
    height: 160px;
  }

  .nf-code {
    font-size: 3.5rem;
    margin-bottom: 8px;
  }

  .hero-404 h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Windows High Contrast / forced colours */
@media (forced-colors: active) {
  .btn,
  .badge,
  .site-nav a,
  .fact,
  .download-card,
  .faq details {
    border: 1px solid CanvasText;
  }

  .btn-icon,
  .fact-icon svg {
    color: CanvasText;
  }

  .nf-code {
    -webkit-text-fill-color: CanvasText;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-art,
  .download::before,
  .download::after {
    display: none;
  }

  .download,
  .site-footer {
    background: none;
    color: #000;
  }

  .download h2,
  .footer-id {
    color: #000;
  }
}
