/* =========================================================================
   Albion Ledger — theme.css
   General site components: layout, header, footer, typography, buttons,
   forms, posts, widgets, pagination. WooCommerce-specific styling lives in
   woocommerce.css. Design tokens come from style.css (:root --al-*).
   ========================================================================= */

/* ---------- LINKS & TYPOGRAPHY ---------- */
a{
  color: var(--al-gold);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover,
a:focus{ color: var(--al-gold-bright); }

h1, h2, h3, h4, h5, h6{
  font-family: var(--al-font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--al-bone);
  margin: 0 0 .5em;
  letter-spacing: 0.02em;
}
h1{ font-size: clamp(28px, 4vw, 42px); }
h2{ font-size: clamp(22px, 3vw, 30px); }
h3{ font-size: 22px; }
h4{ font-size: 18px; }

p{ margin: 0 0 1.2em; }

blockquote{
  margin: 1.5em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--al-gold);
  color: var(--al-bone-dim);
  font-style: italic;
}

code, pre, kbd{
  font-family: var(--al-font-mono);
  font-size: 0.9em;
}
code{
  background: var(--al-bg-deep);
  border: 1px solid var(--al-line-faint);
  border-radius: var(--al-radius-sm);
  padding: 2px 6px;
}
pre{
  background: var(--al-bg-deep);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.6;
}

hr{
  border: 0;
  height: 1px;
  background: var(--al-line);
  margin: 2.5em 0;
}

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

::selection{ background: rgba(212,169,79,0.25); color: var(--al-bone); }

