/* =========================
   PALETTE & GLOBAL TYPE
   ========================= */

:root {
  --ink: #2e2224;
  --bg-paper: #fbe6cf;
  --panel: #208FBF;
  --panel-shadow: #e0917e;
  --chip-bg: #fce4cf;

  /* NEW accents */
  --accent-red: #a70505;     /* matches your listing header bar */
  --accent-gold: #EAB535;    /* title bar gold */
  --accent-rose: #f7b2a6;    /* soft pink highlight */
  --accent-teal: #0b6f7b;    /* deep teal for emphasis */
}


/* body {
  background-color: var(--bg-paper) !important;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;
  line-height: 1.6;
} */

/* Remove any global box shadow wrappers Cosmos might add */
body > .page-columns {
  box-shadow: none !important;
}


/* =========================
   NAVBAR = TOP WINDOW
   ========================= */

.navbar,
.navbar.navbar-expand-lg {
  position: relative;
  max-width: 1100px;
  margin: 1.5rem auto 1.5rem;
  padding: 0.55rem 1.4rem;

  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--panel-shadow);
  align-items: center;
}



/* fake address bar / logo pill */
.navbar .navbar-brand {
  margin: 0;
  padding: 0.3rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--chip-bg);

  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink) !important;
}

/* nav buttons on the right */
.navbar-nav {
  margin-left: auto;
}

.navbar-nav .nav-link {
  margin-left: 0.4rem;
  padding: 0.25rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--chip-bg);

  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink) !important;
}

.navbar-nav .nav-link:hover {
  background: var(--panel);
}


/* =========================
   MAIN WINDOW (HOME + POSTS LIST)
   ========================= */

/* === BACKGROUND & MAIN WINDOW === */

/* peach world behind everything */
body {
  background-color: #F3DCA8 !important;   /* outer peach */
  color: #2e2224;
  background-image: 
    linear-gradient(to right, #d4a574 3px, transparent 1px),
    linear-gradient(to bottom, #d4a574 3px, transparent 1px);
  background-size: 70px 70px;
}

/* beige window panel */
main#quarto-document-content,
main.content {
  position: relative;
  background: #fbe6cf;                    /* beige interior (like ref) */
  
  border: 3px solid #2e2224;
  border-radius: 22px;
  padding: 0 3rem 3rem;                   /* no top padding */
  margin: 0 auto 3rem;
  max-width: 1100px;
  box-shadow: 8px 8px 0 #e0917e;
}



/* top-level titles */
h1.title {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.8rem 3rem 0 3rem;
  margin-left: -3rem;
  margin-right: -3rem;
  font-size: 1.0rem;
  font-weight: 100;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
  background-color: #EAB535;
  border-radius: 19px 19px 0 0;
  text-transform: uppercase;
}

h1.title::before {
  content: '— ✕';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.3rem;
  color: #ffffff;
}

h1.title::after {
  content: '';
  display: block;
  width: calc(100% + 6rem);
  height: 2px;
  background-color: var(--ink);
  margin-top: 0.8rem;
  margin-bottom: 0;
  margin-left: -3rem;
}

/* main page/post titles already styled via h1.title + .quarto-title-block */

/* section headings */
h2 {
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 1.05rem;
}

h3 {
  color: var(--accent-red);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* small headings / labels */
h4 {
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--chip-bg);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
}


/* inline links */
a {
  color: var(--accent-red);
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent-rose);
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  background: var(--accent-rose);
  color: var(--ink);
  border-radius: 4px;
  text-decoration-color: transparent;   /* hide underline on hover */
}

/* “buttony” links (e.g. inside text) */
a.buttony-link {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--chip-bg);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

a.buttony-link:hover {
  background: var(--panel);
  color: #fff;
}

/* strong emphasis */
strong, b {
  color: var(--accent-red);
  font-weight: 800;
  padding: 0.05rem 0.25rem;
  border-radius: 0.3rem;
}

/* softer emphasis */
em, i {
  color: var(--accent-teal);
  font-style: italic;
}

/* both bold + italic together */
strong em,
em strong,
b i,
i b {
  color: #ffffff;
  background: var(--accent-red);
  padding: 0.08rem 0.3rem;
  border-radius: 0.35rem;
}

/* inline code */
code {
  background: #2e2224;
  color: #fbe6cf;
  padding: 0.06rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.86em;
}

/* code blocks already styled, just ensure text color */
div.sourceCode,
pre {
  color: #fbe6cf;
}

blockquote {
  position: relative;
  margin: 1.5rem auto;
  padding: 1rem 1.25rem 1rem 1.5rem;
  max-width: 650px;

  background: var(--chip-bg);
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--panel-shadow);
  color: var(--ink);
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -0.9rem;
  left: 0.8rem;
  font-size: 2.5rem;
  color: var(--accent-gold);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* section divider */
hr {
  border: none;
  height: 3px;
  width: 70%;
  margin: 2.5rem auto;
  background-image: linear-gradient(
    to right,
    var(--accent-gold) 0,
    var(--accent-gold) 33%,
    transparent 33%,
    transparent 66%,
    var(--accent-red) 66%,
    var(--accent-red) 100%
  );
}

ul li::marker {
  color: var(--accent-gold);
}

ol li::marker {
  color: var(--accent-red);
  font-weight: 700;
}


/* blog category list on posts page: make it look like a sticky note */
.sidebar nav {
  background: var(--chip-bg);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 4px 4px 0 var(--panel-shadow);
}

/* Listing container improvements */
#quarto-content .quarto-listing {
  margin-top: 1.5rem;
}

