/* Override hyperlink styles for dark mode */
/* suggested color palette for light mode: https://coolors.co/393e41-d3d0cb-e7e5df-478978-ad5d4e */

:root{
    --maincolor: #478978;
    --bordercl: #ad5d4e;
    --callouctcolor:dodgerblue;
    --hovercolor:navy;
    --darkMaincolor: #50fa7b;
    }

html {
    color: #393e41;
    font-family: 'Noto Sans', sans-serif;
    line-height: 2.0em;
}

body {
    background-color: #e7e5df;
}

p {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.8;
}

/* hyperlink colors and styles */
a {
    border-bottom: 2px solid var(--maincolor);
    color: inherit;
    text-decoration: none;
}

a:hover {
    background-color: #d3d0cb;
    /* Optionally adjust the text color on hover */
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Recursive', sans-serif;
    font-size: 1.5rem;
    margin-top: 2em;
  }

.post-container {
    gap: 0px;
  }

.post-content {
    flex: 3;
}

/* Footer container */
.footer-cta {
  display: block;
  align-items: center;
  width: 100%;
  /* gap: 0.75rem;
  flex: 1 1 420px;
  min-width: 280px; */
}

@media (max-width: 520px) {
  .footer-cta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items horizontally */
    align-items: center;     /* Align items vertically */
    gap: 1rem;               /* Add consistent spacing */
    padding: 1rem;           /* Add some padding */
    text-align: center;      /* Center text for small screens */
  }
  
  /* Social icons container */
  .footer-social {
    justify-content: left;
    display: flex;
    gap: 0.1rem; /* Spacing between icons */
  }
  
  /* Social icon styling */
  .soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Optionally add padding, border, or hover effects here */
  }
  
  /* Footer info styling */
  .footer-info {
    font-size: 0.9rem;
  }
  
  /* Responsive adjustments */
  @media screen and (max-width: 600px) {
    .footer-content {
      flex-direction: column;  /* Stack items on narrow screens */
    }
  }

  .border {
    margin-left: 0.5em;
    margin-right: 0.5rem;
    border: 1px solid;
  }

/* Minimal callout using fenced code blocks with language "callout" */
.highlight pre:has(code.language-callout) {
  background: #f8f9fb;           /* light, neutral */
  border: 1px solid #dfe3e8;      /* subtle border */
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow: auto;
}

.highlight pre:has(code.language-callout) code.language-callout {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;              /* smaller than normal code */
  line-height: 1.5;
  white-space: pre-wrap;          /* allow wrapping inside callout */
}

@media (prefers-color-scheme: dark) {
  .highlight pre:has(code.language-callout) {
    background: #0f1214;          /* dark-mode neutral */
    border-color: #2a2f36;
  }
}

/* === Subscribe form (Subscribe page) === */
.subscribe {
  /* Align with the page content column instead of centering a narrow module */
  max-width: 100%;
  margin: 1.5rem 0 0;
  text-align: left;
}

.subscribe__form {
  margin: 0;
}

/* Card/panel treatment (matches your callout vibe) */
.subscribe__panel {
  padding: 1.1rem 1.1rem;
  background: rgba(71, 137, 120, 0.15);
  border: 1px solid rgba(71, 137, 120, 0.25);
  border-radius: 15px;
  box-sizing: border-box;
}

/* Make the whole panel “wake up” on focus */
.subscribe__panel:focus-within {
  border-color: rgba(71, 137, 120, 0.45);
  box-shadow: 0 0 0 3px rgba(71, 137, 120, 0.14);
}

.subscribe__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.35rem;
}

.subscribe__label {
  display: block;
  margin: 0 0 0.45rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.8;
}

/* The “single control” field with an inset button */
.subscribe__field {
  position: relative;
}

/* Force form controls to match your typography */
.subscribe__input,
.subscribe__button {
  font: inherit;
}

.subscribe__input {
  width: 100%;
  box-sizing: border-box;

  min-height: 48px;
  padding: 0.75rem 0.9rem;
  padding-right: 7.75rem; /* space for the button */

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(57, 62, 65, 0.25);
  border-radius: 12px;
  font-size: 1rem;

  box-shadow: 0 1px 0 rgba(57, 62, 65, 0.08);
}

