/* KittelSpark — one stylesheet for the whole site.
   Colors below are pulled from the logo; change them here and the
   whole site follows. */

:root {
  --paper:  #F4F6F8;
  --ink:    #16232D;
  --slate:  #566977;
  --blue:   #4F88AD;
  --spark:  #E2482B;
  --rule:   #D6DEE5;

  --measure: 34rem;      /* ~68 characters of body text */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 3.5rem 1.5rem 4rem;
  background: var(--paper);
  color: var(--ink);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

header, main, footer { max-width: var(--measure); margin-inline: auto; }

/* ---- masthead ---------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--blue);
  margin-bottom: 3.25rem;
}

.mark {
  width: 96px;
  height: 96px;
  flex: none;
  mix-blend-mode: multiply;   /* drops the logo's white background out */
}

.wordmark {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.125rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tagline {
  margin: 0.4rem 0 0;
  color: var(--slate);
  font-size: 1.0625rem;
  font-style: italic;
}

.masthead--compact { margin-bottom: 2.75rem; }
.masthead--compact .mark { width: 52px; height: 52px; }
.masthead--compact .wordmark { font-size: 1.375rem; }

.home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  background: none;
}

/* ---- sections ---------------------------------------------------- */

section { margin-bottom: 3.25rem; }

.label {
  margin: 0 0 0.85rem;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--slate);
}

.about p { margin: 0; }

/* ---- post list --------------------------------------------------- */

.entry {
  padding-left: 1.1rem;
  border-left: 3px solid var(--spark);
}

.entry h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.meta {
  margin: 0.3rem 0 0;
  color: var(--slate);
  font-size: 0.9375rem;
}

.excerpt { margin: 0.6rem 0 0; color: var(--slate); }

/* ---- post body --------------------------------------------------- */

.post h1 {
  margin: 0 0 0.35rem;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post h2 {
  margin: 2.5rem 0 0.6rem;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
}

.post .meta { margin-bottom: 2.25rem; }

.post p { margin: 0 0 1.35rem; }

.back { margin: 3.5rem 0 0; font-size: 1rem; }

/* ---- links and footer -------------------------------------------- */

a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--spark); text-decoration-color: var(--spark); }

a:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  font-size: 0.9375rem;
}

footer p { margin: 0 0 0.25rem; }

/* ---- small screens ----------------------------------------------- */

@media (max-width: 34rem) {
  body { padding-top: 2.25rem; font-size: 1.125rem; }
  .masthead { gap: 0.9rem; }
  .mark { width: 68px; height: 68px; }
  .wordmark { font-size: 1.75rem; }
  .post h1 { font-size: 1.625rem; }
}
