:root {
  --bg: #f6f3ee;
  --card: #fffcf8;
  --ink: #1b2838;
  --muted: #5a6570;
  --line: #d8d0c6;
  --accent: #215a78;
  --accent-hover: #173f54;
  --ok: #1b5e45;
  --ok-bg: #e6f3ec;
  --shadow: 0 8px 24px rgba(27, 40, 56, 0.08);
  --radius: 14px;
  --max: 40rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-photo {
  width: 100%;
  max-width: 20rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e2d8;
  box-shadow: var(--shadow);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 744 / 930;
  object-fit: cover;
}
h1 {
  margin: 1.1rem 0 0.35rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Times, serif;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

section {
  margin-top: 2.25rem;
}
h2 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Times, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.props {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
}
.props dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.props dd {
  margin: 0;
}

.lede, .about, .interest {
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e2d8;
  aspect-ratio: 4 / 5;
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.35s ease;
}
.gallery a:hover img, .gallery a:focus-visible img {
  transform: scale(1.03);
}
.gallery a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.email-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.email-btn:hover, .email-btn:focus-visible {
  background: var(--accent-hover);
}
.email-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

footer {
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 42rem);
}
dialog::backdrop {
  background: rgba(15, 20, 26, 0.82);
}
.lb-frame {
  position: relative;
}
.lb-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}
.lb-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lb-close:focus-visible {
  outline: 3px solid #fff;
}
.lb-cap {
  margin: 0.55rem 0 0;
  color: #efeae3;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 560px) {
  .props { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .props dt { margin-top: 0.55rem; }
  .props dt:first-child { margin-top: 0; }
  .gallery { gap: 0.5rem; }
}
