@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1/dist/fonts/geist-sans/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1/dist/fonts/geist-sans/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1/dist/fonts/geist-sans/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #e5e5e5;
  --color-accent: #c2600a;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --max-width: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0a0a0a;
    --color-text: #f0f0f0;
    --color-muted: #888888;
    --color-border: #252525;
    --color-accent: #e8923a;
  }
}

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

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

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Header */

header {
  padding: 2.5rem 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.site-nav a.nav-active {
  color: var(--color-accent);
  background-size: 100% 1px;
}

@media (max-width: 480px) {
  .site-name {
    font-size: 1.25rem;
  }

  .post-meta,
  .update-meta {
    flex-wrap: wrap;
  }

  .post-tags,
  .update-tags {
    flex-basis: 100%;
  }
}

/* Main */

main {
  flex: 1;
  padding: 2rem 0 4rem;
}

/* Hero */

.hero {
  margin-bottom: 3.5rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.55s ease 0.1s forwards;
}

.hero-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.2s ease;
  opacity: 0;
  animation: fadeUp 0.55s ease 0.2s forwards;
}

.hero-cta:hover {
  background-size: 100% 1px;
}

/* Updates list */

.updates-list {
  padding: 0;
}

.updates-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0;
}

.rss-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.rss-link:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.update-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.update-item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.update-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.update-title a {
  color: var(--color-text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.update-title a:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.update-tags,
.post-tags {
  display: flex;
  gap: 0.4rem;
}

.update-tag,
.post-tag {
  background: var(--color-border);
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

a.update-tag,
a.post-tag {
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

a.update-tag:hover,
a.post-tag:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.tag-back-link {
  display: block;
  margin-top: -1.75rem;
  margin-bottom: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.updates-empty {
  color: var(--color-muted);
  font-size: 1rem;
  padding: 2rem 0;
}

/* Breadcrumb */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 2rem;
  margin-bottom: -2.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.breadcrumb-sep {
  color: var(--color-muted);
}

/* Post (single updates layout) */

.post-header {
  display: block;
  padding: 0;
  margin-bottom: 2.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* Page (single layout) */

.page {
  padding: 0;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.page-content a {
  color: var(--color-accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.2s ease;
}

.page-content a:hover {
  background-size: 100% 1px;
}

/* Footer */

footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.footer-links {
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.footer-about-link {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.footer-about-link:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.footer-sep {
  color: var(--color-muted);
  margin: 0 0.35rem;
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline,
  .hero-description,
  .hero-cta {
    animation: none;
    opacity: 1;
  }
}