/* ---------- LAYOUT ---------- */
.al-wrap{
  max-width: var(--al-wrap);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.al-wrap--narrow{ max-width: var(--al-wrap-narrow); }

.al-site{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.al-content{
  flex: 1 0 auto;
  padding: 40px 0 80px;
}

.al-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.al-layout.has-sidebar{
  grid-template-columns: minmax(0,1fr) 300px;
}
@media (max-width: 900px){
  .al-layout.has-sidebar{ grid-template-columns: 1fr; }
}

/* ---------- SKIP LINK ---------- */
.skip-link{ position: absolute; left: -9999px; }

/* ---------- SITE HEADER / MASTHEAD ---------- */
.al-header{
  border-bottom: 1px solid var(--al-line);
  background: linear-gradient(180deg, rgba(20,23,28,0.6), transparent);
  position: relative;
  z-index: 50;
}
.al-header__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}
.al-brand{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.al-brand__eyebrow{
  font-family: var(--al-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--al-bone-faint);
}
.al-brand__title{
  font-family: var(--al-font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.05;
}
.al-brand__title a{
  color: var(--al-bone);
  text-shadow: 0 2px 24px rgba(212,169,79,0.15);
}
.al-brand__title a:hover{ color: var(--al-gold-bright); }
.al-brand__tagline{
  font-size: 13px;
  font-style: italic;
  color: var(--al-bone-dim);
}
.al-brand img.custom-logo{
  display: block;
  max-height: 64px;
  width: auto;
}

.al-header__actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* header cart link */
.al-cart-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--al-font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--al-bone-dim);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius-sm);
  padding: 9px 14px;
  white-space: nowrap;
}
.al-cart-link:hover{ color: var(--al-gold-bright); border-color: var(--al-gold); }
.al-cart-count{
  font-family: var(--al-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #1a1505;
  background: var(--al-gold);
  border-radius: 10px;
  min-width: 20px;
  padding: 1px 6px;
  text-align: center;
}

/* ---------- PRIMARY NAV ---------- */
.al-nav{ display: flex; }
.al-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.al-nav li{ position: relative; }
.al-nav a{
  display: block;
  font-family: var(--al-font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--al-bone-dim);
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--al-radius-sm);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.al-nav a:hover,
.al-nav .current-menu-item > a,
.al-nav .current_page_item > a{
  color: var(--al-gold-bright);
  border-color: var(--al-line);
  background: rgba(212,169,79,0.06);
}
/* sub-menus */
.al-nav ul ul{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  flex-direction: column;
  align-items: stretch;
  min-width: 200px;
  background: var(--al-surface-raised);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow-pop);
  padding: 6px;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
/* invisible bridge across the 8px gap so the dropdown stays open
   while the cursor travels from the parent item to the sub-menu */
.al-nav ul ul::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.al-nav li:hover > ul,
.al-nav li:focus-within > ul{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.al-nav ul ul a{ text-transform: none; letter-spacing: 0.02em; }

/* dropdown affordance: caret on parent items */
.al-nav .menu-item-has-children > a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.al-nav .menu-item-has-children > a::after{
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
  transition: transform .15s ease, opacity .15s ease;
}
.al-nav .menu-item-has-children:hover > a::after,
.al-nav .menu-item-has-children:focus-within > a::after{
  opacity: 1;
  transform: translateY(0) rotate(225deg);
}

/* mobile toggle */
.al-nav-toggle{
  display: none;
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  color: var(--al-bone);
  font-family: var(--al-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--al-radius-sm);
  cursor: pointer;
}

@media (max-width: 820px){
  .al-nav-toggle{ display: inline-block; }
  .al-nav{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--al-surface);
    border-top: 1px solid var(--al-line);
    border-bottom: 1px solid var(--al-line);
    box-shadow: var(--al-shadow-pop);
    display: none;
  }
  .al-nav.is-open{ display: block; }
  .al-nav ul{ flex-direction: column; align-items: stretch; gap: 0; padding: 8px; }
  .al-nav ul ul{
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding-left: 14px;
    background: transparent;
  }
}

/* ---------- BUTTONS ---------- */
.al-btn,
button,
input[type="submit"],
input[type="button"],
.button{
  display: inline-block;
  font-family: var(--al-font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 14px;
  text-transform: uppercase;
  background: var(--al-gold);
  color: #1a1505;
  border: 1px solid var(--al-gold);
  padding: 12px 26px;
  border-radius: var(--al-radius-sm);
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
}
.al-btn:hover,
button:hover,
input[type="submit"]:hover,
.button:hover{ background: var(--al-gold-bright); border-color: var(--al-gold-bright); color: #1a1505; }
.al-btn:active,
button:active,
input[type="submit"]:active{ transform: scale(0.98); }
.al-btn:disabled,
button:disabled{ background: var(--al-line); border-color: var(--al-line); color: var(--al-bone-faint); cursor: default; }

/* secondary / ghost button */
.al-btn--ghost,
.button.alt--ghost{
  background: transparent;
  color: var(--al-bone-dim);
  border-color: var(--al-line);
}
.al-btn--ghost:hover{
  color: var(--al-gold-bright);
  border-color: var(--al-gold);
  background: rgba(212,169,79,0.06);
}

/* ---------- FORMS ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select{
  width: 100%;
  background: var(--al-bg-deep);
  border: 1px solid var(--al-line);
  color: var(--al-bone);
  font-family: var(--al-font-mono);
  font-size: 15px;
  padding: 13px 15px;
  border-radius: var(--al-radius-sm);
  transition: border-color .15s ease;
}
textarea{ line-height: 1.6; resize: vertical; }
input::placeholder,
textarea::placeholder{ color: var(--al-bone-faint); }
input:focus,
textarea:focus,
select:focus{ border-color: var(--al-gold); }
label{
  display: inline-block;
  font-family: var(--al-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--al-bone-dim);
  margin-bottom: 6px;
}

/* search form */
.al-searchform{ display: flex; gap: 10px; }
.al-searchform .search-field{ flex: 1; }

/* ---------- CARDS / SURFACES ---------- */
.al-card{
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow-card);
  padding: 26px;
}

/* decorative gold rule used under headings / mastheads */
.al-rule{
  width: 140px;
  height: 2px;
  margin: 16px 0 0;
  background: linear-gradient(90deg, var(--al-gold), transparent);
  opacity: 0.6;
}
.al-rule--center{ margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--al-gold), transparent); }

/* eyebrow / kicker label */
.al-eyebrow{
  font-family: var(--al-font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--al-bone-faint);
}

/* "wax stamp" badge — rotated, used for sale/featured flags */
.al-stamp{
  display: inline-block;
  font-family: var(--al-font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-ember-bright);
  border: 1.5px solid var(--al-ember);
  border-radius: var(--al-radius-sm);
  padding: 3px 8px;
  transform: rotate(-4deg);
  white-space: nowrap;
}

