/* The blog: a plain serif column. */
@font-face {
  font-family: Kalam;
  src: url(fonts/kalam-bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f7f6ef;
  --ink: #2c2e26;
  --muted: #5d6058;
  --rule: #2c2e26;
  --serif: Georgia, "Times New Roman", serif;
  --column: 704px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Kalam, cursive;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  text-decoration: none;
}
.wordmark svg {
  width: 22px;
  height: 22px;
  fill: #dce5d2;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top nav {
  display: flex;
  gap: 16px;
}
.top nav a {
  white-space: nowrap;
}

main {
  max-width: var(--column);
  margin: 48px auto 72px;
}
h1 {
  margin: 24px 0 16px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
}
h2 {
  margin: 54px 0 20px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
}
.back {
  font-size: 16px;
}
.dek {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.5;
}
time {
  display: block;
  font-size: 14.4px;
}
.body {
  margin-top: 40px;
}
.body p,
.body li {
  font-size: 18px;
  line-height: 1.75;
}
.body p {
  margin: 0 0 22px;
}
.body ul {
  margin: 0 0 22px;
  padding-left: 24px;
}
.body li + li {
  margin-top: 8px;
}
.intro {
  font-size: 18px;
  margin: 0 0 16px;
}
.posts {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.posts li {
  padding: 28px 0 4px;
}
.posts a {
  display: inline-block;
  margin: 8px 0 10px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration-thickness: 2px;
}
.posts p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 640px) {
  body {
    padding: 0 16px;
  }
  .top {
    gap: 12px;
  }
  .wordmark {
    font-size: 21px;
  }
  .top nav {
    gap: 12px;
    font-size: 15px;
  }
  main {
    margin: 32px auto 56px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 24px;
    margin-top: 44px;
  }
  .dek {
    font-size: 18px;
  }
  .body p,
  .body li {
    font-size: 17px;
  }
  .posts a {
    font-size: 23px;
  }
  .bottom {
    flex-direction: column;
  }
}

/* ---- Ponds' own look ---- */

@font-face {
  font-family: Fraunces;
  src: url(fonts/fraunces.ttf) format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url(fonts/fraunces-italic.ttf) format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url(fonts/figtree.ttf) format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --ink: #233029;
  --muted: #5a675e;
  --line: #d6dccd;
  --card: #fbfbf6;
  --accent: #3b7553;
  --accent-soft: #dfeadb;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 7 C 15 1, 25 1, 40 7 S 65 13, 80 7 S 105 1, 120 7' fill='none' stroke='%23b9c6b3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  font-family: Figtree, system-ui, sans-serif;
}
a {
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 580;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.6px;
}
.dek {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  color: #2c5c40;
}
.top {
  border-bottom: 0;
  padding-bottom: 22px;
  background-image: var(--wave);
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 120px 14px;
}
.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.wordmark svg {
  fill: var(--accent-soft);
}
.top nav {
  gap: 4px;
  padding: 5px;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.top nav a {
  padding: 5px 13px;
  text-decoration: none;
  border-radius: 999px;
}
.top nav a:hover {
  background: var(--accent-soft);
}
.posts {
  border-top: 0;
}
.posts li {
  margin-bottom: 14px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.posts a {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  text-decoration: none;
}
.posts a:hover {
  color: var(--accent);
}
.posts p {
  color: var(--muted);
}
time {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.body p,
.body li {
  font-size: 17.5px;
}
.bottom {
  border-top: 0;
  background-image: var(--wave);
  background-repeat: repeat-x;
  background-size: 120px 14px;
  color: var(--muted);
}
