@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-italic.woff') format('woff');
}

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

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --frame: #dedede;
  --bg: #fdfdfd;
  --link: #1a1a1a;
  --max-width: 640px;
  --body-size: 1.125rem;
  --line-height: 1.7;
}

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

body {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

header .name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
}

header .name:hover {
  color: var(--text-secondary);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
}

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

nav a.active {
  color: var(--text);
}

main {
  flex: 1 0 auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.lede {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #202020;
  border-left: 1px solid var(--frame);
  padding-left: 0.75rem;
}

h2 {
  font-size: var(--body-size);
  font-weight: 400;
  font-style: italic;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

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

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

.page-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--text);
}

.entry {
  margin-bottom: 2.5rem;
}

.entry h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.entry .meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.entry p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.longform h1 {
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.longform .meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.longform p {
  margin-bottom: 1rem;
}

.longform figure {
  margin: 1.5rem 0;
}

.longform img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ececec;
}

.longform figcaption {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

footer {
  margin-top: 0;
  padding-top: 3rem;
  text-align: center;
}

.bee {
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  body {
    padding: 1.5rem 1.25rem 1.5rem;
  }

  header {
    margin-bottom: 3rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .lede {
    padding-left: 0.625rem;
  }
}
