@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,650&display=swap");

:root {
  --bg: #fbfaf4;
  --text: #24211c;
  --muted: #756e63;
  --line: #ded7c9;
  --accent: #0b6358;
  --accent-2: #8b3f2d;
  --code-bg: #f1ece2;
  --measure: 42.5rem;
  --mono: "Fira Code", "MesloLGS NF", "Meslo LG S", "SFMono-Regular", Consolas, monospace;
  --body: "Literata", Charter, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(11, 99, 88, 0.35);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
  transition: color 140ms ease, text-decoration-color 140ms ease, text-underline-offset 140ms ease;
}

a:hover,
a:focus {
  color: var(--accent-2);
  text-decoration-color: currentColor;
  text-underline-offset: 0.3em;
}

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

.site-header {
  padding: 2rem 0 0;
}

.site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55ch;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.site-title__emoji {
  display: inline-block;
  min-width: 1.35em;
  text-align: center;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
}

.site-main {
  padding: 4.25rem 0 4rem;
}

.site-footer {
  padding: 1rem 0 3rem;
}

.footer-links {
  justify-content: flex-start;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 10vw, 5.1rem);
}

h2 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

h3 {
  margin: 1.65rem 0 0.45rem;
  font-size: 1.25rem;
}

p,
ul,
ol,
pre,
blockquote {
  margin: 0 0 1.35rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

blockquote {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.home-page {
  display: grid;
  gap: 4.25rem;
}

.home-hero {
  position: relative;
  max-width: 34rem;
  padding: 3.5rem 0 1rem;
}

.home-hero::before {
  content: "";
  display: block;
  width: 5rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--accent);
}

.home-hero h1 {
  max-width: 10ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3.1rem, 12vw, 5.7rem);
  line-height: 0.98;
}

.tagline {
  max-width: 25rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(1.08rem, 3vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
}

.home-section h2 {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.post-list,
.project-list,
.painting-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.post-list li,
.project-list li,
.painting-list li {
  padding-block: 0.9rem;
}

.post-list:not(.post-list--home) li + li,
.project-list li + li,
.painting-list li + li {
  border-top: 1px solid var(--line);
}

.post-list a {
  color: var(--text);
  text-decoration-color: transparent;
}

.post-list__title {
  display: block;
}

.post-list a:hover,
.post-list a:focus {
  color: var(--accent);
  text-decoration-color: rgba(11, 99, 88, 0.55);
}

.post-list time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.post-list--home {
  gap: 0;
}

.post-list--home li {
  padding: 1.25rem 0 1.45rem;
}

.post-card h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 4vw, 1.95rem);
}

.post-card p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.note {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.note--archive {
  margin-top: 0.45rem;
}

.archive-link {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-header time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.post-footer {
  margin-top: 3.25rem;
  padding-top: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.painting-list img {
  margin-bottom: 0.8rem;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding-top: 1.25rem;
  }

  .site-header__inner {
    display: block;
  }

  .site-nav {
    margin-top: 0.7rem;
  }

  .site-main {
    padding: 3rem 0 3.25rem;
  }

  .home-page {
    gap: 3.2rem;
  }

  .home-hero {
    padding-top: 2.5rem;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }
}
