/* roosens.net: dark only, system fonts, no external requests */

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --muted: #a3acbf;
  --accent: #7c9cff;
  --accent-2: #b18cff;
  --accent-ink: #0b1020;
  --radius: 18px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(124, 156, 255, 0.20), transparent 70%),
    radial-gradient(700px 500px at -10% 10%, rgba(177, 140, 255, 0.13), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Top bar */
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}
.topbar nav a:hover { color: var(--text); }
.topbar nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}
.topbar nav .nav-cta:hover { border-color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.hello {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font: 700 clamp(2.75rem, 7.5vw, 4.75rem)/1.02 var(--display);
  letter-spacing: -0.035em;
}

.role {
  margin: 16px 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
}

.tagline {
  max-width: 34rem;
  margin: 16px 0 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.btn:hover { border-color: rgba(124, 156, 255, 0.6); background: var(--surface-hover); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}
.btn-primary:hover { transform: translateY(-1px); border-color: transparent; background: linear-gradient(135deg, #95b0ff, #c3a3ff); }

.hero-photo {
  position: relative;
  width: clamp(200px, 26vw, 320px);
  aspect-ratio: 1;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 156, 255, 0.35), transparent);
  filter: blur(20px);
}
.hero-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
}

/* Sections */
.section { padding-top: 32px; padding-bottom: 72px; }

h2 {
  margin: 0 0 24px;
  font: 700 clamp(1.75rem, 4vw, 2.25rem)/1.15 var(--display);
  letter-spacing: -0.02em;
}

.section-intro { max-width: 40rem; margin: -8px 0 28px; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.prose p { margin: 0 0 16px; color: var(--muted); max-width: 40rem; }
.prose p:first-child { color: var(--text); font-size: 1.1875rem; }

.facts {
  list-style: none;
  margin: 0;
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
}
.facts li + li { border-top: 1px solid var(--border); }
.fact-label { font-size: 0.875rem; color: var(--muted); }
.fact-value { font-weight: 600; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(124, 156, 255, 0.45); background: var(--surface-hover); }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 156, 255, 0.14);
  color: var(--accent);
}
.card h3 { margin: 20px 0 6px; font-size: 1.1875rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Contact */
.contact {
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(177, 140, 255, 0.18), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(124, 156, 255, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.contact h2 { margin-bottom: 8px; }
.contact p { margin: 0 0 20px; color: var(--muted); }
.contact-email {
  display: inline-block;
  font: 700 clamp(1.5rem, 5vw, 2.5rem)/1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) left bottom / 100% 2px no-repeat;
  padding-bottom: 4px;
}
.contact-email:hover { color: var(--accent); }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer p { margin: 0; }

/* 404 */
.notfound { padding-top: clamp(4rem, 14vw, 9rem); padding-bottom: 6rem; }
.notfound .code {
  margin: 0;
  font: 800 clamp(5rem, 22vw, 9rem)/1 var(--display);
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-top: 8px; }
.notfound p { color: var(--muted); }

/* One entrance moment for the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-photo { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-photo { animation-delay: 0.12s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-photo { order: -1; width: 168px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .actions .btn { width: 100%; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
