/* Pacefire site. Tokens and rules: DESIGN.md. Flat colour, big type, no gradients or glows. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/BigShouldersDisplay-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #130f0d;
  --card: #1f1916;
  --card2: #2a221e;
  --line: #342a25;
  --ink: #f5ede6;
  --muted: #a99c94;
  --ember: #f0532a;
  --ember-text: #f26a44;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-text); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 14px; z-index: 2; }

/* Type */
h1, h2, .huge {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0;
  margin: 0;
}
h1 { font-size: clamp(3.25rem, 10vw, 7rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.25rem); margin-bottom: 0.4em; }
.huge { font-size: clamp(4rem, 15vw, 10rem); }
h3 { font: 700 1.25rem/1.25 var(--body); margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.page h1 + .lede { margin-top: 0; }
.lede { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--ink); max-width: 36ch; }
.label {
  font: 800 0.8rem/1.3 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.75em;
}
.muted { color: var(--muted); }
.ember { color: var(--ember); }


/* Layout */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; padding-block: clamp(48px, 9vw, 112px); }
.top, .foot-row {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.top { padding-top: 24px; }
.top nav a, .foot nav a { font-weight: 700; text-decoration: none; margin-left: 24px; }
.brand img { height: 40px; width: auto; }

.wrap + .wrap { padding-top: 0; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
.card > p:last-child { margin-bottom: 0; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cta .note { margin: 0; color: var(--muted); font-size: 0.95rem; flex-basis: 100%; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ground);
  font: 800 1.0625rem/1 var(--body);
  text-decoration: none;
}
.btn:hover { color: var(--ground); background: var(--ember-text); }

/* Home placeholder: the line on the left, the app mark on the right (above it on phones). */
.placeholder { min-height: 70vh; display: grid; align-content: center; gap: 40px; }
.placeholder h1 { max-width: 12ch; line-height: 0.95; margin-bottom: 0.35em; }
.ph-mark { width: 72px; height: auto; }
.placeholder .btn { margin-top: 12px; }
@media (min-width: 900px) {
  .placeholder { grid-template-columns: 1fr auto; align-items: center; gap: 64px; }
  .ph-mark { order: 2; width: clamp(200px, 22vw, 300px); }
}

/* Pages */
.page { max-width: 820px; }
.page h1 { margin-bottom: 0.35em; }
.page h2 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 1.6em; }

.link-page { text-align: left; }
.link-page .mark { width: 56px; height: auto; margin-bottom: 28px; }
.link-page h1 { font-size: clamp(3rem, 11vw, 5.5rem); }
.steps-card { margin-top: 16px; }
.steps-card .btn { margin: 4px 0 4px; }
.steps-card .cta { margin-top: 4px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; margin-top: 24px; }
.foot-row { flex-wrap: wrap; }
.foot nav a:first-child { margin-left: 0; }
.parent { font-weight: 800; text-decoration: none; }
.fine { width: min(100% - 40px, var(--wrap)); margin: 16px auto 0; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 520px) {
  .foot nav a { margin: 0 20px 0 0; }
  .top nav a { margin-left: 0; }
  .brand img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
