/* Theme Tokens */
:root {
  --notes-bg: #f7f4ec;
  --notes-paper: #fffdf8;
  --notes-ink: #202020;
  --notes-muted: #6b665d;
  --notes-accent: #a54c2b;
  --notes-border: #ddd3c3;
}

/* Global Page */
body {
  background:
    radial-gradient(circle at top left, rgba(165, 76, 43, 0.08), transparent 24rem),
    linear-gradient(180deg, #fbf8f1 0%, var(--notes-bg) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  color: var(--notes-ink);
}

main.content {
  padding-bottom: 3rem;
}

/* Quarto Chrome */
.navbar {
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--notes-border);
}

.navbar-title,
.navbar-nav .nav-link {
  font-weight: 600;
}

.quarto-title-block .title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.listing-description,
.quarto-listing-category,
.metadata-value {
  color: var(--notes-muted);
}

.quarto-category {
  background: rgba(165, 76, 43, 0.08);
  color: var(--notes-accent);
  border: 1px solid rgba(165, 76, 43, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

/* Notes Home Layout */
.notes-home #listing-listing .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
}

.notes-home #listing-listing .g-col-1 {
  width: 100%;
}

.notes-home #quarto-margin-sidebar {
  display: none !important;
}

.notes-home main.content {
  width: 100%;
  max-width: 100%;
}

/* Notes Home Cards */
.notes-home .quarto-grid-item {
  background: var(--notes-paper);
  border: 1px solid var(--notes-border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(68, 48, 28, 0.06);
}

.notes-home .quarto-grid-link {
  color: inherit;
  text-decoration: none;
}

.notes-home .post-contents {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
}

.notes-home .listing-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.notes-home .home-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0;
  color: var(--notes-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.notes-home .home-card-meta-segment {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.notes-home .home-card-meta-segment:not(:last-child)::after {
  content: "•";
  margin-left: 0.55rem;
  color: rgba(107, 102, 93, 0.45);
}

.notes-home .home-card-meta-label {
  color: var(--notes-ink);
  font-weight: 600;
}

/* Table Utilities */
.table-scroll-small {
  overflow-x: auto;
  margin: 1.25rem 0;
}

.table-scroll-small table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: normal;
}

.table-scroll-small col:first-child {
  width: 16% !important;
}

.table-scroll-small th,
.table-scroll-small td {
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
