/*
Theme Name: Nook & Mew Demo
Theme URI: https://nookmew.com/
Author: Nook & Mew
Description: Custom responsive storefront concept for Nook & Mew.
Version: 1.0.0
Text Domain: nook-mew-demo
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/Newsreader-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --warm-white: #faf8f4;
  --black: #050505;
  --light-greige: #ede8df;
  --stone: #c8c2b8;
  --camel: #b99b7a;
  --white: #fff;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
  --section-space: clamp(92px, 12vw, 190px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--warm-white);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.announcement {
  min-height: 34px;
  padding: 7px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--warm-white);
  background: var(--black);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header {
  height: 82px;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(5,5,5,.12);
}
.logo-link { width: 180px; }
.main-nav { display: flex; gap: 34px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a, footer a, .text-link { transition: opacity .25s ease; }
.main-nav a:hover, footer a:hover, .text-link:hover { opacity: .55; }
.header-actions { justify-self: end; display: flex; gap: 9px; }
.header-actions button, .menu-button {
  padding: 7px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.header-actions svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.menu-button { display: none; }

.hero {
  min-height: calc(100svh - 116px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(5,5,5,.52), rgba(5,5,5,.05) 58%, transparent); }
.hero-copy {
  width: min(650px, 80%);
  margin-left: var(--gutter);
  padding: 80px 0;
  position: relative;
  z-index: 1;
  color: var(--white);
}
.hero h1 {
  max-width: 650px;
  margin: 20px 0 25px;
  font-family: "Newsreader", serif;
  font-size: clamp(68px, 8vw, 128px);
  font-weight: 350;
  line-height: .87;
  letter-spacing: -.055em;
}
.hero-copy > p:not(.eyebrow) { max-width: 520px; margin: 0 0 35px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.image-note {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  z-index: 2;
  color: rgba(255,255,255,.8);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.featured-products { max-width: none; }
.featured-heading {
  margin-bottom: 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}
.featured-heading h2 {
  margin-top: 16px;
  font-size: clamp(48px, 5vw, 78px);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
}
.product-card { min-width: 0; }
.product-image {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  display: block;
  background: #f5f1eb;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.product-image:hover img { transform: scale(1.025); }
.product-image span {
  padding: 6px 8px;
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: rgba(5,5,5,.68);
  background: rgba(250,248,244,.84);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.product-meta {
  padding: 17px 0 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.product-meta h3 {
  margin-top: 3px;
  font-family: "Newsreader", serif;
  font-size: 24px;
  font-weight: 400;
}
.product-meta > p,
.product-category {
  margin: 0;
  color: rgba(5,5,5,.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.product-meta > p { padding-top: 5px; white-space: nowrap; }

.brand-statement {
  padding: clamp(90px, 11vw, 170px) var(--gutter);
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
  gap: clamp(60px, 11vw, 190px);
  background: var(--light-greige);
  border-top: 1px solid rgba(5,5,5,.1);
  border-bottom: 1px solid rgba(5,5,5,.1);
}
.brand-statement h2 {
  max-width: 530px;
  font-size: clamp(52px, 5.7vw, 92px);
}
.brand-statement p {
  max-width: 900px;
  margin: 8px 0 0;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.8;
}

.section { max-width: var(--max); margin: 0 auto; padding: var(--section-space) var(--gutter); }
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow.light { color: rgba(255,255,255,.8); }
h2 { margin: 0; font-family: "Newsreader", serif; font-size: clamp(48px, 6.5vw, 100px); font-weight: 350; line-height: .98; letter-spacing: -.045em; }
h3 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }

.button {
  min-height: 49px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s, background .25s;
}
.button-light { color: var(--black); background: var(--warm-white); border-color: var(--warm-white); }
.button-light:hover { color: var(--warm-white); background: transparent; }
.button-dark { color: var(--warm-white); background: var(--black); border-color: var(--black); }
.button-dark:hover { color: var(--black); background: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.editorial-grid {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  align-items: center;
  background: var(--light-greige);
}
.image-frame { position: relative; overflow: hidden; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.image-frame:hover img { transform: scale(1.015); }
.image-frame span {
  padding: 7px 9px;
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--warm-white);
  background: rgba(5,5,5,.7);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.editorial-image { height: min(80vw, 880px); }
.editorial-copy { max-width: 650px; padding: 80px var(--gutter); }
.editorial-copy h2 { margin: 28px 0; font-size: clamp(54px, 6vw, 92px); }
.editorial-copy > p:not(.eyebrow) { max-width: 510px; margin: 0 0 40px; color: rgba(5,5,5,.68); }

.section-heading .eyebrow { margin-bottom: 25px; }

.inline-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.inline-heading > p { max-width: 430px; margin: 0 0 7px; color: rgba(5,5,5,.62); }

.newsletter { padding: var(--section-space) var(--gutter); color: var(--warm-white); background: var(--black); text-align: center; }
.newsletter h2 { max-width: 900px; margin: 25px auto 45px; }
.newsletter-form { max-width: 600px; margin: 0 auto 18px; display: flex; border-bottom: 1px solid rgba(255,255,255,.55); }
.newsletter-form input { flex: 1; min-width: 0; padding: 16px 0; color: var(--warm-white); background: transparent; border: 0; outline: 0; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form button { padding: 16px 0 16px 25px; color: var(--warm-white); background: transparent; border: 0; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }
.newsletter > p:last-child { margin: 0; color: rgba(255,255,255,.55); font-size: 11px; }
.contact-panel { padding-top: clamp(105px, 12vw, 180px); padding-bottom: clamp(105px, 12vw, 180px); }
.contact-icon {
  width: 72px;
  margin: 0 auto 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-panel h2 {
  max-width: 1000px;
  margin: 0 auto 28px;
  font-size: clamp(54px, 7vw, 110px);
}
.contact-panel > p {
  max-width: 820px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,.7);
  font-size: clamp(14px, 1.35vw, 20px);
}
.contact-button {
  min-width: 300px;
  min-height: 66px;
  padding: 17px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--black);
  background: var(--warm-white);
  border: 1px solid var(--warm-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .25s, background .25s;
}
.contact-button:hover { color: var(--warm-white); background: transparent; }
.contact-button span { font-size: 22px; font-weight: 400; line-height: 1; }

footer {
  padding: 70px var(--gutter) 25px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 45px;
  color: var(--warm-white);
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.2);
}
.footer-logo img { width: 230px; }
.footer-logo p { margin-top: 16px; color: rgba(255,255,255,.55); font-family: "Newsreader", serif; font-size: 20px; }
.footer-title { color: rgba(255,255,255,.45); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
footer a { display: block; margin: 9px 0; font-size: 12px; }
.copyright { grid-column: 1 / -1; margin: 50px 0 0; padding-top: 18px; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.15); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.toast { padding: 13px 18px; position: fixed; z-index: 30; left: 50%; bottom: 25px; transform: translate(-50%, 120px); color: var(--warm-white); background: var(--black); font-size: 11px; letter-spacing: .05em; opacity: 0; transition: .35s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { width: 1px; height: 1px; padding: 0; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .announcement span:last-child { display: none; }
  .site-header { height: 68px; grid-template-columns: 1fr auto; }
  .logo-link { width: 155px; }
  .menu-button { width: 34px; height: 34px; justify-self: end; display: flex; flex-direction: column; gap: 6px; }
  .menu-button span { width: 20px; height: 1px; display: block; background: var(--black); }
  .header-actions { display: none; }
  .main-nav {
    padding: 30px var(--gutter);
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 20px;
    background: var(--warm-white);
    border-bottom: 1px solid rgba(5,5,5,.18);
  }
  .main-nav.open { display: flex; }
  .hero { min-height: calc(100svh - 102px); }
  .hero-overlay { background: linear-gradient(90deg, rgba(5,5,5,.57), rgba(5,5,5,.05)); }
  .editorial-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 45px; }
  .brand-statement { grid-template-columns: 1fr; gap: 35px; }
  .editorial-image { height: 110vw; max-height: 800px; }
}

@media (max-width: 680px) {
  :root { --section-space: 88px; }
  .announcement { justify-content: center; text-align: center; }
  .hero { align-items: end; min-height: 720px; }
  .hero-image { object-position: 58% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(5,5,5,.7), transparent 75%); }
  .hero-copy { width: 100%; margin: 0; padding: 65px 20px; }
  .hero h1 { font-size: clamp(58px, 19vw, 86px); }
  .hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .image-note { right: 20px; bottom: 12px; }
  h2 { font-size: 48px; }
  .featured-heading { align-items: start; flex-direction: column; gap: 24px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 34px 12px; }
  .product-meta { display: block; }
  .product-meta > p { margin-top: 6px; }
  .product-meta h3 { font-size: 20px; }
  .brand-statement { padding-left: 20px; padding-right: 20px; }
  .brand-statement p { font-size: 14px; }
  .editorial-copy { padding: 70px 20px; }
  .editorial-copy h2 { font-size: 52px; }
  .inline-heading { align-items: start; flex-direction: column; gap: 25px; }
  .newsletter-form { flex-direction: column; border: 0; }
  .newsletter-form input { border-bottom: 1px solid rgba(255,255,255,.55); }
  .newsletter-form button { padding-left: 0; text-align: left; }
  .contact-icon { width: 58px; margin-bottom: 24px; }
  .contact-panel h2 { font-size: 51px; }
  .contact-panel > p { margin-bottom: 32px; }
  .contact-button { width: 100%; min-width: 0; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
