/* =========================================================================
   PAMAC / artsrelief.org — faithful static rebuild
   Measurements taken from the live Squarespace site (desktop @1440px).
   Two reds are intentional and preserved from the original:
     #ea1c25  header bar + filled buttons
     #e51519  page background, footer, heading + link text
   ========================================================================= */

:root {
  --red-bar:   #ea1c25;   /* header bar, filled buttons */
  --red:       #e51519;   /* body/footer bg, headings, links */
  --ink:       #452b2b;   /* body copy */
  --overlay:   rgba(255, 255, 255, 0.7);
  --divider:   #dddddd;
  --content-w: 882px;     /* body text + petition column */
}

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

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

body {
  margin: 0;
  padding-top: 45px;                 /* original .Main padding-top, sits behind fixed header */
  background: var(--red);
  color: var(--ink);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 30.6px;
  letter-spacing: 0.34px;            /* original global default; keeps body line-wrapping identical */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; }
a { color: inherit; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9000;
  background: var(--red-bar);
  transition: background-color 500ms linear, box-shadow 300ms ease;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
}

.branding { display: block; line-height: 0; flex: 0 0 auto; }
.branding img { width: 200px; height: auto; display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-list > li { position: relative; }
.nav-list a {
  display: inline-block;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.nav-list a:hover { opacity: 0.82; }

/* Members dropdown */
.has-sub > .sub-nav {
  list-style: none;
  margin: 0; padding: 10px 0;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--red-bar);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease;
  z-index: 10;
}
.has-sub:hover > .sub-nav,
.has-sub:focus-within > .sub-nav { opacity: 1; visibility: visible; }
.sub-nav li { display: block; }
.sub-nav a { display: block; padding: 8px 22px; font-size: 13px; }

/* Social icons */
.social-links { display: inline-flex; align-items: center; gap: 16px; }
.social-links a { display: inline-flex; line-height: 0; }
.social-links svg { width: 26px; height: 26px; fill: #fff; transition: opacity 160ms ease; }
.social-links a:hover svg { opacity: 0.82; }

/* Hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 34px;
  padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 3px; width: 30px;
  background: #fff; border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile overlay nav */
.mobile-overlay {
  position: fixed; inset: 0;
  z-index: 8000;
  background: var(--red-bar);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}
.mobile-overlay[hidden] { display: none; }
.mobile-overlay ul { list-style: none; margin: 0 0 26px; padding: 0; text-align: center; }
.mobile-overlay li { margin: 14px 0; }
.mobile-overlay a {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; color: #fff;
}
.mobile-overlay .social-links { justify-content: center; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: #2a1410 url("/assets/carnegie-hall.jpg") center center / cover no-repeat;
}

.hero-overlay {
  width: 911px;
  max-width: 80%;
  padding: 30px;
  background: var(--overlay);
  text-align: center;
}

.hero-title {
  margin: 0 0 33px;   /* tuned so heading lands at y251 and first button at y362 (matches original) */
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 65px;
  line-height: 78px;
  letter-spacing: 0.5px;   /* original 0.65px; Source Sans 3 is ~2px wider than the
                              original freight-sans, so trim spacing to keep one line @1440 */
  color: var(--red);
}

.hero-btn-row {
  margin: 0 0 23px;
  line-height: 60px;
  text-align: center;
}
.hero-btn-row:last-child { margin-bottom: 0; }

.hero-btn {
  display: inline-block;
  background: var(--red-bar);
  color: #fff;
  border: 2px solid var(--red-bar);
  padding: 10px 20px;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 1.44px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.hero-btn:hover { background: transparent; color: var(--red-bar); }

/* =========================================================================
   CONTENT
   ========================================================================= */
.content {
  background: #fff;
  padding: 50px 50px 66px;
}

.heading-wide,
.heading-petition {
  margin: 0;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 41px;
  line-height: 51.25px;
  letter-spacing: 0.82px;
  color: var(--red);
  text-align: center;
}

.content-column {
  max-width: var(--content-w);
  margin: 34px auto 0;
}

.content-column p {
  margin: 0 0 30px;
  text-align: justify;   /* original justifies WITHOUT hyphenation */
  /* The original's 2020-era Roboto renders ~15% wider than today's Google Roboto,
     so 0.34px wrapped the body copy one line short. 0.8px reproduces the original's
     line widths (5 + 9 lines) and the 459px block height — matching wrap points. */
  letter-spacing: 0.8px;
}
.content-column p:last-of-type { margin-bottom: 0; }

.content-column a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-column a:hover { color: var(--red-bar); }

.divider {
  border: 0;
  height: 1px;
  background: var(--divider);
  margin: 42px 0;   /* original hr has tiny margins but sits in ~86px of spacer-block space */
}

.heading-petition { margin: 0 0 35px; }

.petition-img {
  display: block;
  width: 100%;
  max-width: var(--content-w);
  height: auto;
  margin: 0 auto;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 40px 50px 60px;
}
.footer-inner { max-width: 980px; margin: 0 auto; }

.contact-btn {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 25px 46px;
  margin: 0 0 40px;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.contact-btn:hover { background: #fff; color: var(--red); }

.footer-link-row { margin: 0; }
.footer-link {
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.34px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-social { justify-content: center; margin: 37px 0 39px; }
.footer-social svg { width: 32px; height: 32px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Extra side breathing room on very wide screens (matches original) */
@media (min-width: 1441px) {
  .content { padding-left: 250px; padding-right: 250px; }
}

/* Tablet / mobile: switch to hamburger nav */
@media (max-width: 1106px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* Phones */
@media (max-width: 736px) {
  body { padding-top: 15px; }
  .header-inner { padding: 16px 22px; }
  .branding img { width: 150px; }

  .hero-title { font-size: 38px; line-height: 46px; }
  .hero-btn { font-size: 18px; }
  .hero-overlay { max-width: 88%; padding: 26px 18px; }

  .content { padding: 40px 22px 50px; }
  .heading-wide, .heading-petition { font-size: 27px; line-height: 1.25; }
  .content-column { margin-top: 26px; }
  .content-column p { text-align: left; }

  .contact-btn { padding: 20px 30px; font-size: 15px; }
}

/* =========================================================================
   INTERIOR PAGES (About, Members/Agencies, Organizations, Take Action, Privacy)
   ========================================================================= */
body.interior { padding-top: 0; background: #fff; }

.page { padding: 168px 0 80px; }            /* clears the 107px fixed header (heading lands ~y170) */
.page-inner { padding: 0 50px; }

.page-heading {
  margin: 0 0 28px;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 41px;
  line-height: 51.25px;
  letter-spacing: 0.82px;
  color: var(--red);
  text-align: left;
}
.page-heading--center { text-align: center; }

.page-inner > p,
.page-inner > h2,
.page-inner > h3 { max-width: none; }
.page-inner > p {
  margin: 0 0 17px;
  text-align: justify;
  color: var(--ink);
}
.page-inner a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.page-inner a:hover { color: var(--red-bar); }

.page-divider { border: 0; height: 1px; background: var(--divider); margin: 26px 0 34px; }

/* Multi-column name lists (Agencies = 4 cols, Organizations = 2 cols) */
.name-columns { display: flex; gap: 30px; }
.name-col { flex: 1 1 0; min-width: 0; }
.name-col p { margin: 0 0 17px; color: var(--ink); }

/* Take Action petition section */
.petition-title { margin-top: 56px; }
.action-petition-link { display: block; max-width: 680px; margin: 26px auto 30px; }
.action-petition-link img { display: block; width: 100%; height: auto; }
.ph-note { text-align: center; font-family: "Lato", Helvetica, Arial, sans-serif; font-weight: 400; font-size: 21px; line-height: 1.4; color: var(--ink); margin: 0 0 14px; }
.petition-cta { text-align: center; margin: 26px 0 0; }

/* faded active nav item, as on the original */
.interior .nav-list a[aria-current="page"] { opacity: 0.55; }

@media (min-width: 1441px) {
  .page-inner { padding-left: 250px; padding-right: 250px; }
}

@media (max-width: 1106px) {
  .page { padding-top: 120px; }
}
@media (max-width: 736px) {
  .page { padding: 96px 0 50px; }
  .page-inner { padding: 0 22px; }
  .page-heading { font-size: 27px; line-height: 1.25; }
  .page-inner > p { text-align: left; }
  .name-columns { flex-direction: column; gap: 0; }
}

/* =========================================================================
   NEWS — feed grid + post pages
   ========================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; }
.page-inner a.news-card,
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.news-thumb { display: block; aspect-ratio: 7 / 5; overflow: hidden; background: #f2f2f2; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.news-card:hover .news-thumb img { transform: scale(1.03); }
.news-thumb--source { display: flex; align-items: center; justify-content: center; background: var(--red); padding: 18px; }
.news-thumb--source span { color: #fff; font-family: "Lato", sans-serif; font-weight: 700; font-size: 25px; letter-spacing: 0.5px; text-align: center; line-height: 1.25; }
.news-date { display: block; margin: 16px 0 5px; color: #ea1f29; font-size: 20px; }
.news-title { display: block; font-size: 22px; line-height: 1.3; color: var(--ink); }
.news-card:hover .news-title { color: var(--red); }
.news-ext { font-size: 0.78em; color: var(--red); white-space: nowrap; }

.post { max-width: 820px; margin: 0 auto; }
.post-back { margin: 0 0 22px; }
.post-back a { color: var(--red); text-decoration: none; font-family: "Lato", sans-serif; letter-spacing: 0.5px; }
.post-back a:hover { text-decoration: underline; }
.post-title { margin: 0 0 6px; font-family: "Lato", sans-serif; font-weight: 400; font-size: 38px; line-height: 1.15; letter-spacing: 0.6px; color: var(--red); }
.post-date { margin: 0 0 28px; color: #ea1f29; font-size: 20px; }
.post-body p { margin: 0 0 20px; text-align: left; }
.post-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.post-body h2 { font-family: "Lato", sans-serif; color: var(--red); font-size: 26px; line-height: 1.25; margin: 32px 0 12px; font-weight: 400; }
.post-body h3 { font-family: "Lato", sans-serif; font-size: 21px; margin: 24px 0 10px; font-weight: 700; }
.post-body ul { margin: 0 0 20px; padding-left: 22px; }
.post-body li { margin: 0 0 8px; }
.post-img { display: block; width: 100%; height: auto; margin: 8px auto 26px; }

@media (max-width: 1106px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 736px) {
  .news-grid { grid-template-columns: 1fr; gap: 34px; }
  .post-title { font-size: 28px; }
}
