/* Colors from src/theme/tokens.ts. */
:root {
  --accentPressed: #B93A21;
  --bg: #F7F1E8;
  --ink: #2B1D14;
  --line: #EADFCF;
  --muted: #786455;
  --surface: #FFFFFF;
}

/* "Sunday kitchen" for the web. The build puts the colors from
   src/theme/tokens.ts in :root above this file. Sizes are in rem and em,
   so text grows with the browser's text size. */

@font-face {
  font-family: "Figtree";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Figtree_400Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Figtree";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Figtree_700Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Young Serif";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/YoungSerif_400Regular.ttf") format("truetype");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  margin: 0.5em 0 0.6em;
}

h2 {
  font-size: 1.6rem;
  margin: 1.8em 0 0.5em;
}

h3 {
  font-size: 1.25rem;
  margin: 1.5em 0 0.4em;
}

a {
  color: var(--accentPressed);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 0.2rem solid var(--ink);
  outline-offset: 0.15rem;
  border-radius: 0.2rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background-color: var(--surface);
  color: var(--ink);
}

.skip:focus {
  top: 1rem;
}

.draft-banner {
  margin: 0;
  padding: 0.75rem 1.25rem;
  background-color: var(--surface);
  color: var(--ink);
  border-bottom: 0.25rem solid var(--accentPressed);
  text-align: center;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.brand {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-header nav a[aria-current="page"] {
  font-weight: 700;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.lead {
  font-size: 1.3rem;
}

.page-links {
  padding-left: 1.25rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  background-color: var(--surface);
  border-left: 0.25rem solid var(--line);
}

code {
  font-size: 0.9em;
  background-color: var(--surface);
  border-radius: 0.25rem;
  padding: 0 0.2em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--surface);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border: 0.0625rem solid var(--line);
}

hr {
  border: 0;
  border-top: 0.0625rem solid var(--line);
  margin: 2.5rem 0;
}

.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 0.0625rem solid var(--line);
  color: var(--muted);
}
