body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen;
  background: #171717;
  color: #e7e2d9;
}

.page {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.03), transparent 26%),
    radial-gradient(circle at 84% 4%, rgba(255, 255, 255, 0.02), transparent 24%),
    radial-gradient(circle at 60% 90%, rgba(255, 255, 255, 0.02), transparent 26%),
    #171717;
}

.sidebar {
  width: 240px;
  padding: 32px 24px;
  border-right: 1px solid rgba(183, 173, 160, 0.14);
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.97) 0%, rgba(31, 31, 31, 0.88) 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4eee6;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.55);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  color: #cfc4b5;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(183, 173, 160, 0.12);
  color: #f0e7dc;
  transform: translateX(2px);
}

.nav a.active {
  background: rgba(217, 119, 6, 0.14);
  color: #fff7ed;
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #8b7f73;
}

.content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 56px 40px;
}

.container {
  width: min(900px, 100%);
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  color: #f4eee6;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: normal;
  font-size: 1.2rem;
  color: #b7ada0;
  margin-bottom: 30px;
}

p {
  line-height: 1.6;
  margin-bottom: 30px;
}

.home-hero {
  position: relative;
  margin-bottom: 34px;
  padding: 2px 0 18px;
}

.home-intro {
  max-width: 720px;
  margin-bottom: 16px;
}

.links a {
  display: inline-block;
  margin: 10px 10px 0 0;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(42, 42, 42, 0.92);
  border: 1px solid rgba(183, 173, 160, 0.14);
  color: #eee5da;
  transition: 0.2s;
}

.links a:hover {
  background: rgba(56, 56, 56, 0.95);
  border-color: rgba(217, 119, 6, 0.3);
  transform: translateY(-1px);
}

.footer {
  margin-top: 60px;
  font-size: 0.9rem;
  color: #a99e92;
}

.posts-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(183, 173, 160, 0.12);
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #a99e92;
  margin: 0 0 6px;
}

.lead {
  color: #d5cabd;
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(183, 173, 160, 0.24);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.button {
  background: linear-gradient(135deg, #c96a1b 0%, #f59e0b 100%);
  color: #1a120c;
  border: none;
  box-shadow: 0 10px 24px rgba(201, 106, 27, 0.24);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(201, 106, 27, 0.3);
}

.ghost {
  color: #eee5da;
  background: rgba(183, 173, 160, 0.08);
}

.ghost:hover {
  border-color: rgba(183, 173, 160, 0.42);
  transform: translateY(-1px);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  color: #a99e92;
  font-size: 0.9rem;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: rgba(183, 173, 160, 0.12);
  color: #eee5da;
  border: 1px solid rgba(183, 173, 160, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pill:hover {
  background: rgba(183, 173, 160, 0.18);
}

.pill.active {
  border-color: rgba(217, 119, 6, 0.7);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.38);
  color: #fff2df;
}

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

.post-card {
  position: relative;
  background: linear-gradient(180deg, rgba(35, 35, 35, 0.9), rgba(28, 28, 28, 0.76));
  border: 1px solid rgba(183, 173, 160, 0.12);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.55), transparent 55%);
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.26);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #a99e92;
}

.card-meta .tag {
  background: rgba(217, 119, 6, 0.14);
  color: #fff2df;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.post-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #f4eee6;
}

.post-card p {
  margin: 0;
  color: #d5cabd;
  line-height: 1.7;
}

.read-more {
  margin-top: auto;
  color: #f0a44b;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.read-more:hover {
  color: #ffd39a;
}

.latest-post {
  margin: 56px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-link {
  color: #a99e92;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.section-link:hover {
  color: #eee5da;
}

.posts-grid.single {
  grid-template-columns: 1fr;
}

.featured-card {
  padding: 26px;
}

.featured-card h3 {
  font-size: 1.5rem;
}

.quotes {
  margin: 44px 0 20px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

blockquote {
  margin: 0;
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(183, 173, 160, 0.14);
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.86), rgba(30, 30, 30, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

blockquote p {
  margin: 0 0 8px;
  color: #eee5da;
  font-style: italic;
}

blockquote span {
  color: #a99e92;
  font-size: 0.9rem;
}

.article {
  max-width: 760px;
}

.article h1 {
  text-align: left;
  font-size: 2.75rem;
  margin-bottom: 14px;
}

.article h2 {
  text-align: left;
  margin-top: 54px;
  margin-bottom: 16px;
  color: #f4eee6;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.article h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: #ffd39a;
  font-size: 1.2rem;
}

.article p,
.article li {
  font-size: 1rem;
  line-height: 1.8;
  color: #d5cabd;
}

.article p {
  margin-bottom: 20px;
}

.article ul,
.article ol {
  margin: 0 0 28px;
  padding-left: 22px;
}

.article > .card-meta + p + ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 32px;
}

.article li {
  margin-bottom: 10px;
}

.article > .card-meta + p + ul li {
  margin-bottom: 0;
}

.article li::marker {
  color: #d97706;
}

.article a {
  color: #f0a44b;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 164, 75, 0.35);
  transition: color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.article a:hover {
  color: #ffd39a;
  border-color: rgba(240, 164, 75, 0.8);
  box-shadow: inset 0 -1px 0 rgba(217, 119, 6, 0.24);
}

.article hr {
  border: 0;
  height: 1px;
  margin: 36px 0;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.35), transparent);
}

.article strong {
  color: #f4eee6;
}

.article-meta {
  margin: 0 0 28px;
  padding: 0;
}

.article pre {
  margin: 20px 0 28px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(183, 173, 160, 0.16);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  box-shadow: none;
}

.article code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.article :not(pre) > code {
  background: rgba(44, 44, 44, 0.8);
  color: #e3d8c9;
  border: 1px solid rgba(183, 173, 160, 0.1);
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
  font-size: 0.92em;
}

.article .callout {
  margin: 22px 0 28px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.2), rgba(35, 35, 35, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.article .callout p:last-child {
  margin-bottom: 0;
}

.article .callout strong {
  color: #f0a44b;
}

@media (max-width: 900px) {
  .posts-hero {
    margin-top: 10px;
  }

  .page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: unset;
    position: relative;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a {
    padding: 10px 12px;
  }

  .sidebar-footer {
    margin-top: 0;
    margin-left: auto;
  }

  .content {
    padding: 30px 20px 40px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  h1,
  .article h1 {
    font-size: 2.45rem;
  }
}
