/* Portfolio layout */

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #f4f0e6;
  background: linear-gradient(
  180deg,
  #B18DC0 0%,
  #421052 100%
);
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem;
}

/* =========================
   NAVIGATION
   ========================= */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
}

.nav-name {
  color: #f4f0e6;
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #f4f0e6;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* =========================
   HERO
   ========================= */

.hero {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 6rem;
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #f4f0e6;
  border-radius: 999px;
  color: #f4f0e6;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  margin: 0 0 1.5rem;
}

.hero-intro {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #c9c5bc;
}

/* =========================
   GENERAL TEXT
   ========================= */

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #aaa69d;
  text-align: center;
}

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

/* =========================
   PROJECT GRID
   ========================= */

main {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 3rem;
  align-items: start;
}

/* =========================
   PROJECT CARDS
   ========================= */

.project {
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: #172342;
  border: 2px solid #f4f0e6;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  text-align: center;
}

.project-number {
  color: #aaa69d;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.project h2 {
  margin: 0 0 0.4rem;
}

.project-subtitle {
  color: #c9c5bc;
  margin-bottom: 0.5rem;
}

.project .meta {
  color: #aaa69d;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem;
}

figure {
  margin: 1.5rem 0;
}

img,
video,
iframe {
  width: 100%;
  display: block;
}

video {
  border-radius: 10px;
  background: #111;
}

iframe {
  border: none;
  border-radius: 10px;
}

figcaption {
  color: #aaa69d;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* =========================
   PROJECT PROCESS
   ========================= */

.project-process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.project-process > div {
  padding-top: 1rem;
  border-top: 1px solid #34415e;
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #aaa69d;
  margin-bottom: 0.4rem;
}

.project-process p {
  color: #d4d0c7;
  font-size: 0.9rem;
}

/* =========================
   BACK TO TOP
   ========================= */

.back-to-top {
  width: 100%;
  margin: 3rem auto 0;
  text-align: center;
}

.back-to-top a {
  display: inline-block;
  font-family: inherit;
  color: #aaa69d;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-align: center;
}

.back-to-top a:hover {
  color: #f4f0e6;
}

/* =========================
   WHAT I MAKE
   ========================= */

.pattern-section {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
}

.pattern-section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: left;
}

.pattern-item {
  padding: 1.5rem;
  border: 1px solid #2c3957;
  border-radius: 15px;
  background: #172342;
}

.pattern-project {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #aaa69d;
  margin-bottom: 0.75rem;
}

.pattern-item strong {
  display: block;
  margin-bottom: 0.5rem;
}

.pattern-item p {
  color: #c9c5bc;
  font-size: 0.9rem;
}

.pattern-summary {
  max-width: 600px;
  margin: 3rem auto 0;
  font-size: 1.1rem;
  color: #d4d0c7;
}

/* =========================
   ABOUT
   ========================= */

.info-section {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 3rem auto;
  text-align: center;
  padding: 5rem 2rem;
}

.info-section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.about-lede {
  font-size: 1.3rem;
  color: #d4d0c7;
  margin-bottom: 1.5rem;
}

/* =========================
   CONTACT
   ========================= */

.contact-section {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
}

.contact-section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.contact-section a {
  color: #f4f0e6;
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-section a:hover {
  opacity: 0.6;
}

/* =========================
   FOOTER
   ========================= */

footer {
  margin: 5rem 0 2rem;
  text-align: center;
  color: #aaa69d;
  font-size: 0.9rem;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
  body {
    padding: 1.5rem;
  }

  .site-nav {
    margin-bottom: 4rem;
  }

  .nav-links {
    gap: 1rem;
  }

  main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project {
    padding: 1.5rem;
  }

  .pattern-section,
  .info-section,
  .contact-section {
    grid-column: 1;
  }

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

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .project-process {
    grid-template-columns: 1fr;
  }

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

  .hero {
    margin-bottom: 4rem;
  }
}

/* =========================
   PDF VIEWER
   ========================= */

.project iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  background: white;
}

/* Make PDF viewer more phone-friendly */
@media (max-width: 600px) {
  .project iframe {
    height: 450px;
  }

  .project figure {
    margin-left: 0;
    margin-right: 0;
  }
}