/* small monospace meta line */
.al-meta{
  font-family: var(--al-font-mono);
  font-size: 12px;
  color: var(--al-bone-faint);
  letter-spacing: 0.02em;
}

/* ---------- PAGE / POST HEADER ---------- */
.al-page-header{ margin-bottom: 34px; }
.al-page-header__title{ margin: 6px 0 0; }

/* ---------- POSTS ---------- */
.al-post{
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  padding: 30px 32px;
  margin-bottom: 26px;
}
.al-post__title{ margin: 0 0 8px; font-size: 26px; }
.al-post__title a{ color: var(--al-bone); }
.al-post__title a:hover{ color: var(--al-gold-bright); }
.al-post__meta{
  font-family: var(--al-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--al-bone-faint);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.al-post__thumb{
  display: block;
  margin: 0 0 20px;
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  overflow: hidden;
}
.al-post__thumb img{ display: block; width: 100%; }
.al-post__more{ margin-top: 8px; }

.al-entry-content > *:last-child{ margin-bottom: 0; }
.al-entry-content ul,
.al-entry-content ol{ padding-left: 1.4em; margin: 0 0 1.2em; }
.al-entry-content li{ margin-bottom: .4em; }

/* ---------- PAGINATION ---------- */
.al-pagination{ margin-top: 36px; }
.al-pagination .nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.al-pagination .page-numbers{
  font-family: var(--al-font-mono);
  font-size: 13px;
  color: var(--al-bone-dim);
  border: 1px solid var(--al-line);
  background: var(--al-surface);
  padding: 9px 14px;
  border-radius: var(--al-radius-sm);
}
.al-pagination .page-numbers:hover{ color: var(--al-gold-bright); border-color: var(--al-gold); }
.al-pagination .page-numbers.current{
  color: var(--al-gold-bright);
  border-color: var(--al-gold);
  background: rgba(212,169,79,0.1);
}

/* post navigation (single) */
.al-post-nav{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  font-family: var(--al-font-mono);
  font-size: 13px;
}
.al-post-nav a{ color: var(--al-bone-dim); }
.al-post-nav a:hover{ color: var(--al-gold-bright); }

/* ---------- SIDEBAR / WIDGETS ---------- */
.al-sidebar .widget{
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  padding: 22px;
  margin-bottom: 22px;
}
.al-sidebar .widget-title,
.al-sidebar .widgettitle{
  font-family: var(--al-font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--al-bone);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--al-line-faint);
}
.al-sidebar ul{ list-style: none; margin: 0; padding: 0; }
.al-sidebar li{
  padding: 7px 0;
  border-bottom: 1px solid var(--al-line-faint);
  font-size: 15px;
}
.al-sidebar li:last-child{ border-bottom: 0; }
.al-sidebar a{ color: var(--al-bone-dim); }
.al-sidebar a:hover{ color: var(--al-gold-bright); }

