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

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

:root {
  --groundup-red: #B8293D;
  --groundup-red-light: #D4435A;
  --groundup-dark: #1A1A18;
  --groundup-mid: #2E2E2A;
  --groundup-body: #3D3D38;
  --groundup-subtle: #78776E;
  --groundup-border: #D6D2C8;
  --groundup-cream: #F5F3ED;
  --groundup-warm-white: #FDFCF9;
  --article-width: 680px;
  --wide-width: 1080px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background: var(--groundup-cream);
  color: var(--groundup-dark);
  font-family: 'Inter', sans-serif;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(184, 41, 61, 0.15);
  color: var(--groundup-dark);
}

/* ============================
   mastead
   ============================ */

.masthead {
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  border-bottom: 1px solid var(--groundup-border);
  backdrop-filter: blur(16px);
  background: rgba(245, 243, 237, 0.96);
}

.masthead__logo {
  height: 26px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.masthead__logo:hover {
  opacity: 1;
}

.masthead__series {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--groundup-subtle);
}

/* ================
   hero
   ==============*/

.hero {
  width: 100%;
  background: var(--groundup-dark);
}

.hero__image-wrap {
  width: 100%;
  line-height: 0;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.02) saturate(0.88);
}

.hero__content {
  padding: clamp(40px, 5vw, 64px) clamp(28px, 6vw, 80px) clamp(52px, 7vw, 88px);
}

.hero__series-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--groundup-red);
  display: inline-block;
  padding: 5px 12px 4px;
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero__byline {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__byline-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__byline-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.hero__byline-sep {
  height: 1px;
  width: 28px;
  background: rgba(255,255,255,0.2);
}

.article {
  padding: 72px 28px 64px;
}

.article__inner {
  max-width: var(--article-width);
  margin: 0 auto;
}


.article__intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: var(--groundup-mid);
  border-left: 3px solid var(--groundup-red);
  padding-left: 28px;
  margin-bottom: 64px;
  max-width: 600px;
}

/* ============================
   all inline images
   ============================ */

.fig-full {
  width: 100%;
  max-width: 100%;
  margin: 56px calc(-1 * ((min(100vw, var(--wide-width)) - var(--article-width)) / 2 + 28px));
  width: calc(var(--article-width) + (min(100vw, var(--wide-width)) - var(--article-width)));
  max-width: calc(100vw - 48px);
}

.fig-full img,
.fig-inline img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.fig-inline {
  margin: 52px 0;
}

.fig-inline--right {
  float: right;
  width: 48%;
  margin: 6px 0 28px 36px;
  clear: right;
}

.fig-inline--left {
  float: left;
  width: 48%;
  margin: 6px 36px 28px 0;
  clear: left;
}

figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  font-style: italic;
  color: var(--groundup-subtle);
  line-height: 1.55;
  padding: 12px 0 0;
  border-top: 1px solid var(--groundup-border);
  margin-top: 12px;
}

figcaption strong {
  color: var(--groundup-mid);
  font-weight: 600;
  font-style: normal;
}

/* ============================
   Q&A section
   ============================ */

.qa-section {
  margin-top: 12px;
}

.qa-block {
  margin-bottom: 44px;
}

.qa-block + .qa-block {
  padding-top: 44px;
  border-top: 1px solid var(--groundup-border);
}

.question {
  font-family: 'Inter', sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  font-style: italic;
  color: var(--groundup-dark);
  line-height: 1.45;
  margin-bottom: 18px;
}

.question::before {
  content: "Q.";
  color: var(--groundup-red);
  font-style: normal;
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  margin-right: 10px;
}

.answer {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.82;
  color: var(--groundup-body);
  margin-bottom: 14px;
  padding-left: 0;
  hanging-punctuation: first;
}

.answer:first-of-type {
  position: relative;
}

.answer:first-of-type::before {
  content: none;
}

/* ============================
   pull quote
   ============================ */

.pullquote {
  margin: 64px 0;
  padding: 48px 0;
  position: relative;
  text-align: center;
  border-top: 1px solid var(--groundup-border);
  border-bottom: 1px solid var(--groundup-border);
}

.pullquote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--groundup-red);
}

.pullquote__text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  color: var(--groundup-dark);
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 580px;
  margin: 0 auto;
}

.pullquote__text::before {
  content: "\201C";
  color: var(--groundup-red);
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 2px;
  font-style: normal;
  font-weight: 400;
}

.pullquote__text::after {
  content: "\201D";
  color: var(--groundup-red);
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  line-height: 0;
  vertical-align: -0.5em;
  margin-left: 2px;
  font-style: normal;
  font-weight: 400;
}

/* ============================
   gu footer
   ============================ */

.article-footer {
  max-width: var(--article-width);
  margin: 72px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--groundup-dark);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.article-footer__icon {
  height: 32px;
  width: auto;
  opacity: 0.75;
  margin-top: 2px;
}

.article-footer__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--groundup-subtle);
  line-height: 1.6;
}

.article-footer__text em {
  font-style: italic;
}

