@charset "utf-8";

:root {
  --page-bg: #f5f5f2;
  --surface: #ffffff;
  --surface-soft: #f2f5f7;
  --text: #17202a;
  --text-soft: #5c6874;
  --brand: #173f63;
  --brand-deep: #0d2d49;
  --accent: #a62d45;
  --accent-deep: #7d2034;
  --line: rgba(23, 63, 99, 0.14);
  --line-strong: rgba(23, 63, 99, 0.24);
  --shadow-sm: 0 6px 18px rgba(13, 45, 73, 0.07);
  --shadow-md: 0 16px 42px rgba(13, 45, 73, 0.11);
  --shadow-lg: 0 24px 70px rgba(13, 45, 73, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content-width: 1180px;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12rem, rgba(23, 63, 99, 0.13), transparent 36rem),
    linear-gradient(180deg, #ffffff 0, var(--page-bg) 32rem);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2,
h3,
h4,
ul {
  margin-top: 0;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration-color: rgba(166, 45, 69, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid rgba(166, 45, 69, 0.28);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--brand-deep);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  color: #ffffff;
  transform: translateY(0);
}

.site-header {
  padding: clamp(2rem, 6vw, 4.5rem) 1.25rem clamp(1.5rem, 4vw, 2.75rem);
}

.site-title {
  margin: 0;
}

.site-logo {
  width: min(540px, 88vw);
  margin-inline: auto;
  filter: drop-shadow(0 9px 18px rgba(13, 45, 73, 0.1));
}

.site-shell {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 245px);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface), rgba(247, 249, 250, 0.97));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.profile-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.profile-intro {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.1vw, 1.075rem);
}

.profile-intro > strong:first-child {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.18em;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.62rem 0.9rem;
  overflow-wrap: anywhere;
  color: var(--brand-deep);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.25;
  text-decoration: none;
}

.contact-link::before {
  margin-right: 0.5rem;
  color: var(--accent);
  font-size: 0.9em;
}

.contact-email::before {
  content: "✉";
}

.contact-social::before {
  content: "◎";
}

.contact-link:hover {
  color: var(--accent-deep);
  background: #ffffff;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.reel-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.reel-item {
  min-width: 0;
}

.reel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  color: var(--brand);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(13, 45, 73, 0.04);
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
}

.reel-link::after {
  margin-left: 0.75rem;
  color: var(--accent);
  content: "↗";
}

.reel-link:hover {
  color: var(--accent-deep);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.profile-photo {
  width: 100%;
  height: auto;
  justify-self: center;
  border: 7px solid #ffffff;
  border-radius: calc(var(--radius-md) + 2px);
  box-shadow: var(--shadow-md);
}

.content-section {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}

.section-heading,
.subsection-heading {
  color: var(--brand-deep);
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
  font-size: clamp(2rem, 5vw, 3.15rem);
}

.section-heading::after {
  flex: 1 1 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-heading small {
  display: block;
  margin-left: -0.55rem;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.38em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subsection-heading {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.credit-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 0.75rem 0.75rem 1rem;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.credit-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.credit-media {
  display: grid;
  min-height: 250px;
  place-items: center;
  margin-bottom: 0.9rem;
  padding: 0.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f8f9, #edf1f3);
  border-radius: 11px;
}

.credit-media img {
  max-height: 290px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(13, 45, 73, 0.1);
}

.credit-image-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.credit-title {
  margin: 0.2rem 0 0.75rem;
  color: var(--brand-deep);
  font-size: 1rem;
  line-height: 1.3;
}

.credit-role {
  margin: 0.08rem 0;
  color: var(--text-soft);
  font-size: 0.91rem;
  font-style: italic;
  line-height: 1.35;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.3;
}

.credit-link::after {
  margin-left: 0.35rem;
  content: "→";
}

.books-grid .credit-media {
  min-height: 310px;
}

.books-grid .credit-media img {
  max-height: 340px;
}

.development-grid .credit-media {
  min-height: 270px;
  margin-bottom: 0;
}

.image-only-card {
  padding-bottom: 0.75rem;
}

.image-only-card .credit-media {
  flex: 1 1 auto;
}

.site-footer {
  padding: 2.4rem 1.25rem 3rem;
  color: var(--text-soft);
  text-align: center;
  background: rgba(255, 255, 255, 0.66);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 980px) {
  .credits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 1.5rem, var(--content-width));
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    grid-row: 1;
    width: min(260px, 78vw);
    margin-inline: auto;
  }

  .reel-links,
  .credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .section-heading::after {
    display: block;
    width: 4rem;
    margin-top: 0.8rem;
  }

  .section-heading small {
    margin: 0.65rem 0 0;
  }
}

@media (max-width: 520px) {
  body {
    line-height: 1.58;
  }

  .site-header {
    padding-inline: 0.75rem;
  }

  .profile-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .profile-meta,
  .reel-links,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .profile-meta {
    display: grid;
  }

  .contact-link {
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  .credit-media,
  .books-grid .credit-media,
  .development-grid .credit-media {
    min-height: auto;
    padding: 0.75rem;
  }

  .credit-media img,
  .books-grid .credit-media img {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
