/* =========================================================
   Pickle Candle Company — Temporary Homepage
   Mobile-first. No frameworks. Easy to hand-edit.
   ========================================================= */

/* ----- Custom Properties --------------------------------- */
:root {
  --color-canvas:   #30321e;
  --color-border:   rgba(127, 176, 116, 0.2);
  --color-fg:       #e6e6e6;
  --color-fg-muted: #afc07a;
  --color-heading:  #e6e6e6;
  --color-olive:    #7fb074;
  --color-sage:     #afc07a;
  --color-flame:    #afc07a;
  --color-brine:    #635523;

  /* golden brown used only as shadow, not foreground text */
  --shadow-warm:    rgba(99, 85, 35, 0.55);
  --shadow-dark:    rgba(0, 0, 0, 0.4);

  /* card surface over the dark canvas */
  --surface-card:   rgba(255, 255, 255, 0.05);
  --surface-hover:  rgba(255, 255, 255, 0.08);
  --surface-active: rgba(76, 98, 52, 0.35);

  --font-display: 'Aboreto', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-body:    'Trebuchet MS', 'Gill Sans', 'Gill Sans MT', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  5rem;

  --max-width: 56rem;
  --section-pad: var(--space-lg) var(--space-md);
}

/* ----- Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-canvas);
  background-image:
    radial-gradient(ellipse at 50% 0%,   rgba(76, 98, 52, 0.22)  0%, transparent 55%),
    radial-gradient(ellipse at 15% 55%,  rgba(99, 85, 35, 0.12)  0%, transparent 40%),
    radial-gradient(ellipse at 85% 40%,  rgba(76, 98, 52, 0.09)  0%, transparent 40%);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

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

ul { list-style: none; }

/* ----- Background texture -------------------------------- */
.page-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  mix-blend-mode: multiply;
}

/* ----- Layout helpers ------------------------------------ */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--section-pad);
}

/* ----- Site Header --------------------------------------- */
.site-header {
  background: linear-gradient(160deg, #6e5e28 0%, #635523 55%, #4d4219 100%);
  color: var(--color-fg);
  position: relative;
  z-index: 1;
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-md);
  text-align: center;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 0.08em;
  color: var(--color-fg);
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.header-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-top: var(--space-xs);
}

/* ----- Hero Section -------------------------------------- */
.hero {
  border-bottom: 1px solid var(--color-border);
}

.hero .section-inner {
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.rule-ornament {
  font-family: var(--font-display);
  color: var(--color-sage);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  display: block;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6rem);
  color: var(--color-olive);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  text-shadow:
    0 2px 16px var(--shadow-warm),
    0 1px 4px var(--shadow-dark);
}

.hero-body {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-fg-muted);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.8;
}

/* ----- Section headings ---------------------------------- */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--color-heading);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
  text-shadow: 0 1px 8px var(--shadow-warm);
}

.section-note {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-md);
}

/* ----- About / Pillars ----------------------------------- */
.about {
  background: rgba(48, 50, 30, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-pillars {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  padding: var(--space-md);
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-olive);
  box-shadow:
    0 2px 12px var(--shadow-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pillar-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-olive);
  margin-bottom: var(--space-xs);
}

.pillar p {
  font-size: 0.95rem;
  color: var(--color-fg-muted);
  line-height: 1.65;
}

/* ----- Scent List ---------------------------------------- */
.scents {
  background: rgba(48, 50, 30, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.scent-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .scent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .scent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scent-category {
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-sage);
  box-shadow: 0 1px 6px var(--shadow-dark);
}

.scent-category--wide {
  grid-column: 1 / -1;
}

.category-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-xs);
}

.scent-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.scent-list li {
  font-size: 0.9rem;
  color: var(--color-fg);
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}

.scent-list li:last-child {
  border-bottom: none;
}

.scent-list--columns {
  columns: 2;
  column-gap: var(--space-md);
  display: block;
}

@media (min-width: 36rem) {
  .scent-list--columns {
    columns: 3;
  }
}

.scent-list--columns li {
  break-inside: avoid;
  display: block;
}

