:root {
  --bg: #fbfaf7;
  --text: #1f2328;
  --muted: #5b6168;
  --accent: #b4412c;
  --card: #ffffff;
  --border: #e6e2da;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181b;
    --text: #e8e6e1;
    --muted: #a3a8ae;
    --accent: #f07a5f;
    --card: #1f2226;
    --border: #2e3237;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; line-height: 1.25; }
h1 { font-size: 2.2rem; margin: 0 0 .4rem; }
h2 { font-size: 1.45rem; margin-top: 2.4rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
h3 { font-size: 1.1rem; margin-bottom: .2rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: .8rem 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem;
}
.nav .name { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; margin-right: auto; }
.nav a:not(.name) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:not(.name):hover, .nav a[aria-current="page"] { color: var(--accent); }

main { max-width: var(--max); margin: 0 auto; padding: 2.2rem 16px 4rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }

.hero { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.hero img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.hero div { flex: 1; min-width: 240px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin-top: 0; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.person { display: flex; gap: 1rem; align-items: flex-start; margin: 1.2rem 0; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--border); }
ul.plain li span { color: var(--muted); }

/* Links (linktree) page */
.links { max-width: 460px; margin: 0 auto; text-align: center; }
.links img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.links a.btn {
  display: block; margin: .75rem 0; padding: .95rem 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.links a.btn:hover { border-color: var(--accent); color: var(--accent); }
.links .section-label { margin-top: 1.6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Contact form */
form { display: grid; gap: .9rem; margin-top: 1.2rem; }
label { font-weight: 600; font-size: .95rem; }
input, textarea, select {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
button {
  justify-self: start; padding: .75rem 1.6rem; font: inherit; font-weight: 600;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; cursor: pointer;
}

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 16px; border-top: 1px solid var(--border); }
