:root {
  /* structure */
  /* (sizes, content width if you keep them here) */

  /* style */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --paper: #faf9f7;
  --abbex: #7a0c0c;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  background: var(--paper);
}

.site-header {
  font-family: var(--sans);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ccc;
}

.site-footer {
  text-align: center;
  padding: 2rem 0;
  /*border-top: 1px solid #ccc;*/
  font-size: 0.9rem;
}

.site-title {
  font-size: 1.2rem;
}

.site-nav ul {
  font-family: var(--sans);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.site-nav li {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--paper);
}

.site-nav li.active,
.site-nav li:hover {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--abbex);
}

.site-nav a {
  font-family: var(--sans);
  text-decoration: none;
  color: black;
  text-align: left;
  line-height: 1.2;
}

.site-nav a span {
  font-family: var(--sans);
  display: block;
  font-size: 0.8rem;
  color: #555;
}

.content {
  max-width: 900px;            /* a bit wider to let columns breathe */
  margin: 2rem auto;
  padding: 0 1rem;
}

.post h1, .post h2, .post h3 {
  font-family: var(--sans);
  font-weight: 500;
  margin-top: 0;
}

.post h5 {
  font-family: var(--sans);
  font-weight: 500;
  font-style: italic;
  margin-top: 0;
}

.post p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-date {
  text-align: right;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #666;
  margin-top: 2rem;
  font-style: italic;
}

blockquote {
  margin: 0 0 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid #ccc;
  font-style: italic;
  color: #333;
}

ul {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid #ddd;   /* subtle line */
  margin: 3rem 0;               /* space above and below */
  opacity: 0.6;                 /* makes it lighter */
}

/* Default: toggle hidden on large screens */
.nav-toggle {
  display: none;
}

/* ----- MOBILE HEADER (place this near the bottom of styles.css) ----- */
@media (max-width: 768px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;      /* lets nav go to the next line */
    gap: .25rem;
  }

  /* MAKE SURE THE BUTTON IS VISIBLE ON MOBILE */
  header .nav-toggle {
    display: block !important;  /* beats any earlier 'display:none' */
    order: 1;
    margin-left: auto;
    padding: .25rem .5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--abbex);
    cursor: pointer;
    z-index: 10;                /* sits above nav if overlapping */
  }

  /* Optional: give your name/logo a class="site-title" */
  header .site-title { order: 0; }

  header nav {
    order: 2;                   /* below the first row */
    flex-basis: 100%;           /* full-width line */
    width: 100%;
    display: none;              /* hidden until toggled */
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: .5rem 0;
    gap: .25rem;
  }

  header.active nav {
    display: flex;              /* appears below, full width */
  }

  header nav a {
    display: block;
    padding: .4rem 0;
    border-bottom: 1px solid var(--border);
  }
}

/****************/
/* TWO COLUMNS  */
/****************/

/* --- Two-column option for long-form posts --- */
.post.two-column {
  column-count: 2;
  column-gap: 3rem;
}

/* Prevent awkward column breaks inside headings, lists, quotes */
.post.two-column h1,
.post.two-column h2,
.post.two-column h3,
.post.two-column blockquote,
.post.two-column ul,
.post.two-column ol {
  break-inside: avoid;
}

/* Mobile / narrow screens: fall back to single column */
@media (max-width: 1000px) {
  .post.two-column {
    column-count: 1;
  }
}

/*********************/
/*  ONE-COLUMN TITLE */
/*********************/

.one-column-title {
  width: 100%;                  /* full width across the content area */
  margin: 2rem 0;
  color: var(--abbex);
  /*
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  */
}

/****************/
/*  ONE-COLUMN  */
/****************/

.one-column {
  width: 100%;                  /* full width across the content area */
  margin: 2rem 0;
  /*
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  */
}

/****************/
/* SIDE BY SIDE */
/****************/

.post.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.post.side-by-side p { margin: 0; line-height: 1.6; }

/* Mobile / narrow screens: fall back to single column */
@media (max-width: 1000px) {
  .post.side-by-side { 
    grid-template-columns: 1fr; 
  }
}

