/* Amsterdam Book Club — shared header and footer.
   Loaded by every page. Edit this file for site-wide header/footer styling.
   Page content keeps its own CSS. The selectors below only affect the
   header and footer inserted by /includes/header.html and footer.html. */

body > header,
body > footer {
  --site-max: 1100px;
  --site-ink: #1f1f1f;
  --site-muted: #5e5a56;
  --site-line: rgba(31, 31, 31, .10);
  --site-accent: #2A6B84;
  font-family: inherit;
  font-weight: normal;
  line-height: normal;
  text-align: start;
}

body > header,
body > header *,
body > footer,
body > footer * {
  box-sizing: border-box;
}

body > header .container,
body > footer .container {
  width: min(var(--site-max), calc(100% - 40px));
  margin: 0 auto;
}

body > header a,
body > footer a {
  color: inherit;
  text-decoration: none;
}

body > header a:hover,
body > footer a:hover {
  color: var(--site-accent);
  text-decoration: underline;
}

body > header a:focus-visible,
body > footer a:focus-visible {
  outline: 3px solid var(--site-accent);
  outline-offset: 4px;
}

/* Header and navigation */
body > header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(246, 241, 234, .78);
  border-bottom: 1px solid var(--site-line);
  color: #000;
  font-size: 16px;
}

body > header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 14px;
}

body > header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

body > header .logo {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity .2s ease;
}

body > header .brandText {
  display: grid;
  gap: 2px;
}

body > header .brandText .name {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: .2px;
  font-size: 18px;
  line-height: 1.1;
}

body > header .brandText .tag {
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.2;
}

body > header .navlinks {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

body > header .navlinks a {
  font-size: 14px;
  color: var(--site-muted);
  padding: 8px 10px;
  border-radius: 999px;
}

body > header .navlinks a:hover {
  background: rgba(31, 31, 31, .04);
  text-decoration: none;
  color: var(--site-ink);
}

/* Footer, copyright, and social links */
body > footer {
  padding: 30px 0 48px;
  border-top: 1px solid var(--site-line);
  color: rgba(31, 31, 31, .60);
  font-size: 13px;
}

body > footer .footerRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

body > footer .footerBrand {
  display: flex;
  align-items: center;
  gap: 10px;
}

body > footer .footerLogo {
  height: 26px;
  width: auto;
  opacity: .85;
}

body > footer .footerSocials {
  display: flex;
  align-items: center;
  gap: 14px;
}

body > footer .footerSocials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  transition: transform .2s ease, opacity .2s ease;
}

body > footer .footerSocials a:hover {
  transform: translateY(-1px);
  opacity: .78;
  text-decoration: none;
}

body > footer .footerSocials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* Phones and smaller screens */
@media (max-width: 900px) {
  body > header .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  body > header .brand {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  body > header .logo {
    height: 34px;
  }

  body > header .brandText .tag {
    font-size: 12px;
  }

  body > header .navlinks {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
  }

  body > header .navlinks a {
    padding: 8px 12px;
    border: 1px solid var(--site-line);
    background: rgba(255, 255, 255, .55);
  }

  body > footer .footerRow {
    justify-content: flex-start;
    text-align: left;
  }

  body > footer .footerSocials {
    justify-content: flex-start;
  }
}

/* Footer page links, beside the social icons. */
body > footer .footerSocials {
  flex-wrap: wrap;
}
body > footer .footerSocials .footerTextLink {
  width: auto;
  height: auto;
  min-height: 34px;
  white-space: nowrap;
}

/* 2026 homepage refresh.
   The legacy rules above remain for older includes. New styles deliberately
   target only the shared header/footer, leaving other pages' content intact. */
body > header.abc-header,
body > footer.abc-footer {
  --site-max: 1200px;
  font-family: Times, "Times New Roman", serif;
  line-height: 1.6;
}

body > header.abc-header .abc-shell,
body > footer.abc-footer .abc-shell {
  width: min(var(--site-max), calc(100% - 80px));
  margin-inline: auto;
}

body > header.abc-header {
  background: #F6F1EA;
  color: #1f1f1f;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(42, 107, 132, .14);
}

body > header.abc-header .abc-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 94px;
  padding-block: 15px;
}

