/* Inter, self-hosted from brand/fonts (Latin subset). No request to Google Fonts. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.woff") format("woff"); }
/* Layout: one screen. Logo top-left, the tagline as the headline, email, legal line at the foot;
   the mark's pixel staircase climbs out of the bottom-right corner. The page is a flex column at least one
   viewport tall: main takes the free space and centres its content, so the footer sits at the bottom of a short
   page and follows the content on a long one. Tokens from the Appsnalog design system. */
:root {
  /* single dark look: midnight ground with a faint violet glow */
  --surface: #100724;
  --ink: #FFFFFF;
  --ink-muted: #B9B3D1;
  --line: #2F2550;
  --line-strong: #7A70A3;
  --accent: #AB55F7;
  --accent-hover: #C084FC;
  --on-accent: #100724;
  --glow-1: rgba(124, 58, 237, 0.30);
  --glow-2: rgba(171, 85, 247, 0.16);
  --glow-3: rgba(91, 33, 182, 0.35);
  --step-1: #C084FC;
  --step-2: #AB55F7;
  --step-3: #7C3AED;
  --ghost: #24164A;
  --mark-from: #C084FC; --mark-via: #AB55F7; --mark-to: #7C3AED;
  --logo-ink: #FFFFFF; --logo-desc: #FFFFFF;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step: clamp(44px, 7.2vw, 104px);
  color-scheme: dark;
}

body { margin: 0; }
body {
  background-color: var(--surface);
  background-image:
    radial-gradient(60% 55% at 85% 80%, var(--glow-3), transparent 70%),
    radial-gradient(45% 45% at 70% 20%, var(--glow-1), transparent 70%),
    radial-gradient(40% 50% at 5% 0%, var(--glow-2), transparent 70%);
  background-attachment: fixed; color: var(--ink); font-family: var(--font-sans);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.page {
  position: relative; overflow: hidden; box-sizing: border-box; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; gap: 48px;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: max(clamp(24px, 4vw, 48px), env(safe-area-inset-bottom, 0px));
  --pad-r: max(clamp(16px, 5vw, 72px), env(safe-area-inset-right, 0px));
  padding-left: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px));
  padding-right: var(--pad-r);
}

/* logo */
.logo { display: block; height: clamp(34px, 4vw, 44px); width: auto; }
.logo .w { fill: var(--logo-ink); }
.logo .t { fill: var(--logo-desc); }
.logo .s1 { stop-color: var(--mark-from); }
.logo .s2 { stop-color: var(--mark-via); }
.logo .s3 { stop-color: var(--mark-to); }

/* main */
main {
  position: relative; z-index: 1; flex: 1 0 auto; display: grid; align-content: center; gap: 40px;
  max-width: 760px; min-width: 0;
}
.overline {
  margin: 0 0 20px; font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted);
}
h1 {
  margin: 0; font-size: clamp(44px, 8.4vw, 112px); line-height: .98; font-weight: 700;
  letter-spacing: -.035em; text-wrap: balance;
}
h1 .hl { color: var(--accent); }

.contact { display: grid; gap: 10px; }
.contact-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.email {
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  overflow-wrap: anywhere; user-select: all;
}
.email:hover { color: var(--accent); }
.copy {
  font: 600 14px/20px var(--font-sans); height: 36px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.email:focus-visible, .copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* footer */
footer {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 24px;
  padding-top: 20px; border-top: 1px solid var(--line); max-width: 760px;
  font-size: 13px; line-height: 20px; color: var(--ink-muted);
}
footer strong { font-weight: 600; color: var(--ink); }
.reg { font-variant-numeric: tabular-nums; }
footer a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--accent); }
footer a:focus-visible, .home:focus-visible, .prose a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* inner pages (privacy, 404): logo links home, text column */
.home { display: inline-block; }
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin-bottom: 24px; }
.prose h2 { margin: 40px 0 8px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.prose p, .prose li { margin: 0 0 12px; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.updated { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.button {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; text-decoration: none;
}
.button:hover { background: var(--accent-hover); }

/* the staircase */
.stair {
  position: absolute; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: calc(var(--step) * 6); height: calc(var(--step) * 6);
}
.stair i { position: absolute; width: var(--step); height: var(--step); }
.stair .g { background: var(--ghost); }
.stair .a { background: var(--step-1); }
.stair .b { background: var(--step-2); }
.stair .c { background: var(--step-3); }
@media (prefers-reduced-motion: no-preference) {
  .stair .a, .stair .b, .stair .c { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .stair i:nth-child(6) { animation-delay: .05s } .stair i:nth-child(7) { animation-delay: .12s }
  .stair i:nth-child(8) { animation-delay: .19s } .stair i:nth-child(9) { animation-delay: .26s }
  .stair i:nth-child(10) { animation-delay: .33s } .stair i:nth-child(11) { animation-delay: .4s }
}
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* Narrow screens: the staircase leaves the corner and stands on the footer's top line, in the flow, so it
   never sits under the footer text and the footer stays at the bottom. */
@media (max-width: 900px) {
  .page { --step: 40px; }
  .stair { position: relative; order: 1; flex: none; align-self: flex-end; margin: 0 calc(-1 * var(--pad-r)) -48px 0; }
  footer { order: 2; }
}
@media (max-width: 520px) {
  .page { gap: 32px; --step: 28px; }
  .stair { margin-bottom: -32px; }
}
