:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1f23;
  --muted: #5b636b;
  --border: #c9c6bd;
  --accent: #1f6f5c;
  --accent-hover: #185a4a;
  --accent-text: #ffffff;
  --accent-soft: #e6f1ed;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --surface: #1a1e21;
    --text: #e8eaec;
    --muted: #9aa3ab;
    --border: #3b434a;
    --accent: #4fbf9f;
    --accent-hover: #6fd3b6;
    --accent-text: #0b1512;
    --accent-soft: #16261f;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: var(--accent-text);
  padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.5) blur(10px);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .4rem .7rem; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }

/* Hero */
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.avatar {
  width: clamp(140px, 30vw, 200px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--border), var(--shadow);
}
h1 {
  font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -.03em;
  margin: 1.75rem 0 .5rem;
}
.tagline { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.2rem); margin: 0; }
.tagline .part { white-space: nowrap; }
@media (max-width: 600px) {
  .tagline .sep { display: none; }
  .tagline .part { display: block; white-space: normal; }
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-accent { background: var(--accent-soft); }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -.02em; line-height: 1.2;
  margin: 0 0 2rem; text-align: center;
}
.lede { font-size: 1.15rem; text-align: center; margin: 0; }

/* Interest cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}
.card {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.card img { aspect-ratio: 900 / 650; object-fit: cover; width: 100%; transition: transform .35s ease; }
.card-label {
  position: absolute; inset: auto 0 0 0; padding: 3.5rem 1rem .85rem;
  color: #fff; font-weight: 700; font-size: 1.2rem;
  text-shadow: 0 1px 3px rgb(0 0 0 / .8), 0 0 12px rgb(0 0 0 / .5);
  background: linear-gradient(transparent, rgb(0 0 0 / .45) 40%, rgb(0 0 0 / .8));
}
.card:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } .card:hover img { transform: none; } }

/* Dialogs */
dialog {
  width: min(640px, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .35);
}
dialog::backdrop { background: rgb(10 14 16 / .6); backdrop-filter: blur(3px); }
dialog img { width: 100%; aspect-ratio: 900 / 650; max-height: 50dvh; object-fit: cover; }
html:has(dialog[open]) { overflow: hidden; }
.dialog-body { padding: 1.25rem 1.5rem 1.5rem; }
.dialog-body h3 { margin: 0 0 .5rem; font-size: 1.5rem; letter-spacing: -.01em; }
.dialog-body p { margin: 0 0 1.25rem; color: var(--muted); }
.dialog-body form { display: flex; justify-content: flex-end; margin: 0; }

/* Contact */
.contact-links { margin: 1.5rem 0; }
.social { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: .75rem; }
.social a {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  transition: color .15s, border-color .15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; }

@media (max-width: 480px) {
  .brand { font-size: 1rem; }
  .nav-links a { padding: .4rem .5rem; font-size: .9rem; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 340px) {
  .nav { flex-wrap: wrap; justify-content: center; gap: .1rem; padding-block: .35rem; }
  .nav-links a { padding: .3rem .45rem; }
}
