/* ==========================================================================
   Passée — site stylesheet
   Brand parity with the iOS app (Sources/Design/Color+Passee.swift,
   Sources/Typography.swift). Same tokens, same restraint.
   ========================================================================== */

/* ----- Tokens ------------------------------------------------------------- */

:root {
  /* Surfaces */
  --bg: #FAF7EE;          /* page background — warm cream */
  --surface: #FFFDF8;     /* tile / card */
  --surface-tile: #F5EFE0;

  /* Ink */
  --ink: #1F1A14;         /* primary text */
  --ink-secondary: #6F5F4F;
  --ink-soft: #786E60;    /* tertiary, captions */
  --ink-faint: #D8CFB7;   /* hairlines + dividers */

  /* Accents (audience-routing) */
  --sage: #3E5A3E;        /* steady / practical */
  --sage-deep: #2F4A2F;
  --terracotta: #9E6145;  /* urgency / passée */
  --terracotta-deep: #8C4729;
  --rose: #C9959A;        /* tender / beauty celebration */
  --rose-deep: #80424D;
  --rose-ink: #4D2530;
  --slate-blue: #6E8499;  /* dignified / medical celebration */
  --slate-blue-deep: #4F6478;

  /* Layout */
  --content-width: 720px;
  --content-width-wide: 960px;
  --hairline: 0.5px solid var(--ink-faint);
  --hairline-strong: 0.5px solid var(--ink-soft);
}

/* ----- Reset (light) ------------------------------------------------------ */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
}

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

a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 0.5px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 120ms ease;
}

a:hover {
  opacity: 0.7;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ----- Typography --------------------------------------------------------- */

.serif,
h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem);
}

p {
  margin: 0 0 1.25rem;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  font-style: normal;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.upright {
  font-style: normal;
}

.brand {
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--sage);
}

/* ----- Layout primitives -------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--content-width-wide);
}

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.divider {
  border: 0;
  border-top: var(--hairline);
  margin: 3rem 0;
}

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

.site-header {
  border-bottom: var(--hairline);
  padding: 1.25rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header .brand {
  font-size: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  border-bottom-color: transparent;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  border-bottom-color: var(--ink);
  opacity: 1;
}

.site-footer {
  margin-top: auto;
  border-top: var(--hairline);
  padding: 2.5rem 0 3rem;
  background: var(--bg);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer .brand {
  font-size: 1.25rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a {
  color: var(--ink-soft);
  border-bottom-color: transparent;
  font-size: 0.875rem;
}

.site-footer__nav a:hover {
  color: var(--ink);
  opacity: 1;
}

.site-footer__small {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ----- Document pages (privacy, terms, faq) ------------------------------ */

.doc {
  padding: 3rem 0 4rem;
}

.doc__header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: var(--hairline);
}

.doc__header h1 {
  margin: 0 0 0.75rem;
}

.doc__header .effective {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  font-style: normal;
}

.doc h2 {
  margin: 2.5rem 0 1.25rem;
}

.doc h3 {
  margin: 1.75rem 0 0.875rem;
}

.doc p,
.doc ul,
.doc ol,
.doc blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.doc ul,
.doc ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.625rem;
}

.doc li::marker {
  color: var(--ink-soft);
}

.doc blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface-tile);
  border-left: 2px solid var(--ink-faint);
  font-style: italic;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.doc hr {
  border: 0;
  border-top: var(--hairline);
  margin: 3rem 0;
}

.doc__last-updated {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: var(--hairline);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ----- FAQ-specific ------------------------------------------------------- */

.faq__group {
  margin-bottom: 2.5rem;
}

.faq__entry {
  padding: 1.5rem 0;
  border-bottom: var(--hairline);
}

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

.faq__entry .eyebrow {
  margin-bottom: 0.5rem;
}

.faq__entry h3 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

.faq__entry p {
  margin: 0 0 0.75rem;
  color: var(--ink);
}

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

/* ----- 404 ---------------------------------------------------------------- */

.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 0;
}

.notfound h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin: 0 0 1.25rem;
  color: var(--terracotta-deep);
}

.notfound .lead {
  margin-bottom: 2rem;
  max-width: 480px;
}

/* ----- Utility ------------------------------------------------------------ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden {
  composes: sr-only;
}