/* ---------- COMMENTS ---------- */
.al-comments{ margin-top: 48px; }
.al-comments .comment-list{ list-style: none; margin: 0; padding: 0; }
.al-comments .comment-body{
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.al-comments .comment-author{
  font-family: var(--al-font-display);
  font-size: 15px;
  color: var(--al-bone);
}
.al-comments .comment-metadata{
  font-family: var(--al-font-mono);
  font-size: 11px;
  color: var(--al-bone-faint);
}
.al-comments .children{ list-style: none; margin-left: 26px; }

/* ---------- STATUS / NOTICES ---------- */
.al-status{
  text-align: center;
  padding: 50px 20px;
  color: var(--al-bone-dim);
  font-family: var(--al-font-mono);
  font-size: 14px;
}
.al-status--error{ color: var(--al-ember-bright); }

/* ---------- FOOTER ---------- */
.al-footer{
  flex-shrink: 0;
  border-top: 1px solid var(--al-line);
  background: linear-gradient(0deg, rgba(14,16,20,0.6), transparent);
  padding: 44px 0 36px;
}
.al-footer__cols{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.al-footer__cols .widget-title,
.al-footer__cols .widgettitle{
  font-family: var(--al-font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--al-bone);
  margin: 0 0 12px;
}
.al-footer__cols ul{ list-style: none; margin: 0; padding: 0; }
.al-footer__cols li{ padding: 5px 0; }
.al-footer__cols a{ color: var(--al-bone-dim); }
.al-footer__cols a:hover{ color: var(--al-gold-bright); }

.al-colophon{
  text-align: center;
  font-family: var(--al-font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--al-bone-faint);
  padding-top: 24px;
  border-top: 1px solid var(--al-line-faint);
}
.al-colophon a{ color: var(--al-bone-dim); text-decoration: underline; text-decoration-color: var(--al-line); }
.al-colophon a:hover{ color: var(--al-gold-bright); }

/* ---------- FRONT PAGE ---------- */
.al-front{ padding-top: 0; }

.al-hero{
  position: relative;
  text-align: center;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--al-line);
  background:
    radial-gradient(ellipse 900px 480px at 50% -20%, rgba(212,169,79,0.10), transparent 65%);
}
.al-hero__title{
  font-family: var(--al-font-display);
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.04em;
  margin: 8px 0 4px;
  color: var(--al-bone);
  text-shadow: 0 2px 30px rgba(212,169,79,0.18);
}
.al-hero__sub{
  font-size: clamp(16px, 2.4vw, 20px);
  font-style: italic;
  color: var(--al-bone-dim);
  margin: 0 auto;
  max-width: 52ch;
}
.al-hero__search{
  margin-top: 30px;
  text-align: left;
}
.al-hero__actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
/* two-line button: main label + small italic hint */
.al-btn--stack{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}
.al-btn--stack .al-btn__hint{
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}

.al-front__intro{ margin-top: 44px; }

.al-front__section{ margin-top: 60px; }
.al-front__section:first-of-type{ margin-top: 56px; }

/* section heading row */
.al-section-head{
  display: flex;
  align-items: baseline;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--al-line);
}
.al-section-head__title{ margin: 0; }
.al-section-head .al-eyebrow{ flex-basis: 100%; }
.al-section-head__link{ margin-left: auto; }
.al-section-head__link:hover{ color: var(--al-gold-bright); }

/* category grid */
.al-cat-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.al-cat-card{
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.al-cat-card:hover{ border-color: var(--al-gold); transform: translateY(-2px); }
.al-cat-card a{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  color: inherit;
  height: 100%;
}
.al-cat-card__img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--al-radius-sm);
  border: 1px solid var(--al-line-faint);
  margin: -2px 0 10px;
  background: var(--al-bg-deep);
}
.al-cat-card__name{
  font-family: var(--al-font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--al-bone);
}
.al-cat-card:hover .al-cat-card__name{ color: var(--al-gold-bright); }

/* journal grid */
.al-journal-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.al-journal-card{
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.al-journal-card:hover{ border-color: var(--al-gold); transform: translateY(-2px); }
.al-journal-card__thumb{ display: block; }
.al-journal-card__thumb img{ display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.al-journal-card__body{ padding: 20px 22px; }
.al-journal-card__title{ font-size: 20px; margin: 6px 0 8px; }
.al-journal-card__title a{ color: var(--al-bone); }
.al-journal-card__title a:hover{ color: var(--al-gold-bright); }
.al-journal-card__excerpt{ color: var(--al-bone-dim); font-size: 15px; margin: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px){
  .al-content{ padding: 28px 0 56px; }
  .al-post{ padding: 22px 20px; }
  .al-searchform{ flex-direction: column; }
  .al-hero{ padding: 56px 0 44px; }
  .al-front__section{ margin-top: 44px; }
  .al-hero__actions .al-btn{ width: 100%; }
}

/* ---------- SUPPORT / DONATION BOX ---------- */
.al-support{
  display: flex;
  align-items: center;
  gap: 24px;
  border-color: var(--al-line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(212,169,79,0.08), transparent 60%),
    var(--al-surface);
}
.al-support__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--al-radius);
  border: 1px solid var(--al-line);
  color: var(--al-gold);
  background: rgba(212,169,79,0.06);
}
.al-support__body{ flex: 1 1 auto; min-width: 0; }
.al-support__title{
  font-family: var(--al-font-display);
  font-size: 24px;
  margin: 4px 0 8px;
  color: var(--al-bone);
}
.al-support__text{
  color: var(--al-bone-dim);
  font-size: 15px;
  margin: 0;
  max-width: 52ch;
}
.al-support__btn{ flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 640px){
  .al-support{ flex-direction: column; text-align: center; align-items: center; }
  .al-support__text{ margin-inline: auto; }
}

