/* ===== Design tokens with aliases for compatibility ===== */
:root {
      --text-heading:  #a54a0a;
      --ink:           #3a322c;
      --surface-alt:   #e9dfd2;
      --brand:         #dcae08;
      --teal:          #059288;
      --text-inverse:  #fdfaf4;
      --bg:            #8f7913;
      --surface:       #b6ac9b;
      --accent:        #B47c0c;
      --accent-strong: #a54a0a;
      --badge:         #b6ac9b;
      --band-dark:     #024743;
      --focus-ring:    #059288;
      --radius:        14px;
      --font-head:     'IM Fell DW Pica', Georgia, 'Times New Roman', serif;
      --font-body:     'Segoe UI', system-ui, sans-serif;

      /* Aliases for Get LIT compatibility (maps old names to current) */
      --heading:       var(--text-heading);
      --paper:         var(--surface-alt);
      --panel:         var(--surface);
      --inverse:       var(--text-inverse);
      --band:          var(--bg);

}
/* ===== Self-hosted fonts ===== */
@font-face {
  font-family: 'IM Fell DW Pica';
  src: url('fonts/im-fell-dw-pica-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IM Fell DW Pica';
  src: url('fonts/im-fell-dw-pica-v16-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Quin';
  src: url('fonts/quintessential-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--teal);
  color: var(--text-inverse);
  text-align: center;
  padding: .55rem 1rem;
  font-size: .85rem;
  letter-spacing: .04em;
}

.topbar a {
  color: inherit;
  text-decoration: none;
  position: relative;
}
.topbar a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--text-inverse);
  transition: width .25s ease;
}
.topbar a:hover::after {
  width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.5rem;
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;                        /* push right edge to middle of parent */
  transform: translateX(-50%);      /* slide back by half dropdown's width */
  min-width: 190px;
  background: var(--surface);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  padding: .4rem;
  display: none;
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: .5rem .8rem;
  text-align: center;              /* ← your text-centering, restored */
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  border-radius: 6px;
}

.dropdown a:hover {
  background: var(--surface-alt);
  color: var(--accent-strong);
}

/* ===== Logo (text + image swap on scroll) ===== */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-heading);
  text-decoration: none;
}
.logo-text span { color: var(--surface-alt); }

.logo-img-only {
  display: none;                 /* hidden until the page is scrolled */
}
.logo-img-only img {
  width: 50px;
  height: auto;
  display: block;                /* kills the baseline gap under images */
}

/* When scrolled: swap which one exists in the layout */
.site-header.scrolled .logo-text { display: none; }
.site-header.scrolled .logo-img-only { display: block; }

/* The special row inside Connect */
.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .6rem 0;
  background: transparent;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: .2rem;
}

.icon-link {
  background: none;       /* no more cream circle */
  border-radius: 0;       /* no shape constraint */
  display: grid;           /* keep — harmless container for the img */
  place-items: center;
  line-height: 0;          /* kills ghost space under images (baseline gap) */
}

.icon-link img {
  width: 38px;             /* size the LOGO itself, not its container */
  height: auto;            /* keeps each logo's natural proportions */
  display: block;
}

.icon-link:hover {
  background: var(--accent);
  color: var(--text-inverse);
  transform: scale(1.1);
}

.main-nav {
  display: flex;
  gap:2.5rem;
}

.nav-item { 
    position: relative;

}

.nav-btn {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--surface-alt);
  padding: .0rem .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.caret {
  font-size: .7em;
  opacity: .7;
  margin-left: .15rem;
}

.nav-link:link {
   font-weight: 600;
   text-decoration: none;
  color:var(--text-inverse);
 }      
.nav-link:visited { 
   font-weight: 600; 
text-decoration: none;
  color:var(--text-inverse);
}    
.nav-link:hover { 
   font-weight: 600;
   text-decoration: underline;
  color: var(--brand)
}      
.nav-link:active {
   font-weight: 600; 
  text-decoration: none;
  color:var(--text-inverse);
}


.social { padding: .4rem .55rem; font-size: 1.05rem; }

.btn-subscribe {
  background: var(--brand);
  color: var(--text-inverse);
  padding: .55rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  flex-grow: 0;
  white-space: nowrap;
}
.btn-subscribe:hover { transform: scale(1.1); }
/* ===== Responsive ===== */
.menu-toggle {
  display: none;
  background: none;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }


  .menu-toggle {
    display: block;
    order: 2;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-heading);
    padding: .5rem;
  }

  /* Slightly smaller logo image on phones */
  .logo-img-only img { width: 40px; }

  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero {
    background-image: none;
    background: linear-gradient(
      135deg,
      var(--surface-alt) 0%,
      var(--brand) 50%,
      var(--teal) 100%
    );
    background-attachment: scroll;
    min-height: 70vh;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.1);
  }

  .dropdown {
    position: static;
    box-shadow: none;
    background: var(--badge);
    padding: 0 .8rem;
    transform: none; 
  }

  .nav-btn {
    width: 100%;
    text-align: left;
    padding: .8rem 0;
  }

  .btn-subscribe {
    width: auto;
    margin-top: .6rem;
    text-align: center;
  }
}