:root {
  --text-primary: #0f172a;
  --text-muted: #475569;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --accent: #1e40af;
  --accent-soft: rgba(30, 64, 175, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --shadow-sm: 0 24px 50px rgba(15, 23, 42, 0.05);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1, #f97316);
  z-index: 100;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

main {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto 120px;
}

.site-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header {
  width: min(760px, calc(100vw - 32px));
  margin: 60px auto 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-role {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a[aria-current='page'] {
  color: var(--text-primary);
  font-weight: 600;
}

.intro {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(140px, 200px) 1fr;
  align-items: start;
}

.intro-portrait {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.intro-portrait img {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 2.6rem);
}

.intro-highlight {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.7;
}

.intro p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 200ms ease, border 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.button.primary {
  background: var(--accent);
  color: #f8fafc;
  box-shadow: 0 12px 25px rgba(30, 64, 175, 0.25);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #1e3a8a;
  text-decoration: none;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.intro-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}

.link-list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.travel {
  margin-top: 96px;
}

.section-header {
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.section-description {
  margin: 12px 0 24px;
  color: var(--text-muted);
  max-width: 520px;
}

.gallery {
  position: relative;
  width: min(820px, 96vw);
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 28px 45px rgba(15, 23, 42, 0.12);
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.uk-slideshow-items {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.uk-slideshow-items > div {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.uk-slideshow-items > div.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.1));
}

.slide-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 26px;
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.18);
}

.uk-slideshow-items .slide-meta {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: background 200ms ease, border 200ms ease, transform 200ms ease;
  z-index: 5;
}

.gallery-nav[data-gallery-prev] {
  left: 12px;
}

.gallery-nav[data-gallery-next] {
  right: 12px;
}

.gallery-nav span {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: var(--accent);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  outline: none;
}

.slide-meta button {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.slide-meta button:hover,
.slide-meta button:focus-visible {
  background: var(--accent);
  color: #0f172a;
  transform: translateY(-1px);
  outline: none;
}

.slide-meta button.liked {
  background: var(--accent);
  color: #0f172a;
}

.gallery-dots {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
  padding: 0;
  margin-bottom: 60px;
  list-style: none;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.gallery-dot[aria-current='true'] {
  background: var(--accent);
  transform: scale(1.2);
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  background: var(--accent);
}

.contact {
  margin-top: 96px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.contact h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.contact p {
  margin: 0;
  color: var(--text-muted);
}

.inline-link {
  color: var(--accent);
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 40px 16px 60px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .site-header {
    margin-top: 40px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-portrait {
    max-width: 220px;
  }

  .intro-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery {
    flex-direction: column;
  }

  .gallery-nav {
    order: 2;
  }

  .gallery-viewport {
    order: 1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.projects {
  margin: 100px auto 0;
  width: min(820px, 96vw);
  display: grid;
  gap: 24px;
}

.projects h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.04);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.project-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 18px;
}

.project-media img {
  max-width: 100%;
  height: auto;
}

.project-content h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.project-content p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.project-content li + li {
  margin-top: 8px;
}
