:root {
  --background: #eff5f1;
  --foreground: #1a231e;
  --card: #e7eee9;
  --muted: #637068;
  --border: #cbd7cf;
  --journal: #f5dfd2;
  --essay: #dcebf0;
  --research: #f2e8c8;
  --terracotta: #b75f49;
  --sage: #508767;
  --sand: #cdb572;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-title, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
}

.site-title {
  font-size: 1.45rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover, .site-nav a[aria-current=page] {
  color: var(--terracotta);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.home-intro {
  padding: 64px 0 46px;
  max-width: 1120px;
}

.home-intro h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.home-intro p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.bento-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
  padding-bottom: 72px;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(26, 35, 30, 0.1);
}

.post-card--journal {
  background: var(--journal);
}

.post-card--essays, .post-card--essay {
  background: var(--essay);
}

.post-card--research {
  background: var(--research);
}

.post-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.post-card--medium {
  grid-row: span 2;
}

.post-card--wide {
  grid-column: span 2;
}

.post-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.post-card--wide > a {
  flex-direction: row;
}

.post-card__image {
  min-height: 110px;
  flex: 1 1 44%;
  overflow: hidden;
}

.post-card--large .post-card__image {
  flex-basis: 58%;
}

.post-card--wide .post-card__image {
  width: 40%;
  flex: 0 0 40%;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover img {
  transform: scale(1.035);
}

.post-card__body {
  flex: 1 1 56%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 500;
}

.post-card h2 {
  margin: 13px 0 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.post-card--large h2 {
  font-size: 1.55rem;
}

.post-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card time, .article time, .post-list time {
  color: var(--muted);
  font-size: 0.75rem;
}

.category-page, .page-content, .article {
  width: min(760px, 100% - 40px);
  padding: 56px 0 80px;
}

.category-page > h1, .page-content > h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
}

.category-description {
  margin: 12px 0 44px;
  color: var(--muted);
}

.post-list article {
  border-bottom: 1px solid var(--border);
}

.post-list article:last-child {
  border-bottom: 0;
}

.post-list a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 0;
}

.post-list h2 {
  margin: 0;
  font-size: 1.1rem;
}

.post-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list time {
  flex: 0 0 auto;
  padding-top: 4px;
}

.back-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--foreground);
}

.article-header {
  margin-top: 38px;
}

.article-header h1 {
  margin: 14px 0 8px;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.15;
}

.tag--journal {
  background: var(--journal);
}

.tag--essays, .tag--essay {
  background: var(--essay);
}

.tag--research {
  background: var(--research);
}

.article-image {
  width: 100%;
  max-height: 520px;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.prose {
  margin-top: 42px;
  font-size: 1.05rem;
}

.page-content .prose {
  margin-top: 24px;
}

.prose h2 {
  margin: 2.2em 0 0.65em;
  font-size: 1.7rem;
  line-height: 1.3;
}

.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.2rem;
}

.prose p, .prose ul, .prose ol {
  margin: 1.1em 0;
}

.prose a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 2em 0;
  padding-left: 20px;
  border-left: 3px solid var(--sand);
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

.prose img {
  margin: 2em auto;
  border-radius: 8px;
}

.services-page {
  width: min(1120px, 100% - 40px);
  padding: 56px 0 80px;
}

.services-page > h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.service-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(26, 35, 30, 0.1);
}

.service-card--journal {
  background: var(--journal);
}

.service-card--essay {
  background: var(--essay);
}

.service-card--research {
  background: var(--research);
}

.service-card--plain {
  background: var(--card);
}

.service-card__image {
  height: 190px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.035);
}

.service-card__body {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-direction: column;
  padding: 20px;
}

.service-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.service-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-card__cta {
  align-self: flex-start;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

.service-card__cta:hover {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .container, .category-page, .page-content, .article, .services-page {
    width: min(100% - 28px, 1120px);
  }
  .header-inner {
    min-height: 66px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    inset: 66px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 10px 0;
  }
  .menu-toggle[aria-expanded=true] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded=true] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .home-intro {
    padding: 44px 0 34px;
  }
  .home-intro h1 {
    font-size: 2.75rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .post-card--large, .post-card--medium, .post-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .post-card--wide > a {
    flex-direction: column;
  }
  .post-card--wide .post-card__image {
    width: 100%;
    min-height: 180px;
  }
  .post-card__image {
    min-height: 190px;
  }
  .post-card__body {
    min-height: 190px;
  }
  .post-list a {
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

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