* {
  box-sizing: border-box;
}

:root {
  --ink: #171717;
  --paper: #f5f1e9;
  --cream: #eee7da;
  --white: #fffdf8;
  --muted: #6d6a63;
  --line: rgba(23, 23, 23, .14);
  --accent: #d95b39;
  --blue: #53758a;
  --green: #63765b;
  --yellow: #e7c66d;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}


/* TOP BAR */

.announcement {
  min-height: 38px;
  padding: 9px 5vw;
  display: flex;
  justify-content: center;
  gap: 24px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
}

.announcement a {
  opacity: .65;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 233, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1380px;
  margin: auto;
  min-height: 82px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--ink);
  transition: right .25s ease;
}

.main-nav a:hover::after {
  right: 0;
}

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

.icon-button,
.menu-button,
.cart-button {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.icon-button {
  font-size: 26px;
}

.cart-button {
  border: 1px solid var(--line);
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
}

.cart-button span {
  margin-left: 5px;
}

.menu-button {
  display: none;
  font-size: 22px;
}


/* HERO */

.hero {
  max-width: 1380px;
  min-height: 650px;
  margin: auto;
  padding: 70px 5vw;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.hero-copy {
  max-width: 570px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

h1 {
  margin: 0;
  font-size: clamp(55px, 7vw, 100px);
  line-height: .91;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-text {
  max-width: 470px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 14px 21px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.text-link {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}


/* HERO ART */

.hero-art {
  position: relative;
  min-height: 500px;
  background: var(--cream);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  right: -80px;
  top: -100px;
  background: var(--yellow);
}

.hero-art::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  left: -110px;
  bottom: -120px;
  background: var(--blue);
}

.hero-card {
  position: absolute;
  z-index: 2;
  padding: 25px;
  color: white;
}

.hero-card span {
  display: block;
  margin-bottom: 35px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero-card strong {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: .95;
}

.card-one {
  left: 10%;
  top: 17%;
  width: 215px;
  height: 250px;
  background: var(--blue);
  transform: rotate(-5deg);
}

.card-two {
  right: 11%;
  bottom: 12%;
  width: 240px;
  height: 205px;
  background: var(--accent);
  transform: rotate(5deg);
}

.hero-circle {
  position: absolute;
  z-index: 3;
  left: 44%;
  top: 42%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 700;
}


/* TRUST */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 27px 5vw;
  gap: 20px;
}

.trust-strip div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.trust-strip strong {
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 11px;
}


/* SECTIONS */

.section {
  max-width: 1380px;
  margin: auto;
  padding: 110px 5vw;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .95;
}


/* CATEGORIES */

.category-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 14px;
}

.category-art {
  min-height: 390px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .3s ease;
}

.category:hover .category-art {
  transform: translateY(-5px);
}

.category-art span {
  font-size: 10px;
  font-weight: 700;
}

.category-art strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .9;
}

.art-home {
  background: #c9b59b;
}

.art-gifts {
  background: var(--yellow);
}

.art-makers {
  background: var(--blue);
  color: white;
}


/* PRODUCTS */

.products-section {
  padding-top: 20px;
}

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

.filter {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  min-width: 0;
}

.product-image {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-amber {
  background: #d6b89b;
}

.product-blue {
  background: #9bb4bd;
}

.product-red {
  background: #c96e59;
}

.product-green {
  background: #a9b59c;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 8px;
  background: var(--white);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-object {
  position: relative;
  transition: transform .3s ease;
}

.product-card:hover .product-object {
  transform: translateY(-7px) rotate(2deg);
}


/* FAKE PRODUCT OBJECTS */

.object-candle {
  width: 120px;
  height: 155px;
  border-radius: 8px 8px 18px 18px;
  background: #e9d8b7;
}

.object-candle::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 20px;
  left: 58px;
  top: -18px;
  background: #171717;
}

.object-mug {
  width: 145px;
  height: 125px;
  border-radius: 8px 8px 38px 38px;
  background: #f3e9d8;
}

.object-mug::after {
  content: "";
  position: absolute;
  right: -47px;
  top: 24px;
  width: 55px;
  height: 65px;
  border: 18px solid #f3e9d8;
  border-left: 0;
  border-radius: 0 40px 40px 0;
}

.object-print {
  width: 180px;
  height: 225px;
  background: #f3e9d8;
  box-shadow: 16px 16px 0 rgba(23,23,23,.16);
}

.object-print::after {
  content: "H";
  position: absolute;
  left: 45%;
  top: 40%;
  font-family: "Playfair Display", serif;
  font-size: 75px;
  color: var(--accent);
}

.object-vase {
  width: 115px;
  height: 185px;
  background: #e9e1ce;
  border-radius: 35% 35% 46% 46%;
}

.object-vase::before {
  content: "";
  position: absolute;
  left: 35px;
  top: -35px;
  width: 45px;
  height: 55px;
  background: #e9e1ce;
  border-radius: 50% 50% 10px 10px;
}


/* PRODUCT INFO */

.product-info {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0 12px;
}

.product-info h3 {
  margin: 0;
  font-size: 14px;
}

.product-info p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.product-info > strong {
  white-space: nowrap;
  font-size: 13px;
}

.add-button {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.add-button:hover {
  background: var(--ink);
  color: white;
}


/* MAKERS */

.maker-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--ink);
  color: white;
}

.maker-image {
  position: relative;
  min-height: 500px;
  background: var(--green);
  overflow: hidden;
}

.maker-image::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border: 70px solid rgba(255,255,255,.12);
  border-radius: 50%;
  left: -100px;
  top: -70px;
}

.maker-stamp {
  position: absolute;
  right: 9%;
  top: 10%;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  transform: rotate(12deg);
}

.maker-display {
  position: absolute;
  left: 12%;
  bottom: 13%;
}

.maker-display span {
  font-size: 12px;
  letter-spacing: .16em;
}

.maker-display strong {
  display: block;
  margin-top: 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 6vw, 90px);
  line-height: .82;
}

