/* =========================================================
   By Jane — modern brochure template shop
   Palette (from reference):
     Savory Sage        #818263  — primary / headings
     Avocado Smoothie   #c2c395  — secondary accent
     Blush Beet         #DDBAAE  — buttons / CTA
     Peach Protein      #EFD7CF  — soft surfaces
     Oat Latte          #DCD4C1  — page background
   ========================================================= */

:root {
  --savory-sage: #818263;
  --avocado: #c2c395;
  --blush-beet: #ddbaae;
  --peach: #efd7cf;
  --oat: #dcd4c1;
  --ink: #3a3b32;
  --ink-soft: #5c5d52;
  --cream: #f4efe8;
  --white: #faf7f2;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;

  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--oat);
  /* Soft plaster / paper feel */
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(239, 215, 207, 0.55), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 20%, rgba(194, 195, 149, 0.22), transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--savory-sage);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.section-title--center {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: var(--blush-beet);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn:hover {
  background: #d4a99a;
  transform: translateY(-2px);
}

.btn--nav {
  padding: 0.55rem 1.35rem;
  font-size: 0.72rem;
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--savory-sage) 12%, transparent);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  min-height: var(--header-h);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  justify-self: start;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--savory-sage);
}

.nav__logo {
  justify-self: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--savory-sage);
}

.nav .btn--nav {
  justify-self: end;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(58, 59, 50, 0.28), rgba(58, 59, 50, 0.42)),
    radial-gradient(ellipse at center, transparent 30%, rgba(58, 59, 50, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space);
  max-width: 42rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 1.1s var(--ease) 0.2s forwards;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 92%, var(--peach));
}

.hero__script {
  margin: 0.85rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--peach);
  letter-spacing: 0.02em;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Philosophy ----- */
.philosophy {
  padding: clamp(4rem, 10vw, 7rem) var(--space);
  background: color-mix(in srgb, var(--peach) 55%, var(--cream));
}

.philosophy__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.philosophy__copy {
  position: relative;
  padding: 1rem 0.5rem;
}

.philosophy__copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: 36ch;
  font-weight: 300;
  font-size: 1.02rem;
}

.philosophy__note {
  margin-top: 1.75rem !important;
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--savory-sage);
  transform: rotate(-4deg);
  display: inline-block;
}

.flourish {
  width: 4.5rem;
  color: var(--savory-sage);
  opacity: 0.55;
}

.flourish--tl {
  margin-bottom: 0.75rem;
}

.flourish--bl {
  margin-top: 0.5rem;
  width: 5rem;
}

.philosophy__figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 380px);
}

.philosophy__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 50% / 42%;
  box-shadow: 0 18px 40px rgba(58, 59, 50, 0.12);
}

/* ----- Divider band ----- */
.divider-band {
  height: clamp(160px, 28vw, 280px);
  overflow: hidden;
}

.divider-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Catalog ----- */
.catalog {
  padding: clamp(4rem, 10vw, 7rem) var(--space);
  background: var(--oat);
}

.catalog__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.product {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product__frame {
  width: 100%;
  max-width: 280px;
  margin-bottom: 1.35rem;
  border-radius: 999px 999px 12px 12px;
  overflow: hidden;
  background: var(--avocado);
  transition: transform 0.5s var(--ease);
}

.product:hover .product__frame {
  transform: translateY(-6px);
}

.product__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product__title {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  color: var(--ink);
}

.product__blurb {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 28ch;
}

.product__price {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--savory-sage);
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Footer ----- */
.site-footer {
  padding: 3rem var(--space) 2.5rem;
  background: var(--savory-sage);
  color: var(--cream);
  text-align: center;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__tag {
  margin: 0.4rem 0 1.25rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--peach);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.site-footer__meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__meta span {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .philosophy__inner {
    grid-template-columns: 1fr;
  }

  .philosophy__figure {
    order: -1;
    width: min(100%, 300px);
  }

  .philosophy__copy p {
    max-width: none;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo logo"
      "links cta";
    row-gap: 0.65rem;
  }

  .nav__logo {
    grid-area: logo;
  }

  .nav__links {
    grid-area: links;
    gap: 1rem;
  }

  .nav .btn--nav {
    grid-area: cta;
  }

  .hero {
    min-height: 78vh;
  }
}
