:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --paper: #f7f2ea;
  --clay: #e7d8c4;
  --sun: #f4b23d;
  --sage: #2d6a5b;
  --blush: #e48f7a;
  --navy: #1f2a44;
  --shadow: rgba(16, 24, 40, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, #ffffff, transparent 45%),
    radial-gradient(circle at 85% 20%, #fff5e1, transparent 50%),
    linear-gradient(135deg, #f7f2ea 0%, #efe2d3 100%);
  min-height: 100vh;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin: 0 0 12px 0;
}

p {
  margin: 0 0 16px 0;
  line-height: 1.6;
}

ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

button,
input {
  font-family: inherit;
}

code {
  font-family: "Courier New", monospace;
  background: rgba(31, 42, 68, 0.08);
  padding: 0 6px;
  border-radius: 6px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 242, 234, 0.75);
  border-bottom: 1px solid rgba(31, 42, 68, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transform: translateY(-5px);
}

.logo-text span {
  font-weight: 600;
  display: block;
  font-family: "Marck Script", "Brush Script MT", cursive;
  font-size: 1.1rem;
}

.logo-text small {
  color: rgba(31, 42, 68, 0.7);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--sun);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px var(--shadow);
}

.button:hover {
  transform: translateY(-2px);
}

.button.outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(31, 42, 68, 0.3);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(31, 42, 68, 0.2);
  box-shadow: none;
}

.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.hero-kicker {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}

.eyebrow {
  display: inline-block;
  background: var(--sun);
  color: #3b2407;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.1rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(27, 27, 27, 0.7);
}

.hero-card {
  background: #fff;
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 25px 40px rgba(31, 42, 68, 0.15);
  border: 1px solid rgba(31, 42, 68, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  color: var(--sage);
  margin-bottom: 8px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(27, 27, 27, 0.6);
  margin-bottom: 6px;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: linear-gradient(120deg, #ffffff 0%, #f4efe7 100%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.post-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(31, 42, 68, 0.08);
  box-shadow: 0 18px 30px rgba(31, 42, 68, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  background: var(--clay);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 68, 0.08);
  box-shadow: 0 10px 20px rgba(31, 42, 68, 0.06);
}

.archive-item span {
  color: rgba(27, 27, 27, 0.6);
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.about-card {
  background: var(--navy);
  color: #fff;
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 22px 40px rgba(31, 42, 68, 0.2);
}

.about-card ol {
  padding-left: 18px;
}

.about-card code {
  background: rgba(255, 255, 255, 0.2);
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(31, 42, 68, 0.1);
}

.footer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 500;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(27, 27, 27, 0.7);
}

.post-page {
  padding: 70px 0 90px;
}

.post-shell {
  background: #fff;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(31, 42, 68, 0.08);
  box-shadow: 0 20px 40px rgba(31, 42, 68, 0.12);
}

.post-shell .button.outline {
  margin-bottom: 72px;
}

#post-title {
  margin-top: 16px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(27, 27, 27, 0.7);
  margin-bottom: 18px;
}

.post-content h2 {
  margin-top: 28px;
}

.post-content ul {
  padding-left: 20px;
}

.post-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

.post-content img {
  display: block;
  max-width: 200px;
  margin: 24px 0 12px;
  border: 0;
  box-shadow: none;
}

.post-content code {
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(31, 42, 68, 0.1);
}

.comments-note {
  color: rgba(27, 27, 27, 0.65);
}

.comment-form {
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}

.comment-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.comment-form input,
.comment-form textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 68, 0.2);
  background: #fff;
}

.comment-list {
  display: grid;
  gap: 16px;
}

.comment-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 68, 0.08);
  padding: 18px;
  box-shadow: 0 12px 24px rgba(31, 42, 68, 0.08);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: rgba(27, 27, 27, 0.6);
}

.comment-body {
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 70px 0 50px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-item {
    flex-direction: column;
  }

  .post-shell {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-card,
  .post-card,
  .archive-item,
  .about-card {
    animation: float-in 0.7s ease both;
  }

  .post-card:nth-child(2) {
    animation-delay: 0.05s;
  }

  .post-card:nth-child(3) {
    animation-delay: 0.1s;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
