@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Urbanist:wght@300;400;500;600&display=swap');

/* ===== COLORS & FONTS ===== */
:root {
  --orange: #ff4d14;
  --black: #0d0d0d;
  --panel: #161616;
  --white: #f5f3ef;
  --grey: #9a9a9a;
  --line: #2a2a2a;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Urbanist', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

em {
  font-style: normal;
  color: var(--orange);
}

/* Small label like "// Throwbacks" */
.kicker {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 1.5em;
}

/* Medium serif headings used in several sections */
.mid-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  text-transform: uppercase;
}

section {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 6em 1.5em;
  border-bottom: 1px solid var(--line);
}

/* ===================== HERO ===================== */
.hero {
  background-color: var(--orange);
  color: var(--white);
  overflow: hidden;
  position: relative;
  padding: 0 2em;   /* no bottom padding: the photo touches the bottom edge */
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.5em 0;
  font-size: 0.9rem;
}

.logo {
  text-decoration: none;
  font-weight: 600;
}

nav ul {
  display: flex;
  gap: 1.8em;
  list-style: none;
}

nav ul a {
  text-decoration: none;
}

nav ul a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The stage holds the two name layers and the photo on top of each other */
.hero-stage {
  position: relative;
  height: clamp(420px, 60vw, 760px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.name {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-58%);
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4rem, 19vw, 17rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.name-back {
  z-index: 1;
  color: var(--white);
}

/* Outline copy that sits on top of the photo */
.name-front {
  z-index: 3;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

/* A cut-out photo (transparent background), in black and white,
   standing on the bottom edge of the orange area. */
.hero-photo {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  filter: grayscale(1) contrast(1.1) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2em;
  position: absolute;   /* sits on top of the stage, beside the photo */
  left: 2em;
  right: 2em;
  bottom: 3em;
  z-index: 4;
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero-side {
  max-width: 22em;
}

.hero-side p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.35em 1.2em 0.35em 0.35em;
  background-color: var(--black);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s;
}

.pill:hover {
  transform: translateX(4px);
}

.pill-arrow {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--black);
}

/* ===================== ABOUT ===================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  position: relative;
}

.big-title {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.05;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.framed-photo {
  position: absolute;
  right: 4%;
  top: 9.5em;
  width: clamp(160px, 22vw, 250px);
  border: 3px solid var(--white);
  background-color: var(--orange);
  z-index: 1;
}

.framed-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}

.about-text {
  max-width: 28em;
  color: var(--grey);
  font-size: 0.95rem;
}

.about-text p + p {
  margin-top: 1em;
}

.stats-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3em;
  margin-top: 2em;
}

.stats-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.25;
}

.stats-title span {
  color: var(--grey);
}

.stats {
  list-style: none;
}

.stats li {
  display: grid;
  grid-template-columns: 1fr 6em 2em;
  align-items: center;
  padding: 1.1em 0;
  border-bottom: 1px solid var(--line);
}

.stats li:first-child {
  border-top: 1px solid var(--line);
}

.stats b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--orange);
  line-height: 1;
}

.stats i {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--grey);
  text-align: right;
}

/* ===================== THROWBACKS ===================== */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.count {
  font-family: var(--serif);
  color: var(--orange);
  font-size: 1.4rem;
}

.polaroids {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  padding-top: 1em;
}

.polaroids figure {
  width: 220px;
  background-color: #fff;
  padding: 0.6em 0.6em 1.2em;
  color: var(--black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

/* each photo gets a slightly different angle */
.polaroids figure:nth-child(1) { transform: rotate(-4deg); }
.polaroids figure:nth-child(2) { transform: rotate(3deg) translateY(1em); }
.polaroids figure:nth-child(3) { transform: rotate(-2deg); }
.polaroids figure:nth-child(4) { transform: rotate(4deg) translateY(0.6em); }

.polaroids figure:hover {
  transform: rotate(0) scale(1.05);
  z-index: 2;
}

.polaroids img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

/* the superhero photo keeps its original crop (from the top) */
.polaroids img.top {
  object-position: top;
}

.polaroids figcaption {
  margin-top: 0.7em;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===================== HOBBIES / SKILLS ===================== */
.skills-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 3em;
}

.skills-note {
  max-width: 20em;
  color: var(--grey);
  font-size: 0.9rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  display: grid;
  grid-template-columns: 1fr 1fr 2em;
  grid-template-areas:
    "num title arrow"
    "num text  arrow";
  column-gap: 2em;
  align-items: end;
  border-top: 1px solid var(--line);
  height: 10em;
  overflow: hidden;   /* cuts the big numbers in half, like the reference */
  transition: background-color 0.2s;
}

.skill-list li:hover {
  background-color: var(--panel);
}

.big-num {
  grid-area: num;
  align-self: start;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 8rem;
  line-height: 1;
  padding-top: 0.15em;
}

.skill-list li:hover .big-num {
  color: var(--orange);
}

.skill-list h3 {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.skill-list p {
  grid-area: text;
  color: var(--grey);
  font-size: 0.88rem;
  padding: 0.3em 0 1.4em;
  max-width: 26em;
}

.arrow {
  grid-area: arrow;
  align-self: center;
  color: var(--grey);
}

/* ===================== GALLERY ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-bottom: 3em;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 4px solid #fff;
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2em;
}

.gallery-caption p {
  max-width: 22em;
  color: var(--grey);
  font-size: 0.9rem;
}

/* ===================== FAQ ===================== */
.faq .mid-title {
  margin-bottom: 1.5em;
}

details {
  border-top: 1px solid var(--line);
  padding: 1.3em 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 1.15rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--orange);
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin-top: 0.6em;
  color: var(--grey);
  max-width: 40em;
}

/* ===================== FOOTER ===================== */
footer {
  overflow: hidden;
  padding: 3em 1.5em 2em;
}

.footer-name {
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4rem, 20vw, 17rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
}

.footer-row {
  width: min(72rem, 100%);
  margin: 2em auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  font-size: 0.85rem;
  color: var(--grey);
}

/* ===================== SMALL LAPTOPS & TABLETS ===================== */
/* Below 1024px the hero text no longer fits beside the photo,
   so it moves under the photo instead of covering it. */
@media (max-width: 1024px) {
  .hero {
    padding-bottom: 2.5em;
  }

  .hero-photo {
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, #000 80%, transparent);
  }

  .hero-bottom {
    position: static;
    margin-top: 1.5em;
  }

  /* 2 x 2 polaroids instead of 3 + 1 */
  .polaroids {
    max-width: 34em;
    margin: 0 auto;
    gap: 2em 1.5em;
  }

  .polaroids figure {
    width: calc(50% - 0.75em);
  }
}

/* ===================== TABLETS & PHONES ===================== */
@media (max-width: 800px) {
  nav ul,
  .nav-right {
    display: none;
  }

  .hero {
    padding: 0 1.2em 2.5em;
  }

  .polaroids figcaption {
    font-size: 0.75rem;
  }

  .hero-stage {
    height: 420px;
  }

  .about,
  .stats-block {
    grid-template-columns: 1fr;
  }

  .framed-photo {
    position: static;
    margin: 0 auto;
  }

  .skill-list li {
    grid-template-columns: 1fr 2em;
    grid-template-areas:
      "num   arrow"
      "title arrow"
      "text  arrow";
    height: auto;
  }

  .big-num {
    font-size: 4rem;
  }

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

}
