/* src/styles.css */
:root {
  --white: #000000;
  --gray-100: #1a1a1a;
  --gray-200: #262626;
  --gray-400: #737373;
  --gray-500: #8a8a8a;
  --gray-600: #a0a0a0;
  --gray-800: #d4d4d4;
  --black: #ededed;
  --font-sans:
    "GT Planar",
    system-ui,
    -apple-system,
    sans-serif;
  --font-serif:
    "GT Planar",
    system-ui,
    -apple-system,
    sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  text-size-adjust: 100%;
}
html,
body,
#root {
  min-height: 100vh;
}
body {
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-feature-settings:
    "kern",
    "liga",
    "calt";
  font-optical-sizing: auto;
}
a {
  color: inherit;
  text-decoration: underline 1px;
  text-underline-offset: 5px;
}
a:hover {
  text-decoration-thickness: 2px;
}
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}
.wrapper > header {
  width: 800px;
  padding: 50px 100px;
  position: relative;
  z-index: 2;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 165%;
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  color: var(--gray-600);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 165%;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--black);
  text-decoration: none;
}
main {
  width: 800px;
  flex: 1;
  padding: 0 100px;
}
.hero-heading h1,
.subtitle {
  font-family: var(--font-serif);
  font-size: 52px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
}
.hero-heading h1 {
  color: var(--black);
}
.subtitle {
  color: var(--gray-400);
  margin-bottom: 30px;
}
.bio-text {
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 175%;
}
.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 50px 0;
}
.section-label {
  color: var(--gray-400);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.latest-post {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.post-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
}
.post-card:hover {
  text-decoration: none;
}
.post-card:hover .post-title,
.archive-item:hover .archive-title {
  text-decoration: underline;
}
.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}
.post-title {
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}
.post-date {
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
}
.archive {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 50px;
}
.archive-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
}
.archive-item:first-child {
  border-top: 1px solid var(--gray-200);
}
.archive-item:hover {
  text-decoration: none;
}
.archive-title {
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
}
.archive-date {
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  margin-left: 20px;
  white-space: nowrap;
}
.article-hero {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px 0 0;
}
.article-hero h1 {
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 44px;
  font-style: normal;
  font-weight: 400;
  line-height: 115%;
}
.article-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.article-body h2 {
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  margin-top: 20px;
}
.article-body h3 {
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  margin-top: 10px;
}
.article-body p,
.article-body ul,
.article-body ol {
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 175%;
}
.article-body ul,
.article-body ol {
  list-style-position: outside;
  padding-left: 0;
}
.article-body ul {
  list-style-type: disc;
}
.article-body li {
  margin-bottom: 12px;
  margin-left: 20px;
  padding-left: 12px;
}
.article-body blockquote {
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  margin: 10px 0;
  padding: 20px 24px;
}
.article-body code {
  background: var(--gray-100);
  border-radius: 4px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  font-size: 14px;
  padding: 2px 6px;
}
.article-body pre {
  background: var(--gray-100);
  border-radius: 8px;
  margin: 10px 0;
  overflow-x: auto;
  padding: 20px 24px;
}
.article-body pre code {
  background: none;
  padding: 0;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 20px 0;
}
.video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--gray-100);
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}
.video-wrap video {
  display: block;
  width: 100%;
  max-height: 680px;
  border-radius: 8px;
}
.back-link {
  display: inline-block;
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 10px;
  text-decoration: none;
}
.back-link:hover {
  color: var(--black);
  text-decoration: none;
}
.about-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding: 30px 0 0;
}
.about-header .hero-heading {
  flex: 1;
}
.profile-photo {
  width: 90px;
  height: 90px;
  background: var(--gray-100);
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.bio-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  margin-bottom: 10px;
}
.empty-state h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-style: normal;
  font-weight: 400;
  line-height: 115%;
  margin-bottom: 12px;
}
.empty-state p,
.muted {
  color: var(--gray-600);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 175%;
}
footer {
  width: 800px;
  margin-top: auto;
  padding: 0 100px;
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 50px 0 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 50px;
}
.footer-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-400);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
}
.footer-account {
  color: inherit;
  text-decoration: none;
}
.footer-account:hover {
  color: var(--gray-800);
  text-decoration: none;
}
.footer-built-with {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-built-with:hover {
  color: var(--gray-800);
  text-decoration: none;
}
.footer-cluster-logo {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: currentColor;
}
@media (max-width: 799px) {
  .wrapper > header,
  main,
  footer {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }
  .wrapper > header {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .hero-heading h1,
  .subtitle {
    font-size: 36px;
  }
  .post-title {
    font-size: 24px;
  }
  .article-hero h1,
  .empty-state h1 {
    font-size: 32px;
  }
  .article-body h2 {
    font-size: 24px;
  }
  .archive-item,
  .post-card,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .archive-date {
    margin-left: 0;
  }
  .about-header {
    flex-direction: column;
    gap: 20px;
  }
}
