/* The Glass Pantry
 * Brand colors, component styles, then responsive adjustments.
 * Edit wording in index.html and behavior in js/main.js.
 */

/* 1. Brand palette and reset */
:root {
  --cream: #F6F3EC;
  --paper: #fffdf9;
  --brown: #3C2F26;
  --olive: #6B7A57;
  --sand: #eae1d3;
  --line: #ded5c7;
  --muted: #73675b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--brown);
  font-family: Arial,sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 6px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1, h2, h3 {
  font-family: Georgia,serif;
  font-weight: 400;
  line-height: 1.1;
}

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

/* 2. Layout and announcement */
.wrap {
  max-width: 1280px;
  margin: auto;
  padding-inline: 48px;
}

.announcement {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  letter-spacing: 1.7px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.announcement b {
  font-weight: 400;
  color: var(--olive);
}

/* 3. Header and navigation */
header {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 122px;
  gap: 30px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 16px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--olive);
}

.menu {
  display: none;
}

/* 4. Hero */
.hero {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 690px;
  background: var(--sand);
}

.hero-copy {
  padding: 80px max(35px,calc((100vw - 1184px)/2)) 40px;
  padding-right: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  background: radial-gradient(ellipse at 5% 90%,#d4a26a19,transparent 65%),var(--sand);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(62px,5.5vw,88px);
  letter-spacing: -2.4px;
  margin: 23px 0 30px;
  font-weight: 500;
  line-height: 1.02;
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 390px;
  margin-bottom: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 13px 21px;
  border: 1px solid var(--brown);
  background: var(--brown);
  color: var(--paper);
  font-size: 16px;
}

.button:hover {
  background: #554234;
}

.link {
  font-size: 16px;
  border-bottom: 1px solid var(--olive);
  padding: 4px 0;
  display: inline-block;
}

.hero .link {
  margin-top: 14px;
  font-size: 17px;
}

.hero-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 690px;
  overflow: hidden;
}

.hero-media img {
  position: static;
  inset: 0;
  object-position: 54% center;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-size: 12px;
  color: white;
  background: #3c2f26a8;
  padding: 5px 10px;
  letter-spacing: .7px;
}

.photo-selector {
  display: flex;
  gap: 12px;
  margin-top: 42px;
}

.photo-selector button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--brown);
  padding: 0;
  background: transparent;
}

.photo-selector button[aria-pressed=true] {
  background: var(--brown);
}

/* 5. Welcome and product collections */
.welcome {
  padding: 63px 20px 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
  border: 0;
}

.welcome h2 {
  font-size: 46px;
  margin: 12px 0 17px;
  letter-spacing: -.6px;
  line-height: 1.12;
}

.welcome p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.section {
  padding-block: 80px;
}

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

.section-heading h2 {
  font-size: 45px;
  letter-spacing: -1px;
  margin: 13px 0 0;
}

.section-heading p {
  font-size: 17px;
  color: var(--muted);
  max-width: 330px;
  margin-bottom: 3px;
}

.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 27px;
}

.collection-photo {
  height: 385px;
  overflow: hidden;
  border-radius: 3px;
}

.collection-photo img {
  transition: transform .5s;
}

.collection:hover img {
  transform: scale(1.025);
}

.collection-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 21px;
  border-top: 2px solid #d4a26a;
  position: relative;
  margin-top: 0;
}

.collection-title h3 {
  font-size: 28px;
  margin: 0;
}

.collection-title span {
  font-size: 24px;
  color: var(--olive);
  transition: transform .2s;
}

.collection p {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 450px;
}

.subnote {
  font-size: 13px;
  color: var(--muted);
  margin: 28px 0 0;
}

/* 6. Refill guide and story */
.how {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.center {
  text-align: center;
}

.center h2 {
  font-size: 47px;
  letter-spacing: -1px;
  margin: 16px 0 20px;
}

.center>p {
  max-width: 510px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin-top: 48px;
  align-items: stretch;
}

.step .num {
  border: 1px solid #c4c9b7;
  color: var(--brown);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font: 21px Georgia,serif;
  margin: 0;
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 18px;
  background: var(--cream);
  border-color: #d7ccba;
}

.step h3 {
  font-size: 27px;
  margin-bottom: 15px;
  line-height: 1.12;
}

.step p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.75;
}

