:root {
  --bg: #ffcdb2;
  --text: #6d6875;
  --muted: #80786b;
  --border: #dab5a299;
  --accent: #b5838d;
  --muted-bg: #c9b3b3;
  --note: #bd9be1;
  --warn: #ec9d0b;
  --danger: #891010;
  --success: #258201;
  --medium: #e5989b;
}

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

/* SITE WIDE STYLING #################################### */

body {
  background: var(--bg);
  color: var(--text);

  font-family: var(--font-body), system-ui, sans-serif;
  
  margin: 0;
  padding: 3rem 1.25rem;
  
  line-height: 1.5;
  min-height: 100vh;
}

/* Center whole site horizontally */
.site-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* Site headers and footers */

.site-header,
.site-footer {
  padding: 1.5rem 0;
}

.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.site-footer {
  border-top: 1.2px solid var(--border);
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* PAGE STYLING ############################################## */

.page-meta {
  padding-top: 4rem;
}

.page-meta a {
  text-decoration: none;
  color: var(--muted);
  
}

/* MENU  ###################################################  */

/* Top-level menu */
nav > ul {
  display: flex;           /* horizontal layout */
  gap: 1.5rem;             /* spacing between items */
  list-style: none;        /* remove bullets */
  padding: 0;
  margin: 0;
}

/* Top-level items */
nav > ul > li {
  position: relative;      /* needed for dropdown positioning */
}

/* Links */
nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

/* Hover / active states */
nav a.ancestor {
  text-decoration: underline;
}

/* TAXONOMY TERMS ############################## */

.page-meta .taxonomy-terms {
  margin-top: -1rem;
}


/* CONTENT STYLING ############################# */

/* HEADINGS */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  margin-top: 2.5rem;
  font-family: var(--font-head), system-ui, sans-serif;
  letter-spacing: -0.02em;
}


/* LINKS AND TEXTS */



a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}


/* CHECK BOXES PROBLEMATIC CODE HERE*/

/* Removed because it destroyed normal lists */


/* Muted small text and links */
.muted {
  color: var(--muted);
  font-size: 0.85em;
  line-height: 1.4;
  opacity: 0.85;
}

.muted a {
  text-decoration: none;
  color: inherit;
  font-weight: 400;
}

.muted a:hover {
  text-decoration: underline;
}

/* CODE BLOCKS */

pre,
code {
  font-family: var(--font-code), monospace;
  font-size: 0.95em;
}

/* Inline code */
code {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: inherit;
}

/* Code blocks */
pre {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 10px;
  line-height: 1.6;
  font-size: 0.9rem;

  overflow-x: auto;
  
  background: #272822; /* matches chroma */
  color: #e5e7eb;
  
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Remove double padding */
pre code {
  background: none;
  padding: 0;
}


img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}



/* Taxonomy */
/* Links */
.taxonomy-page-section a {
  text-decoration: none;
  color: inherit;
  font-weight: 400;
}
.taxonomy-page-section a:hover {
  text-decoration: underline;
}

.taxonomy-pages {
  margin-bottom: 2rem
}



/* SMOOTH SCROLLING ###########*/

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html{
    scroll-behavior: auto;
  }
}

h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: 150px;
}


/* HORIZONTAL RULE */

hr {
  border: none;
  height: 1px;
  background-color: var(--muted);
  opacity: 0.3;
  margin: 2rem 0;
}