/****************/
/* POST IMAGES  */
/****************/

/* Generic styling for inline images inside articles */
.post img {
  display: block;
  margin: 2rem auto;                  /* centers image and adds breathing space */
  max-width: 100%;                    /* roughly one column width */
  height: auto;                       /* preserve aspect ratio */
  border: none;               	      /* no border */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);  /* deeper, more defined shadow */
  border-radius: 2px;                 /* slightly softened corners */
  filter: grayscale(100%);            /* makes it black & white */
  filter: grayscale(40%) contrast(105%);
}

/* Mobile: let images expand naturally */
@media (max-width: 800px) {
  .post img {
    max-width: 100%;
  }
}

/****************/
/* DISCLAIMER   */
/****************/

.disclaimer-block {
  width: 100%;                  /* full width across the content area */
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.55;
  box-sizing: border-box;
}

.disclaimer-block h4 {
  text-align: center;           /* center only the header */
  font-weight: 500;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem 0;
}

.disclaimer-block p {
  text-align: justify;          /* justify the paragraph text */
  margin: 0.4rem 0;
}

/*****************/
/* FIELD NOTES ***/
/*****************/

.fieldnotes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

/* Main content on left */
.fieldnotes-main {
  flex: 1 1 70%;
  min-width: 300px;
}

/* Sidebar on right */
.fieldnotes-sidebar {
  flex: 1 1 25%;
  min-width: 200px;
  border-left: 1px solid #ddd;
  padding-left: 1rem;
}


/* On small screens: stack */
@media (max-width: 768px) {
  .fieldnotes-container {
    flex-direction: column;
  }
  .fieldnotes-sidebar {
    border-left: none;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
  }
}

/*******************/
/*FIELD NOTES TAGS */
/*******************/

.fieldnotes-tags {
  font-family: inherit;          /* use same font as rest of site */
  font-size: 0.7em;             /* smaller, subtle */
  text-transform: uppercase;     /* all caps */
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.fieldnotes-tags span {
  font-weight: 600;
  color: #666;
  margin-right: 0.6rem;
}

.fieldnotes-tags a {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #f8f8f8;
  color: #111;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.fieldnotes-tags a.selected {
  color: var(--abbex);
  border: 1px solid var(--abbex);
}

.fieldnotes-tags a:hover {
  background-color: #eaeaea;
  border-color: #999;
  color: #000;
}

@media (max-width: 768px) {
  .fieldnotes-tags {
    font-size: 0.7em;
    gap: 0.3rem;
  }
}


/***********************/
/* FIELD NOTES SIDEBAR */
/***********************/

.fieldnotes-sidebar {
  font-family: inherit;
  font-size: 0.85em;
  line-height: 1.4;
  border-left: 1px solid #ddd;
  padding-left: 1.6rem;
  color: #333;
}

.fieldnotes-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fieldnotes-sidebar li {
  margin-bottom: 0.6rem;
}

.fieldnotes-sidebar a {
  text-decoration: none;
  color: #222;
  transition: color 0.15s ease-in-out;
}

.fieldnotes-sidebar a:hover {
  color: #000;
  text-decoration: underline;
}

.fieldnotes-sidebar span {
  display: block;
  font-size: 0.75em;
  color: #777;
  margin-top: 0.15rem;
}

.fieldnotes-sidebar li.selected {
  position: relative;
}

.fieldnotes-sidebar li.selected::before {
  content: "▶";
  position: absolute;
  left: -1.4em;        /* move it into the left margin */
  top: 0.25em;         /* subtle vertical alignment */
  color: var(--abbex);
  font-size: 0.7em;    /* small and refined */
}

/* mobile stacking */
@media (max-width: 900px) {
  .fieldnotes-sidebar {
    border-left: none;
    border-top: 1px solid #ddd;
    padding-left: 0;
    padding-top: 1rem;
    margin-top: 1rem;
  }
}

.fieldnotes-sidebar hr {
    margin: 1em 0;
}