/* Create grid layout for post listings */
.quarto-listing .list.quarto-listing-default {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
}


/* =========================
   POST PAGE CLEANUP
   ========================= */

/* kill that big blue cosmos banner */
.quarto-title-block .quarto-title-banner,
.quarto-title-block.default .quarto-title-banner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0.5rem;
}

/* keep title text simple */
.quarto-title-block .title h1,
.quarto-title-block .title h1.title {
  font-size: 2.3rem;
  font-weight: 800;
}

/* metadata layout a bit tighter */
.quarto-title-meta {
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

/* make code / special blocks match the window style */
div.sourceCode,
.cell-output-display,
.cell-output-stdout,
.cell-output {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--panel-shadow);
  padding: 1.2rem 1.4rem;
  max-width: 650px;
  margin: 1.5rem auto;
}


/* ============================================
   BLOG POST LISTINGS — WINDOW STYLE (NO THUMB)
   ============================================ */

/* Main card container */
.quarto-post {
  position: relative;
  background: #fbe6cf;
  border: 3px solid #2e2224;
  border-radius: 18px;

  padding: 3.2rem 2.5rem 2.2rem;
  margin: 1.5rem 0;
  box-shadow: 6px 6px 0 #e0917e;

  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-areas:
    "meta content";
  gap: 2rem;

  min-height: 220px; /* gives you the tall “window” look */
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quarto-post:hover {
  transform: translateY(3px);
  box-shadow: 8px 8px 0 #e0917e;
}

/* ============================
   TITLE BAR (WINDOW HEADER)
   ============================ */
.quarto-post .listing-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  background: #a70505;
  color: #ffffff !important;

  padding: 0.7rem 3rem;
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 14px 14px 0 0;
}

/* white title text */
.quarto-post .listing-title a {
  color: #ffffff !important;
  text-decoration: none;
}

/* window button indicator */
.quarto-post .listing-title::before {
  content: "— ✕";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
}

/* small dividing underline */
.quarto-post .listing-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* ============================
   META LEFT COLUMN
   ============================ */
.quarto-post .metadata,
.quarto-post .listing-details {
  grid-area: meta;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* ============================
   TEXT RIGHT COLUMN
   ============================ */

.quarto-post .listing-description,
.quarto-post .listing-subtitle {
  grid-area: content;
  font-size: 1rem;
  line-height: 1.45;
}


/* ============================
   REMOVE THUMBNAILS COMPLETELY
   ============================ */
.quarto-post .thumbnail,
.quarto-post .thumbnail img {
  display: none !important;
}

/* ============================================
   GRID LAYOUT FOR LISTING
   ============================================ */

/* Turn the listing into a responsive grid */
.quarto-listing .list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem 2.5rem;          /* row gap, column gap */
  list-style: none;          /* in case it's a <ul> */
  margin: 2rem 0 0;
  padding: 0;
}

/* Cards inside the grid: let the grid gaps control spacing */
.quarto-listing .list > * {
  margin: 0 !important;      /* override .quarto-post margin: 1.5rem 0; */
}

/* Optional: a touch tighter on narrower screens */
@media (max-width: 700px) {
  .quarto-listing .list {
    grid-template-columns: 1fr;
  }
}

/* ================
   MOBILE OVERRIDES
   ================ */
@media (max-width: 600px) {

  /* Keep the “window” look but stop overflowing */
  .navbar,
  main#quarto-document-content,
  main.content {
    max-width: 100%;
    margin: 0.75rem;
    padding: 0 1.25rem 1.75rem;
    box-shadow: 4px 4px 0 var(--panel-shadow);
  }

  /* Title bar: remove huge negative margins & extra-wide underline */
  h1.title {
    padding: 0.7rem 1.25rem 0;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    font-size: 0.9rem;
  }

  h1.title::after {
    width: 100%;
    margin-left: 0;
  }

  /* Post cards → single column, slimmer padding */
  .quarto-post {
    grid-template-columns: 1fr;
    padding: 2.4rem 1.4rem 1.6rem;
    gap: 1rem;
    min-height: auto;
  }

  .quarto-post .listing-title {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
  }

  /* Listing grid: force one column, no min 360px overflow */
  .quarto-listing .list {
    grid-template-columns: 1fr;
  }
}
