:root {
  --page-bg: #f7f6f3;
  --page-fg: #161616;
  --muted: #666666;
  --accent: #a40000;
  --rule: #202020;
  --rule-light: #e0ddd4;
  --link: #a40000;
  --link-hover: #5c0000;
  --max-width: 1100px;
  --base-font: "Georgia", "Times New Roman", serif;
}

/* -----------------------------
   RESET / BASE
----------------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* base = 18px, all rem sizes derive from this */
}

body {
  font-family: var(--base-font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--page-fg);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

/* images */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* links */

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

/* headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--base-font);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

h1 {
  font-size: 2.3rem;
  line-height: 1.25;
  border-bottom: 3px solid var(--rule);
  padding-bottom: 0.7rem;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.45rem;
  margin-top: 2.75rem;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-top: 2.1rem;
}

/* UNIFIED TEXT SIZING — paragraphs + lists */

p,
ul,
ol,
li {
  font-size: 1rem;   /* exact same size everywhere = 18px */
  line-height: 1.9;  /* unified rhythm */
}


/* generic */

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

main.container {
  display: block;
}

/* visually hidden */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* -----------------------------
   PAGE CONTAINER
----------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.4rem 1.75rem 3.4rem;
}

/* -----------------------------
   MASTHEAD (TOP HEADER)
----------------------------- */

.top-header {
  border-bottom: 1px solid var(--rule-light);
  background: #fbfaf7;
}

.top-header header.top-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

/* brand icon as masthead emblem */

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-bottom: none;
}

.brand-icon {
  font-size: 2.1rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--rule-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rule);
  background: transparent;
}

/* keep FA classes clean if used elsewhere */

.fa-solid.fa-scale-balanced {
  font-size: 1.3rem;
}

/* ---------------------------------
   NEWSPAPER NAV BAR / HAMBURGER
---------------------------------- */

.top-nav {
  border-bottom: 1px solid var(--rule-light);
  border-top: 1px solid var(--rule-light);
  background: #f7f5f0;
}

/* inner layout */

.top-nav .container {
  max-width: var(--max-width);
  padding: 0.6rem 1.75rem;
  margin: 0 auto;
}

/* hamburger button */

.menu-toggle {
  appearance: none;
  border: 1px solid var(--rule-light);
  background: #ffffff;
  padding: 0.55rem 0.9rem;
  margin: 0.25rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.menu-toggle:focus {
  outline: 2px solid var(--rule);
  outline-offset: 2px;
}

/* bars */

.bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rule);
}

/* menu (mobile first) */

.menu {
  display: none;
  margin-top: 0.55rem;
}

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

.menu li {
  margin: 0;
  border-top: 1px solid var(--rule-light);
}

.menu li:first-child {
  border-top: none;
}

.menu a {
  display: block;
  padding: 0.75rem 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: #161616;
  border-bottom: none;
}

/* open state */

.top-nav.open .menu {
  display: block;
}

/* desktop */

@media (min-width: 768px) {
  .top-nav {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .top-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
  }

  .menu-toggle {
    display: none;
  }

  .menu {
    display: block;
    margin-top: 0;
    width: 100%;
  }

  .menu ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
  }

  .menu li {
    border-top: none;
  }

  .menu a {
    padding: 0.55rem 0;
    border-bottom: 2px solid transparent;
  }

  .menu a:hover {
    border-bottom-color: var(--rule);
  }
}


/* -----------------------------
   SLANT DIVIDERS / BANDS
   (.slant-divider-1, .slant-divider-2, .below-header, .above-footer)
----------------------------- */

.below-header {
  background: transparent;
}

.above-footer {
  background: transparent;
}

.slant-divider-1,
.slant-divider-2 {
  height: 8px;
  max-width: var(--max-width);
  margin: 0.9rem auto 0.6rem;
  background: repeating-linear-gradient(
    135deg,
    #ece9df,
    #ece9df 4px,
    #f7f6f3 4px,
    #f7f6f3 8px
  );
}

/* -----------------------------
   ARTICLE BODY STYLING
----------------------------- */

/* multi-column feel for long text on wide screens */

@media (min-width: 900px) {
  .container > h2 + p,
  .container > h2 + p + p,
  .container > p + h2 {
    column-count: 1;
  }

  main.container {
    column-gap: 0;
  }
}


/* first paragraph under main h1: slightly more open line-height */

main.container > h1 + p {
  line-height: 2;  /* same font-size via global rule, only breathing more */
}

/* drop cap for very first paragraph of page, where appropriate */

