/* MaxReady Pow LLC — site styles
   Typography rule: every font size has exactly one colour.
   size token   -> colour token
   --fs-hero    -> --ink
   --fs-h2      -> --ink
   --fs-h3      -> --ink
   --fs-lead    -> --soft
   --fs-body    -> --body
   --fs-button  -> --paper   (on an --ink fill)
   --fs-nav     -> --ink
   --fs-meta    -> --muted
   --fs-label   -> --accent
   Links inherit the colour of their size and are marked by underline only. */

:root {
  --paper: #F5F2EA;
  --card: #FFFFFF;
  --rule: #DCD6C8;
  --ink: #14130F;
  --body: #26231F;
  --soft: #3D3A35;
  --muted: #625D55;
  --accent: #B23A1A;

  --fs-hero: clamp(2.75rem, 8.4vw, 5.5rem);
  --fs-h2: 1.875rem;
  --fs-h3: 1.3125rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-button: 1rem;
  --fs-nav: 0.9375rem;
  --fs-meta: 0.875rem;
  --fs-label: 0.75rem;

  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --wrap: 68rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130F;
    --card: #1E1C17;
    --rule: #35322A;
    --ink: #F5F2EA;
    --body: #E4E0D6;
    --soft: #CBC6BA;
    --muted: #A29C90;
    --accent: #FF8A5C;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--card); padding: 0.5rem 0.75rem;
  font-family: var(--sans); font-size: var(--fs-nav); color: var(--ink);
}
.skip:focus { left: var(--gutter); top: 0.5rem; z-index: 10; }

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

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: var(--fs-nav); font-weight: 800;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
}
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.brand .burst { fill: var(--accent); }
.nav { display: flex; gap: clamp(0.9rem, 3vw, 1.75rem); flex-wrap: wrap; }
.nav a {
  font-family: var(--sans); font-size: var(--fs-nav); font-weight: 600;
  color: var(--ink); text-decoration: none; padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- Shared type ---------- */

.label {
  display: block; margin: 0 0 1rem;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
h1, h2, h3 { font-family: var(--sans); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--soft); max-width: 36rem; }
.meta { font-family: var(--sans); font-size: var(--fs-meta); color: var(--muted); line-height: 1.5; }

/* ---------- Home ---------- */

.hero { padding: clamp(3.5rem, 11vw, 8rem) 0 clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 13ch; margin-bottom: 1.75rem; }
.hero .lead { margin-bottom: 2rem; }

.button {
  display: inline-block; padding: 0.8rem 1.25rem; border-radius: 0.35rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: var(--fs-button); font-weight: 700;
  text-decoration: none;
}
.button:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.section { padding: clamp(2.75rem, 7vw, 5rem) 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 2rem; }

.products { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.product {
  background: var(--card); border: 1px solid var(--rule); border-radius: 0.6rem;
  padding: 1.75rem; display: flex; flex-direction: column;
}
.product .label { margin-bottom: 0.6rem; }
.product h3 { margin-bottom: 0.6rem; }
.product p { flex: 1; }
.product .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.product .links a { font-family: var(--sans); font-size: var(--fs-nav); font-weight: 600; color: var(--ink); }

.facts { margin: 0; display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; border-top: 1px solid var(--rule); max-width: 44rem; }
.facts dt, .facts dd { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--sans); font-size: var(--fs-meta); color: var(--muted); padding-top: 1.05rem; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: 0.15rem; }
}

/* ---------- Documents (privacy, terms, support) ---------- */

.doc { padding: clamp(2.75rem, 8vw, 5rem) 0 clamp(3rem, 8vw, 5rem); }
.doc-head { margin-bottom: 2.5rem; max-width: var(--measure); }
.doc-head h1 { font-size: clamp(2.25rem, 6.5vw, 3.75rem); margin-bottom: 1rem; }
.doc-body { max-width: var(--measure); }
.doc-body h2 { margin: 2.75rem 0 0.9rem; }
.doc-body h3 { margin: 1.75rem 0 0.5rem; }
.doc-body ul, .doc-body ol { margin: 0 0 1.1em; padding-left: 1.3rem; }
.doc-body li { margin-bottom: 0.4em; }
.callout {
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 0.4rem; padding: 1.1rem 1.25rem; margin: 0 0 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer p, .site-footer ul { margin: 0; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-footer, .site-footer a { font-family: var(--sans); font-size: var(--fs-meta); color: var(--muted); }
