/* Dark only. Colors come from the Situated palette (night ground, paper text). */
:root {
  color-scheme: dark;
  --night: #110F17;
  --paper: #F4EEE4;
  --muted: #B9B0C7;
  --line: rgba(244, 238, 228, 0.1);
  --line-strong: rgba(244, 238, 228, 0.28);
  --panel: rgba(17, 15, 23, 0.72);
  --card: rgba(27, 24, 36, 0.7);
  --pink: #FF6EC7;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--paper);
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Moving background: three depth layers, each blurred by CSS so it works in every browser. */
.field { position: fixed; inset: -60px; z-index: 0; pointer-events: none; overflow: hidden; }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.field canvas:nth-child(1) { filter: blur(8px); }
.field canvas:nth-child(2) { filter: blur(3.6px); }
.field canvas:nth-child(3) { filter: blur(34px); }

main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Frosted panels keep light text readable over the moving field. */
.panel {
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 24px;
}

.hero { display: flex; flex-direction: column; gap: 12px; padding-block: 30px; }

.brand { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; align-self: flex-start; border-radius: 12px; }
.brand svg { width: 64px; height: 64px; flex-shrink: 0; }
.lockup { display: flex; flex-direction: column; line-height: 1; }
.word {
  margin: 0;
  font-family: 'Protest Guerrilla', Figtree, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.sub { margin-top: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }

.pagetitle { margin: 8px 0 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }

h2 {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline { margin: 6px 0 0; font-size: 1.25rem; font-weight: 600; }
.intro { margin: 0; max-width: 54ch; color: var(--paper); }

.apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.apps a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
.apps a:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.logo { flex-shrink: 0; width: 44px; height: 44px; margin-top: 2px; border-radius: 10px; }

.text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.name { font-weight: 600; font-size: 1.125rem; }
.about { color: var(--muted); font-size: 0.9375rem; }

section p { margin: 0; max-width: 60ch; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pink); }

:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
.apps a:focus-visible { border-radius: 18px; }
.brand:focus-visible { border-radius: 12px; }

footer { color: var(--muted); font-size: 0.9375rem; }
footer.panel { padding-block: 18px; }
footer p { margin: 0; }

/* Browsers without backdrop blur get a more solid panel instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel { background: rgba(17, 15, 23, 0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .apps a { transition: none; }
  .apps a:hover { transform: none; }
}
