/* Theme and layout rules layered on top of vendored modern-normalize. */
:root {
  color-scheme: light;
  --background: #f7f4ee;
  --surface: #fffdf9;
  --border: #d9d2c3;
  --text: #1f1a17;
  --muted: #5e554f;
  --accent: #3f4f5e;
  --shadow: 0 0.35rem 1rem rgb(0 0 0 / 0.06);
  --space-1: 0.75rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --content-width: 72rem;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: inherit;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
ol,
dl,
figure {
  margin: 0;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.15;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.site-header-inner,
.site-main,
.site-footer {
  width: min(var(--content-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header-inner,
.site-footer {
  padding-block: var(--space-2);
}

.site-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-main {
  padding-block: var(--space-5);
}

.site-main > * + * {
  margin-top: var(--space-5);
}

.intro,
.post,
.post-card article {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.intro,
.post,
.post-card-body,
.post-card-empty {
  padding: var(--space-4);
}

.intro > * + *,
.post > * + *,
.post-header > * + *,
.post-section > * + *,
.post-card-body > * + *,
.post-listing > * + * {
  margin-top: var(--space-3);
}

.intro p,
.post-card-meta,
.post-meta,
.eyebrow,
.site-footer,
.post-figure figcaption {
  color: var(--muted);
}

.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

.post-meta {
  display: grid;
  gap: var(--space-3);
}

.post-meta div {
  display: grid;
  gap: 0.2rem;
}

.post-meta dt {
  font-size: 0.9rem;
  font-weight: 700;
}

.post-meta dd {
  margin: 0;
}

.post-figure img {
  border: 1px solid var(--border);
}

.post-figure figcaption {
  margin-top: var(--space-1);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .post-card-link {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) 1fr;
    align-items: start;
  }

  .post-card img {
    height: 100%;
    min-height: 16rem;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .post-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