main.container > h1 + p::first-letter {
  float: left;
  font-size: 3.1rem;
  line-height: 0.92;
  padding-right: 0.3rem;
  padding-top: 0.18rem;
  font-weight: 700;
}

/* lists tighter, newspaper style */

main.container ul,
main.container ol {
  font-size: inherit; /* same as p (1rem) */
}

/* -----------------------------
   COMPONENTS
----------------------------- */

/* .card — like a boxed sidebar feature */

.card {
  border: 1px solid var(--rule-light);
  padding: 1.25rem 1.4rem;
  margin: 2.4rem 0;
  background: #ffffff;
}

.card h3 {
  margin-top: 0;
  font-size: 1.04rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.4rem;
}

/* .quote — pull quote */

.quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.9;
  border-left: 3px solid var(--rule);
  padding-left: 1.2rem;
  margin: 2rem 0;
}

/* .note — information box */

.note {
  border: 1px solid var(--rule-light);
  background: #fffdfa;
  padding: 0.95rem 1.15rem;
  margin: 1.7rem 0;
  font-size: 0.99rem;
}

/* accordion */

.accordion {
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  margin: 2.5rem 0;
}

.acc-item {
  border-top: 1px solid var(--rule-light);
}

.acc-item:first-child {
  border-top: none;
}

.acc-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.95rem 0.1rem;
  font-family: inherit;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.acc-button:focus {
  outline: 2px solid var(--rule);
  outline-offset: 2px;
}

.acc-panel {
  padding: 0 0 1.1rem;
  font-size: 0.98rem;
}

/* -----------------------------
   CONTACT PAGE
   (.contact-card, .contact-info)
----------------------------- */

.contact-card {
  border: 1px solid var(--rule-light);
  padding: 1.5rem 1.6rem;
  margin: 2rem 0 2.3rem;
  background: #ffffff;
}

.contact-card h1 {
  font-size: 1.7rem;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 0.9rem;
}

.contact-info {
  border-top: 1px solid var(--rule-light);
  padding-top: 1.3rem;
  margin-top: 1.3rem;
}

.contact-info h2 {
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.45rem;
  margin-bottom: 0.8rem;
}

.contact-info address {
  font-style: normal;
}

/* -----------------------------
   FOOTER
   (.bottom-footer, .site-footer, .below-footer)
----------------------------- */

.bottom-footer {
  border-top: 1px solid var(--rule-light);
  background: #f7f5f0;
  margin-top: 2.6rem;
}

.below-footer {
  background: transparent;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.3rem 1.75rem 2.4rem;
  font-size: 0.93rem;
  text-align: center;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* -----------------------------
   SMALL SCREEN TWEAKS
----------------------------- */

@media (max-width: 480px) {
  .container {
    padding: 1.6rem 1.25rem 2.7rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  main.container > h1 + p::first-letter {
    font-size: 2.5rem;
  }
}
/* ---------------------------------
   DEFINITION LISTS (dl, dt, dd)
   Newspaper-style layout
---------------------------------- */

dl {
  margin: 2.1rem 0;
  padding: 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

dt {
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.9rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--rule-light);
}

dt:first-of-type {
  border-top: none;
}

dd {
  margin: 0 0 1.2rem;
  padding: 0 0 0.95rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* optional subtle indented style */
dd:not(:last-of-type) {
  border-bottom: 1px dotted var(--rule-light);
}

/* wide screen: two-column definition lists (newspaper dictionary look) */
@media (min-width: 900px) {
  dl.two-column {
    column-count: 2;
    column-gap: 3.4rem;
  }
}
/* ---------------------------------
   BELOW-HEADER HERO SLIDER
---------------------------------- */

.hero-slider {
  width: 100%;
  max-width: var(--max-width);
  margin: 1.2rem auto 2rem;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.hero-slide {
  width: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1200 / 400;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.4rem 1.9rem;
  background: rgba(0,0,0,0.5);
  color: #ffffff;
}

.hero-caption h2 {
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
  border: none;
}

.hero-caption p {
  margin: 0;
  font-size: 1.04rem;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .hero-caption h2 {
    font-size: 1.3rem;
  }
  .hero-caption p {
    font-size: 0.92rem;
  }
}

.masthead-title {
  font-family: var(--base-font);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-left: 0.95rem;
  color: #161616;
}

/* ---------------------------------
   LAYOUT COLUMNS (MAIN + SIDEBAR)
---------------------------------- */

.layout-2col {
  display: block;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.layout-2col-main,
.layout-2col-side {
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .layout-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;   /* main wider, sidebar narrower */
    align-items: start;
  }
}

/* ---------------------------------
SIMPLE GRID OF EQUAL COLUMNS
---------------------------------- */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
