/* ==========================================================================
   Lake Country Library Heritage — tllsga.org
   Custom theme layer over Bootstrap 5.3. Brand colour, typography and a small
   number of component tweaks only; Bootstrap owns the grid and the navbar.
   ========================================================================== */

:root {
  --lc-ink:        #24281f;
  --lc-ink-soft:   #4c5344;
  --lc-muted:      #6b7160;
  --lc-forest:     #39492c;
  --lc-forest-dk:  #26301d;
  --lc-forest-lt:  #556842;
  --lc-amber:      #c9761f;
  --lc-amber-dk:   #8f5313;
  --lc-parchment:  #f6f2e6;
  --lc-surface:    #fffdf7;
  --lc-rule:       #ddd6c2;
  --lc-rule-soft:  #ebe5d4;

  --lc-display: "Young Serif", Georgia, "Times New Roman", serif;
  --lc-body:    "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;

  --lc-shadow: 0 1px 0 var(--lc-rule-soft), 0 12px 28px -22px rgba(36, 40, 31, .55);
}

/* --- base ---------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body.lc-body {
  background: var(--lc-parchment);
  color: var(--lc-ink);
  font-family: var(--lc-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--lc-display);
  color: var(--lc-forest-dk);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

a { color: var(--lc-amber-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--lc-forest); }

:focus-visible { outline: 3px solid var(--lc-amber); outline-offset: 2px; }

.lc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--lc-forest-dk); color: #fff; padding: .6rem 1rem;
}
.lc-skip:focus { left: 0; color: #fff; }

/* --- masthead ------------------------------------------------------------ */

.lc-masthead {
  background: var(--lc-surface);
  border-top: 5px solid var(--lc-amber);
  border-bottom: 1px solid var(--lc-rule);
}

.lc-masthead-inner { padding: 1.35rem 0 1.25rem; }

.lc-brand {
  display: inline-flex; align-items: center; gap: .9rem;
  text-decoration: none; color: inherit; min-width: 0;
}

.lc-brand-mark {
  flex: 0 0 auto;
  width: 38px; height: 44px; border-radius: 2px;
  background:
    linear-gradient(90deg, var(--lc-forest) 0 46%, transparent 46% 54%, var(--lc-amber) 54% 100%);
  box-shadow: inset 0 0 0 1px rgba(36, 40, 31, .18);
}

.lc-brand-text { display: flex; flex-direction: column; min-width: 0; }

.lc-brand-name {
  font-family: var(--lc-display);
  font-weight: 400;
  font-size: clamp(1.28rem, 3.4vw, 1.8rem);
  color: var(--lc-forest-dk);
  line-height: 1.1;
}

.lc-brand-sub {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-top: .3rem;
}

/* --- load-bearing non-affiliation notice --------------------------------- */
/* Must always be visible. No JS, no animation, no collapse. */

.lc-notice {
  background: #f0ead7;
  border-bottom: 1px solid var(--lc-rule);
  border-left: 0;
}

.lc-notice p {
  margin: 0;
  padding: .7rem 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--lc-ink-soft);
}

.lc-notice strong { color: var(--lc-forest-dk); }

/* --- navigation ---------------------------------------------------------- */
/* Wrapping is deliberate: a no-shrink single-line nav pushes links past the
   viewport and silently clips them. min-width:0 + wrap keeps every link
   reachable at every width. */

.lc-nav {
  background: var(--lc-forest-dk);
  padding: 0;
}

.lc-nav .container { min-width: 0; }

.lc-navlist {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
  gap: 0;
}

.lc-navlist .nav-item { min-width: 0; flex-shrink: 1; }

.lc-nav .nav-link {
  color: #e4e9dc;
  font-size: .8125rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .78rem .82rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.lc-nav .nav-link:hover,
.lc-nav .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .07); }

.lc-nav .nav-link.active {
  color: #fff;
  border-bottom-color: var(--lc-amber);
  background: rgba(255, 255, 255, .05);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 3px;
  color: #e4e9dc;
  margin: .7rem 0;
  padding: .45rem .8rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* Three stacked rules forming a hamburger. The button itself is a flex row, so
   the bars are wrapped in their own fixed-width column via nth-child offsets. */
.lc-toggler-bar {
  width: 18px; height: 2px; background: #e4e9dc; border-radius: 1px;
  flex: 0 0 18px;
}
.lc-toggler-bar:nth-child(1) { margin-right: -18px; transform: translateY(-6px); }
.lc-toggler-bar:nth-child(2) { margin-right: -18px; }
.lc-toggler-bar:nth-child(3) { transform: translateY(6px); }

.lc-toggler-label {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-left: .75rem;
}

@media (max-width: 991.98px) {
  .lc-navlist { flex-direction: column; padding-bottom: .6rem; }
  .lc-nav .nav-link { padding: .55rem 0; border-bottom: 0; }
  .lc-nav .nav-link.active { background: transparent; color: var(--lc-amber); }
}

/* --- page head ----------------------------------------------------------- */

.lc-pagehead {
  background: var(--lc-surface);
  border-bottom: 1px solid var(--lc-rule);
  padding: 2.75rem 0 0;
}

.lc-eyebrow {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lc-amber-dk);
  margin-bottom: .8rem;
  font-weight: 700;
}

