/* UMBRA — static landing page styles */

:root {
  --radius: 0.25rem;

  --background: #f7f3ee;
  --foreground: #111111;
  --ink: #111111;
  --charcoal: #1d1d1d;
  --gold: #c6a66a;
  --stone: #eae6e0;
  --card: #ffffff;
  --border: #ddd8d0;
  --muted: #eae6e0;
  --muted-foreground: #6b6b6b;
  --accent: #c6a66a;
  --accent-foreground: #111111;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, sans-serif;

  --max-width: 80rem;
  --section-pad: clamp(4rem, 9vw, 7rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 1.5rem);
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

.container.narrow {
  max-width: 42rem;
}

.section {
  padding: var(--section-pad) 0;
}

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

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.link-underline {
  position: relative;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  padding-bottom: 2px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: right;
  background-color: currentColor;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.7s ease, color 0.7s ease, border-color 0.7s ease;
  background: transparent;
  color: var(--background);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  color: var(--foreground);
  border-bottom-color: rgba(221, 216, 208, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 5vw, 1.5rem);
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 1.25rem 2.5rem;
  }
}

.header-side {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 4vw, 1.5rem);
  flex: 1;
}

.header-side.end {
  justify-content: flex-end;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.header-icon:hover {
  opacity: 0.6;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close {
  display: none;
}

.menu-toggle:checked ~ .menu-btn .menu-open {
  display: none;
}

.menu-toggle:checked ~ .menu-btn .menu-close {
  display: block;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  color: inherit;
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-mark.light {
  color: var(--background);
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: clamp(0.28em, 1.5vw, 0.5em);
  margin-top: 0.25rem;
}

.desktop-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled .desktop-nav {
  border-top-color: rgba(17, 17, 17, 0.1);
}

.desktop-nav ul {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  list-style: none;
}

.desktop-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.desktop-nav a:hover {
  opacity: 1;
}

.mobile-nav {
  display: none;
  padding: 1rem clamp(1.25rem, 6vw, 2rem) 2.5rem;
  background: rgba(247, 243, 238, 0.97);
  color: var(--foreground);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.header:has(.menu-toggle:checked) {
  background: rgba(247, 243, 238, 0.97);
  color: var(--foreground);
  border-bottom-color: rgba(221, 216, 208, 0.75);
}

.header:has(.menu-toggle:checked) .mobile-nav {
  display: block;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .desktop-nav {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink);
  color: var(--background);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem clamp(1.25rem, 7vw, 2.5rem) 2.5rem;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-text h1 {
  font-size: clamp(2.15rem, 11vw, 3rem);
  margin-top: 1.5rem;
  font-weight: 300;
  line-height: 1.08;
}

.hero-text p {
  max-width: 28rem;
  margin: 1.35rem 0 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 243, 238, 0.8);
}

.hero-text .btn-outline {
  margin-top: 2rem;
}

.hero-image {
  position: relative;
  height: clamp(20rem, 48svh, 30rem);
  min-height: 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--ink);
}

.hero:hover .hero-image img {
  transform: scale(1.03);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.15);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero:hover .hero-image::after {
  opacity: 1;
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(247, 243, 238, 0.7);
  padding: 0.95rem clamp(1.25rem, 8vw, 2.5rem);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--background);
  transition: border-color 0.5s ease, background-color 0.5s ease, color 0.5s ease;
  align-self: flex-start;
  text-align: center;
}

.btn-outline:hover {
  border-color: var(--gold);
  background-color: var(--gold);
  color: var(--ink);
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
  }

  .hero-text {
    min-height: auto;
    padding: 0 3rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    margin-top: 1.75rem;
  }

  .hero-text .btn-outline {
    margin-top: 2.5rem;
  }

  .hero-image {
    height: auto;
    min-height: 100svh;
  }
}

@media (min-width: 1024px) {
  .hero-text {
    padding: 0 4rem;
  }

  .hero-text h1 {
    font-size: 4rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section layouts */
.two-col {
  display: grid;
  gap: clamp(2.5rem, 8vw, 3.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.img-frame {
  overflow: hidden;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s ease;
}

.img-frame:hover img {
  transform: scale(1.05);
}

.text-reveal h2 {
  font-size: clamp(2rem, 10vw, 2.6rem);
  font-weight: 300;
}

.text-reveal p {
  margin-top: clamp(1.25rem, 5vw, 2rem);
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.text-reveal .link-underline {
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .text-reveal h2 {
    font-size: 3rem;
  }
}

/* Collection */
.section-head {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.section-head h2 {
  font-size: clamp(2rem, 10vw, 2.6rem);
  font-weight: 300;
}

@media (min-width: 1024px) {
  .section-head h2 {
    font-size: 3rem;
  }
}

.products {
  display: grid;
  gap: 3rem;
}

@media (min-width: 640px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.products.single {
  display: block;
  max-width: min(100%, 28rem);
  margin: 0 auto;
}

.products.single .product-img {
  background: var(--ink);
}

.products.single .product-img img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: clamp(1.25rem, 8vw, 2rem);
}

.product {
  text-align: center;
}

.product-img {
  overflow: hidden;
  background: var(--stone);
}

.product-img img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product:hover .product-img img {
  transform: scale(1.04);
}

.product h3 {
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.product p {
  max-width: 20rem;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.product .price {
  margin-top: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.product .link-underline {
  margin-top: 1.5rem;
}

.order-panel {
  display: none;
  max-width: 46rem;
  margin: 5rem auto 0;
  padding-top: 1rem;
}

.order-panel.is-visible {
  display: block;
}

.order-panel .section-head {
  margin-bottom: 2.5rem;
}

.order-form {
  display: grid;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  padding: clamp(1.25rem, 5vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.order-form label {
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.order-form label span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.order-form textarea {
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--gold);
  background: var(--card);
}

.order-submit {
  justify-self: center;
  margin-top: 0.75rem;
  background: var(--ink);
  color: var(--background);
  padding: 0.9rem clamp(1.5rem, 8vw, 2.5rem);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.order-submit:hover {
  background: var(--gold);
  color: var(--ink);
}

.order-note {
  max-width: none;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Story */
.story {
  position: relative;
  min-height: clamp(34rem, 88svh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--background);
  overflow: hidden;
}

.story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.story.in-view .story-bg {
  transform: scale(1);
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
}

.story-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  padding: 0 1.5rem;
}

.story-content h2 {
  font-size: clamp(2.25rem, 11vw, 3.1rem);
  font-weight: 300;
  margin-top: 2rem;
}

.story-content p {
  max-width: 36rem;
  margin: 2rem auto 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 243, 238, 0.8);
}

@media (min-width: 640px) {
  .story-content h2 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .story-content h2 {
    font-size: 4rem;
  }
}

/* Ingredients */
.ingredients {
  background: rgba(234, 230, 224, 0.6);
}

.notes {
  list-style: none;
  margin-top: clamp(2rem, 7vw, 3rem);
  border-top: 1px solid var(--border);
}

.notes li {
  display: grid;
  grid-template-columns: minmax(6rem, 0.45fr) 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.notes li span:first-child {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.notes li span:last-child {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted-foreground);
  text-align: right;
}

@media (max-width: 480px) {
  .notes li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .notes li span:last-child {
    text-align: left;
  }
}

/* Experience */
.experience {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--background);
}

.experience-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.experience-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink), rgba(17, 17, 17, 0.6), transparent);
}

.experience .container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: clamp(34rem, 78svh, 48rem);
  padding-top: clamp(5rem, 12vw, 8rem);
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.experience-content {
  max-width: 36rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience.in-view .experience-content {
  opacity: 1;
  transform: translateY(0);
}

.experience-content h2 {
  font-size: clamp(2.2rem, 11vw, 3.1rem);
  font-weight: 300;
  color: var(--gold);
  margin-top: 2rem;
}

.experience-content p {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 243, 238, 0.7);
}

@media (min-width: 640px) {
  .experience-content h2 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .experience-content h2 {
    font-size: 4rem;
  }
}

/* Testimonials */
.quotes {
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
}

@media (min-width: 768px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quotes figure {
  background: var(--card);
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 6vw, 2.5rem);
  text-align: center;
}

.quotes blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 7vw, 1.75rem);
  font-weight: 300;
  line-height: 1.3;
}

/* Newsletter */
.newsletter {
  background: var(--ink);
  color: var(--background);
  padding: clamp(4.5rem, 10vw, 7rem) clamp(1rem, 5vw, 1.5rem);
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(2rem, 10vw, 2.6rem);
  font-weight: 300;
}

.newsletter p {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 243, 238, 0.7);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 3rem auto 0;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247, 243, 238, 0.3);
  padding: 0.75rem 0.25rem;
  color: var(--background);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(247, 243, 238, 0.4);
}

.newsletter-form input:focus {
  border-bottom-color: var(--gold);
}

.newsletter-form button {
  background: var(--background);
  color: var(--ink);
  padding: 0.75rem 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background-color 0.5s ease;
}

.newsletter-form button:hover {
  background: var(--gold);
}

.success {
  color: var(--gold);
  margin-top: 3rem;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }

  .newsletter h2 {
    font-size: 3rem;
  }
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: rgba(247, 243, 238, 0.8);
  padding: clamp(4rem, 9vw, 5rem) 0 2.5rem;
}

.footer-brand {
  text-align: center;
  margin-bottom: 3.5rem;
}

.footer-brand .logo-mark {
  color: var(--background);
  font-size: 2rem;
}

.footer-brand p {
  max-width: 24rem;
  margin: 1rem auto 0;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 243, 238, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(247, 243, 238, 0.7);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--background);
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.socials a {
  color: rgba(247, 243, 238, 0.7);
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 243, 238, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(247, 243, 238, 0.4);
}

.footer-bottom span:last-child {
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Scroll reveal */
.img-reveal,
.text-reveal,
.section-head {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.in-view .img-reveal,
.in-view .text-reveal,
.in-view .section-head {
  opacity: 1;
  transform: translateY(0);
}

.in-view .text-reveal {
  transition-delay: 0.15s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
