:root {
  --bg: #f2f2ee;
  --surface: #f8f8f4;
  --surface-strong: #efeee8;
  --text: #171513;
  --muted: #6f6c67;
  --line: #d5d2ca;
  --accent: #1e52b3;
  --accent-soft: #2a6fde;
  --ink-shadow: 0 12px 30px rgba(13, 13, 13, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shell: min(1120px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 12% 10%, #f8f7f2 0%, var(--bg) 58%) fixed;
  color: var(--text);
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.02rem, 0.98rem + 0.18vw, 1.12rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img,
video,
audio {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-soft);
}

a:focus-visible,
summary:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-content {
  padding: 0.55rem 0 1.8rem;
}

.section-shell {
  animation: rise 320ms ease-out;
}

@keyframes rise {
  from {
    transform: translateY(4px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--bg) 90%, white 10%);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 1.5rem + 0.7vw, 2.15rem);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  position: relative;
}

.nav-trigger {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

.nav-links {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(250px, 78vw);
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--ink-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.page-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
}

.page-link:hover {
  background: var(--surface-strong);
}

.nav-trigger:checked ~ .nav-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(1.6rem, 1.4rem + 0.9vw, 2.2rem);
}

.section-kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding-top: 0.45rem;
  border-top: 4px solid var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title,
.post-title,
.home-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.15rem, 1.9rem + 1.1vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-description,
.post-subtitle,
.home-subtitle {
  color: var(--muted);
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.27rem);
}

.post-card-meta,
.post-meta-row,
.muted-note {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.home-content {
  max-width: 980px;
  margin-inline: auto;
}

.bio-container {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}

.profile-image {
  position: relative;
  display: block;
  margin: 0;
  width: min(194px, 44vw);
  justify-self: center;
  border: 1px solid #dedbd2;
  background: #fbf9f3;
  border-radius: 5px;
  padding: 0.45rem 0.45rem 1.4rem;
  box-shadow: 0 18px 28px rgba(20, 20, 20, 0.14), 0 4px 10px rgba(20, 20, 20, 0.08);
  transform: rotate(-1.8deg);
  transform-origin: 50% 85%;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.profile-image::before,
.profile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile-image::before {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 30%), radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.22), transparent 38%);
  opacity: 0.45;
  z-index: 2;
}

.profile-image::after {
  background: radial-gradient(circle at 22% 26%, rgba(0, 0, 0, 0.04) 0.6px, transparent 0.9px), radial-gradient(circle at 71% 68%, rgba(0, 0, 0, 0.035) 0.7px, transparent 1px);
  background-size: 6px 6px, 7px 7px;
  opacity: 0.16;
  z-index: 2;
}

.profile-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #d9d5cb;
  display: block;
  filter: saturate(0.92) contrast(1.04) sepia(0.08) brightness(1.02);
}

.profile-caption {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.55rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #6e6b65;
}

.profile-image:hover,
.profile-image:focus-within {
  transform: rotate(-0.4deg) translateY(-1px);
  box-shadow: 0 20px 32px rgba(20, 20, 20, 0.18), 0 6px 14px rgba(20, 20, 20, 0.1);
}

.profile-image-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.bio-text {
  min-width: 0;
}

.bio-text.prose p,
.bio-text.prose ul,
.bio-text.prose ol {
  margin-bottom: 0.8rem;
}

.bio-points {
  list-style: disc;
  margin-left: 1rem;
}

.social-links {
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.social-link {
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.32rem 0.52rem;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
}

.social-link:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--accent);
}

.post-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.blog-page-header {
  margin-bottom: clamp(1rem, 0.7rem + 1vw, 1.8rem);
}

.post-card article {
  height: 100%;
}

.post-card-link {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(16, 16, 16, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 16, 16, 0.1);
}

.post-card-copy {
  order: 2;
  padding: 0.85rem 0.85rem 0.8rem;
  background: #ecece7;
}

.card-line {
  display: inline-block;
  width: 58%;
  height: 3px;
  margin-bottom: 0.65rem;
  background: var(--accent);
}

.post-card-title {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 2rem);
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-subtitle {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.14rem);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-tags {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: normal;
}

.post-card-art {
  order: 1;
  aspect-ratio: 2/1;
  min-height: 0;
  background: var(--surface-strong);
}

.post-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-full .post-card-link {
  display: block;
}

.post-card-full-art {
  display: block;
  width: 100%;
  height: auto;
}

.post-article {
  max-width: 1120px;
}

