:root {
  --font-display: "Instrument Serif", serif;
  --font-body: "Inter", sans-serif;
  --background: 201 100% 13%;
  --foreground: 0 0% 100%;
  --muted-foreground: 240 4% 66%;
  --border: 0 0% 18%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

a {
  color: inherit;
  text-decoration: none;
}

.home-page,
.inner-page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand sup {
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.nav-links a,
.nav-cta,
.hero-cta {
  transition: color 160ms ease, transform 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: hsl(var(--foreground));
}

.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: hsl(var(--foreground));
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-button::before,
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-cta {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.hero-cta {
  margin-top: 3rem;
  padding: 1.25rem 3.5rem;
  font-size: 1rem;
}

.glass-button:hover,
.post-card:hover {
  transform: scale(1.03);
}

.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 10rem;
}

.hero h1,
.page-head h1,
.article h1,
.post-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 80rem;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.95;
}

.hero em {
  color: hsl(var(--muted-foreground));
  font-style: normal;
}

.hero p,
.lede,
.article-excerpt,
.post-card p,
.empty-state {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

.hero p {
  max-width: 42rem;
  margin: 2rem 0 0;
  font-size: 1.125rem;
}

.page-head,
.content-wrap,
.article,
.home-posts {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.home-posts {
  position: relative;
  z-index: 10;
  padding-top: 0;
  padding-bottom: 6rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.section-head h2,
.archive-year > h2,
.archive-month > h3 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.page-head {
  padding-top: 6rem;
}

.page-head > p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.page-head h1,
.article h1 {
  margin-top: 1.5rem;
  max-width: 56rem;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.lede {
  max-width: 42rem;
  margin-top: 2rem;
  font-size: 1.125rem;
}

.content-wrap {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.post-list,
.grid-list,
.archive-list {
  display: grid;
  gap: 1rem;
}

.archive-year {
  display: grid;
  gap: 1.5rem;
}

.archive-year > h2 {
  color: hsl(var(--muted-foreground));
  font-size: 3rem;
}

.archive-month {
  display: grid;
  gap: 1rem;
}

.archive-month > h3 {
  color: hsl(var(--muted-foreground));
  font-size: 1.5rem;
}

.post-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: transform 160ms ease;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.post-card h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.post-card p {
  max-width: 42rem;
  margin: 0.75rem 0 0;
}

.pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  color: hsl(var(--muted-foreground));
}

.pager a,
.back-link,
.tag-cloud a {
  color: hsl(var(--muted-foreground));
}

.pager a:hover,
.back-link:hover,
.tag-cloud a:hover {
  color: hsl(var(--foreground));
}

.article {
  max-width: 56rem;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.article .post-meta {
  margin-top: 2rem;
}

.article-excerpt {
  margin-top: 2rem;
  font-size: 1.125rem;
}

.article-content {
  margin-top: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  line-height: 1.9;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

.article-content a {
  color: hsl(var(--foreground));
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: hsl(var(--muted-foreground));
}

.article-content img {
  max-width: 100%;
  border-radius: 0.5rem;
}

.taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.taxonomy-row a,
.post-meta a {
  color: hsl(var(--foreground));
}

.post-cursor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.post-cursor a,
.comment-section {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.post-cursor span {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.post-cursor strong {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
}

.comment-section {
  margin-top: 4rem;
}

.comment-section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
}

.author-head img {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

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

.tag-cloud a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.625rem 1rem;
}

@media (max-width: 767px) {
  .site-nav {
    padding: 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .brand {
    font-size: 1.75rem;
  }

  .hero {
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p,
  .lede,
  .article-excerpt {
    font-size: 1rem;
  }

  .post-cursor {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 2rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  font-size: 0.875rem;
}
