/* ballmark.ca: one stylesheet for every page. Brand: clay, chalk, optic; Barlow Condensed for headings, IBM Plex Sans
   for text (self-hosted, so visiting the site sends nothing to font services). */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/IBMPlexSans_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/IBMPlexSans_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/BarlowCondensed_700Bold.ttf') format('truetype');
}

:root {
  --clay: #a9432b;
  --chalk: #f4f1ea;
  --optic: #d7f23c;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --text: #241a16;
  --text2: #6b5d56;
  --line: #e3d9d3;
  --link: #a9432b;
  --note-bg: #fbf3d6;
  --note-line: #c9a227;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100e;
    --surface: #1f1915;
    --text: #f0e9e4;
    --text2: #b6a79f;
    --line: #3a2f29;
    --link: #e57b5c;
    --note-bg: #2a2410;
    --note-line: #8a7420;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'IBM Plex Sans', system-ui, sans-serif;
}
a {
  color: var(--link);
}

/* Clay header with the logo, and the page links. */
.top {
  background: var(--clay);
}
.top-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top .logo img {
  display: block;
  height: 30px;
  width: auto;
}
.top nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.top nav a {
  color: var(--chalk);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.9;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}
h1,
h2,
h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 44px;
  margin: 0 0 8px;
}
h2 {
  font-size: 28px;
  margin: 40px 0 8px;
}
h3 {
  font-size: 21px;
  margin: 24px 0 4px;
}
.meta {
  color: var(--text2);
  font-size: 15px;
  margin: 0 0 20px;
}
.draft {
  background: var(--note-bg);
  border-left: 4px solid var(--note-line);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 15px;
  margin: 0 0 28px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
}
.steps li {
  margin: 6px 0;
}

/* Home */
.hero {
  background: var(--clay);
  color: var(--chalk);
  text-align: center;
  padding: 56px 16px 64px;
}
.hero img {
  width: min(320px, 80vw);
  height: auto;
}
.slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
  font: 700 18px/1 'Barlow Condensed', 'Arial Narrow', sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
}
.slogan::before,
.slogan::after {
  content: '';
  width: 28px;
  height: 1.5px;
  background: rgba(244, 241, 234, 0.6);
}
.soon {
  display: inline-block;
  margin-top: 28px;
  background: var(--optic);
  color: #1d1d1b;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.card h3 {
  margin: 0 0 4px;
}
.card p {
  margin: 0;
  color: var(--text2);
  font-size: 15px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 14px;
}
.foot-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer a {
  color: var(--text2);
}