.post-hero {
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.post-meta-row {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-tags {
  margin-top: 0.6rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, white 16%);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  line-height: 1;
}

.post-layout.has-toc {
  display: grid;
  gap: 1.2rem;
}

.post-toc {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.post-toc-title {
  margin: 0 0 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
}

.post-toc ul {
  margin: 0;
  padding-left: 1rem;
}

.post-toc li {
  margin: 0.35rem 0;
}

.prose {
  max-width: 760px;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.65rem;
  margin-bottom: 0.62rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.12;
}

.prose h2 {
  font-size: clamp(1.75rem, 1.56rem + 0.75vw, 2.35rem);
}

.prose h3 {
  font-size: clamp(1.45rem, 1.34rem + 0.45vw, 1.8rem);
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table,
.prose figure {
  margin-top: 0;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  margin-left: 0;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 3px solid var(--accent);
  color: color-mix(in srgb, var(--text) 80%, var(--muted));
  font-style: italic;
}

.prose code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88em;
  padding: 0.12rem 0.3rem;
  background: #eceae3;
  border-radius: 5px;
}

.prose pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #eceae3;
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.5rem;
  text-align: left;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.3rem 0;
}

.quick-takes-content {
  max-width: 860px;
}

.quick-wits-page {
  position: relative;
}

.quick-wits-hero {
  max-width: 860px;
  margin-bottom: clamp(1.2rem, 0.8rem + 1.3vw, 2.2rem);
}

.quick-wits-description {
  max-width: 70ch;
}

.quick-wits-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.quick-wits-stat {
  margin: 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, white 12%);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.77rem;
}

.quick-wits-stat-value {
  color: var(--text);
  font-weight: 600;
}

.quick-takes-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.quick-wits-page .takes-list.prose {
  max-width: 860px;
}

.quick-wits-page .takes-list.prose > h3,
.quick-wits-page .takes-list.prose > hr {
  display: none;
}

.qw-month {
  margin-bottom: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--line) 84%, #d2cfca 16%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, white 8%);
  box-shadow: 0 8px 22px rgba(18, 18, 18, 0.045);
  overflow: clip;
}

.qw-month-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: color-mix(in srgb, var(--surface-strong) 82%, #f9f8f4 18%);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.qw-month-label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 1.04rem + 0.46vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.qw-month-caret {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid color-mix(in srgb, var(--text) 70%, var(--muted) 30%);
  border-bottom: 1.5px solid color-mix(in srgb, var(--text) 70%, var(--muted) 30%);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
  flex-shrink: 0;
}

.qw-month-toggle[aria-expanded=false] .qw-month-caret {
  transform: rotate(-45deg) translateY(1px);
}

.qw-month-body {
  padding: 0.55rem;
}

.qw-month.is-collapsed .qw-month-body {
  display: none;
}

.tweet-entry {
  border: 1px solid color-mix(in srgb, var(--line) 72%, #cbcac6 28%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, white 10%);
  padding: 0.9rem;
  margin: 0;
  box-shadow: 0 5px 16px rgba(15, 15, 15, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tweet-entry + .tweet-entry {
  margin-top: 0.62rem;
}

.tweet-entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(15, 15, 15, 0.065);
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.tweet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--line) 80%, #d4d0c8 20%);
}

.tweet-user-info {
  display: grid;
  line-height: 1.18;
}

.tweet-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.tweet-handle,
.tweet-date {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--muted) 88%, #5a5854 12%);
}

.tweet-date {
  margin-left: auto;
}

.tweet-content {
  margin-bottom: 0.65rem;
  color: color-mix(in srgb, var(--text) 95%, black 5%);
}

.tweet-footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, #cecbc3 20%);
  padding-top: 0.55rem;
}

.tweet-action {
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.quick-takes-footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.goal-progress {
  max-width: 460px;
  margin: 0.8rem 0 1rem;
}

.goal-progress-bar {
  height: 16px;
  background: #e2e2dc;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.goal-progress-completed {
  background: #4da060;
  height: 100%;
}

.goal-progress-active {
  background: #d2aa3f;
  height: 100%;
}

.goal-progress-text {
  margin-top: 0.45rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.goal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.goal-complete {
  color: #4da060;
}

.goal-active {
  color: #a98528;
}

.goal-remaining {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.8rem;
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (min-width: 860px) {
  .header-shell {
    min-height: 74px;
  }
  .nav-toggle {
    display: none;
  }
  .nav-links {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .bio-container {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 0.9rem;
  }
  .profile-image {
    justify-self: end;
    order: 2;
    width: 214px;
  }
  .post-card-link {
    grid-template-columns: minmax(0, 62%) minmax(180px, 38%);
    min-height: 220px;
  }
  .post-card-copy {
    order: 1;
    padding: 0.95rem 0.95rem;
  }
  .post-card-art {
    order: 2;
    aspect-ratio: auto;
  }
  .post-card-art img {
    object-fit: cover;
    object-position: center;
  }
  .post-layout.has-toc {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
  .post-toc {
    position: sticky;
    top: 92px;
    order: 2;
  }
  .post-content {
    order: 1;
  }
  .quick-wits-hero {
    margin-bottom: clamp(1.5rem, 1.1rem + 1vw, 2.4rem);
  }
  .qw-month {
    position: relative;
  }
  .qw-month::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #537fc9 28%), transparent 94%);
    opacity: 0.38;
  }
  .qw-month-toggle {
    padding: 0.78rem 0.98rem 0.78rem 1.15rem;
  }
  .qw-month-body {
    padding: 0.6rem 0.7rem 0.7rem 1rem;
  }
  .tweet-entry {
    padding: 0.95rem 0.95rem 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .profile-image,
  .profile-image:hover,
  .profile-image:focus-within {
    transform: none !important;
  }
}

/*# sourceMappingURL=main.css.map */