﻿/*
Theme Name: The Earthy Fest Co.
Theme URI: https://example.com/the-earthy-fest-co
Author: Codex
Description: A warm editorial WooCommerce theme for handmade bookmarks, journals, and mindful stationery.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: the-earthy-fest-co
Tags: ecommerce, woocommerce, responsive, custom-logo
*/

:root {
  --paper: #fbfaf6;
  --chalk: #ffffff;
  --ink: #2d2b25;
  --muted: #736f64;
  --line: #e4ded1;
  --sage: #77806a;
  --moss: #4f5c43;
  --ochre: #9b772f;
  --clay: #b98b63;
  --charcoal: #070707;
  --gold: #c6a14a;
  --shadow: 0 24px 70px rgba(43, 37, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
}

p {
  margin: 0;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--ink);
  color: var(--chalk);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--chalk);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(100% - 48px, 1320px);
  min-height: 70px;
  margin: 0 auto;
}

.menu {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 700;
}

.menu a,
.site-header__brand,
.icon-button {
  opacity: 0.95;
}

.site-header__brand {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 88px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 0.9;
}

.site-header__brand img {
  max-height: 54px;
  width: auto;
}

.site-header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.icon-button,
.site-header__menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.icon-button--cart {
  position: relative;
}

.icon-button--cart small {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--chalk);
  color: var(--ink);
  font-size: 10px;
  line-height: 15px;
}

.site-header__menu-toggle {
  display: none;
}

.site-header__menu-toggle span {
  width: 17px;
  height: 1px;
  background: currentColor;
}

.site-search {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: min(100% - 48px, 720px);
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.site-search.is-open {
  display: grid;
}

.site-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
}

.site-search button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--chalk);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.button--light {
  border-color: var(--chalk);
  background: var(--chalk);
  color: var(--ink);
}

.page-section {
  width: min(100% - 48px, 1180px);
  margin: 86px auto;
}

.page-section--narrow {
  max-width: 820px;
  padding-top: 120px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 44%, rgba(255, 255, 255, 0.72), transparent 0 18%, transparent 32%),
    radial-gradient(circle at 86% 31%, rgba(255, 255, 255, 0.72), transparent 0 20%, transparent 38%),
    linear-gradient(115deg, #b8aa8b 0%, #e7dac4 42%, #fff6e3 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(95deg, rgba(36, 28, 17, 0.28), transparent 45%),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 13px);
  mix-blend-mode: multiply;
}

.hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 40px;
}

.hero__card {
  position: absolute;
  display: grid;
  place-items: center;
  color: #5a3c1f;
  box-shadow: var(--shadow);
}

.hero__card--envelope {
  width: min(34vw, 330px);
  aspect-ratio: 1.45;
  transform: translate(-38%, 6%) rotate(-2deg);
  background: linear-gradient(145deg, #c4925f, #d7ae78);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  font-family: "Cormorant Garamond", Georgia, serif;
  color: white;
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1.18;
  text-align: center;
}

.hero__card--product {
  width: min(30vw, 265px);
  aspect-ratio: 0.78;
  transform: translate(42%, -4%) rotate(1deg);
  padding: 34px;
  background: linear-gradient(145deg, #b6804b, #d2a369);
  border: 1px solid rgba(83, 51, 23, 0.12);
}

.hero__card--product::before {
  content: "";
  width: 72px;
  height: 118px;
  margin-bottom: 18px;
  border: 2px solid #3c2a19;
  border-top: 0;
  border-radius: 0 0 60px 60px;
  transform: rotate(18deg);
}

.hero__card--product small {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.hero__card--product strong {
  margin: 8px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
}

.hero__card--product span {
  max-width: 170px;
  text-align: center;
  font-size: 11px;
}

.hero__copy {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100% - 48px, 1180px);
  margin: 0 auto 56px;
  color: white;
}

.hero__copy p {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.hero__copy h1 {
  max-width: 520px;
  font-size: clamp(58px, 10vw, 138px);
}

.hero__copy span {
  display: block;
  max-width: 420px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 430px;
  overflow: hidden;
  padding: 28px;
  background: #ded2b9;
}

.category-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 238, 221, 0.8), transparent 22%),
    repeating-linear-gradient(25deg, rgba(68, 51, 31, 0.16) 0 4px, transparent 4px 18px);
}

