:root {
  --cream: #f4eee1;
  --surface: #fbf8f2;
  --ink: #2e2620;
  --ink-soft: #5a5044;
  --sage: #5e7052;
  --sage-dark: #46543d;
  --ochre: #c08a2e;
  --ochre-dark: #a2711f;
  --line: #ddd3c0;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--sage-dark); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(244, 238, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo { height: 42px; width: auto; }

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--sage-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--sage);
  color: var(--surface);
}

.btn-primary:hover { background: var(--sage-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--surface); }

.btn-small { padding: 10px 20px; font-size: 0.88rem; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Soap-bar motif ----------
   A recurring rounded, beveled shape standing in for an actual
   bar of soap. Used for the hero art, the fact strip, soap
   cards, buying options, and the app screenshot frame. */

.soap-bar {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(155deg, var(--surface) 0%, #f0e8d6 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6),
              0 10px 24px rgba(46, 38, 32, 0.06);
  padding: 30px;
}

.soap-bar::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(46, 38, 32, 0.08);
}

.placeholder-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage-dark);
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

.hero-lede { font-size: 1.05rem; color: var(--ink-soft); }

.soap-bar--hero {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(155deg, #f0e8d6 0%, #e3d6b8 100%);
}

/* ---------- Facts strip ---------- */

.facts { padding: 8px 0 64px; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fact p { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Soaps grid ---------- */

.soaps { padding: 24px 0 72px; }

.section-lede { color: var(--ink-soft); max-width: 60ch; }

.soap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.soap-card-art {
  min-height: 160px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.soap-card h3 { font-size: 1.05rem; }
.soap-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Buying ---------- */

.buy { padding: 24px 0 72px; }

.buy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.buy-option p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- App section ---------- */

.app-section {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.store-badge-placeholder {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px dashed var(--ink-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.app-shot {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #f0e8d6 0%, #e3d6b8 100%);
}

/* ---------- Contact ---------- */

.contact { padding: 72px 0 96px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.contact-form button { margin-top: 18px; align-self: flex-start; }

.form-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo { height: 28px; width: auto; opacity: 0.85; }

.footer-row p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .app-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-art { order: -1; }

  .facts-grid,
  .buy-grid { grid-template-columns: 1fr; }

  .soap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .soap-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
