/* pacfly.co, from the pacfly brand kit's tokens: light by default, dark when the visitor's device is */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --surface: #f4f4f5;
  --surface-raised: #ffffff;
  --fog: #e4e4e7;
  --line: #d4d4d8;
  --ink: #18181b;
  --ink-muted: #5c5c66;
  --graphite: #2e2e33;
  --red: #a3162f;
  --on-red: #ffffff;
  --red-ink: #a3162f;
  --red-soft: #f9e3e7;
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #131316;
    --surface-raised: #1d1d22;
    --fog: #303037;
    --line: #45454e;
    --ink: #f4f4f5;
    --ink-muted: #a3a3ad;
    --graphite: #52525c;
    --red: #b81c36;
    --red-ink: #ff7d8e;
    --red-soft: #3d121a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

header.site img {
  display: block;
  height: 32px;
  width: auto;
}

header.site nav a {
  color: var(--ink-muted);
  font-size: 15px;
  margin-left: 16px;
  text-decoration: none;
}

header.site nav a:hover {
  color: var(--ink);
}

main {
  padding: 8px 0 48px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: 40px;
  margin: 24px 0 8px;
}

h2 {
  font-size: 24px;
  margin: 40px 0 8px;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 4px;
}

a {
  color: var(--red-ink);
  text-underline-offset: 2px;
}

p,
li {
  margin: 0 0 12px;
}

ul {
  padding-left: 22px;
}

.lede {
  color: var(--ink-muted);
  font-size: 19px;
}

.updated {
  color: var(--ink-muted);
  font-size: 15px;
}

.hero {
  background: var(--red);
  border-radius: 20px;
  color: var(--on-red);
  margin: 8px 0 32px;
  padding: 40px 28px;
}

.hero h1 {
  font-size: 56px;
  margin: 0 0 12px;
  text-transform: lowercase;
}

.hero p {
  font-size: 19px;
  margin: 0;
  max-width: 520px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.card h2 {
  font-size: 21px;
  margin: 0 0 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.sample {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 12px 16px;
}

.box {
  background: var(--red-soft);
  border-radius: 12px;
  margin: 16px 0;
  padding: 16px 20px;
}

.box p:last-child {
  margin-bottom: 0;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 15px;
  padding: 24px 0 48px;
}

footer.site a {
  color: var(--ink-muted);
  margin-right: 16px;
}

footer.site p {
  margin: 12px 0 0;
}

@media (max-width: 520px) {
  h1 {
    font-size: 32px;
  }

  .hero h1 {
    font-size: 44px;
  }

  header.site nav a {
    margin-left: 12px;
  }
}
