/* Primrose Post marketing site. Tokens from the Primrose Post Design Guidelines. */

/*
 * The brand typefaces, served from this site (SIL Open Font License, see fonts/OFL-*.txt): the same static files
 * the app uses (@expo-google-fonts). Pages with class="own-fonts" on <body> (privacy) use them, so they show the
 * brand faces without asking anyone else for them. The home page still loads the variable fonts from Google Fonts
 * and never names these families, so it never downloads them. A browser downloads a face only when text uses it.
 */
@font-face {
  font-family: 'Primrose Fraunces';
  src: url('/fonts/Fraunces-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Primrose Fraunces';
  src: url('/fonts/Fraunces-400-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Primrose DM Sans';
  src: url('/fonts/DMSans-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Primrose DM Sans';
  src: url('/fonts/DMSans-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #faf3dd;
  --paper: #fffaf0;
  --paper-light: #fffdf6;
  --primrose: #f3e08a;
  --halo: #f3e4a2;
  --golden-eye: #e3a92b;
  --sage-wax: #7c9b69;
  --leaf: #8daa78;
  --deep-sage: #4e6a44;
  --deep-sage-pressed: #3b5234;
  --robin-orange: #e2703f;
  --dusty-rose: #e2b3aa;
  --ink: #4a3428;
  --ink-secondary: #6b5647;
  --ink-soft: #5f4b3e;
  --rust: #a3461f;
  --meadow: #eef0d6;
  --river: #d3e3e0;
  --card-border: #e2d6b6;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Pages that load no Google Fonts: Fraunces or DM Sans if installed, else this site's own copies. */
.own-fonts {
  --serif: 'Fraunces', 'Primrose Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Primrose DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a:hover {
  color: var(--deep-sage-pressed);
}

:focus-visible {
  outline: 3px solid var(--golden-eye);
  outline-offset: 3px;
  border-radius: 6px;
}

svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-sage);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--paper-light);
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

/* Header */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 26px;
  background: var(--deep-sage);
  color: var(--paper-light);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--deep-sage-pressed);
  color: var(--paper-light);
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn,
.brand {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .btn-small {
    padding: 0 14px;
    font-size: 14px;
  }
}

.soon {
  font-size: 15px;
  color: var(--ink-secondary);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(44px, 7.4vw, 80px);
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.lede {
  margin-top: 20px;
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--ink-soft);
  max-width: 34em;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}

.hero-art {
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

@media (prefers-reduced-motion: no-preference) {
  .float {
    animation: float 4.5s ease-in-out infinite;
  }
  @keyframes float {
    50% {
      transform: translateY(-6px);
    }
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 104px;
  }
}

/* Sections */
section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.015em;
  margin-top: 12px;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.band {
  background: var(--paper);
  border-top: 1.5px solid var(--card-border);
  border-bottom: 1.5px solid var(--card-border);
}

/* Journey cards */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--paper-light);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(74, 52, 40, 0.08);
  padding: 20px 20px 24px;
}

.card-art {
  height: 150px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card h3 {
  font-size: 24px;
  margin-top: 20px;
}

.card p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-secondary);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep-sage);
  color: var(--paper-light);
  font-weight: 700;
  font-size: 14px;
  margin-top: 20px;
}

/* Seal stages */
.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.stages li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stages h3 {
  font-size: 30px;
  margin-top: 18px;
}

.stages p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink-secondary);
  max-width: 260px;
}

/* Pip */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.split-art {
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.split-art svg {
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--rust);
  margin-top: 6px;
}

/* Promises */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.promise h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

.promise p {
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink-secondary);
}

/* Closing call to action */
.closing {
  text-align: center;
  padding-bottom: 96px;
}

.closing h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.015em;
  margin-top: 20px;
}

.closing .ctas {
  justify-content: center;
}

footer {
  border-top: 1.5px solid var(--card-border);
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Reading pages (privacy) */
.doc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 40px;
}

