/* The public site in F · Pipe & Plants: landing, about, support, privacy, terms.
 *
 * Served as a bare file, never through the app bundle (App Review and the store
 * listing open these pages directly), so the F tokens are duplicated here from
 * src/styles/app.css rather than imported. Keep the two in step.
 * pages.css is the factory's navy default and is no longer linked.
 */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/manrope-latin-variable.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/fonts/martian-mono-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --paper: #F4EFE6; --dock: #FAF7F1; --ink: #1F2A22; --ink-2: #3E4A41; --muted: #5E6B60; --faint: #8A948B;
  --leaf: #3F7A4E; --sage: #E6EDE4; --mustard: #F2C230; --oak: #B9854B; --line: #ECE6DC;
  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, monospace;
  --radius: 16px;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 3.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 500 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--mustard) 55%, transparent); color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 10; padding: .75rem 1rem;
  background: var(--ink); color: var(--dock); border-radius: 999px; }
.skip:focus { top: .75rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); letter-spacing: -0.025em;
  line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; }
em { font-style: normal; color: var(--leaf); }
p { margin: 0; text-wrap: pretty; }
.kick { font: 600 .75rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono { font: 500 .6875rem/1.4 var(--font-mono); color: var(--muted); letter-spacing: 0; }

/* the one ink pill; the arrow is the mustard detail */
.cta { display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: 0 1.65rem; border-radius: 999px;
  background: var(--ink); color: var(--dock); font: 800 1rem/1 var(--font-body); text-decoration: none; }
.cta i { font-style: normal; color: var(--mustard); }
.cta:hover { background: var(--ink-2); }
.quiet { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .cta { transition: transform .18s ease, background-color .18s ease; }
  .cta:hover { transform: translateY(-1px); }
  .cta:active { transform: scale(.98); }
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none;
  font: 800 1.0625rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

/* standalone page header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; font-weight: 700;
  text-decoration: none; color: var(--ink); }
.site-header nav a i { font-style: normal; color: var(--ink); margin-left: .3rem; }

/* prose (about, support, privacy, terms) */
.prose { max-width: 42rem; padding-block: clamp(3rem, 6vw, 5.5rem); }
.prose h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem); letter-spacing: -0.035em; line-height: .98; }
.prose .lede { margin-top: 1.1rem; font-size: 1.1875rem; color: var(--ink-2); max-width: 38ch; }
.prose .updated { margin-top: .9rem; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin: 2.75rem 0 .75rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--leaf); }
.prose strong { color: var(--ink); }

/* inline links inside running prose/FAQ text: pad the tap target to 44px tall
   and cancel the padding with a matching negative margin so the extra hit
   area doesn't push surrounding lines apart. */
.prose p a, .prose li a, .faq p a { display: inline-block; padding-block: .625rem; margin-block: -.625rem; }
/* the standalone "back" link sits alone in its own paragraph, so it can just
   grow to 44px like the other quiet/nav links without a cancelling margin. */
.policy .back a { display: inline-flex; align-items: center; min-height: 44px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.25rem 3rem; color: var(--muted); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; }
.site-footer p { font: 500 .75rem/1.5 var(--font-mono); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 .25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; color: var(--ink-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .skip, .site-header nav { display: none; } }
