@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/bebas-neue-latin.woff") format("woff");
}

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/rajdhani-latin-500.woff") format("woff");
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --surface: #171717;
  --surface-hover: #242424;
  --accent: #e8192c;
  --text: #ffffff;
  --muted: #bcbcbc;
  --font-heading: "Bebas Neue", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  font-family: var(--font-body);
  font-weight: 500;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  position: relative;
  isolation: isolate;
  background: var(--background);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

body::before, body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(232,25,44,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,25,44,0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(232,25,44,0.08) 0%, transparent 70%);
  background-size: 50px 50px, 50px 50px, 100% 100%;
}

body::after {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
}

::selection { background: var(--accent); color: var(--text); }

.container {
  width: 100%;
  max-width: 32.5rem;
  margin: auto;
  padding: max(2rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

header { text-align: center; }

.avatar {
  display: block;
  width: 9rem;
  height: auto;
  margin: 0 auto 0.875rem;
}

h1 {
  margin: 0;
  font: 400 clamp(2rem, 8vw, 2.5rem)/1.1 var(--font-heading);
  text-transform: uppercase;
  text-wrap: balance;
}

.tagline {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.button-stack { display: grid; gap: 0.75rem; }

.button {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.125rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 150ms ease, transform 150ms ease;
}

.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.button-copy { flex: 1; min-width: 0; }
.button-title { display: block; font: 400 1.5rem/1.1 var(--font-heading); }
.button-description { display: block; margin-top: 0.1875rem; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.arrow { flex: none; color: var(--muted); }

.button:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.button:active { transform: scale(0.985); }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--surface-hover); }
  .button:hover .arrow { color: var(--text); }
}

footer {
  margin-top: 1.25rem;
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-height: 740px) {
  .container { padding-top: max(1.25rem, env(safe-area-inset-top)); }
  .avatar { width: 7rem; margin-bottom: 0.625rem; }
  .tagline { margin-bottom: 1rem; }
}

@media (max-height: 620px) {
  .container { padding-top: max(1rem, env(safe-area-inset-top)); }
  .avatar { width: 6rem; }
  .tagline { margin-bottom: 0.75rem; }
}

@media (max-width: 360px) {
  .button { gap: 0.75rem; padding: 0.875rem; }
  .button-title { font-size: 1.4375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}