.doc-head h1 {
  font-size: clamp(40px, 6.4vw, 64px);
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.updated {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.doc-art {
  width: 100%;
  max-width: 220px;
  justify-self: center;
}

@media (min-width: 900px) {
  .doc-head {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .doc-art {
    max-width: 320px;
  }
}

.short {
  padding: 28px 24px;
}

.short h2,
.note h3 {
  font-family: var(--serif);
  font-weight: 600;
}

.short h2 {
  font-size: clamp(28px, 3.6vw, 36px);
}

.short-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px 32px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.short-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}

.short-list svg {
  flex: none;
  margin-top: 3px;
}

.short p,
.note p {
  margin-top: 0;
  font-size: inherit;
  color: var(--ink);
}

.doc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.toc ol {
  margin: 12px 0 0;
  padding: 0 0 0 2em;
  font-size: 16px;
  columns: 2 220px;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.toc li::marker {
  color: var(--ink-secondary);
}

@media (min-width: 1000px) {
  .doc-body {
    grid-template-columns: 240px minmax(0, 720px);
    gap: 64px;
  }
  .toc {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .toc ol {
    columns: auto;
  }
}

.prose section.doc-section {
  padding: 0;
}

.doc-section + .doc-section {
  margin-top: 56px;
}

.doc-section h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}

.doc-section h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  margin-top: 28px;
}

.doc-section p,
.doc-section ul,
.doc-section ol {
  margin-top: 12px;
}

.doc-section ul,
.doc-section ol {
  padding-left: 1.3em;
}

.doc-section li + li {
  margin-top: 8px;
}

.doc-section li::marker {
  color: var(--deep-sage);
}

.doc-section strong {
  font-weight: 700;
}

.note {
  margin-top: 28px;
  scroll-margin-top: 24px;
}

.note h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  margin-top: 0;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  background: var(--paper-light);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
}

.table-wrap th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-sage);
}

.table-wrap tbody tr {
  border-top: 1.5px solid var(--card-border);
}

.table-wrap td:first-child {
  width: 50%;
}

.table-wrap td:last-child {
  color: var(--ink-secondary);
}

/* On phones each row reads as a short pair: what, then how long. */
@media (max-width: 560px) {
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-wrap tbody tr:first-child {
    border-top: 0;
  }
  .table-wrap td {
    display: block;
  }
  .table-wrap td:first-child {
    width: auto;
    font-weight: 700;
    padding-bottom: 2px;
  }
  .table-wrap td:last-child {
    padding-top: 0;
  }
}

/* Below the sticky-sidebar width the contents list sits only at the top, so each section links back to it. */
.toc {
  scroll-margin-top: 24px;
}

.back-to-toc {
  font-size: 15px;
}

.doc-section .back-to-toc {
  margin-top: 20px;
}

.back-to-toc a::before {
  content: "↑ ";
  content: "↑ " / "";
}

@media (min-width: 1000px) {
  .back-to-toc {
    display: none;
  }
}

/* SVG line styles shared by the illustrations */
.ink { stroke: #4a3428; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.ink2 { stroke: #4a3428; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.k15 { stroke: #4a3428; stroke-width: 1.5; }
.ln { fill: none; stroke: #4a3428; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ln2 { fill: none; stroke: #4a3428; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fea { fill: none; stroke: #553624; stroke-width: 2.5; stroke-linecap: round; }
.band-line { fill: none; stroke: #b8c2c5; stroke-width: 12; }
.strapo { fill: none; stroke: #4a3428; stroke-width: 15; }
.strap { fill: none; stroke: #5e7d52; stroke-width: 10; }
.buckle { fill: none; stroke: #e3a92b; stroke-width: 3; }
.branch { fill: none; stroke: #8c6a4c; stroke-width: 13; stroke-linecap: round; }
.twig { fill: none; stroke: #8c6a4c; stroke-width: 6; stroke-linecap: round; }
.leafm { fill: #8daa78; stroke: #4a3428; stroke-width: 2.2; stroke-linejoin: round; }
.rib { fill: none; stroke: #5e7d52; stroke-width: 1.6; stroke-linecap: round; }
.pet { fill: #f3e08a; stroke: #4a3428; stroke-width: 2.6; stroke-linejoin: round; }
.env { fill: #fffaf0; stroke: #e0d2b8; stroke-width: 2; }
.flap { fill: #f6ecd8; stroke: #e0d2b8; stroke-width: 2; stroke-linejoin: round; }
.fold { fill: none; stroke: #e8dcc5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.liner { fill: none; stroke: #e2b3aa; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wax { fill: #7c9b69; stroke: #56724a; stroke-width: 1.5; }
.waxsh { fill: #4a3428; opacity: 0.14; }
.hl { fill: none; stroke: #b9d0a6; stroke-width: 3; stroke-linecap: round; opacity: 0.85; }
.rim { fill: none; stroke: #a9c495; stroke-width: 2.5; }
.rim2 { fill: none; stroke: #587548; stroke-width: 1.5; }
.stem { fill: none; stroke: #afca9b; stroke-width: 3; stroke-linecap: round; }
.leaf { fill: #afca9b; stroke: #56724a; stroke-width: 1; stroke-linejoin: round; }
.bud { fill: #c3d9b0; stroke: #56724a; stroke-width: 1.2; stroke-linejoin: round; }
.petal { fill: #f3e08a; stroke: #b8932c; stroke-width: 2; stroke-linejoin: round; }
.route-on { fill: none; stroke: #b88f45; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; }
.route-off { fill: none; stroke: #d2bf94; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; }
.stop { fill: #4e6a44; stroke: #fffdf6; stroke-width: 2; }
