@import "tailwindcss";

:root {
  --ink: #181713;
  --paper: #f7f4ed;
  --ivory: #fffdf8;
  --sage: #9da68c;
  --moss: #4f5b43;
  --sand: #d7c6ad;
  --lavender: #b9b0c2;
  --rust: #9a5f42;
  --line: rgba(24, 23, 19, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement {
  min-height: 34px;
  padding: 9px 28px;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: center;
  gap: 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  height: 84px;
  padding: 0 4.5vw;
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.95);
  backdrop-filter: blur(14px);
}

.wordmark {
  width: fit-content;
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
}

.wordmark span {
  font-size: 25px;
}

.wordmark small {
  margin-top: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.36em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a,
.text-button {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav a:hover,
.text-button:hover {
  border-color: var(--ink);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.cart-button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 118px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247, 244, 237, 0.98) 0%,
    rgba(247, 244, 237, 0.89) 35%,
    rgba(247, 244, 237, 0) 66%
  );
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(600px, 48vw);
  margin-left: 9vw;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(58px, 6.4vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 460px;
  margin-bottom: 36px;
  color: #4b4a44;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.6;
}

.primary-link,
.underlined-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-link span {
  font-size: 18px;
}

.value-strip {
  padding: 34px 8vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.value-strip div {
  padding: 5px 50px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.value-strip div:first-child {
  padding-left: 0;
}

.value-strip div:last-child {
  border-right: 0;
}

.value-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.value-strip span {
  color: #727067;
  font-size: 12px;
}

.shop-section,
.collection-section,
.journal {
  padding: 120px 5vw;
}

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

.section-heading h2,
.editorial h2,
.journal h2,
.newsletter h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-heading > a {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #eee9dd;
  background-image: url("/assets/products-soap.png");
  background-repeat: no-repeat;
  background-position: var(--crop) center;
  background-size: 430% 100%;
}

.product-photo span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 11px;
  background: var(--ivory);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-details {
  min-height: 102px;
  padding: 22px 2px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-details h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.product-details p {
  margin: 0;
  color: #747168;
  font-size: 12px;
}

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

.product-card > button {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.product-card > button:hover {
  background: var(--ink);
  color: white;
}

.editorial {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #dcd4c5;
}

.editorial-photo {
  min-height: 720px;
}

.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-copy {
  padding: 12%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.editorial-copy h2 {
  margin-bottom: 36px;
}

.editorial-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: #4b4943;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.8;
}

.editorial-copy .underlined-link {
  margin-top: 20px;
}

.collection-section {
  background: var(--ivory);
}

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

.collection-card {
  min-height: 440px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease;
}

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

.collection-card > span {
  font-size: 11px;
  font-weight: 700;
}

.collection-card h3 {
  margin-bottom: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
}

.collection-card p {
  margin: 0;
  font-size: 13px;
}

.calm {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.6), transparent 38%),
    var(--lavender);
}

.bright {
  background:
    radial-gradient(circle at 32% 42%, rgba(255, 255, 255, 0.45), transparent 34%),
    #d8bb77;
}

.grounded {
  background:
    radial-gradient(circle at 67% 48%, rgba(255, 255, 255, 0.18), transparent 35%),
    #7c826f;
  color: white;
}

.journal {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
}

.journal-links {
  border-top: 1px solid var(--line);
}

.journal-links a {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.journal-links b {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newsletter {
  padding: 120px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--moss);
  color: white;
  text-align: center;
}

.newsletter > p:not(.eyebrow) {
  margin: 22px 0 36px;
  color: rgba(255, 255, 255, 0.72);
}

.newsletter form {
  width: min(570px, 100%);
  margin: auto;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.newsletter input {
  min-width: 0;
  flex: 1;
  padding: 18px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: white;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.newsletter button {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter-success {
  width: fit-content;
  margin: 34px auto 0;
  padding-bottom: 10px;
  border-bottom: 1px solid white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

footer {
  padding: 80px 5vw 28px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  background: var(--ivory);
}

.footer-brand p {
  max-width: 260px;
  margin-top: 28px;
  color: #6a675f;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-links strong {
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links a {
  width: fit-content;
  color: #69665e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--ink);
}

.copyright {
  grid-column: 1 / -1;
  margin: 60px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #79766e;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(24, 23, 19, 0.42);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  animation: slide-in 220ms ease both;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

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

.drawer-header h2 {
  margin: 0;
  font-size: 34px;
}

.drawer-header button,
.empty-cart button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-cart {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 20px;
  text-align: center;
}

.empty-cart p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.empty-cart button {
  margin: auto;
}

.cart-lines {
  flex: 1;
  overflow: auto;
}

.cart-line {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 16px;
}

.cart-thumb {
  width: 82px;
  height: 100px;
  background-color: #eee9dd;
  background-image: url("/assets/products-soap.png");
  background-repeat: no-repeat;
  background-position: var(--crop) center;
  background-size: 430% 100%;
}

.cart-line h3 {
  margin: 4px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}

.cart-line p {
  margin: 0;
  color: #77736b;
  font-size: 11px;
}

.cart-line > strong {
  margin-top: 5px;
  font-size: 12px;
}

.quantity {
  width: fit-content;
  margin-top: 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.quantity button {
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.quantity span {
  font-size: 12px;
}

.cart-summary {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.cart-summary p {
  margin: 12px 0 22px;
  color: #77736b;
  font-size: 11px;
}

.cart-summary button {
  width: 100%;
  padding: 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .header-actions {
    gap: 16px;
  }

  .menu-button {
    width: 28px;
    height: 28px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-button i {
    width: 100%;
    height: 1px;
    background: var(--ink);
  }

  .mobile-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 26px 5vw 32px;
    display: grid;
    gap: 19px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-nav a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
  }

  .hero {
    min-height: 760px;
    align-items: flex-start;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(247, 244, 237, 1) 0%,
      rgba(247, 244, 237, 0.92) 45%,
      rgba(247, 244, 237, 0.08) 78%
    );
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-content {
    width: 90%;
    margin: 0 auto;
    padding-top: 74px;
  }

  .hero-content h1 {
    max-width: 650px;
    font-size: clamp(56px, 12vw, 82px);
  }

  .value-strip {
    padding: 34px 5vw;
  }

  .value-strip div {
    padding: 5px 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

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

  .editorial-photo {
    min-height: 520px;
  }

  .editorial-copy {
    padding: 80px 7vw;
  }

  .journal {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 600px) {
  .announcement {
    min-height: 30px;
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .announcement-secondary {
    display: none;
  }

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

  .wordmark span {
    font-size: 21px;
  }

  .header-actions {
    gap: 12px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 62px;
  }

  .hero-content h1 {
    font-size: 54px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .value-strip {
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .value-strip div,
  .value-strip div:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-strip div:last-child {
    border-bottom: 0;
  }

  .shop-section,
  .collection-section,
  .journal {
    padding: 82px 18px;
  }

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

  .section-heading h2,
  .editorial h2,
  .journal h2,
  .newsletter h2 {
    font-size: 42px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 10px;
  }

  .product-details {
    min-height: 122px;
    flex-direction: column;
    justify-content: flex-start;
  }

  .product-details h3 {
    font-size: 17px;
  }

  .editorial-photo {
    min-height: 390px;
  }

  .editorial-copy {
    padding: 70px 20px;
  }

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

  .collection-card {
    min-height: 330px;
  }

  .journal-links a {
    font-size: 16px;
  }

  .newsletter {
    padding: 90px 20px;
  }

  footer {
    padding: 65px 20px 24px;
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 18px;
  }

  .cart-drawer {
    padding: 24px 18px;
  }
}