.article-footer__text a {
  color: var(--groundup-red);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-footer__text a:hover {
  border-bottom-color: var(--groundup-red);
}

.page-footer {
  background: var(--groundup-warm-white);
  padding: 48px 36px;
  text-align: center;
  margin-top: 96px;
  border-top: 1px solid var(--groundup-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.page-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  max-width: 720px;
}

.page-footer a {
  font-family: 'Inter', sans-serif;
  color: var(--groundup-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
  cursor: pointer;
}

.page-footer a:hover {
  color: var(--groundup-red-light);
  text-decoration-thickness: 3px;
}

.page-footer__about {
  margin-top: 8px;
  font-style: italic;
  font-size: 0.95rem;
}

.page-footer__logo {
  margin-top: 12px;
  border-bottom: none !important;
}

.page-footer__logo img {
  height: 24px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: block;
}

.page-footer__logo:hover img {
  opacity: 1;
}

/* ============================
   landing page
   ============================ */

.landing-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--groundup-dark) 0%, var(--groundup-mid) 100%);
  color: white;
}

.landing-hero__background {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(184, 41, 61, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 67, 90, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.landing-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(40px, 5vw, 80px) clamp(20px, 4vw, 40px);
  max-width: 900px;
}

.landing-hero__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(184, 41, 61, 0.4);
  border-radius: 20px;
}

.landing-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.landing-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.landing-hero__description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto;
}

.landing-main {
  background: var(--groundup-cream);
  padding: 72px 28px;
}

.portraits-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.portraits-grid__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--groundup-dark);
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

.portraits-grid__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 96px;
}

/* Portrait Card */
.portrait-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portrait-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.portrait-card__link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.portrait-card__link:focus-visible {
  outline: 3px solid var(--groundup-red);
  outline-offset: 2px;
}

.portrait-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: var(--groundup-border);
}

.portrait-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.portrait-card__link:hover .portrait-card__image {
  transform: scale(1.05);
}

.portrait-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 24, 0.4);
  backdrop-filter: blur(4px);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  text-transform: uppercase;
}

.portrait-card__link:hover .portrait-card__overlay {
  background: rgba(184, 41, 61, 0.9);
  backdrop-filter: blur(0px);
}

.portrait-card__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portrait-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--groundup-dark);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.portrait-card__description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--groundup-subtle);
  line-height: 1.5;
  flex-grow: 1;
}

/* About Project Section */
.about-project {
  background: white;
  padding: 72px 28px;
  margin-top: 96px;
  border-top: 1px solid var(--groundup-border);
}

.about-project__inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-project__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--groundup-dark);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.about-project__text {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--groundup-body);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-project__text strong {
  color: var(--groundup-dark);
  font-weight: 600;
}

.about-project__link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--groundup-red);
  text-decoration: none;
  margin-top: 20px;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.5px;
}

.about-project__link:hover {
  border-bottom-color: var(--groundup-red);
  color: var(--groundup-red-light);
}

.about-project__link:focus-visible {
  outline: 2px solid var(--groundup-red);
  outline-offset: 4px;
}

/* ============================
   responsive landing
   ============================ */

@media (max-width: 860px) {
  .landing-main {
    padding: 56px 20px;
  }
  
  .portraits-grid__container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
  }

  .about-project {
    padding: 56px 20px;
  }
}

@media (max-width: 560px) {
  .landing-hero {
    min-height: 50vh;
  }

  .landing-hero__label {
    font-size: 0.65rem;
  }

  .landing-hero__title {
    margin-bottom: 12px;
  }

  .landing-hero__description {
    font-size: 0.95rem;
  }

  .landing-main {
    padding: 44px 16px;
  }

  .portraits-grid__title {
    margin-bottom: 44px;
  }

  .portraits-grid__container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 64px;
  }

  .portrait-card__content {
    padding: 16px;
  }

  .portrait-card__name {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .portrait-card__description {
    font-size: 0.85rem;
  }

  .about-project {
    padding: 44px 16px;
    margin-top: 64px;
  }

  .about-project__title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .about-project__text {
    font-size: 1rem;
  }
}

/* ============================
   responsive
   TODO: fix on smaller screens;
   currently: still able to horizontally scroll, and some elements overflow the viewport width
   ============================ */

@media (max-width: 860px) {
  .fig-inline--right,
  .fig-inline--left {
    float: none;
    width: 100%;
    margin: 44px 0;
  }

  .pullquote {
    margin: 52px 0;
    padding: 40px 0;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 17px;
  }

  .masthead {
    padding: 0 16px;
    height: 48px;
  }

  .masthead__series {
    display: none;
  }

  .article {
    padding: 44px 20px;
  }

  .article__intro {
    font-size: 1.25rem;
    padding-left: 20px;
  }

  .question {
    font-size: 1.15rem;
  }

  .pullquote {
    margin: 40px 0;
    padding: 32px 0;
  }

  .pullquote__text {
    font-size: 1.3rem;
  }

  .hero__content {
    padding: 28px 24px 40px;
  }
}

/* ============================
   the lightbox
   ============================ */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,9,0.96);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  animation: lbScale 0.3s ease;
}

@keyframes lbScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  opacity: 0.5;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 8px 12px;
}

.lightbox-close:hover {
  opacity: 1;
}
