/* =========================================================
   PORTFOLIO STYLESHEET
   ---------------------------------------------------------
   Everything is controlled from the :root variables below —
   change a value there and it updates the whole site.
   ========================================================= */

:root {
  --color-bg:      #fafaf8;   /* page background */
  --color-ink:     #1c1e22;   /* primary text */
  --color-muted:   #6b6f76;   /* secondary text (bio, captions) */
  --color-border:  #e4e4e0;   /* dividers, image borders */
  --color-accent:  #3e5c76;   /* links, hover states */

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;

  --content-width: 640px;
}

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

body {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Base ---------- */
body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
}

.page {
  max-width: var(--content-width);
  margin: 0 auto;
}

a {
  color: inherit;
}

a:focus-visible,
img:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* =========================================================
   PROFILE SECTION
   ========================================================= */
.profile {
  margin-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.profile__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.profile__name {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.profile__role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0.4rem 0 0;
}

.profile__bio {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  max-width: 60ch;
  margin: 1.25rem 0 0;
}

/* =========================================================
   WORK / SHOWCASE SECTION
   ========================================================= */

.section-heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.work-item {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.work-item:last-child {
  margin-bottom: 0;
}

.work-item__photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  object-fit: cover;
}

.work-item__caption {
  margin-top: 1rem;
}

.work-item__caption h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.work-item__caption p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 60ch;
  margin: 0.4rem 0 0;
}

/* =========================================================
   CONTACT / FOOTER
   ========================================================= */
.contact {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.contact__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
}

.contact__list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact__list a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .contact__list a {
    transition: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  body {
    padding: 2.5rem 1.25rem;
  }

  .profile__photo {
    width: 96px;
    height: 96px;
  }
}
