/*
Theme Name: GFLF
Theme URI: https://giftforlifefoundationtt.com/
Description: A lightweight child block theme for Gift For Life Foundation, based on Twenty Twenty-Five.
Author: Gift For Life Foundation
Template: twentytwentyfive
Version: 1.0.10
Text Domain: gflf
*/

:root {
  --gfl-purple: #4a0063;
  --gfl-deep-purple: #3b1764;
  --gfl-gold: #e3a008;
  --gfl-green: #8bc34a;
  --gfl-cream: #fbf8f1;
  --gfl-ink: #27212d;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--gfl-ink);
}

.gfl-site-header,
.gfl-site-footer {
  width: 100%;
  background: var(--gfl-purple);
  color: #fff;
}

.gfl-site-header {
  position: relative;
  z-index: 20;
}

.gfl-header-inner,
.gfl-footer-inner,
.gfl-content-wrap {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.gfl-header-inner {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px;
}

.gfl-logo {
  display: block;
  width: 200px;
  max-width: 55vw;
  height: auto;
}

.gfl-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  font-size: 15px;
}

.gfl-nav a,
.gfl-site-footer a {
  color: #fff;
  text-decoration: none;
}

.gfl-nav a:hover,
.gfl-site-footer a:hover {
  text-decoration: underline;
}

.gfl-nav .gfl-donate {
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--gfl-gold);
  color: #25103d;
  font-weight: 700;
  white-space: nowrap;
}

.gfl-nav .gfl-donate:hover {
  text-decoration: none;
  filter: brightness(1.04);
}

.gfl-mobile-menu {
  display: none;
}

.gfl-title-area {
  width: 100%;
  padding-block: clamp(56px, 8vw, 112px);
  background: var(--gfl-cream);
}

.gfl-kicker {
  margin: 0 0 12px;
  color: #9b6b00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gfl-title-area .wp-block-post-title,
.gfl-page-title {
  max-width: 960px;
  margin: 0;
  color: var(--gfl-purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.03;
}

.gfl-featured-image {
  width: min(100% - 40px, 1100px);
  margin: -44px auto 0;
}

.gfl-featured-image img {
  width: 100%;
  max-height: 580px;
  border-radius: 10px;
  object-fit: cover;
}

.gfl-article {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 96px);
}

.gfl-article p,
.gfl-article li {
  font-size: 18px;
  line-height: 1.8;
}

.gfl-article h2,
.gfl-article h3 {
  color: var(--gfl-purple);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.gfl-article h2 {
  margin-top: 48px;
  font-size: clamp(34px, 5vw, 48px);
}

.gfl-site-footer {
  padding-block: 56px 28px;
}

.gfl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.gfl-site-footer h3 {
  margin-top: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.gfl-site-footer p,
.gfl-site-footer a {
  font-size: 15px;
  line-height: 1.65;
}

.gfl-copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 25%);
  font-size: 13px;
}

@media (max-width: 800px) {
  .gfl-header-inner {
    align-items: center;
    flex-direction: row;
  }

  .gfl-header-inner > .gfl-nav {
    display: none;
  }

  .gfl-mobile-menu {
    display: block;
    margin-left: auto;
  }

  .gfl-mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
  }

  .gfl-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .gfl-mobile-menu summary::before {
    content: "☰";
    font-size: 20px;
    line-height: 1;
  }

  .gfl-mobile-menu[open] summary::before {
    content: "×";
  }

  .gfl-mobile-menu .gfl-mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 20px;
    background: #4a0063;
    border-top: 1px solid rgb(255 255 255 / 20%);
    box-shadow: 0 16px 30px rgb(37 16 61 / 25%);
  }

  .gfl-mobile-menu .gfl-mobile-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    color: #fff;
    text-decoration: none;
  }

  .gfl-mobile-menu .gfl-mobile-nav .gfl-donate {
    margin-top: 12px;
    padding: 13px 14px;
    border: 0;
    border-radius: 4px;
    background: var(--gfl-gold);
    color: #25103d;
    text-align: center;
    font-weight: 700;
  }

  .gfl-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Compact universal page titles. */
body.page .gfl-title-area {
  padding-block: clamp(40px, 5vw, 72px);
}

body.page .gfl-title-area .wp-block-post-title {
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.08;
}

/* Ensure editor-applied bold formatting is visibly bold in story articles. */
body.single .gfl-article strong,
body.single .gfl-article b {
  font-weight: 700;
}

/* Stories and category archive cards. */
:is(body.category, body.blog) .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

:is(body.category, body.blog) .wp-block-post-template > .wp-block-post {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgb(74 0 99 / 13%);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(37 16 61 / 7%);
}

:is(body.category, body.blog) .wp-block-post-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

:is(body.category, body.blog) .wp-block-post-excerpt__excerpt {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  :is(body.category, body.blog) .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  :is(body.category, body.blog) .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}
