:root {
  color-scheme: light dark;

  /* Base */
  --bg: #f2f2f2;
  --fg: #111111;
  --link: #0645ad;
  --muted: #444;
  --rule: #ccc;

  /* Nav button colors */
  /* Light: very light grey with a slight blue shift */
  --nav-bg-light: #f4f6f8;
  --nav-border-light: #dde3e8;
  --nav-text-light: #2c333a;

  /* Dark: dark grey with a slight blue shift */
  --nav-bg-dark: #1a1f26;
  --nav-border-dark: #2a3240;
  --nav-text-dark: #e6ebf2;

  --content-width: min(70ch, calc(100% - 2rem));
  --content-left: calc((100% - var(--content-width)) / 2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f2f2f2;
    --link: #8ab4f8;
    --muted: #cfcfcf;
    --rule: #333;
  }
}

html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Shantell Sans', sans-serif;
  line-height: 1.5;
}

a {
  color: var(--link);
}

/* Header layout */

.site-header {
  width: var(--content-width);
  margin-left: var(--content-left);
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem; 
}

.site-title {
  margin: 0;
  padding: 0;
  font-family: 'Anton', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.site-subtitle {
  margin: 0;
  padding: 0;
  font-family: 'Anton', sans-serif;
  font-weight: 700;
  font-size: clamp(0.5rem, 6vw, 1rem);
  line-height: 1.1;
}

/* Nav “buttons” */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--nav-border-light);
  background: var(--nav-bg-light);
  color: var(--nav-text-light);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Hover / focus */

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: none;
  background: #eceff3;
  border-color: #cfd6de;
  color: #182028;
}

/* Dark theme overrides */

@media (prefers-color-scheme: dark) {
  .site-nav a {
    border-color: var(--nav-border-dark);
    background: var(--nav-bg-dark);
    color: var(--nav-text-dark);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: #222a36;
    border-color: #3a4558;
    color: #f5f8ff;
  }
}

/* Rule */

.rule {
  border: 0;
  height: 1px;
  margin: 1rem 0 0;
  background: var(--rule);
}

/* Main & footer layout */

main {
  width: var(--content-width);
  margin-left: var(--content-left);
  padding: 1rem;
}

footer {
  width: var(--content-width);
  margin-left: var(--content-left);
  padding: 1rem;
}

footer small {
  font-size: 0.875rem;
}

/* Images */

figure.entry-image {
  margin: 1.5rem 0;
}

figure.entry-image img,
main img,
footer img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Small responsive tweak */

@media (max-width: 600px) {
  .site-header {
    padding-top: 1.25rem;
  }

  .site-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}