.lc-pagehead h1 {
  font-size: clamp(1.95rem, 5vw, 3.05rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}

.lc-home .lc-pagehead h1 { max-width: 18ch; }

.lc-standfirst {
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
  line-height: 1.6;
  color: var(--lc-ink-soft);
  max-width: 62ch;
  margin-bottom: 2rem;
  font-weight: 400;
}

.lc-hero-media {
  margin: 0 0 -3.5rem;
  border: 1px solid var(--lc-rule);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--lc-shadow);
  background: var(--lc-parchment);
  animation: lc-rise .6s ease-out both;
}

.lc-hero-media img { display: block; width: 100%; }

@keyframes lc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-hero-media { animation: none; }
}

/* --- main / article ------------------------------------------------------ */

.lc-main { padding: 4.5rem 0 4rem; }

.lc-article { max-width: 68ch; }

.lc-article h2 {
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  margin: 2.6rem 0 .9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lc-rule);
}

.lc-article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.lc-article h3 { font-size: 1.2rem; margin: 1.9rem 0 .65rem; }

.lc-article p { margin-bottom: 1.15rem; }

.lc-article > p:first-of-type {
  font-size: 1.1rem;
  color: var(--lc-ink-soft);
}

.lc-article ul, .lc-article ol { margin: 0 0 1.35rem; padding-left: 1.25rem; }
.lc-article li { margin-bottom: .55rem; }
.lc-article li::marker { color: var(--lc-amber); }

.lc-article strong { color: var(--lc-forest-dk); font-weight: 700; }

.lc-article blockquote {
  border-left: 3px solid var(--lc-amber);
  padding-left: 1.1rem;
  margin: 1.6rem 0;
  color: var(--lc-ink-soft);
  font-style: italic;
}

/* --- figures ------------------------------------------------------------- */

.lc-figure {
  margin: 2.4rem 0;
  border: 1px solid var(--lc-rule);
  border-radius: 3px;
  background: var(--lc-surface);
  overflow: hidden;
  box-shadow: var(--lc-shadow);
}

.lc-figure img { display: block; width: 100%; }

.lc-figure figcaption {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--lc-muted);
  padding: .7rem .95rem .8rem;
  border-top: 1px solid var(--lc-rule-soft);
  background: var(--lc-surface);
}

/* --- sidebar ------------------------------------------------------------- */

.lc-aside { position: sticky; top: 1.5rem; }

.lc-aside-card {
  background: var(--lc-surface);
  border: 1px solid var(--lc-rule);
  border-top: 3px solid var(--lc-forest);
  border-radius: 3px;
  padding: 1.35rem 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}

.lc-aside-note { border-top-color: var(--lc-amber); }

.lc-aside-title {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-bottom: .9rem;
  font-family: var(--lc-body);
  font-weight: 700;
}

.lc-aside-list { list-style: none; margin: 0; padding: 0; }

.lc-aside-list li { border-top: 1px solid var(--lc-rule-soft); }
.lc-aside-list li:first-child { border-top: 0; }

.lc-aside-list a {
  display: block;
  padding: .5rem 0;
  font-size: .95rem;
  color: var(--lc-forest-dk);
  text-decoration: none;
}
.lc-aside-list a:hover, .lc-aside-list a:focus {
  color: var(--lc-amber-dk);
  text-decoration: underline;
}

.lc-aside-note p { font-size: .85rem; line-height: 1.6; color: var(--lc-ink-soft); margin: 0; }

@media (max-width: 991.98px) {
  .lc-aside { position: static; }
  .lc-main { padding-top: 4rem; }
}

/* --- footer -------------------------------------------------------------- */

.lc-footer {
  background: var(--lc-forest-dk);
  color: #cfd6c5;
  padding: 3rem 0 2rem;
  border-top: 5px solid var(--lc-amber);
}

.lc-footer-name {
  font-family: var(--lc-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: .7rem;
}

.lc-footer-note { font-size: .86rem; line-height: 1.65; color: #b9c2ad; max-width: 42ch; }

.lc-footer-head {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lc-amber);
  margin-bottom: .8rem;
  font-weight: 700;
}

.lc-footer-list { list-style: none; margin: 0; padding: 0; }
.lc-footer-list li { margin-bottom: .4rem; }
.lc-footer-list a { color: #cfd6c5; text-decoration: none; font-size: .92rem; }
.lc-footer-list a:hover, .lc-footer-list a:focus { color: #fff; text-decoration: underline; }

.lc-copy {
  margin: 2.4rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .8rem;
  color: #9fa894;
}

/* --- safeguard ----------------------------------------------------------- */
/* Content is never hidden waiting on JavaScript. Any reveal markup that ever
   lands here is neutralised. */
[data-aos] { opacity: 1 !important; transform: none !important; }
