@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@400;600&family=Work+Sans:wght@300..500&display=swap");

:root {
  --ink: #1f1f1f;
  --muted: #6f6f6f;
  --soft: #f4f1ed;
  --sand: #e5dfd7;
  --accent: #8ea5c7;
  --border: #e6e0d8;
  --shadow: 0 24px 40px rgba(31, 31, 31, 0.08);
  --section-gap: 140px;
  --project-gap: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff, var(--soft));
  line-height: 1.6;
}

body.serenity {
  background: #f5f1e6;
}

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

img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header__inner {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-left: 0;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: 0;
}

.nav a {
  color: #000000;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 320;
  font-synthesis: none;
  transition: font-weight 0.2s ease;
}

.nav a:hover {
  font-weight: 500;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--section-gap) 24px 20px;
}

.hero__copy {
  display: grid;
  gap: 0;
}

.hero__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(45px, 6vw, 69px);
  font-weight: 400;
  margin: 0 0 24px;
  margin-left: 0;
}

.hero__title-line {
  display: block;
}

.hero__title-line:first-child {
  font-family: "Inter", sans-serif;
  font-weight: 250;
}

.hero__title-line--italic {
  font-family: "Playfair Display", serif;
  font-style: italic;
  margin-top: -5px;
}

.hero__tags {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  margin-left: 0;
  font-size: 15px;
  color: #1f1f1f;
}

