:root {
  --paper: #f8f4f1;
  --ink: #2d2624;
  --muted: #6e625f;
  --rose: #c48aa7;
  --rose-deep: #a56886;
  --gold: #f3be34;
  --line: #ded5d0;
  --white: #fffdfb;
  --shadow: 0 20px 50px rgba(54, 42, 38, 0.1);
  --display-font: "Bogart", "Bogart Alt", Fraunces, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(22px, 6vw, 80px) 16px;
  background: rgba(248, 244, 241, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-word {
  font-family: "Homemade Apple", cursive;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  line-height: 1;
}

.flower {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0, var(--gold) 0 18%, transparent 20%),
    radial-gradient(circle at 100% 50%, var(--gold) 0 18%, transparent 20%),
    radial-gradient(circle at 50% 100%, var(--gold) 0 18%, transparent 20%),
    radial-gradient(circle at 0 50%, var(--gold) 0 18%, transparent 20%),
    radial-gradient(circle at 22% 22%, var(--gold) 0 16%, transparent 18%),
    radial-gradient(circle at 78% 22%, var(--gold) 0 16%, transparent 18%),
    radial-gradient(circle at 78% 78%, var(--gold) 0 16%, transparent 18%),
    radial-gradient(circle at 22% 78%, var(--gold) 0 16%, transparent 18%);
}

.flower span {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: #403734;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  white-space: nowrap;
}

.nav a.active::after,
.nav a:hover::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: var(--rose);
  content: "";
}

.canvas-page {
  min-height: calc(100vh - 95px);
  padding: clamp(42px, 7vw, 86px) clamp(22px, 7vw, 88px);
  scroll-margin-top: 95px;
}

.work-page {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
}

.hero-copy {
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 4.35vw, 3.45rem);
  font-variation-settings: "SOFT" 70, "WONK" 0;
  font-weight: 500;
  line-height: 1.14;
}

.hero-copy em,
.about-copy em {
  color: var(--rose);
  font-style: italic;
}

.hero-copy u {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.amp {
  font-family: Georgia, serif;
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.filter {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #3c3431;
  cursor: pointer;
  padding: 4px 0 7px;
  text-align: left;
}

.filter.active,
.filter:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.3vw, 36px);
}

.work-card {
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card a {
  display: grid;
  gap: 12px;
}

.work-card img,
.color-tile {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  background: var(--white);
  box-shadow: var(--shadow);
}

.color-tile {
  display: block;
  background: linear-gradient(135deg, #1f5f43, #0f3e2e 55%, #f8f4f1);
}

.work-card strong {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(1.32rem, 2.2vw, 1.88rem);
  font-variation-settings: "SOFT" 70, "WONK" 0;
  font-weight: 500;
  line-height: 1.05;
}

.work-card small {
  color: var(--muted);
  font-size: 0.88rem;
}

.work-card:hover {
  transform: translateY(-4px);
}

.about-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.about-photo img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-copy h2,
.concept-page h2,
.brand-detail-page h2,
.contact h2 {
  margin: 0 0 22px;
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-variation-settings: "SOFT" 70, "WONK" 0;
  font-weight: 500;
  line-height: 0.98;
}

.about-copy p {
  max-width: 680px;
  margin: 0 0 20px;
}

.about-copy a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.image-page {
  display: grid;
  place-items: center;
}

.image-page img {
  width: min(100%, 1025px);
  max-height: calc(100vh - 190px);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.duplicate-study img {
  width: min(100%, 1025px);
}

.concept-page,
.brand-detail-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-content: start;
  align-items: start;
}

.concept-page {
  padding-top: clamp(80px, 10vw, 132px);
}

.eyebrow {
  margin: 0 0 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.concept-page p:not(.eyebrow),
.brand-detail-page p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.brand-detail-page img {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-header {
  position: static;
  padding: 72px clamp(34px, 6vw, 88px) 18px;
  background: var(--paper);
  backdrop-filter: none;
}

.project-header .brand-word {
  font-size: clamp(1.55rem, 3.3vw, 2.45rem);
}

.project-header .flower {
  width: 34px;
  height: 34px;
}

.coffee-project {
  padding: clamp(76px, 11vw, 172px) clamp(22px, 10vw, 136px) clamp(76px, 10vw, 132px);
}

.coffee-project img {
  width: 100%;
}

.coffee-hero {
  max-width: 1094px;
  margin: 0 auto;
}

.coffee-hero > img {
  aspect-ratio: 1094 / 622;
  object-fit: cover;
}

.coffee-overview {
  display: grid;
  grid-template-columns: minmax(160px, 0.62fr) minmax(0, 1fr);
  gap: clamp(34px, 8vw, 126px);
  align-items: end;
  margin: clamp(26px, 3.8vw, 44px) auto 0;
  padding-inline: clamp(16px, 1.8vw, 34px);
}

.coffee-overview h1 {
  margin: 0 0 16px;
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 4.1vw, 4rem);
  font-variation-settings: "SOFT" 70, "WONK" 0;
  font-weight: 500;
  line-height: 1;
}

.coffee-overview p {
  max-width: 650px;
  margin: 0;
}

.coffee-tags {
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.45;
}

.coffee-showcase,
.coffee-sign,
.coffee-cups {
  max-width: 1094px;
  margin-inline: auto;
}

.coffee-showcase {
  margin-top: clamp(72px, 10vw, 134px);
}

.coffee-showcase img {
  aspect-ratio: 1094 / 622;
  object-fit: cover;
}

.coffee-sign {
  display: grid;
  grid-template-columns: minmax(260px, 530px) 1fr;
  margin-top: clamp(96px, 16vw, 220px);
}

.coffee-sign img {
  grid-column: 1;
  aspect-ratio: 530 / 654;
  object-fit: cover;
}

.coffee-cups {
  margin-top: clamp(120px, 18vw, 260px);
  max-width: 926px;
}

.coffee-cups img {
  aspect-ratio: 926 / 522;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(34px, 6vw, 80px);
  padding: clamp(70px, 10vw, 124px) clamp(22px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(196, 138, 167, 0.08), transparent 35%),
    var(--paper);
}

.script {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-family: "Homemade Apple", cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.contact-intro p {
  max-width: 470px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 14px 15px;
  outline: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196, 138, 167, 0.16);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form button {
  justify-self: start;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  padding: 12px 42px;
  transition: background 180ms ease, color 180ms ease;
}

.contact-form button:hover {
  background: transparent;
  color: var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 7vw, 88px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .about-page,
  .concept-page,
  .brand-detail-page,
  .contact {
    grid-template-columns: 1fr;
  }

  .image-page img,
  .brand-detail-page img {
    max-height: none;
  }

  .project-header {
    padding-top: 34px;
  }

  .coffee-project {
    padding-top: 64px;
  }

  .coffee-overview,
  .coffee-sign {
    grid-template-columns: 1fr;
  }

  .coffee-overview {
    align-items: start;
    padding-inline: 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-top: 20px;
  }

  .nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .canvas-page {
    min-height: auto;
    padding-block: 48px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    line-height: 1.13;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }

  .work-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .work-card img,
  .color-tile {
    aspect-ratio: 4 / 3;
  }

  .about-copy h2,
  .concept-page h2,
  .brand-detail-page h2,
  .contact h2 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .footer {
    flex-direction: column;
  }

  .coffee-project {
    padding-inline: 22px;
  }

  .coffee-showcase,
  .coffee-sign,
  .coffee-cups {
    margin-top: 72px;
  }
}