body > header.abc-header .abc-brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-shrink: 1;
  gap: 13px;
  color: #2A6B84;
  text-decoration: none;
}

body > header.abc-header .abc-brand__logo {
  display: block;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

body > header.abc-header .abc-brand__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body > header.abc-header .abc-brand__name {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
}

body > header.abc-header .abc-brand__tagline {
  color: #5e5a56;
  font-size: 11px;
  letter-spacing: .01em;
  line-height: 1.45;
}

body > header.abc-header .abc-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 28px;
}

body > header.abc-header .abc-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #344c53;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

body > header.abc-header .abc-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: #F08135;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

body > header.abc-header .abc-nav a:hover::after {
  transform: scaleX(1);
}

body > header.abc-header a:focus-visible {
  outline: 3px solid #2A6B84;
  outline-offset: 5px;
  border-radius: 3px;
}

body > footer.abc-footer {
  --site-accent: #F08135;
  padding: 72px 0 24px;
  background: #20566B;
  border-top: 0;
  color: #F6F1EA;
  font-size: 14px;
}

body > footer.abc-footer .abc-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, .65fr) minmax(0, .65fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
  padding-bottom: 58px;
}

body > footer.abc-footer .abc-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #F6F1EA;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
}

body > footer.abc-footer .abc-footer__logo-wrap {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  padding: 5px;
  border-radius: 50%;
  background: #F6F1EA;
}

body > footer.abc-footer .abc-footer__logo-wrap img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

body > footer.abc-footer .abc-newsletter {
  margin: 0;
  padding: 0;
}

body > footer.abc-footer .abc-newsletter > h2 {
  margin: 0 0 16px;
  color: #F6F1EA;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.1vw, 42px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.02em;
}

body > footer.abc-footer .abc-newsletter__intro {
  max-width: 43ch;
  margin: 0 0 24px;
  color: rgba(246, 241, 234, .85);
  font-size: 16px;
  line-height: 1.7;
}

body > footer.abc-footer .abc-footer__nav,
body > footer.abc-footer .abc-footer__socials {
  padding-top: 10px;
}

body > footer.abc-footer .abc-footer__nav h2,
body > footer.abc-footer .abc-footer__socials h2 {
  margin: 0 0 21px;
  color: #F6F1EA;
  font-family: Times, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body > footer.abc-footer .abc-footer__nav ul,
body > footer.abc-footer .abc-footer__socials ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body > footer.abc-footer .abc-footer__nav li,
body > footer.abc-footer .abc-footer__socials li {
  margin: 0;
  padding: 0;
}

body > footer.abc-footer .abc-footer__nav a,
body > footer.abc-footer .abc-footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: rgba(246, 241, 234, .88);
  font-size: 14px;
  line-height: 1.5;
  text-underline-offset: 5px;
}

body > footer.abc-footer .abc-footer__socials a > span[aria-hidden] {
  color: #F08135;
  font-size: 16px;
}

body > footer.abc-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body > footer.abc-footer a:focus-visible,
body > footer.abc-footer input:focus-visible,
body > footer.abc-footer button:focus-visible {
  outline: 3px solid #F08135 !important;
  outline-offset: 5px;
}

body > footer.abc-footer .abc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 234, .25);
  color: rgba(246, 241, 234, .78);
  font-size: 11px;
  line-height: 1.6;
}

body > footer.abc-footer .abc-footer__bottom p {
  margin: 0;
  color: inherit;
}

body > footer.abc-footer .abc-footer__bottom > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: auto;
}

body > footer.abc-footer .abc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Style the existing EmailOctopus form without changing submission, required
   fields, consent, honeypot, feedback messages or provider attribution. */
body > footer.abc-footer .abc-newsletter__form {
  max-width: 460px;
}

body > footer.abc-footer .abc-newsletter__form .emailoctopus-form-wrapper,
body > footer.abc-footer .abc-newsletter__form .emailoctopus-form,
body > footer.abc-footer .abc-newsletter__form .main-form {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #F6F1EA !important;
  border: 0 !important;
  font-family: Times, "Times New Roman", serif !important;
}

