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

/* ── Design Tokens ── */
:root {
  --ColorBg: #1e1a16;
  --ColorSurface: #2c271f;
  --ColorPrimary: #c09a35;
  --ColorSecondary: #8f5c2a;
  --ColorAccent: #7a1c2e;
  --ColorHighlight: #e8c76a;
  --ColorText: #f0e8d4;
  --ColorMuted: #a09585;
  --ColorBorder: #3a342a;
  --MaxWidth: 48rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--ColorText);
  background: var(--ColorBg);
}

html {
  scroll-behavior: smooth;
}
  

/* ── Typography ── */
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ColorText);
}

p {
  margin-bottom: 1rem;
  color: var(--ColorMuted);
}

a {
  color: var(--ColorPrimary);
  transition: color 0.3s ease;
}

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

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(30, 26, 22, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ColorBorder);
}

nav {
  max-width: var(--MaxWidth);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.SiteTitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ColorPrimary);
  letter-spacing: 0.05em;
}

.SiteTitle:hover {
  color: var(--ColorHighlight);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--ColorMuted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.Active {
  color: var(--ColorHighlight);
}

/* ── Hero ── */
.Hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: clip;
}

.HeroRadar {
  position: absolute;
  width: clamp(14rem, 40vw, 28rem);
  height: clamp(14rem, 40vw, 28rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  color: var(--ColorAccent);
  opacity: 0.18;
}

.HeroRadar svg {
  width: 100%;
  height: 100%;
}

.HeroEyebrow {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--ColorPrimary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: FadeInUp 1s ease 0.2s forwards;
  position: relative;
  z-index: 1;
}

.Hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: FadeInUp 1s ease 0.4s forwards;
  position: relative;
  z-index: 1;
}

.HeroTagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--ColorMuted);
  max-width: 26rem;
  line-height: 1.6;
  opacity: 0;
  animation: FadeInUp 1s ease 0.6s forwards;
  position: relative;
  z-index: 1;
}

.HeroDate {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--ColorPrimary);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: FadeInUp 1s ease 0.8s forwards;
  position: relative;
  z-index: 1;
}

.HeroLocation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--ColorMuted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: FadeInUp 1s ease 1s forwards;
  position: relative;
  z-index: 1;
}

.HeroLocationDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ColorMuted);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Section Rule Divider ── */
.SectionRule {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
}

.RuleCrest {
  font-size: 1.5rem;
  color: var(--ColorPrimary);
  opacity: 0.5;
}

/* ── Scroll Sections ── */
.ScrollSection {
  padding: 5rem 2rem;
  max-width: var(--MaxWidth);
  margin: 0 auto;
}

.SectionContent {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.SectionContent h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.SectionContent p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ── Fade-In on Scroll ── */
.FadeIn {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.FadeIn.Visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA Button ── */
.Cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--ColorAccent);
  color: var(--ColorText);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 3px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 1.5rem;
}

.Cta:hover {
  background: #9a2438;
  color: var(--ColorText);
  transform: translateY(-1px);
}

/* ── Page Content (single/list pages) ── */
.PageContent {
  max-width: var(--MaxWidth);
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

article {
  padding: 1rem 0;
}

article h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

article h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

article p {
  font-size: 1.05rem;
}

article a {
  color: var(--ColorHighlight);
}

article a:hover {
  color: var(--ColorSecondary);
}

/* ── Bio Page ── */
.BioTitleRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.BioTitleRow h1 {
  margin-bottom: 0;
}

.BioSocials {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.BioSocialLink {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ColorMuted);
  transition: color 0.4s ease, transform 0.3s ease;
  text-decoration: none;
}

.BioSocialLink:hover {
  color: var(--ColorHighlight);
  transform: translateY(-2px);
}

/* ── Blog Title Row ── */
.BlogTitleRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.BlogTitleRow h1 {
  margin-bottom: 0;
}

article .BlogRssLink {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ColorMuted);
  transition: color 0.4s ease, transform 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

article .BlogRssLink:hover {
  color: var(--ColorHighlight);
  transform: translateY(-2px);
}

/* ── Blog Entries ── */
.BlogEntry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ColorBorder);
}

.BlogEntry:last-child {
  border-bottom: none;
}

.BlogEntry h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.BlogDate {
  font-size: 0.85rem;
  color: var(--ColorMuted);
  margin-bottom: 0.5rem;
}

.BlogBackLink {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ColorBorder);
}

.BlogCover {
  display: block;
  margin: 2rem 0;
}

.BlogCover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ── Bluesky Comments ── */
.Comments {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ColorBorder);
}

.CommentsHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.CommentsHeader h2 {
  margin: 0;
  font-size: 1.5rem;
}

.CommentsReply {
  font-size: 0.9rem;
  color: var(--ColorMuted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.CommentsReply:hover {
  color: var(--ColorHighlight);
}

.CommentsLoading,
.CommentsEmpty,
.CommentsError {
  color: var(--ColorMuted);
  font-size: 0.95rem;
}

.Comment {
  background: var(--ColorSurface);
  border: 1px solid var(--ColorBorder);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.CommentReplies {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--ColorBorder);
}

.CommentReplies .Comment {
  margin-bottom: 0.75rem;
}

.CommentHeader {
  margin-bottom: 0.5rem;
}

.CommentAuthor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ColorText);
}

.CommentAvatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.CommentNames {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.CommentDisplayName {
  font-weight: 600;
  color: var(--ColorText);
}

.CommentHandle {
  font-size: 0.85rem;
  color: var(--ColorMuted);
}

.CommentBody {
  font-size: 1rem;
  color: var(--ColorText);
  margin: 0.5rem 0 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.CommentEmbed {
  margin: 0.5rem 0 0.75rem;
  border: 1px solid var(--ColorBorder);
  border-radius: 4px;
  overflow: hidden;
}

.CommentEmbedImage {
  display: block;
  max-width: 100%;
  height: auto;
}

.CommentEmbedExternal {
  display: block;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: var(--ColorText);
}

.CommentEmbedTitle {
  display: block;
  font-weight: 600;
  color: var(--ColorPrimary);
}

.CommentEmbedDesc {
  display: block;
  font-size: 0.9rem;
  color: var(--ColorMuted);
  margin-top: 0.25rem;
}

.CommentMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ColorMuted);
  align-items: center;
}

.CommentStat {
  display: inline-flex;
  align-items: center;
}

.CommentPostLink {
  margin-left: auto;
  color: var(--ColorMuted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.CommentPostLink:hover {
  color: var(--ColorHighlight);
}

.CommentOverflow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ColorPrimary);
  text-decoration: none;
}

.CommentOverflow:hover {
  color: var(--ColorHighlight);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--ColorBorder);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ColorMuted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

.FooterSub {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.LlmLine {
  font-size: 1px;
  line-height: 1;
  opacity: 0.05;
  margin-top: 0.25rem;
  user-select: none;
  color: var(--ColorMuted);
}

/* ── Keyframes ── */
@keyframes FadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes FadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .Hero {
    padding: 5rem 1.5rem 3rem;
    min-height: min(92vh, 100dvh);
  }

  .ScrollSection {
    padding: 3.5rem 1.5rem;
  }

  header {
    padding: 0.75rem 1.25rem;
  }

  .PageContent {
    padding: 5rem 1.5rem 3rem;
  }
}