/* ---------- HEADER SERVER PICKER ---------- */
.al-server{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.al-server__label{
  font-family: var(--al-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--al-bone-faint);
}
.al-server-select{
  font-family: var(--al-font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--al-bone);
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius-sm);
  padding: 8px 30px 8px 12px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23d4a94f' stroke-width='1.5' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: color .15s ease, border-color .15s ease;
}
.al-server-select:hover{ border-color: var(--al-gold); color: var(--al-gold-bright); }
.al-server-select:focus-visible{ outline: 2px solid var(--al-gold); outline-offset: 1px; }
.al-server-select option{ color: #e8e3d6; background-color: #1d2128; }

@media (max-width: 820px){
  .al-server__label{ display: none; }
}

/* ---------- HEADER ACCOUNT LINK ---------- */
.al-account{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--al-bone-dim);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius-sm);
  padding: 9px;
  transition: color .15s ease, border-color .15s ease;
}
.al-account:hover{ color: var(--al-gold-bright); border-color: var(--al-gold); }
.al-account__icon{ display: block; flex: 0 0 auto; }

/* ---------- DISCORD CALL-TO-ACTION (footer) ---------- */
.al-discord-cta{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 28px;
}
.al-discord-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--al-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #5865f2;
  border: 1px solid #5865f2;
  border-radius: var(--al-radius-sm);
  padding: 11px 20px;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.al-discord-btn:hover{
  color: #fff;
  background: #4752c4;
  border-color: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(88,101,242,0.35);
}
.al-discord-btn__icon{ display: block; flex: 0 0 auto; }

.al-coffee-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--al-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1208;
  background: #ffdd00;
  border: 1px solid #ffdd00;
  border-radius: var(--al-radius-sm);
  padding: 11px 20px;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.al-coffee-btn:hover{
  color: #1a1208;
  background: #ffe53d;
  border-color: #ffe53d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,221,0,0.35);
}
.al-coffee-btn__icon{ display: block; flex: 0 0 auto; }

/* ---------- HOMEPAGE ABOUT BLURB ---------- */
.al-about__text{
  margin: 8px 0 0;
  color: var(--al-bone-dim);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- TOOL "WHAT IT DOES" HELP ---------- */
.al-tool-help{
  margin: 0 0 22px;
  padding: 11px 14px;
  background: rgba(212,169,79,0.05);
  border: 1px solid var(--al-line-faint);
  border-left: 2px solid var(--al-gold);
  border-radius: 4px;
  font-family: 'Spectral', Georgia, serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--al-bone);
}
.al-tool-help b{ color: var(--al-gold-bright); font-weight: 700; }

/* ---------- HOMEPAGE TOOLS GRID ---------- */
.al-tools{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.al-tool-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--al-surface);
  border: 1px solid var(--al-line);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow-card);
  padding: 22px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.al-tool-card:hover{
  border-color: var(--al-gold);
  transform: translateY(-2px);
  box-shadow: var(--al-shadow-pop);
}
.al-tool-card__title{
  font-family: var(--al-font-display);
  font-size: 20px;
  color: var(--al-bone);
  margin: 0;
}
.al-tool-card:hover .al-tool-card__title{ color: var(--al-gold-bright); }
.al-tool-card__desc{
  color: var(--al-bone-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1 0 auto;
}
.al-tool-card__cta{ align-self: flex-start; margin-top: 6px; }

/* smooth scroll for in-page anchors (e.g. hero "Donate" → support) */
html{ scroll-behavior: smooth; }
#support{ scroll-margin-top: 24px; }

/* About card sitting inside the hero (where the CTAs used to be) */
.al-hero__about{ margin-top: 26px; text-align: left; }