.hero__tag {
  background: #ffffff;
  border: 1px dashed #000000;
  border-radius: 999px;
  padding: 9px 17px;
  margin-right: -10px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.hero__tag:nth-child(2) {
  z-index: 2;
}

.hero__tag:nth-child(3) {
  z-index: 3;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  margin-right: 0;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 28px;
  color: #000000;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
  overflow: visible;
}

.header-icon svg {
  height: 22px;
  width: 22px;
  fill: currentColor;
  display: block;
  vertical-align: middle;
}

.header-icon:hover {
  color: #111111;
  opacity: 0.6;
  transform: translateY(-2px) scale(1.06);
}

.header-icon--behance svg {
  height: 22px;
  width: 28px;
}

.header-icon--behance {
  transform: translateY(2px);
}

.header-icon--email svg {
  height: 22px;
  width: 22px;
}

.header-icon--email {
  color: #000000;
  transform: translateY(2px);
}

.header-icon--email:hover {
  color: #9b9b9b;
}

.hero__divider {
  margin-top: var(--section-gap);
  height: 1px;
  background: var(--border);
}

.projects {
  display: grid;
  gap: 66px;
  padding: 40px 24px 100px;
}

.project-item {
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  display: block;
  min-height: 360px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  align-items: stretch;
  cursor: pointer;
}

.project-card--reverse {
  display: block;
}

.project-card--reverse .project-card__link {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.project-card--reverse .project-card__media {
  order: 2;
}

.project-card__media {
  background: linear-gradient(145deg, #f7f5f1, #efeae2);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  height: 100%;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.project-card__media img {
  transition: filter 0.3s ease;
}

.project-card__info {
  display: grid;
  gap: 14px;
  background: #ffffff;
  padding: 60px 40px;
  transition: background 0.3s ease;
  place-content: center;
  text-align: center;
  min-height: 100%;
  border: 1px solid transparent;
}

.project-card:hover .project-card__media img {
  filter: brightness(90%);
}
.project-card__link:hover .project-card__media img {
  filter: brightness(90%);
}

.project-card:hover .project-card__info {
  background: #c4c4c4;
}
.project-card__link:hover .project-card__info {
  background: #c4c4c4;
}

.project-card:hover {
  background: #c4c4c4;
}
.project-card__link:hover {
  background: #c4c4c4;
}

.project-card:hover {
  box-shadow: 0 24px 50px rgba(31, 31, 31, 0.12);
}

.project-card:hover .project-card__media,
.project-card:hover .project-card__info {
  border-color: #e3e3e3;
}
.project-card__link:hover .project-card__media,
.project-card__link:hover .project-card__info {
  border-color: #e3e3e3;
}

.project-card:hover .project-card__title {
  color: #111111;
}


.project-card__title {
  font-family: "Franklin Gothic URW", "Franklin Gothic", sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #000000;
  letter-spacing: 0.02em;
  text-transform: none;
}

.projects {
  margin-bottom: var(--section-gap);
}

.about {
  max-width: 1200px;
  margin: 0 auto var(--section-gap);
  padding: 0 24px;
  text-align: center;
  scroll-margin-top: 110px;
}

.about__title {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 24px;
}

.about__text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.about__media {
  max-width: 320px;
  margin: 50px auto 0px auto;
}

.about__image {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.contact {
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 40px 24px 20px;
  text-align: center;
}

.contact__title {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  margin-bottom: 32px;
}

.contact__form {
  display: grid;
  gap: 16px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.contact__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__input,
.contact__textarea {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: #9b9b9b;
}

.contact__submit {
  margin-top: 8px;
  justify-self: center;
  background: #1f1f1f;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.about__copy {
  color: var(--muted);
  display: grid;
  gap: 18px;
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer__inner {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  justify-content: flex-end;
}

.footer__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__inner {
  align-items: center;
}

.serenity-hero {
  max-width: 1000px;
  margin: var(--project-gap) auto 0;
  padding: 0 40px;
  text-align: center;
}

.serenity-hero__title {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.serenity-hero__subtitle {
  font-family: "Inter", "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #5f5f5f;
  max-width: 720px;
  margin: 15px auto var(--project-gap);
}

.serenity-wallpaper {
  max-width: 1000px;
  margin: 0 auto 120px;
  padding: 0 40px 60px;
}

.serenity-wallpaper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.serenity-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.serenity-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.serenity-showcase__panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.serenity-showcase__panel img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.serenity-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.serenity-section__heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-family: "Inter", sans-serif;
}

.serenity-section__heading span {
  height: 1px;
  background: #d7d0c6;
}

.serenity-section__heading h2 {
  font-size: 12px;
  font-weight: 500;
}

.serenity-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.serenity-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
}

.serenity-card img {
  border-radius: 12px;
}

.serenity-card p {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #4a4a4a;
}

.serenity-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.serenity-product {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
}

.serenity-product img {
  border-radius: 12px;
}

.serenity-product__meta {
  display: flex;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #4a4a4a;
}

@media (max-width: 900px) {
  .serenity-showcase__grid,
  .serenity-articles,
  .serenity-products {
    grid-template-columns: 1fr;
  }
}

.footer__label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 900px) {
  .project-card,
  .project-card--reverse {
    grid-template-columns: 1fr;
  }

  .project-card--reverse .project-card__media {
    order: 0;
  }

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

@media (max-width: 600px) {
  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
  }

  .nav {
    gap: 12px;
    margin-left: auto;
    flex-wrap: nowrap;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .nav a {
    font-size: 13px;
  }

  .header-icons {
    display: none;
  }

  .footer__inner {
    justify-content: center;
    padding: 20px 16px;
  }

  .footer__icons {
    justify-content: center;
    width: 100%;
  }

  body.serenity .serenity-hero__title {
    font-size: 26px !important;
  }

  body.serenity .serenity-hero__subtitle {
    font-size: 14px !important;
  }

  .projects {
    gap: 0;
    padding: 28px 0 0;
  }

  .project-item {
    max-width: none;
    width: 100%;
    margin-bottom: 60px;
  }

  .project-item:last-child {
    margin-bottom: 0;
  }

  .about {
    margin: 100px auto 60px;
  }

  .about__text {
    font-size: 16px;
  }

  .serenity-hero {
    margin: 48px auto 0;
    padding: 0 16px;
  }

  .serenity-hero__subtitle {
    margin: 12px auto 40px;
  }

  .serenity-wallpaper {
    margin: 0 auto 40px;
    padding: 0 16px 20px;
  }

  .project-card {
    min-height: auto;
  }

  .project-card__link,
  .project-card--reverse .project-card__link {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .project-card--reverse .project-card__media {
    order: 0;
  }

  .project-card__media {
    width: 100%;
  }

  .project-card__media img {
    width: 100%;
    height: auto;
  }

  body:not(.serenity) .project-card,
  body:not(.serenity) .project-card__link,
  body:not(.serenity) .project-card__info {
    background: transparent !important;
  }

  body:not(.serenity) .project-card__info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    padding: 0 16px;
    text-align: center;
    gap: 8px;
  }

  .project-card__title {
    width: auto;
    max-width: calc(100% - 32px);
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: pretty;
  }

  .project-card:hover .project-card__media img,
  .project-card__link:hover .project-card__media img,
  .project-card:hover .project-card__info,
  .project-card__link:hover .project-card__info,
  .project-card:hover,
  .project-card__link:hover,
  .project-card:hover .project-card__media,
  .project-card:hover .project-card__info,
  .project-card__link:hover .project-card__media,
  .project-card__link:hover .project-card__info,
  .project-card:hover .project-card__title {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    filter: none;
    color: inherit;
  }

  .project-card:hover .project-card__media img,
  .project-card__link:hover .project-card__media img {
    filter: none;
  }

  .project-card:hover .project-card__info,
  .project-card__link:hover .project-card__info,
  .project-card:hover,
  .project-card__link:hover {
    background: transparent;
    box-shadow: none;
  }
}
