/* mrkurt.link: placeholder and legal pages, no build step, no third-party resources */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080c14;
  --text: #e2e8f0;
  --text-strong: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #818cf8;
  --line: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.03);
  --glow-indigo: rgba(99, 102, 241, 0.16);
  --glow-cyan: rgba(6, 182, 212, 0.11);
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

/* Background: subtle grid and two soft glows, fixed behind the content */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(40rem 32rem at 30% 0%, var(--glow-indigo), transparent 70%),
    radial-gradient(34rem 28rem at 85% 75%, var(--glow-cyan), transparent 70%);
}

body::after {
  opacity: 0.6;
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Brand: K monogram and wordmark */
.wordmark {
  margin: 0;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.wordmark span {
  margin-left: -0.04em;
  color: var(--accent);
}

.logo {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.25));
}

/* Layout shared by all pages: content plus footer at the bottom */
.layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 var(--gutter);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0 2.5rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-footer a:hover,
.site-footer a[aria-current='page'] {
  color: var(--text-strong);
}

/* Home: logo and domain, centered */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  animation: fade-in 0.9s ease-out both;
}

.home .logo {
  width: clamp(72px, 18vw, 96px);
  height: auto;
}

.home .wordmark {
  font-size: clamp(2.25rem, 9vw, 3.5rem);
}

/* Legal pages: narrow text column */
.page {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.brand-link .logo {
  width: 40px;
  height: 40px;
}

.brand-link .wordmark {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.page h1 {
  margin: 0 0 2rem;
  color: var(--text-strong);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page h2 {
  margin: 2.25rem 0 0.5rem;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
}

.page p {
  margin: 0 0 0.75rem;
  color: var(--text-body);
  font-size: 0.9375rem;
}

.page p a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.page p a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page .note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.8125rem;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation: none !important;
    transition: none !important;
  }
}
