/* Calmkept — shared stylesheet
   v1.0 · 2026-06-16 · Pepper
   Source spec: ../landing-page-content.md
   Palette + typography per calmkept-brand-brief.md.
   No JS, no analytics, no tracking, no third-party fonts — pure HTML + CSS + self-hosted woff2
   per ledger #43 truth-claim #1.
*/

/* Self-hosted fonts (latin subset). Original sources: Google Fonts (Cormorant Garamond v21, Inter v20),
   both Open Font License. Files served from /fonts/ to keep visitor IPs off third-party CDNs. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #F5EDDB;
  --sage: #7A8B6C;
  --sage-dark: #5F6F54;
  --charcoal: #1D1D1F;
  --charcoal-muted: rgba(29, 29, 31, 0.78);
  --charcoal-quiet: rgba(29, 29, 31, 0.60);
  --sage-tint: rgba(122, 139, 108, 0.08);
  --sage-tint-hover: rgba(122, 139, 108, 0.14);
  --border-sage: rgba(122, 139, 108, 0.28);
  --dusty-rose: #C49A9A;
  --soft-gold: #D4B370;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

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

a {
  color: var(--sage-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--charcoal);
  border-bottom-color: var(--sage);
}

a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2.5rem, 1080px);
}

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

.site-header {
  padding: 1.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.006em;
  color: var(--sage-dark);
  border-bottom: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--charcoal);
  border-bottom: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--charcoal-muted);
}

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

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
}

.hero__sprig {
  position: absolute;
  top: -1.5rem;
  right: -0.5rem;
  width: 110px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.006em;
  color: var(--charcoal);
  margin: 0 0 1.5rem;
  max-width: 22ch;
}

.hero__sub {
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  color: var(--charcoal-muted);
  margin: 0 0 2.25rem;
  max-width: 56ch;
}

.cta {
  display: inline-block;
  background: var(--sage);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  border: none;
  border-bottom: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--sage-dark);
  color: var(--cream);
  border-bottom: none;
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */

section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.006em;
  color: var(--sage-dark);
  margin: 0 0 1.75rem;
}

.story p {
  margin: 0 0 1.4rem;
}

.story p:last-child {
  margin-bottom: 0;
}

/* Eucalyptus divider between brand story + product showcase */
.divider-sprig {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.divider-sprig svg {
  width: 240px;
  height: auto;
  opacity: 0.75;
}

/* ---------- Product showcase ---------- */

.products .container {
  width: min(100% - 2.5rem, 1080px);
}

.products__sub {
  color: var(--charcoal-muted);
  font-size: 1rem;
  margin: 0 0 2.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--border-sage);
  border-radius: 6px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.product-card:hover,
.product-card:focus-within {
  background: var(--sage-tint);
  border-color: var(--sage);
}

.product-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.006em;
  color: var(--charcoal);
  margin: 0 0 0.35rem;
}

.product-card__price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--sage-dark);
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}

.product-card__desc {
  color: var(--charcoal-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  flex: 1;
}

.product-card__cta {
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--border-sage);
  padding-bottom: 2px;
}

.product-card__cta:hover,
.product-card__cta:focus-visible {
  color: var(--charcoal);
  border-bottom-color: var(--sage);
}

/* ---------- Trust + values ---------- */

.values ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .values ul {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
  }
}

.values li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--charcoal-muted);
  line-height: 1.55;
}

.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 1px;
  background: var(--sage);
}

.values li strong {
  display: block;
  color: var(--charcoal);
  font-weight: 500;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

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

.site-footer {
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--border-sage);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage-dark);
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: -0.003em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.footer-nav a {
  color: var(--charcoal-muted);
}

.copyright {
  font-size: 0.85rem;
  color: var(--charcoal-quiet);
  margin: 0;
}

/* ---------- Privacy page body ---------- */

.privacy-body {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.privacy-body h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.006em;
  color: var(--charcoal);
  margin: 0 0 0.6rem;
}

.privacy-body .effective {
  font-style: italic;
  color: var(--charcoal-muted);
  margin: 0 0 2rem;
}

.privacy-body h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.5vw, 1.8rem);
  color: var(--sage-dark);
  letter-spacing: -0.004em;
  margin: 2.5rem 0 0.85rem;
}

.privacy-body p {
  margin: 0 0 1.2rem;
  color: var(--charcoal);
}

.privacy-body p strong {
  color: var(--charcoal);
  font-weight: 600;
}

.privacy-body .changelog {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-sage);
  font-size: 0.95rem;
  color: var(--charcoal-muted);
}

.privacy-body .changelog h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.privacy-body .changelog ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-body .changelog li {
  margin-bottom: 0.6rem;
}

.privacy-body hr {
  border: none;
  border-top: 1px solid var(--border-sage);
  margin: 2.5rem 0;
}

/* ---------- Small-viewport tightening ---------- */

@media (max-width: 480px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero__sprig {
    width: 78px;
    top: -1rem;
    right: -0.25rem;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-nav,
  .footer-nav,
  .hero__sprig,
  .divider-sprig,
  .cta,
  .product-card__cta {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
