/* readwitharmchair.com: tokens, fonts and the responsive rules.
   mockup.css (generated from the design reference) styles the page itself;
   the rules here come after it and win where they overlap. */

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
/* Only the five icons the phone mockups use. */
@font-face {
  font-family: 'Material Symbols Rounded';
  src: url('/fonts/material-symbols-subset.woff2') format('woff2');
  font-weight: 300 600;
  font-display: block;
}

:root {
  --color-bg: #F5F1E8;
  --color-surface: #FBF8F2;
  --color-surface-2: #ECE6DA;
  --color-text: #26231E;
  --color-text-2: #6B6458;
  --color-accent: #3A3428;
  --color-accent-soft: #F6DF6B40;
  --color-on-accent: #26231E;
  --color-highlight: #F6DF6B40;
  --color-button: #F6DF6B;
  --color-on-button: #26231E;
  --color-border: #E0D8C9;
  --color-danger: #A3362B;
  --color-keyboard: #D3CFC6;
  --color-key: #FCFBF8;
  --color-link-line: #C9BFAE;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--color-accent); }
a:hover { color: var(--color-text); }
img { max-width: 100%; }

/* The sticky header's blur, for Safari. */
header { -webkit-backdrop-filter: blur(10px); }

/* The phone mockups scale down to fit narrow screens (set by the page's script). */
.hero-phones { zoom: var(--hero-zoom, 1); }
.feat-zoom { zoom: var(--feat-zoom, 1); }

.br-tablet { display: none; }

@media (max-width: 719px) {
  .nav-link { display: none; }
}

/* Below 1000px the hero stacks: a centered text block over the phones. */
@media (max-width: 999px) {
  .hero-text { max-width: 680px !important; }
  .hero-title {
    font-size: min(56px, calc(min(680px, 100vw - 96px) / 13.5)) !important;
    text-wrap: wrap !important;
  }
  .hero-desc { max-width: none !important; }
  .hero-badges { align-items: center !important; }
}
/* Tablet: the title is exactly two lines. */
@media (min-width: 600px) and (max-width: 999px) {
  .hero-line1 { white-space: nowrap !important; }
  .br-tablet { display: inline; }
}
@media (max-width: 599px) {
  .hero-title { font-size: clamp(36px, calc((100vw - 48px) / 8.5), 44px) !important; }
}

/* ---- Privacy Policy ---------------------------------------------------- */

.policy {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  font-size: 18px;
  line-height: 1.65;
}
.policy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.policy .date { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--color-text-2); }
.policy .summary {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.45;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px 28px;
}
.policy h2 { margin: 0 0 12px; font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.2; }
.policy p { margin: 0 0 12px; }
.policy p:last-child { margin-bottom: 0; }
.policy ul { margin: 0 0 12px; padding-left: 1.2em; }
.policy li { margin: 6px 0; }
.policy a { color: var(--color-accent); text-decoration-color: var(--color-link-line); text-underline-offset: 3px; }
.policy a:hover { text-decoration-color: var(--color-text); }