.maker-copy {
  max-width: 620px;
  padding: 100px 9vw;
  align-self: center;
}

.maker-copy .eyebrow {
  color: #bdbab2;
}

.maker-copy h2 {
  margin: 0 0 25px;
  font-size: clamp(45px, 5vw, 72px);
  line-height: .95;
}

.maker-copy > p:not(.eyebrow) {
  max-width: 480px;
  margin-bottom: 35px;
  color: #c4c1b9;
  font-size: 16px;
}


/* LOCAL COMMERCE */

.local-section {
  max-width: none;
  background: var(--white);
  padding-left: max(5vw, calc((100vw - 1380px) / 2));
  padding-right: max(5vw, calc((100vw - 1380px) / 2));
}

.section-intro {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.local-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.local-card {
  min-height: 250px;
  padding: 35px;
  background: var(--white);
}

.number {
  display: block;
  margin-bottom: 55px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.local-card h3 {
  max-width: 300px;
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  line-height: 1;
}

.local-card p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}


/* NEWSLETTER */

.newsletter {
  max-width: 1380px;
  margin: auto;
  padding: 100px 5vw;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: .95;
}

.newsletter-form {
  display: flex;
  width: min(470px, 100%);
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--ink);
  border-right: 0;
  background: transparent;
  padding: 14px 16px;
  outline: none;
}


/* FOOTER */

.footer {
  padding: 45px 5vw 30px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  background: var(--ink);
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  border-color: white;
}

.footer-brand strong {
  font-family: "Playfair Display", serif;
}

.footer-brand p,
.copyright {
  margin: 4px 0 0;
  color: #99978f;
  font-size: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
}

.copyright {
  text-align: right;
}


/* CART */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
}

.cart-drawer.open {
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .25s ease;
}

.cart-drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(430px, 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .3s ease;
}

.cart-drawer.open .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  font-size: 30px;
}

.drawer-header button,
.search-box > button {
  border: 0;
  background: transparent;
  font-size: 28px;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 20px 0;
}

.empty-cart {
  color: var(--muted);
  font-size: 13px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.cart-row small {
  display: block;
  color: var(--muted);
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.checkout-button {
  width: 100%;
}

.cart-footer small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}


/* SEARCH */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: start center;
  padding-top: 18vh;
  background: rgba(23,23,23,.72);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  position: relative;
  width: min(680px, calc(100% - 40px));
  padding: 40px;
  background: var(--white);
}

.search-box > button {
  position: absolute;
  top: 15px;
  right: 18px;
}

.search-box input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 12px 0;
  font-size: 28px;
  outline: none;
}

.search-note {
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
}


/* TABLET */

@media (max-width: 950px) {

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 82px;
    padding: 25px 5vw;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

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

  .maker-feature {
    grid-template-columns: 1fr;
  }

  .newsletter,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .copyright {
    text-align: left;
  }
}


/* MOBILE */

@media (max-width: 650px) {

  .announcement {
    font-size: 9px;
  }

  .announcement a {
    display: none;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 60px 5vw;
  }

  h1 {
    font-size: 58px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-art {
    min-height: 370px;
  }

  .card-one {
    width: 165px;
    height: 190px;
  }

  .card-two {
    width: 190px;
    height: 165px;
  }

  .hero-card strong {
    font-size: 23px;
  }

  .hero-circle {
    width: 75px;
    height: 75px;
  }

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

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

  .category-large {
    grid-column: 1 / -1;
  }

  .category-art {
    min-height: 260px;
  }

  .product-grid,
  .local-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 360px;
  }

  .local-card {
    min-height: 220px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }

  .newsletter-form .button {
    width: 100%;
  }
}

