/* homeboffins.uk placeholder. CSP allows only this file and same-origin images: no web fonts, no inline style. */
:root {
  --bg: #f3efe6;
  --bg-edge: #e8e1d2;
  --ink: #18201c;
  --muted: #59625c;
  --accent: #2f6b4f;
  --warm: #b07f34;
  --rule: rgba(24, 32, 28, 0.12);
  --grid: rgba(24, 32, 28, 0.055);
  --orbit: rgba(47, 107, 79, 0.22);
  --glow-a: rgba(47, 107, 79, 0.16);
  --glow-b: rgba(176, 127, 52, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1311;
    --bg-edge: #070a09;
    --ink: #ebeee9;
    --muted: #9ba69f;
    --accent: #86c9a5;
    --warm: #d8aa5f;
    --rule: rgba(235, 238, 233, 0.13);
    --grid: rgba(235, 238, 233, 0.04);
    --orbit: rgba(134, 201, 165, 0.2);
    --glow-a: rgba(134, 201, 165, 0.12);
    --glow-b: rgba(216, 170, 95, 0.08);
  }
}

* { box-sizing: border-box; }
/* The background sits on html (the canvas), so the layers with z-index -1 below paint above it. */
html {
  min-height: 100%;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 18% 12%, var(--glow-a), transparent 60%),
    radial-gradient(50rem 36rem at 86% 88%, var(--glow-b), transparent 60%),
    radial-gradient(120% 90% at 50% 50%, var(--bg) 55%, var(--bg-edge));
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Drafting grid, fading out towards the edges. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
}

/* Orbits behind the headline. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(150vw, 62rem);
  height: auto;
  opacity: 0;
  animation: fade-in 2.4s var(--ease) 0.2s forwards;
}
.ring { fill: none; stroke: var(--orbit); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ring-dashed { stroke-dasharray: 2 7; }
.moon { fill: var(--accent); }
.moon-warm { fill: var(--warm); }
.orbit {
  transform-box: view-box;
  transform-origin: 400px 400px;
  animation: spin linear infinite;
}
.orbit-a { animation-duration: 140s; }
.orbit-b { animation-duration: 90s; animation-direction: reverse; }
.orbit-c { animation-duration: 60s; }

/* Header. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1rem;
  animation: rise 0.9s var(--ease) both;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.mark { flex: none; }
.mark-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 105 105;
  stroke-dashoffset: 105;
  animation: draw 1.6s var(--ease) 0.3s forwards;
}
.mark-moon { fill: var(--warm); }
.mark-core { fill: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem 0.35rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}

/* Main. */
main {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 46rem;
  padding: 3rem 1rem 4rem;
  text-align: center;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 13vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
  animation: rise 1.1s var(--ease) 0.15s both;
}
h1 em {
  font-style: italic;
  color: var(--accent);
  padding-right: 0.04em;
}
.lead {
  max-width: 30rem;
  margin: 1.75rem auto 0;
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
  animation: rise 1.1s var(--ease) 0.3s both;
}
.progress {
  position: relative;
  width: 9rem;
  height: 2px;
  margin: 2.75rem auto 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--rule);
  animation: rise 1.1s var(--ease) 0.45s both;
}
.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), var(--warm), transparent);
  animation: sweep 2.6s var(--ease) infinite;
}

footer {
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  animation: rise 0.9s var(--ease) 0.6s both;
}
footer p { margin: 0; }

@media (min-width: 40rem) {
  .top { padding: 1.75rem 2.5rem; }
  footer { padding: 1.5rem 2.5rem 2rem; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  80%, 100% { transform: scale(3); opacity: 0; }
}
@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
  }
  .orbits { opacity: 1; }
  .mark-arc { stroke-dashoffset: 0; }
  .progress span { transform: translateX(75%); }
}
