/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Set base font size for easier rem calculations */
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased; /* Improve font rendering */
  -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  color: #4b0115;
  text-decoration: none;
  /* text-decoration-skip-ink: auto;
  color: #024d86; */ /* #005ea5; */ /* Standard blue link color */
}

a:focus,
a:hover {
  text-decoration: underline;
  color: #33000d; /* Darken on hover */
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
   animation-duration: 0.01ms !important;
   animation-iteration-count: 1 !important;
   transition-duration: 0.01ms !important;
   scroll-behavior: auto !important;
  }
}

/* Variable Fonts */
/* .bitter-<uniquifier> {
  font-family: "Bitter", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
} */

/* --- Base Styles --- */
a {
  color: #4b0115;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

body {
  font-family: 'Inter', 'Arial', sans-serif;
  color: #01182b;
  background-color: #fff; /* #F2F2F4;*/
  margin: 0; /* Ensure no default body margin */
  padding: 0; /* Ensure no default body padding */
}

button, input, select, textarea {
  font-family: 'Inter', 'Arial', sans-serif;
}

nav, h1, h2, h3, h4, h5, h6 {
  font-family: 'Bitter', 'Inter', 'Helvetica', sans-serif;
}

object{
  pointer-events: none;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* --- Layout --- */
.container {
  max-width: 800px; /* Adjust as needed */
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem; /* Vertical and horizontal padding */
}

/* --- Header & Footer --- */
header {
  text-align: center;
  margin-bottom: 0.5rem; /* Space below header */
  padding-bottom: 1rem; /* Space below title */
  border-bottom: 1px solid #ccc; /* Subtle separator */
}

header h1 {
  font-size: 2.5rem;
  margin: 0; /* Remove default h1 margins */
  font-weight: 450;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  /* text-transform: uppercase; */
}

header h1 a {
  text-decoration: none; /* Keep title link un-underlined */
  color: #011f36 !important; 
}

header h1 a:focus,
header h1 a:hover {
  text-decoration: none; /* No underline on hover */
  color: #004070 !important; /* Lighten on hover */
}

footer {
  text-align: center;
  margin-top: 1rem; /* Space above footer */
  padding-top: 1rem; /* Space above footer text */
}

footer svg {
  display: block;
  margin: auto;
}

/* --- Navigation --- */
nav {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  text-align: center; /* Center nav items */
  border-bottom: 1px solid #ccc; /* Subtle separator */
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
  margin: 0 1rem; /* Space around nav items */
}

nav a {
  text-decoration: none;
  font-weight: normal; /* Normal weight */
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover,
nav a:focus {
  text-decoration: none; /* No underline on hover */
  color: #004070 !important; /* Lighten on hover */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
  font-weight: normal; /* Use semibold for headings */
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1em;
}


/* --- Navigation --- */
nav {
  margin-bottom: 2rem; /* Space below navigation */
}

nav ul {
  list-style: none; /* Remove default bullets */
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block; /* Arrange items horizontally */
  margin-right: 1.5rem; /* Space between nav items */
}

nav a {
  color: #02365e !important;
  text-decoration: none;
  font-weight: bold;
}

/* Active navigation link styling */
nav a[aria-current="page"] {
  font-weight: bold;
  text-decoration: underline;
}

/* --- Content Area --- */
main ul,
main ol {
  padding-left: 2em; /* Indent lists */
  margin-bottom: 1em;
}

main li,
main li p {
  margin-bottom: 0.25em; /* Space between list items */
}

blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1em;
  font-style: italic;
  color: #666;
}

pre {
  background-color: #eee;
  padding: 1em;
  overflow-x: auto; /* Handle long lines of code */
  margin-bottom: 1em;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  background-color: #eee;
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}

/* Custom */

.smallGrayDate {
  font-size: 0.8rem;
  color: #666;
}

.noteTitle {
  font-size: 1.8rem;
}

.footnotes-sep {
  margin-top: 2rem;
}
.footnotes {
  margin-top: 1rem;
}
.footnote-item {
  font-size: 0.85rem;
}
/* Tablet (≤900px) */
@media (max-width: 900px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 98vw;
    padding: 1.5rem 0.75rem;
  }
  header h1 {
    font-size: 2rem;
  }
  nav li {
    margin: 0 0.5rem;
  }
  nav a {
    font-size: 0.95rem;
  }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  .container {
    max-width: 100vw;
    padding: 1rem 0.5rem;
  }
  header h1 {
    font-size: 1.5rem;
  }
  nav li {
    margin: 0 0.25rem;
  }
  nav a {
    font-size: 1rem;
  }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
}
