:root {
  --bg: #FBFAF6;
  --text: #2C2C2A;
  --text-soft: #444441;
  --text-muted: #6B6A64;
  --accent: #993C1D;
  --border: #B4B2A9;
  --btn-bg: #2C2C2A;
  --btn-text: #F1EFE8;
  --photo-ring: #E8E5DC;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1C1A;
    --text: #F1EFE8;
    --text-soft: #D3D1C7;
    --text-muted: #9C9A92;
    --accent: #F0997B;
    --border: #5F5E5A;
    --btn-bg: #F1EFE8;
    --btn-text: #2C2C2A;
    --photo-ring: #33332F;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1C1A;
  --text: #F1EFE8;
  --text-soft: #D3D1C7;
  --text-muted: #9C9A92;
  --accent: #F0997B;
  --border: #5F5E5A;
  --btn-bg: #F1EFE8;
  --btn-text: #2C2C2A;
  --photo-ring: #33332F;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
main {
  min-height: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.photo-wrap { order: -1; }
.photo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--photo-ring);
  margin-bottom: 28px;
}
.br-wide { display: none; }
@media (min-width: 760px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    align-content: center;
  }
  .photo-wrap { order: 0; justify-self: center; }
  .photo {
    width: 220px;
    height: 220px;
    box-shadow: 0 0 0 8px var(--photo-ring);
    margin: 0;
  }
  .br-wide { display: inline; }
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.1;
  margin: 0;
}
.role {
  color: var(--accent);
  font-size: 1.05rem;
  margin: 6px 0 0;
}
.pitch {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 30em;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.now {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--photo-ring);
  max-width: 30em;
}
.now h2 {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 400;
  margin: 0 0 8px;
}
.now ul { list-style: none; margin: 0; padding: 0; }
.now li {
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.7;
  padding-left: 1.4em;
  text-indent: -1.4em;
}
.now li::before { content: "→"; color: var(--accent); display: inline-block; width: 1.4em; text-indent: 0; }
.stack {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .8rem;
  margin: 10px 0 0;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform .1s, opacity .15s;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn svg { width: 18px; height: 18px; flex: none; }
.vcard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .85rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.vcard:hover { color: var(--accent); border-bottom-color: currentColor; }
.vcard svg { width: 16px; height: 16px; }
.btn:focus-visible, .theme:focus-visible, .vcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
footer {
  color: var(--text-muted);
  font-size: .8rem;
  margin-top: 48px;
}
.top-actions {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.lang {
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .8rem;
  letter-spacing: .04em;
  text-decoration: none;
  display: grid;
  place-items: center;
}
.lang:hover { color: var(--accent); }
.lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
