/* Firehouse Meals — Privacy Policy
   Aesthetic: warm editorial / institutional. Ember red on aged-paper cream,
   charcoal ink, brass accents. Built to be read, not skimmed. */

:root {
  --paper: #f3ead9;
  --paper-deep: #e9dcc4;
  --ink: #221d18;
  --ink-soft: #5a4f43;
  --ember: #b5331f;
  --ember-deep: #8c2414;
  --brass: #b07a2e;
  --rule: rgba(34, 29, 24, 0.14);
  --shadow: 24px 24px 0 rgba(34, 29, 24, 0.06);
  --measure: 64ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(176, 122, 46, 0.14), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(181, 51, 31, 0.1), transparent 38%);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Fixed grain overlay for paper texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--ember-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  z-index: 2;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}
.masthead__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); }
.brand__badge { color: var(--ember); display: grid; place-items: center; }
.brand__badge svg { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.brand__kicker {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: 'Spectral', serif;
}
.tag {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ember);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
}

/* ---------- Document layout ---------- */
.page { position: relative; z-index: 2; }
.document {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 4rem;
}

.document__intro { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.lede {
  font-size: clamp(1.12rem, 2.2vw, 1.36rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

.factbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--rule);
}
.factbar dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.factbar dd { margin: 0; font-family: 'Fraunces', serif; font-weight: 500; }

/* ---------- Body grid: sticky TOC + prose ---------- */
.document__body {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 5.5rem;
  font-size: 0.92rem;
}
.toc__label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 2.2rem;
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0.7rem;
  font-family: 'Fraunces', serif;
  font-size: 0.76rem;
  color: var(--brass);
  opacity: 0.7;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active {
  color: var(--ember-deep);
  border-left-color: var(--ember);
  font-weight: 600;
}

/* ---------- Prose ---------- */
.prose { max-width: var(--measure); }
.prose section { padding-block: clamp(1.5rem, 4vw, 2.6rem); border-top: 1px solid var(--rule); }
.prose section:first-child { border-top: none; padding-top: 0; }
.prose h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.prose .num {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: 0.02em;
  flex: none;
}
.prose h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.12rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--ink);
}
.prose p { margin: 0 0 1.1rem; }
.prose ul { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ember);
  transform: rotate(45deg);
}
.prose strong { font-weight: 600; color: var(--ink); }

.note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  border-left: 3px solid var(--brass);
  padding-left: 1rem;
  margin-top: 1.3rem;
}

.contact-card {
  display: block;
  font-style: normal;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin: 1.2rem 0;
}
.contact-card__name {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.footer__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer .brand__name { color: var(--paper); }
.footer__copy { font-size: 0.86rem; color: rgba(243, 234, 217, 0.65); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .document__body { grid-template-columns: 1fr; }
  .toc {
    position: static;
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 1.1rem 1.25rem;
    background: var(--paper-deep);
    margin-bottom: 2rem;
  }
  .toc ol { columns: 2; column-gap: 1.5rem; }
}

@media (max-width: 520px) {
  body { font-size: 1.02rem; }
  .toc ol { columns: 1; }
  .masthead__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
