/* Pump and Plate website.
   Layout: one narrow column like a training log card, with the iron plate
   as the only big picture. No web fonts from other sites, no trackers:
   the display face ships with the site, the body uses the phone's own font. */

@font-face {
  font-family: "Plate Black";
  src: url("fonts/archivo-black.woff2") format("woff2");
  font-display: swap;
}

:root {
  --chalk: #eceeef;      /* page: gym chalk on steel */
  --card: #f8f9f9;       /* raised surfaces */
  --iron: #1b1c1e;       /* text: cast iron */
  --steel: #5d6369;      /* quiet text */
  --rule: #d3d7da;       /* hairlines */
  --red: #c62f2b;        /* the icon's red, deepened for text on light */
  --red-fill: #e53935;   /* the icon's red, for large fills */
  --on-red: #ffffff;
  --display: "Plate Black", "Arial Black", "Helvetica Neue", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.2rem, 7vw, 3.4rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --chalk: #121314;
    --card: #1c1e20;
    --iron: #eceeef;
    --steel: #a3a9ae;
    --rule: #2f3235;
    --red: #ff6b63;
    --red-fill: #e53935;
    --on-red: #ffffff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --chalk: #121314;
  --card: #1c1e20;
  --iron: #eceeef;
  --steel: #a3a9ae;
  --rule: #2f3235;
  --red: #ff6b63;
  --red-fill: #e53935;
  --on-red: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--iron);
  font: 400 var(--step-0)/1.6 var(--body);
}

a { color: var(--red); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Top bar: the name in the plate's lettering, and the three pages. */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--iron);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.nav a { color: var(--steel); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--iron); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red-fill); text-decoration-thickness: 3px; text-underline-offset: 0.4em; }

h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
h1 { font-family: var(--display); font-weight: 400; font-size: var(--step-3); letter-spacing: 0.01em; margin: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin: 0 0 0.6rem; }
h3 { font-size: var(--step-1); margin: 0 0 0.3rem; }
p { margin: 0 0 1rem; max-width: 65ch; }

/* Home: the plate, the name, the promise. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 18px;
  padding-block: 28px 40px;
}
.hero .icon {
  width: min(180px, 46vw);
  height: auto;
  filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.18));
}
.tagline {
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.lede { font-size: var(--step-1); color: var(--iron); margin: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  color: var(--steel);
  font-weight: 600;
  font-size: 0.95rem;
}

/* The plate's stamped lettering, used once as a strip of promises. */
.stamp {
  margin-block: 8px 40px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--iron);
  color: var(--chalk);
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}
.stamp span::before { content: "\25CF"; color: var(--red-fill); margin-right: 10px; font-size: 0.6em; vertical-align: 0.25em; }

section { padding-block: 8px 32px; }
section > h2 { margin-bottom: 1rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 22px 32px; }
.features div { min-width: 0; }
.features p { color: var(--steel); margin: 0; }

.leaves {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px 22px 8px;
}
.leaves ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.leaves li { margin-bottom: 0.6rem; }

/* Policy and help pages. */
.doc { padding-block: 16px 40px; }
.doc h1 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.meta { color: var(--steel); font-size: 0.95rem; margin-bottom: 1.6rem; }
.doc h2 { font-family: var(--body); font-weight: 700; font-size: var(--step-1); margin-top: 2rem; }
.doc ul, .doc ol { padding-left: 1.3rem; max-width: 65ch; }
.doc li { margin-bottom: 0.45rem; }
.summary {
  border-left: 4px solid var(--red-fill);
  padding: 4px 0 4px 16px;
  font-size: var(--step-1);
  margin-block: 0 1.4rem;
}
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 700; }
code, .addr { font-family: var(--mono); font-size: 0.92em; }
details { border-bottom: 1px solid var(--rule); padding-block: 12px; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 0.6rem 0 0.2rem; }
.contact {
  display: grid;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 1.6rem;
}
.contact .addr { font-size: 1.05rem; color: var(--iron); user-select: all; }

/* Placeholder text that still needs a real value. */
.ph { background: color-mix(in srgb, var(--red-fill) 18%, transparent); border-radius: 4px; padding: 0 4px; }

footer {
  border-top: 1px solid var(--rule);
  padding-block: 22px 40px;
  color: var(--steel);
  font-size: 0.92rem;
}
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero .icon { transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
  .hero .icon:hover { transform: rotate(-12deg); }
}