.category-tile--journals {
  background: #bec1ab;
}

.category-tile--journals::before {
  background:
    radial-gradient(circle at 75% 45%, rgba(255, 255, 255, 0.75), transparent 20%),
    linear-gradient(90deg, var(--sage) 0 35%, #d8d1c3 35% 65%, transparent 65%);
}

.category-tile div {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
}

.category-tile a,
.story-hero a {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 20px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.sale-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  min-height: 480px;
  background: var(--ochre);
  color: white;
}

.sale-band__image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(236, 214, 174, 0.85), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(80deg, rgba(117, 78, 31, 0.18) 0 3px, transparent 3px 17px);
}

.bookmark-shape {
  position: absolute;
  left: 42%;
  top: 19%;
  width: 58px;
  height: 300px;
  border-radius: 28px 28px 6px 6px;
  background: linear-gradient(180deg, #17477a, #c7a24f);
  transform: rotate(10deg);
  box-shadow: var(--shadow);
}

.sale-band__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(34px, 6vw, 74px);
}

.pill {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.sale-band h2,
.story-hero h2,
.review-section h2,
.faq-section h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.sale-band p {
  max-width: 390px;
}

.story-hero {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  padding: 0 0 80px;
  color: white;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at 55% 45%, #caa13e 0 9%, transparent 9%),
    linear-gradient(110deg, #c7b99c, #eee3d0 52%, #b99b6a);
}

.story-hero::after {
  position: absolute;
  left: 47%;
  top: 28%;
  width: 170px;
  height: 170px;
  content: "";
  border: 12px solid rgba(190, 145, 31, 0.9);
  border-radius: 50%;
  box-shadow: inset 0 0 0 32px rgba(190, 145, 31, 0.22);
}

.story-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.story-hero span,
.instagram-strip p {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.story-hero h2 {
  margin: 8px 0 16px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-heading--split {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.section-heading--split a {
  font-size: 12px;
  color: var(--muted);
}

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

.product-card {
  min-width: 0;
}

.product-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #d8ceb9;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__image--placeholder {
  background:
    radial-gradient(circle at 42% 42%, rgba(212, 169, 68, 0.8), transparent 0 22%, transparent 29%),
    linear-gradient(145deg, #b78350, #ead9b8);
}

.product-card__image--placeholder span {
  display: grid;
  place-items: center;
  width: 48%;
  aspect-ratio: 1;
  border: 2px solid rgba(77, 52, 28, 0.55);
  border-radius: 50%;
  color: #4b351f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 600;
}

.product-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding-top: 14px;
}

.product-card__title {
  font-weight: 700;
  font-size: 13px;
}

.product-card__price {
  font-weight: 800;
  font-size: 13px;
}

.product-card__body p,
.edit-card strong {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-card .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}

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

.review-section > p {
  max-width: 760px;
  margin: 16px auto 76px;
  color: var(--muted);
  font-size: 13px;
}

.review-slider {
  display: grid;
  grid-template-columns: 44px minmax(0, 720px) 44px;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.review-slider button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  color: white;
  font-size: 25px;
  cursor: pointer;
}

.review-slider blockquote {
  margin: 0;
}

.stars {
  color: #f0b100;
  font-size: 18px;
}

.review-slider p {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.review-slider cite {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 66px;
}

.review-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b6b0a5;
}

.edit-card a {
  display: grid;
  gap: 10px;
}

.edit-card img,
.edit-card__placeholder {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.68), transparent 18%),
    linear-gradient(140deg, #d5b790, #a6a98d 48%, #e9dfcb);
}

.edit-card strong {
  color: var(--ink);
  font-weight: 700;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: start;
}

.faq-section__intro p {
  max-width: 360px;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 38px 20px 0;
  color: var(--muted);
}

.instagram-strip {
  padding: 56px 0 70px;
  border-top: 1px solid #282828;
  text-align: center;
}

.instagram-strip h2 {
  margin: 6px 0 38px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.instagram-strip__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.instagram-strip__grid span {
  aspect-ratio: 1.05;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.6), transparent 18%),
    linear-gradient(140deg, #d9bb8e, #867d5e 46%, #ebe0cf);
}

.instagram-strip__grid span:nth-child(even) {
  background:
    radial-gradient(circle at 40% 22%, rgba(255, 255, 255, 0.58), transparent 20%),
    linear-gradient(135deg, #a4a88b, #e0d6c7 52%, #c18d5d);
}

.site-footer {
  background: var(--charcoal);
  color: white;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 86px 0 70px;
}

.footer-logo {
  display: inline-grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 0.9;
}

.footer-logo small {
  display: block;
  margin-top: 5px;
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
}

.footer-logo img {
  max-width: 130px;
  max-height: 130px;
}

.social-row {
  display: flex;
  gap: 18px;
  margin-top: 42px;
  color: #9d9d9d;
}

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

.site-footer__cols section {
  display: grid;
  align-content: start;
  gap: 11px;
}

.site-footer__cols h2 {
  margin-bottom: 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer__cols a,
.site-footer__legal {
  color: #9e9e9e;
  font-size: 12px;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 0 0 48px;
}

.content-area {
  min-height: 70vh;
}

.entry h1,
.shop-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 82px);
}

.entry-content {
  color: var(--muted);
}

.shop-hero {
  padding: 150px 24px 70px;
  background:
    linear-gradient(90deg, rgba(45, 43, 37, 0.42), rgba(45, 43, 37, 0.1)),
    linear-gradient(130deg, #bc9d70, #eee1ca 58%, #a7ad92);
  color: white;
  text-align: center;
}

.shop-hero span {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.woocommerce ul.products li.product .price {
  color: var(--ink);
  font-weight: 800;
}

.woocommerce span.onsale {
  background: var(--moss);
}

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

  .site-header__brand {
    justify-content: start;
    order: -1;
  }

  .site-header__nav {
    position: fixed;
    inset: 70px 0 auto;
    display: none;
    padding: 24px;
    background: rgba(20, 20, 18, 0.95);
  }

  .site-header.is-menu-open .site-header__nav {
    display: block;
  }

  .menu {
    display: grid;
    gap: 18px;
    font-size: 13px;
  }

  .site-header__menu-toggle {
    display: inline-grid;
  }

  .hero {
    min-height: 760px;
  }

  .hero__card--envelope {
    width: 310px;
    transform: translate(-24%, 5%) rotate(-2deg);
  }

  .hero__card--product {
    width: 230px;
    transform: translate(38%, -8%) rotate(1deg);
  }

  .category-grid,
  .sale-band,
  .product-grid,
  .edit-grid,
  .faq-section,
  .site-footer__inner,
  .site-footer__cols {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 330px;
  }

  .sale-band__image {
    min-height: 330px;
  }

  .story-hero {
    min-height: 540px;
  }

  .product-grid,
  .edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-slider {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 12px;
  }

  .instagram-strip__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__inner {
    gap: 50px;
  }

  .site-footer__legal {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header__inner,
  .page-section,
  .story-hero__content,
  .hero__copy,
  .instagram-strip__grid,
  .site-footer__inner,
  .site-footer__legal {
    width: min(100% - 32px, 1180px);
  }

  .site-header__actions {
    gap: 2px;
  }

  .icon-button {
    width: 30px;
    height: 30px;
  }

  .hero {
    min-height: 680px;
  }

  .hero__card--envelope {
    width: 230px;
    transform: translate(-20%, 16%) rotate(-2deg);
  }

  .hero__card--product {
    width: 190px;
    padding: 22px;
    transform: translate(34%, -12%) rotate(1deg);
  }

  .hero__copy {
    margin-bottom: 34px;
  }

  .category-tile {
    min-height: 270px;
    padding: 20px;
  }

  .sale-band__copy {
    padding: 28px;
  }

  .product-grid,
  .edit-grid {
    gap: 18px 12px;
  }

  .product-card__body {
    grid-template-columns: 1fr;
  }

  .product-card__price {
    justify-self: start;
  }

  .review-section > p {
    margin-bottom: 38px;
  }

  .review-slider {
    grid-template-columns: 1fr;
  }

  .review-slider button {
    display: none;
  }
}


