@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.a68cd1112763.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #062a47;
  --page: #f6eddf;
  --glow-start: #e6b3a363;
  --glow-end: #f3cb776b;
  --line: #062a4726;
  --portrait-ring: #fff5;
  --surface: #fff8;
  --card-line: #9e5b3226;
  --muted: #405262;
  --accent: #a24e23;
  --accent-wash: #a24e2310;
  --outline: #a76440;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2e9dd;
  --page: #141e24;
  --glow-start: #64473a30;
  --glow-end: #30556730;
  --line: #e8d9c526;
  --portrait-ring: #f2e9dd20;
  --surface: #223038;
  --card-line: #e8d9c526;
  --muted: #b5b9b8;
  --accent: #efb887;
  --accent-wash: #efb88718;
  --outline: #c99770;
}
/* Respect the device theme even when JavaScript is disabled. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #f2e9dd;
    --page: #141e24;
    --glow-start: #64473a30;
    --glow-end: #30556730;
    --line: #e8d9c526;
    --portrait-ring: #f2e9dd20;
    --surface: #223038;
    --card-line: #e8d9c526;
    --muted: #b5b9b8;
    --accent: #efb887;
    --accent-wash: #efb88718;
    --outline: #c99770;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  padding: clamp(48px, 9vh, 112px) clamp(24px, 5vw, 80px) 32px;
  background: radial-gradient(ellipse at 0 0, var(--glow-start) 0, transparent 60%), radial-gradient(ellipse at 100% 100%, var(--glow-end) 0, transparent 65%), var(--page);
}
.profile { width: min(100%, 1160px); margin: 0 auto; }
.profile-header { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 26px; padding: 0 0 38px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.portrait { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--portrait-ring); }
.identity { width: max-content; max-width: 100%; justify-self: start; }
h1 { margin: 0; font-size: clamp(40px, 4vw, 48px); font-weight: 600; line-height: 1.25; letter-spacing: -1.8px; }
.bio { display: flex; justify-content: space-between; gap: 6px; margin: 12px 0 0; font-family: system-ui, sans-serif; font-size: 20px; line-height: 1.3; }
.bio span { display: block; }
.socials { display: flex; justify-content: center; gap: 5px; }
.socials a { color: inherit; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; transition: color 160ms, background-color 160ms; }
.socials svg { width: 34px; height: 34px; fill: currentColor; }
.socials a:hover, .socials a:focus-visible { color: var(--accent); background: var(--accent-wash); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--card-line); border-radius: 14px; text-decoration: none; box-shadow: 0 5px 18px #62442006; transition: box-shadow 160ms, border-color 160ms; }
.card:hover { border-color: var(--outline); box-shadow: 0 0 0 1px var(--outline); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-label { display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 14px; font-family: system-ui, sans-serif; font-size: 24px; line-height: 1; }
.card--featured { animation: photography-buzz 3s linear infinite; }
.card--featured:hover, .card--featured:focus, .card--featured:active { animation: none; }
@keyframes photography-buzz {
  0%, 5% { transform: translateX(3px) rotate(1deg); }
  2.5%, 7.5% { transform: translateX(-3px) rotate(-1deg); }
  10%, 15% { transform: translateX(2px) rotate(1deg); }
  12.5%, 17.5% { transform: translateX(-2px) rotate(-1deg); }
  20% { transform: translateX(1px) rotate(1deg); }
  22.5% { transform: translateX(-1px) rotate(-1deg); }
  25%, 100% { transform: translateX(0) rotate(0); }
}
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; color: var(--muted); }
footer small { font-size: 12px; line-height: 1.5; }
.theme-picker { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 24px; }
.theme-picker[hidden] { display: none; }
.theme-picker button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color 160ms, background-color 160ms; }
.theme-picker button:hover, .theme-picker button[aria-pressed="true"] { color: var(--accent); background: var(--accent-wash); }
.theme-picker svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.not-found { text-align: center; padding-block: 60px; }
.not-found a { color: inherit; }
@media (min-width: 1500px) { body { padding-top: 14vh; } }
@media (max-width: 1000px) {
  .profile-header { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 20px; padding-bottom: 30px; margin-bottom: 30px; }
  .portrait { width: 80px; height: 80px; }
  .bio { font-size: 18px; }
  .cards { gap: 16px; }
}
@media (max-width: 740px) {
  .profile-header { display: flex; flex-direction: column; gap: 0; text-align: center; padding-bottom: 22px; margin-bottom: 24px; }
  .portrait { margin-bottom: 20px; width: 88px; height: 88px; }
  h1 { font-size: clamp(30px, 10vw, 44px); letter-spacing: -1.2px; }
  .socials { margin: 18px 0 0; gap: 10px; }
  body { padding: 40px 22px 28px; }
  .profile { max-width: 440px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card img { aspect-ratio: 16 / 10; }
  .card-label { min-height: 58px; font-size: 23px; }
  footer { flex-direction: column; margin-top: 28px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