.how .subnote {
  max-width: 670px;
  margin: 34px auto 0;
}

.story {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
  margin-block: 80px;
}

.story-photo {
  min-height: 480px;
  overflow: hidden;
}

.story-copy {
  background: var(--sand);
  padding: 65px 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  position: relative;
}

.story-copy h2 {
  font-size: 40px;
  letter-spacing: -1px;
  margin: 18px 0 23px;
}

.story-copy p {
  font-size: 18px;
  color: #65584d;
}

.story-copy .link {
  margin-top: 10px;
}

/* 7. FAQs and market information */
.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  padding-top: 0;
  padding-bottom: 80px;
}

.faq h2 {
  font-size: 42px;
  letter-spacing: -1px;
  margin: 15px 0 22px;
}

.faq-intro p {
  font-size: 17px;
  color: var(--muted);
  max-width: 300px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
}

details:first-child {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--olive);
  font-size: 20px;
  line-height: 1.2;
}

details[open] summary::after {
  content: '−';
}

details p {
  font-size: 18px;
  color: var(--muted);
  margin: 15px 30px 0 0;
}

.visit {
  background: var(--sand);
  border-block: 1px solid var(--line);
  padding: 63px 20px;
  text-align: center;
}

.visit h2 {
  font-size: 54px;
  letter-spacing: -1px;
  margin: 14px 0 23px;
  line-height: 1.1;
}

.visit p {
  max-width: 680px;
  font-size: 19px;
  margin: 0 auto 23px;
  color: #65584d;
  line-height: 1.85;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  border: 1px solid #cdbfaa;
  padding: 8px 15px;
  border-radius: 30px;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--olive);
  border-radius: 50%;
}

/* 8. Footer and accessibility */
footer {
  padding-block: 45px;
  background: var(--cream);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-top p {
  font-size: 19px;
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 18px;
  flex-wrap: wrap;
  max-width: 320px;
  justify-content: center;
}

.footer-note {
  margin: 30px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
  line-height: 1.8;
}

.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 30;
  background: var(--brown);
  color: white;
  padding: 10px 20px;
}

.skip:focus {
  top: 10px;
}

.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
}

.hero .button {
  font-size: 17px;
  padding: 15px 23px;
}

.story-photo img {
  height: 100%;
  object-position: center;
}

nav.wrap {
  position: relative;
  max-width: 1440px;
  display: flex;
  height: 146px;
}

.nav-cta {
  margin-left: auto;
  font-size: 15px;
  border-bottom: 1px solid var(--olive);
  padding: 6px 0;
  white-space: nowrap;
}

/* 9. Market details and benefits */
.market-stamp {
  position: absolute;
  bottom: 55px;
  left: 26px;
  background: var(--cream);
  border: 1px solid #cbb997;
  outline: 5px solid #f6f3ecb8;
  border-radius: 50%;
  width: 126px;
  height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 22px/1.1 Georgia,serif;
  transform: rotate(-9deg);
  box-shadow: 0 3px 16px #3c2f2610;
}

.market-stamp em {
  font-size: 18px;
  color: var(--olive);
  margin-top: 5px;
}

.benefit-rail {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 35px;
  padding-top: 25px;
  padding-bottom: 39px;
  border-bottom: 1px solid var(--line);
}

.benefit-rail article {
  display: flex;
  gap: 18px;
  align-items: center;
}

.benefit-rail img {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--olive);
}

.benefit-rail h3 {
  font-size: 21px;
  margin: 0 0 6px;
}

.benefit-rail p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 220px;
}

.collection:nth-child(2) .collection-title {
  border-top-color: #b6bda7;
}

.market-bag {
  margin-top: 22px;
  padding: 29px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  text-align: left;
}

.market-bag h3 {
  font-size: 29px;
  margin: 10px 0;
}

.market-bag p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.bag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.bag-options button {
  padding: 8px 15px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 15px;
}

.bag-options button[aria-pressed=true] {
  background: #e9ecdf;
  border-color: var(--olive);
  color: #46523a;
}