/* This provider intro duplicates the footer heading and introduction above.
   The adjacent form container (fields, feedback and branding) remains intact. */
body > footer.abc-footer .abc-newsletter__form .inline-container[data-form="17ba8fbc-b539-11f1-a06f-dd344b6246ea"] > div > div[eo-block-container]:has([eo-block="title"]):has([eo-block="text"]) {
  display: none !important;
}

body > footer.abc-footer .abc-newsletter__form label,
body > footer.abc-footer .abc-newsletter__form p {
  color: #F6F1EA !important;
  font-family: Times, "Times New Roman", serif !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

body > footer.abc-footer .abc-newsletter__form input[type="text"],
body > footer.abc-footer .abc-newsletter__form input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 46px;
  padding: 12px 14px !important;
  border: 1px solid rgba(246, 241, 234, .5) !important;
  border-radius: 3px !important;
  background: #F6F1EA !important;
  color: #1f1f1f !important;
  font-family: Times, "Times New Roman", serif !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

body > footer.abc-footer .abc-newsletter__form input[type="submit"],
body > footer.abc-footer .abc-newsletter__form button[type="submit"] {
  min-height: 46px;
  padding: 12px 24px !important;
  border: 1px solid #F08135 !important;
  border-radius: 3px !important;
  background: #F08135 !important;
  color: #1f1f1f !important;
  font-family: Times, "Times New Roman", serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

body > footer.abc-footer .abc-newsletter__form .emailoctopus-form-row-consent {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 16px !important;
  color: #F6F1EA !important;
}

body > footer.abc-footer .abc-newsletter__form .emailoctopus-form-row-consent label {
  display: block;
  margin: 0 !important;
  white-space: normal !important;
}

body > footer.abc-footer .abc-newsletter__form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #F08135;
  vertical-align: middle;
  margin: 3px 0 0 !important;
}

body > footer.abc-footer .abc-newsletter__form a {
  color: #F6F1EA !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1000px) {
  body > header.abc-header .abc-header__row { gap: 20px; }
  body > header.abc-header .abc-brand__name { font-size: 20px; }
  body > header.abc-header .abc-nav { column-gap: 19px; }
  body > footer.abc-footer .abc-footer__grid { gap: 38px; }
  body > footer.abc-footer .abc-footer__cozy { display: none; }
}

@media (max-width: 800px) {
  body > header.abc-header .abc-shell,
  body > footer.abc-footer .abc-shell { width: calc(100% - 40px); }

  body > header.abc-header .abc-header__row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    min-height: 0;
    padding: 13px 0 7px;
  }

  body > header.abc-header .abc-brand { gap: 10px; }
  body > header.abc-header .abc-brand__logo { width: 44px; height: 44px; }
  body > header.abc-header .abc-brand__name { font-size: 20px; }
  body > header.abc-header .abc-brand__tagline { font-size: 11px; }
  body > header.abc-header .abc-nav {
    flex-basis: 100%;
    justify-content: center;
    gap: 0 26px;
  }

  body > footer.abc-footer { padding-top: 50px; }
  body > footer.abc-footer .abc-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
    padding-bottom: 34px;
  }

  body > footer.abc-footer .abc-newsletter { grid-column: 1 / -1; }
  body > footer.abc-footer .abc-newsletter__intro { max-width: 48ch; }
  body > footer.abc-footer .abc-newsletter__form { max-width: 540px; }
  body > footer.abc-footer .abc-footer__nav,
  body > footer.abc-footer .abc-footer__socials { padding-top: 0; }
}

@media (max-width: 380px) {
  body > header.abc-header .abc-brand__name { font-size: 18px; }
  body > header.abc-header .abc-brand__tagline { font-size: 11px; }
  body > header.abc-header .abc-nav { column-gap: 19px; }
  body > header.abc-header .abc-nav a { font-size: 12px; }
  body > footer.abc-footer .abc-footer__bottom { gap: 5px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body > header.abc-header .abc-nav a::after { transition: none; }
}