@import "/fontsource/newsreader/index.css";
@import "/fontsource/fraunces/600.css";
@import "/fontsource/fraunces/700.css";

:root {
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6rem;
  --s7: 9rem;
  --text: #1f1d1a;
  --muted: #6b6660;
  --rule: #ded8cf;
  --link: #2f2b26;
  --link-hover: #1f1d1a;
  --background: #faf9f5;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}

body {
  margin: 0;
  background: var(--background);
}

.shell {
  width: min(76ch, calc(100% - max(var(--s5), 8vw) - var(--s3)));
  max-width: 76ch;
  margin-inline: max(var(--s5), 8vw) auto;
  padding: var(--s4) 0 var(--s7);
}

.breadcrumb {
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  gap: var(--s1);
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0 0 var(--s2);
}

main {
  max-width: 68ch;
  margin: var(--s6) 0 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 600;
  line-height: 1.12;
  margin: var(--s6) 0 var(--s3);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 var(--s5);
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 var(--s3);
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

.kicker {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s2);
  text-transform: uppercase;
}

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

.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
}

.post-list__item {
  margin: 0;
  padding: 0;
}

.post-list__link {
  display: block;
  text-decoration: none;
}

.post-list__link:hover,
.post-list__link:focus {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-list__title {
  color: var(--text);
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--s1);
  overflow-wrap: break-word;
}

.post-list__date {
  color: var(--muted);
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - (2 * var(--s3)));
    margin-inline: var(--s3);
    padding-block: var(--s3) var(--s6);
  }

  main {
    margin-top: var(--s5);
  }
}
