@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: #ffffff;
  padding: 36px;
  text-align: center;
  margin-top: 96px;
  border-top: 1px solid var(--groundup-border);
}

.page-footer img {
  height: 20px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s;
}

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

/* ============================
   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;
}
