:root {
  --bg: #fffdf8;
  --black: #000;
  --white: #fff;
  --font: 'Inter', sans-serif;

  --content-width: 1000px;
  --page-padding: 24px;

  --project-gap: 32px;
  --section-spacing: 72px;
}


/* =========================================================
   Base
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   Layout
========================================================= */

.container {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--content-width)
  );

  margin-inline: auto;
}


/* =========================================================
   Header
========================================================= */

.site-header {
  padding: 24px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  font-size: 20px;
  font-weight: 400;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__nav > a:first-child {
  font-size: 16px;
  font-weight: 500;
}


/* =========================================================
   Buttons
========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  border-radius: 20px;

  font-size: 16px;
  line-height: 1;
  font-weight: 700;

  white-space: nowrap;
}

.button--primary {
  background: var(--black);
  color: var(--white);
}

.button--secondary {
  border: 1px solid var(--black);
  background: var(--bg);
  color: var(--black);
}


/* =========================================================
   Hero
========================================================= */

.hero {
  padding: 104px 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__portrait {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.hero__title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 400;
}

.hero__intro {
  max-width: 100%;
  font-size: 28px;
  line-height: 1.36;
  font-weight: 500;
}


/* =========================================================
   Work
========================================================= */

.work {
  padding-bottom: 0;
}

.section-title {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}


/* =========================================================
   Project cards
========================================================= */

.project-card {
  padding: var(--section-spacing) 0;
}

.project-card__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--project-gap);
}

.project-card__media {
  width: calc(50% - 16px);
  flex: 0 1 calc(50% - 16px);

  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card__content {
  flex: 1 1 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;

  min-width: 0;
}

.project-card__title {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
}

.project-card__description {
  font-size: 20px;
  line-height: 1.9;
  font-weight: 500;
}


/* =========================================================
   Skills
========================================================= */

.skills {
  padding: 80px 0;
}

.skills__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
}

.skill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  white-space: nowrap;

  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}

.skill img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
  padding: 0 0 32px;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.site-footer__name {
  font-size: 20px;
  font-weight: 400;
}

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 24px;

  font-size: 16px;
  font-weight: 500;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {

  :root {
    --page-padding: 16px;
    --project-gap: 24px;
    --section-spacing: 40px;
  }

  .site-header {
    padding: 16px 0;
  }

  .site-header__nav {
    gap: 12px;
  }

  .site-header__nav > a:first-child {

    font-size: 14px;

  }

  .site-header__nav .button {

    font-size: 14px;

    padding: 9px 12px;

  }


  .hero {
    padding: 72px 0;
  }

  .hero__portrait {
    width: 64px;
    height: 64px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__intro {
    font-size: 20px;
    line-height: 1.5;
  }

  .section-title {
    font-size: 24px;
  }

  .project-card__inner {
    flex-direction: column;
  }

  .project-card__media {
    width: 100%;
    flex: none;
  }

  .project-card__content {
    width: 100%;
    flex: none;
  }

  .project-card__title {
    font-size: 22px;
    line-height: 1.35;
  }

  .project-card__description {
    font-size: 17px;
    line-height: 1.65;
  }

  .skills {
    padding: 56px 0;
  }

  .skills__inner {
    justify-content: flex-start;
    gap: 14px 20px;
  }

  .skill {
    font-size: 26px;
  }

  .skill img {
    width: 30px;
    height: 30px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 16px;
  }

  .site-footer__contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

}

@media (max-width: 480px) {

  .hero__title {
    font-size: 30px;
  }

  .hero__intro {
    font-size: 18px;
  }

}


/* =========================================================
   Case study template
========================================================= */

.case-study {
  width: 100%;
}

.case-study-hero {
  padding: 72px 0 80px;
}


.case-study__title {
  max-width: 1000px;
  margin-bottom: 28px;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.98;
  font-weight: 700;
  text-align:center;
}

.case-study__lead {
  max-width: 1000px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 100;
  text-align:center;
  font-style: italic;
}

.case-study__hero-media {
  margin-top: 72px;
}

.case-study__hero-media img {
  width: 100%;
  height: auto;
  display: block;
}


/* Sections */

.case-study-section {
  padding-bottom: 88px;
}

.case-study-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 64px;
}

.case-study-section__label h2,
.case-study-results h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.case-study-section__content p {
  font-size: 21px;
  line-height: 1.7;
}

.case-study-section__content p + p {
  margin-top: 24px;
}


/* Results */

.case-study-results {
  padding: 88px 0;
  background: var(--black);
  color: var(--white);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result strong {
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1;
  font-weight: 700;
  color:yellow
}

.result span {
  font-size: 18px;
  line-height: 1.5;
}


/* Media */

.case-study-media {
  padding: 40px 0 88px;
}

.case-study-media img {
  width: 100%;
  height: auto;
}


/* Takeaway */

.case-study-takeaway {
  padding-bottom: 60px;
}

.case-study-takeaway p {
  max-width: 900px;
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
  font-style: italic;
}


/* Mobile */

@media (max-width: 768px) {

  .case-study-hero {
    padding: 56px 0 48px;
  }

  .case-study__hero-media {
    margin-top: 48px;
  }

  .case-study-section {
    padding: 30px 0;
  }

  .case-study-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-study-section__content p {
    font-size: 18px;
    line-height: 1.65;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }

  .case-study-media {
    padding: 24px 0 0px;
  }

  .case-study-takeaway {
    padding: 30px 0;
  }

}