.subscribe__input:focus {
  outline: none;
  border-color: rgba(71, 137, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(71, 137, 120, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

/* Button lives inside the input block */
.subscribe__button {
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  bottom: 0.4rem;

  padding: 0 1rem;
  border-radius: 10px;

  border: 1px solid rgba(71, 137, 120, 0.25);
  background: var(--maincolor);
  color: #e7e5df;
  border-color: rgba(71, 137, 120, 0.35);

  cursor: pointer;
  white-space: nowrap;
}

.subscribe__button:hover {
  background: rgba(71, 137, 120, 0.9);
}

.subscribe__fineprint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Mobile: stack field + button */
@media (max-width: 520px) {
  .subscribe__field {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .subscribe__input {
    padding-right: 0.9rem; /* remove inset-button spacing */
  }

  .subscribe__button {
    position: static;
    width: 100%;
    min-height: 44px;
  }
}



/* line treatment */
/* .subscribe-callout {
  margin: 1.75rem 0 1.25rem 0;
  padding: 0.15rem 0 0.15rem 1.25rem;
  border-left: 2px solid var(--maincolor);
  box-sizing: border-box;
} */

/* callout treatment */
.subscribe-callout {
  margin: 1rem 0 1rem 0;
  padding: 0.7rem 1.05rem;

  background: rgba(71, 137, 120, 0.05);
  border: 1px solid rgba(71, 137, 120, 0.18);
  border-radius: 10px;

  box-sizing: border-box;
}

.subscribe-callout__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #393e41;
  /* color: rgba(57, 62, 65, 0.85); */
}

/* .subscribe-callout a {
  font-weight: 600;
} */

.subscribe-callout::before {
  content: "Stay up to date";
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.35rem;
}

.subscribe-callout a:hover {
  background-color: transparent;
}

/* === Subscribe footer === */

/* === Footer centering (fix left drift) === */
footer .footer-content {
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;  /* separation between line 1 and line 2 */
  padding: 1rem;
}

footer .footer-line1,
footer .footer-line2 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .footer-line2 {
  flex-direction: column;
  gap: 0.45rem; /* separation between info and social */
}

footer .footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

footer .footer-cta { display: block; width: 100%; text-align: center; }
footer .footer-cta a{ display: inline; }

/* === List page header + dek === */
.list-header {
  margin-bottom: 1.25rem;   /* space between header/dek and the list */
}

.page-title {
  margin-bottom: 0.4rem;    /* tighten title -> dek */
}

/* This makes the intro read like a subtitle, not a paragraph */
.section-intro {
  margin: 0;
}

.section-intro p {
  margin: 0;                /* remove default paragraph top/bottom margins */
  max-width: 100%;          /* keep it readable */
  font-size: 0.98rem;       /* slightly smaller than body */
  line-height: 1.45;        /* tighter than body */
  opacity: 0.60;            /* subtle, not competing with list */
}

/* === Make the archive list read like an archive === */
ul.posts {
  list-style: none;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  /* padding-left: 0.75rem;
  padding-right: 0.75rem; */
  width: 100%;
  /* max-width: 72ch; */
  box-sizing: border-box;
}

ul.posts {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 62, 65, 0.12);
}

/* ul.posts::before {
  content: "Posts";
  display: block;
  font-family: 'Recursive', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.0em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 1rem 0 0.35rem 0;
} */

ul.posts li.post {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 1rem;
  /* padding: 0.35rem 0.25rem; */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 0.5rem;
  /* width: 100%; */
  box-sizing: border-box;
  border-radius: 0;
  /* margin-left: -0.25rem;
  margin-right: -0.25rem; */
  /* padding-left: 0.25rem;
  padding-right: 0.25rem; */
  border-radius: 5px;
  /* padding: 0;
  border-radius: 0;
  line-height: 1.35; */
}

ul.posts li.post:hover {
  background-color: #d3d0cb;
}

ul.posts li.post .meta {
  display: block;
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-size: 0.9em;
  opacity: 0.6;
}

@media (max-width: 520px) {
  ul.posts li.post {
    grid-template-columns: 1fr;
  }
  ul.posts li.post .meta {
    text-align: left;
    margin-top: 0.1rem;
    white-space: normal;
  }
}

ul.posts li.post::before {
  content: none !important;
}

ul.posts li.post a {
  font-weight: 600;
  border-bottom: none;
}

ul.posts li.post a:hover {
  /*border-bottom: 2px solid var(--maincolor);*/
  background-color: transparent;
}

ul.posts,
ul.posts li.post,
ul.posts li.post .meta {
  line-height: 1.35;
}

/* Force section list headers to stack (title above dek) */
.list-header .page-title {
  float: none;      /* kills theme float */
  display: block;   /* ensures it takes full width */
}

.list-header .section-intro {
  clear: both;      /* ensures it sits below any floats */
}

.list-header {
  display: block;   /* undo any flex/grid that might be applied */
}