/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --background-color: #FFFFFB;
  --text-color: #000000;
  --white: #FFFFFF;
  --grey-tag: rgba(0, 0, 0, 0.1);
  --shadow-card: 0px 4px 4px 3px rgba(0, 0, 0, 0.05);
  --radius: 9px;
  --radius-tag: 100px;
  --border: 1px solid #000;
  /* Pico CSS overrides */
  --pico-font-family-sans-serif: 'Bricolage Grotesque', system-ui, sans-serif;
  --pico-font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  --pico-font-family-headings: 'Bricolage Grotesque', system-ui, sans-serif;
}

/* Override Pico's [data-theme] scoped primary color */
[data-theme="light"], [data-theme="dark"] {
  --pico-primary: #000000;
  --pico-primary-hover: #000000;
  --pico-color: #000000;
}

/* ============================================================
   BASE
   ============================================================ */

html {
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 16px;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

strong, b {
  font-weight: 600;
}

a {
  color: var(--text-color);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Belt-and-suspenders: override Pico's [data-theme] link color */
[data-theme] a {
  color: var(--text-color);
}

a:hover {
  opacity: 0.65;
  transform: scale(1.01) translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
}

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

.site-title {
  font-weight: 700;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

nav a:hover {
  opacity: 1;
}

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

.hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.tagline {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 2rem;
  font-variation-settings: 'opsz' 14, 'wdth' 96;
}



.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.hero .tags {
  max-width: 60%;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-tag);
  padding: 4px 10px;
  font-size: 0.875rem;
  line-height: 1.75;
  white-space: nowrap;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

.tag--grey {
  background: var(--grey-tag);
  border-color: transparent;
}

.hero-intro {
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 760px;
  margin-bottom: 2rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding-top: 0;
  padding-bottom: 4rem;
}

.section-divider {
  display: block;
  width: 77px;
  height: 14px;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  max-width: 760px;
}

/* ============================================================
   FEATURED CARD
   ============================================================ */

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  min-height: 360px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.featured-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

.featured-card__company {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0 0 0.375rem;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  color: var(--text-color);
}

.featured-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  color: var(--text-color);
}

.featured-card__tldr {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-color);
}

.featured-card__meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.featured-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.featured-card__meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

.featured-card__meta-value {
  font-size: 1rem;
  font-weight: 500;
}

.featured-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.featured-card__visual {
  overflow: hidden;
}

.featured-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   CASE GRID
   ============================================================ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.case-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.case-card__company {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0 0 0.375rem;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  color: var(--text-color);
}

.case-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  color: var(--text-color);
}

.case-card__tldr {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  color: var(--text-color);
}

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
}

.case-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-card__meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

.case-card__meta-value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.case-card__footer {
  margin-top: 1.5rem;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */

.process-overview {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 2rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.process-item {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.process-item__num {
  font-size: 1rem;
  margin: 0;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

.process-item__icon {
  width: 60px;
  height: 60px;
}

.process-item__icon svg,
.process-item__icon img {
  width: 100%;
  height: 100%;
}

.process-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.process-item__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

.process-item__description {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-bio {
  font-size: 1rem;
  line-height: 1.7;
}

.about-resume {
  background: var(--white);
  border: 1px dashed var(--text-color);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}

.about-resume__heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  font-variation-settings: 'opsz' 14, 'wdth' 88;
}

.mini-resume {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.mini-resume__entry {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
}

.mini-resume__company {
  font-size: 0.875rem;
  font-weight: 600;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-style: normal;
}

.mini-resume__role {
  font-size: 0.875rem;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  opacity: 0.65;
}

.mini-resume__dates {
  font-size: 0.8125rem;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  text-align: right;
  white-space: nowrap;
  margin: 0;
  opacity: 0.5;
}

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

.page-footer {
  padding-top: 1.5rem;
  margin-top: 0;
  font-size: 0.875rem;
}

.heart {
  color: #E03B2A;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-out;
}

/* ============================================================
   PROJECT PAGE
   ============================================================ */

.project-header {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.project-company {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

.project-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  font-variation-settings: 'opsz' 14, 'wdth' 96;
}

.project-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-meta__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
}

.project-meta__value {
  font-size: 1rem;
}

.project-tldr {
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 60%;
  margin: 1.5rem 0 2rem;
  border-left: 3px solid var(--text-color);
  padding-left: 1.5rem;
}

/* ============================================================
   PROJECT CONTENT
   ============================================================ */

.project-content {
  padding-bottom: 4rem;
}

.project-content p,
.project-content h2,
.project-content h3,
.project-content h4,
.project-content ul,
.project-content ol {
  max-width: 60%;
}

.project-content img {
  display: block;
  max-width: 100%;
  margin: 0;
  border-radius: 9px;
  border: var(--border);
  cursor: zoom-in;
}

.project-content figure {
  margin: 0 0 1.5rem;
}

.project-content figcaption {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  opacity: 0.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__visual {
    min-height: 280px;
  }

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

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .tagline {
    font-size: 2.75rem;
  }

  .project-title {
    font-size: 2.75rem;
  }

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