/*
 * Marketing site — Bloom brand (guidance/branding/README.md).
 * Static page, no build step. Palette mirrors frontend/src/index.css.
 */
:root {
  --bg: #fbf5e9;
  --bg-elevated: #ffffff;
  --tint: #f0e5cd;
  --border: #e2d6bc;
  --border-strong: #c8b894;
  --text: #5c4d3f;
  --text-h: #1f1a14;
  --text-soft: #8a7860;
  --accent: #14532d;
  --accent-h: #365314;
  --peach: #e85d75;
  --peach-soft: rgba(249, 168, 180, 0.35);
  --heading: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --shadow: rgba(58, 47, 32, 0.08) 0 10px 15px -3px, rgba(58, 47, 32, 0.05) 0 4px 6px -2px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-h);
}

/* --- Header --- */
.site-header {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-h);
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-open {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s;
  white-space: nowrap;
}

.wordmark span {
  white-space: nowrap;
}

.btn-open:hover {
  background: var(--accent-h);
  color: #ffffff;
}

.btn-open--lg {
  font-size: 17px;
  padding: 12px 26px;
}

/* --- Hero --- */
.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.hero__pitch h1 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.08;
  color: var(--text-h);
  margin: 0 0 20px;
}

.hero__pitch h1 em {
  font-style: italic;
  /* The one peach moment outside the ledger: "kept" is the promise. */
  background: linear-gradient(transparent 68%, var(--peach-soft) 68%);
  padding: 0 2px;
}

.hero__sub {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 34em;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero__policy-link {
  font-size: 15px;
}

/* --- The ledger (signature) --- */
.ledger {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px 24px 10px;
}

.ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-strong);
}

.ledger__family {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-h);
}

.ledger__week {
  font-size: 13px;
  color: var(--text-soft);
}

.ledger__entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger__entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.ledger__entry:last-child {
  border-bottom: 0;
}

.ledger__day {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ledger__what {
  color: var(--text);
}

.ledger__mark {
  color: var(--text-h);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger__mark--kept {
  color: var(--accent);
  background: var(--peach-soft);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 13px;
}

/* Entries write themselves in on load — the page's one animation. */
@media (prefers-reduced-motion: no-preference) {
  .ledger__entry {
    opacity: 0;
    transform: translateY(6px);
    animation: entry-in 0.45s ease-out forwards;
  }
  .ledger__entry:nth-child(1) { animation-delay: 0.15s; }
  .ledger__entry:nth-child(2) { animation-delay: 0.35s; }
  .ledger__entry:nth-child(3) { animation-delay: 0.55s; }
  .ledger__entry:nth-child(4) { animation-delay: 0.75s; }
  .ledger__entry:nth-child(5) { animation-delay: 0.95s; }
  .ledger__entry:nth-child(6) { animation-delay: 1.15s; }
}

@keyframes entry-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Ledger-ruled sections --- */
.entries,
.private,
.texts {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 2px solid var(--border-strong);
}

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

.entry h3 {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 21px;
  color: var(--text-h);
  margin: 0 0 10px;
}

.entry p {
  margin: 0;
  font-size: 16px;
}

.private h2,
.texts h2 {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--text-h);
  margin: 0 0 18px;
}

.private__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  max-width: 60em;
}

.private__facts li {
  padding-left: 26px;
  position: relative;
  font-size: 16px;
}

.private__facts li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.texts p {
  max-width: 46em;
  margin: 0 0 14px;
}

/* --- Footer --- */
.site-footer {
  border-top: 2px solid var(--border-strong);
  background: var(--tint);
}

.site-footer__id,
.site-footer__links {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__id {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 32px;
}

.site-footer__id p {
  margin: 0 0 4px;
  font-size: 15px;
}

.site-footer__id strong {
  color: var(--text-h);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 18px;
  padding-bottom: 36px;
  font-size: 15px;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 48px;
  }
  .entries {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .private__facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 14px 16px;
  }
  .wordmark {
    font-size: 18px;
    gap: 8px;
  }
  .btn-open {
    font-size: 14px;
    padding: 8px 14px;
  }
  .lang-toggle {
    padding: 6px 11px;
  }
  .hero__sub {
    font-size: 18px;
  }
  .ledger {
    padding: 16px 16px 6px;
  }
  .ledger__entry {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    font-size: 14px;
  }
}