#bag-tip {
  min-height: 58px;
  max-width: 540px;
}

.story-copy::before {
  content: 'A little less waste. A little more together.';
  display: block;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--olive);
  border-bottom: 1px solid #cbbda8;
  padding-bottom: 15px;
  margin-bottom: 23px;
}

.collection:hover .collection-title span {
  transform: translate(3px,-3px);
}

.brand .header-logo {
  display: block;
  width: 288px;
  height: auto;
  object-fit: contain;
}

/* 10. Supplied logos and illustrated steps */
.welcome-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  text-align: left;
}

.welcome .primary-logo {
  width: 280px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.welcome-inner>div {
  max-width: 650px;
}

.footer-brand img {
  width: 260px;
  height: auto;
  object-fit: contain;
}

.step {
  position: relative;
  border: 1px solid #ded6c7;
  background: var(--paper);
  padding: 20px 18px 27px;
  border-radius: 9px;
  text-align: left;
  box-shadow: 0 5px 16px #3c2f2604;
}

.step-art {
  height: 174px;
  margin: 5px -5px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center,#f0eadb 0,transparent 68%);
}

.step-art img {
  width: 100%;
  max-width: 210px;
  height: 164px;
}

.container-note {
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
  padding: 27px 32px;
  margin-top: 29px;
  border: 1px solid #c7ceb9;
  background: #edf0e6;
  border-radius: 6px;
}

.container-note img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: none;
}

.container-note h3 {
  font-size: 32px;
  margin: 0 0 9px;
  line-height: 1.15;
}

.container-note p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 760px;
  line-height: 1.8;
}

/* Wide desktop */
@media (min-width: 1600px) {
  .hero {
    min-height: 730px;
  }

  .hero-copy {
    padding-left: calc((100vw - 1400px)/2);
  }

  .hero-media {
    height: 730px;
  }

}

/* Screens up to 1150px */
@media (max-width: 1150px) {

  .nav-links {
    display: none;
    left: 0;
    transform: none;
    white-space: normal;
    right: 0;
    top: 120px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 25px;
  }

  .menu {
    display: block;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    padding: 7px 15px;
    font-size: 16px;
  }


  nav.wrap {
    height: 120px;
  }

  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
  }

  .brand .header-logo {
    width: 250px;
  }

  .welcome-inner {
    gap: 38px;
  }

  .step-art {
    height: 155px;
  }

  .step-art img {
    height: 150px;
  }

}

