/* Modern minimalism: whitespace, hairlines, one typeface, restrained motion */
:root {
  --bg: #fafaf9;
  --text: #1a1a1a;
  --muted: #8a8a86;
  --line: #e7e6e3;
  --hover: #f1f0ed;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ededeb;
    --muted: #7d7d79;
    --line: #262626;
    --hover: #1a1a1a;
  }
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout: one column on phones, profile + content side by side on wide screens */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  gap: 64px;
}

@media (min-width: 860px) {
  .page { grid-template-columns: 300px 1fr; gap: 96px; padding-top: 120px; }
  .profile { position: sticky; top: 120px; align-self: start; }
}

/* Profile */
.avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  margin-bottom: 28px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline { color: var(--muted); margin-top: 4px; }

.intro {
  margin-top: 24px;
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 34ch;
}

/* Section labels */
.label {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Links: quiet rows separated by hairlines */
.links { border-top: 1px solid var(--line); }

.link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: padding 0.25s ease, background 0.25s ease;
}

.arrow { color: var(--muted); transition: transform 0.25s ease, color 0.25s ease; }

.link:hover, .link:focus-visible {
  padding-left: 12px;
  padding-right: 12px;
  background: var(--hover);
  outline: none;
}
.link:hover .arrow, .link:focus-visible .arrow { transform: translateX(4px); color: var(--text); }

/* Showcase */
.showcase { margin-top: 72px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
}

.gallery figure { margin: 0; }

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line);
  transition: opacity 0.3s ease;
}
.gallery img:hover { opacity: 0.85; }

.gallery figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.share {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.share:hover { color: var(--text); }

/* Fade-in (added by script.js) */
.profile, .content > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.in { opacity: 1; transform: none; }

/* Without JS, show everything */
@media (scripting: none) {
  .profile, .content > * { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .profile, .content > * { opacity: 1; transform: none; }
}
