@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f1e8;
  --text: #1a1a1a;
  --accent: #6b2c2c;
  --muted: #6b6b6b;

  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

header {
  margin-bottom: 0;
}

main {
  margin-top: 32px;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

.subtitle {
  color: var(--muted);
  margin: 0;
}

main {
  display: block;
}

section {
  margin-bottom: 48px;
}

section:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul li {
  margin-bottom: 12px;
}

ul li:last-child {
  margin-bottom: 0;
}

.experience li {
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
  display: block;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

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

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

footer {
  margin-top: 96px;
}

footer .muted {
  display: block;
  font-size: 16px;
}

@media (min-width: 720px) {
  body {
    font-size: 20px;
  }

  .container {
    padding: 112px 32px 96px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 28px;
  }

  main {
    margin-top: 48px;
  }

  section {
    margin-bottom: 56px;
  }

  footer {
    margin-top: 112px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #ebe4d2;
    --accent: #c98a8a;
    --muted: #8f8a7e;
  }
}