/* Screens up to 1000px */
@media (max-width: 1000px) {
  .wrap {
    padding-inline: 28px;
  }

  nav {
    height: 108px;
  }

  .nav-links {
    font-size: 15px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-copy {
    padding: 50px 28px 35px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-media {
    height: 650px;
  }

  .collection-photo {
    height: 315px;
  }

  .story-copy {
    padding: 35px;
  }

  .faq {
    gap: 50px;
  }

}

/* Screens up to 850px */
@media (max-width: 850px) {

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }


  .welcome-inner {
    gap: 30px;
  }


  .step-art {
    height: 172px;
  }

  .step-art img {
    height: 164px;
  }

}

/* Screens up to 700px */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 130px;
  }

  .wrap {
    padding-inline: 22px;
  }

  .announcement {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .announcement b {
    display: inline-block;
  }

  nav {
    height: 106px;
  }

  .nav-links {
    top: 116px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 46px 25px 38px;
  }

  .hero h1 {
    font-size: clamp(64px,11.5vw,82px);
    letter-spacing: -2px;
    margin: 22px 0 27px;
    max-width: 580px;
    line-height: 1.01;
  }

  .hero p {
    font-size: 18px;
    max-width: 500px;
  }

  .hero-media {
    height: 420px;
  }

  .hero-media img {
    object-position: center;
  }

  .photo-caption {
    bottom: 13px;
    right: 13px;
  }

  .photo-selector {
    margin-top: 29px;
  }

  .welcome {
    padding: 45px 22px;
  }


  .welcome p {
    margin-inline: auto;
  }

  .section {
    padding-block: 52px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .section-heading p {
    max-width: 100%;
    margin-top: 20px;
  }

  .collections {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .collection-photo {
    height: 330px;
  }

  .center h2 {
    font-size: 36px;
  }

  .steps {
    margin-top: 33px;
  }



  .story {
    grid-template-columns: 1fr;
    margin-block: 52px;
  }

  .story-photo {
    min-height: 0;
    height: 360px;
  }

  .story-copy {
    padding: 35px 27px;
  }

  .story-copy h2 {
    font-size: 35px;
  }

  .faq {
    display: block;
    padding-bottom: 52px;
  }

  .faq h2 {
    font-size: 36px;
  }


  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-note {
    text-align: center;
  }

  .faq-intro {
    margin-bottom: 27px;
  }

  .hero .eyebrow {
    font-size: 12px;
  }

  nav.wrap {
    height: 116px;
  }

  .market-stamp {
    bottom: 45px;
    left: 21px;
    width: 104px;
    height: 104px;
    font-size: 19px;
  }

  .market-stamp em {
    font-size: 17px;
  }

  .benefit-rail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 0;
    padding-bottom: 35px;
    max-width: 390px;
  }

  .benefit-rail article {
    gap: 20px;
  }

  .benefit-rail p {
    max-width: 100%;
  }

  .market-bag {
    padding: 23px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .market-bag h3 {
    font-size: 28px;
  }

  .bag-options button {
    padding: 8px 12px;
  }

  .story-copy::before {
    font-size: 12px;
  }

  .brand .header-logo {
    width: clamp(208px,42vw,255px);
  }

  .welcome-inner {
    gap: 26px;
    text-align: center;
    flex-direction: column;
  }



  .step {
    padding: 16px 15px 23px;
  }

  .step-art {
    height: 143px;
    margin-bottom: 15px;
  }

  .step-art img {
    height: 137px;
  }

  .container-note {
    align-items: flex-start;
    gap: 17px;
    padding: 23px 19px;
  }

  .container-note img {
    width: 65px;
    height: 65px;
  }



}

/* Screens up to 380px */
@media (max-width: 380px) {
  .brand {
    gap: 9px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-media {
    height: 350px;
  }

  .steps {
    gap: 13px;
  }


  .step {
    padding-inline: 12px;
  }

  .step-art {
    height: 127px;
  }

  .step-art img {
    height: 123px;
  }

  .container-note {
    gap: 12px;
  }

  .container-note img {
    width: 51px;
    height: 51px;
  }


}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .collection-photo img {
    transition: none;
  }

  .collection-title span {
    transition: none;
  }

}

/* Keep the step illustrations fully visible instead of cropping them. */
.step-art img {
  object-fit: contain;
}

/* Readable welcome, refill guide, and product-focused closing. */
.welcome .primary-logo {
  width: clamp(230px, 23vw, 280px);
}
.welcome h2 {
  font-size: clamp(38px, 3.6vw, 46px);
}
.visit h2 {
  font-size: clamp(40px, 4.5vw, 54px);
}
.closing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px 30px;
  margin-top: 29px;
}
.closing-actions .button {
  font-size: 18px;
  padding: 16px 27px;
}
.closing-secondary {
  font-size: 18px;
  border-bottom: 1px solid var(--olive);
  padding: 5px 0;
}
.visit .market-status {
  margin: 28px auto 0;
  font-size: 15px;
  max-width: 580px;
}
.footer-closing {
  max-width: 320px;
}
.footer-closing .link {
  font-size: 17px;
}
@media (max-width: 1150px) {
  .nav-links {
    font-size: 18px;
  }
}
@media (max-width: 850px) {
  .welcome-inner {
    gap: 35px;
  }
  .footer-top {
    flex-wrap: wrap;
    justify-content: center;
    gap: 34px;
  }
}
@media (max-width: 700px) {
  .welcome p {
    font-size: 18px;
  }
  .step {
    padding: 18px 14px 24px;
  }
  .step h3 {
    font-size: 25px;
  }
  .step p {
    font-size: 17px;
  }
  .container-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .footer-brand img {
    width: 230px;
  }
}
@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step-art {
    height: 160px;
  }
  .step-art img {
    height: 150px;
  }
  .step {
    padding-inline: 23px;
  }
}
