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

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

@font-face {
  font-family: Figtree;
  src: url("/fonts/figtree-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #FDF4EC;
  --surface: #F9E7D8;
  --tint: #FBDBC4;
  --ink: #33241C;
  --ink-soft: #6F5B4A;
  --muted: #97806F;
  --coral: #D96C4F;
  --coral-deep: #C85A3D;
  --accent-deep: #8C4A22;
  --on-accent: #FFF5EC;
  --line: rgba(51, 36, 28, .12);
  --serif: "Young Serif", Georgia, serif;
  --sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 20rem;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.15;
}

a { color: var(--accent-deep); text-underline-offset: .2rem; }

a:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 4px; }

.page { width: min(42rem, calc(100% - 3rem)); margin: 0 auto; }

.site-header { display: flex; min-height: 4.4rem; align-items: center; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand img { width: 28px; height: 28px; border-radius: 8px; }

.badge { display: inline-block; line-height: 0; }
.badge img { display: block; width: auto; height: 52px; }
.badge:hover { opacity: .85; }

.prose { padding-bottom: 3rem; }
.prose h1 { margin: 1rem 0 .5rem; font-size: 2.1rem; }
.prose h2 { margin: 2.2rem 0 .5rem; font-size: 1.25rem; }
.prose p { margin: .85rem 0; color: var(--ink-soft); }
.prose .updated { color: var(--muted); font-size: .9rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.5rem;
  color: var(--ink-soft);
  font-size: .8rem;
}

.foot a { color: inherit; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