/* ----- Survey -------------------------------------------- */
.survey {
  background: rgba(48, 50, 30, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.survey-form { }

.mold-fieldset {
  border: none;
  margin-bottom: var(--space-md);
}

.mold-legend {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--color-heading);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
  display: block;
}

.legend-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  font-weight: normal;
}

.mold-grid {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .mold-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .mold-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mold-option {
  display: block;
  cursor: pointer;
}

.mold-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mold-card {
  display: block;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  box-shadow: 0 1px 4px var(--shadow-dark);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.mold-option input:checked + .mold-card {
  border-left-color: var(--color-olive);
  background: var(--surface-active);
  box-shadow: 0 2px 10px var(--shadow-warm);
}

.mold-option:hover .mold-card {
  border-color: rgba(127, 176, 116, 0.45);
  background: var(--surface-hover);
  box-shadow: 0 2px 8px var(--shadow-dark);
}

.mold-option input:focus-visible + .mold-card {
  outline: 2px solid var(--color-flame);
  outline-offset: 2px;
}

.mold-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
}

.mold-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  line-height: 1.45;
}

.survey-other {
  margin-bottom: var(--space-md);
}

.survey-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-xs);
}

.survey-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}

.survey-textarea:focus {
  outline: 2px solid var(--color-flame);
  outline-offset: 0;
}

.survey-submit-row {
  display: flex;
  justify-content: flex-start;
}

.survey-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-fg);
  background: linear-gradient(135deg, #6e5e28 0%, #635523 100%);
  border: none;
  padding: 0.75rem 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-warm);
  transition: background 0.15s, box-shadow 0.15s;
}

.survey-btn:hover {
  background: linear-gradient(135deg, #7a6830 0%, #6e5e28 100%);
  box-shadow: 0 3px 12px var(--shadow-warm);
}

.survey-btn:focus-visible {
  outline: 2px solid var(--color-flame);
  outline-offset: 3px;
}

.survey-confirm {
  text-align: center;
  padding: var(--space-lg) 0;
}

.confirm-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--color-olive);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
  text-shadow:
    0 2px 16px var(--shadow-warm),
    0 1px 4px var(--shadow-dark);
}

.confirm-body {
  font-size: 1rem;
  color: var(--color-fg-muted);
  line-height: 1.7;
}

/* ----- Footer -------------------------------------------- */
.site-footer {
  background: linear-gradient(160deg, #4d4219 0%, #635523 50%, #6e5e28 100%);
  color: var(--color-fg);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-fg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.footer-note {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
}

.footer-links {
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--color-sage);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links-sep {
  margin-inline: 0.5rem;
  color: rgba(230, 230, 230, 0.3);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(230, 230, 230, 0.35);
  margin-top: var(--space-sm);
}

/* ----- Accessibility ------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-flame);
  outline-offset: 3px;
}


.hero-heading {
  position: relative;
  isolation: isolate;
}

.hero-heading::before {
  content: "";
  position: absolute;
  inset: -0.08em -0.12em;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 55%,
      rgba(255, 214, 122, 0.72) 0%,
      rgba(255, 182, 72, 0.50) 28%,
      rgba(214, 120, 34, 0.24) 56%,
      rgba(99, 85, 35, 0.06) 78%,
      rgba(99, 85, 35, 0.00) 100%);
  filter: blur(6px);
  transform: scale(0.995);
  opacity: 0.72;
  animation: heroPulse 3.6s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes heroPulse {
  0% {
    opacity: 0.62;
    transform: scale(0.99) translateY(0px);
    filter: blur(5px);
  }
  18% {
    opacity: 0.74;
    transform: scale(1.01) translateY(-0.5px);
    filter: blur(6px);
  }
  36% {
    opacity: 0.66;
    transform: scale(1.00) translateY(0px);
    filter: blur(5.5px);
  }
  58% {
    opacity: 0.80;
    transform: scale(1.015) translateY(-0.5px);
    filter: blur(7px);
  }
  78% {
    opacity: 0.68;
    transform: scale(1.00) translateY(0px);
    filter: blur(5.5px);
  }
  100% {
    opacity: 0.62;
    transform: scale(0.99) translateY(0px);
    filter: blur(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-heading::before {
    animation: none;
    opacity: 0.72;
    transform: scale(1);
    filter: blur(6px);
  }
}
