/* markmyrow.com: the app's palette and type (DESIGN.md), no scripts, no third parties. */
@font-face {
  font-family: 'Literata';
  src: url('/fonts/Literata-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #f6f1e7;
  --linen: #fffcf6;
  --ink: #2a2724;
  --muted: #6a635a;
  --sage: #5b7457;
  --rose: #a15e65;
  --line: #e5dccf;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}
/* 38rem less the 1.25rem gutters keeps body text under 75 characters a line (measured 2026-11-04 in Segoe UI, the narrowest face it falls back to). */
header, main, footer { max-width: 38rem; margin: 0 auto; padding: 0 1.25rem; }
header { display: flex; align-items: center; gap: 0.75rem; padding-top: 2rem; }
header a { color: var(--ink); text-decoration: none; font-family: Literata, Georgia, serif; font-weight: 600; font-size: 1.25rem; }
/* The icon is cream on cream, so a hairline keeps it reading as a tile. */
.mark { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; box-shadow: 0 0 0 1px var(--line); }
h1, h2 { font-family: Literata, Georgia, serif; font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 2.125rem; margin: 2rem 0 0.75rem; }
h2 { font-size: 1.375rem; margin: 2.25rem 0 0.5rem; }
a { color: var(--sage); text-underline-offset: 0.15em; }
p, li { text-wrap: pretty; }
.lede { font-size: 1.25rem; text-wrap: balance; }
.muted { color: var(--muted); }
.card { background: var(--linen); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
footer { margin-top: 3rem; padding-bottom: 2.5rem; color: var(--muted); font-size: 0.9375rem; }
/* The rule sits on the nav, inside the gutters, so it lines up with the text above it. */
footer nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
/* Padding makes each footer link a 42 px target on a phone. */
footer a { color: var(--muted); padding: 0.6rem 0; }
