/*
Theme Name: Adults Saving Kids
Theme URI: https://adultssavingkids.org
Template: twentytwentyfive
Author: Adults Saving Kids
Description: Child theme of Twenty Twenty-Five for Adults Saving Kids. Ink blue, brass and cream, set large for readers over fifty-five.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ask-child
*/

/* ---------------------------------------------------------------------------
   Almost everything lives in theme.json. This file carries only the things
   theme.json cannot express.
   --------------------------------------------------------------------------- */

/* Larger, calmer focus ring — this audience tabs more than most. */
:where(a, button, input, textarea, select, .wp-block-button__link):focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/* Headings breathe, and never leave a widow on a line of their own. */
h1, h2, h3, .wp-block-heading {
  text-wrap: balance;
}

/* Section eyebrow: small caps label over a brass rule. Apply to a paragraph
   with the class "ask-eyebrow". */
.ask-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wp--preset--color--tertiary);
  margin-bottom: 0.9rem;
}
.ask-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  background: var(--wp--preset--color--tertiary);
  opacity: 0.7;
}

/* Scripture and pull quotes, set in the display italic. */
.ask-scripture {
  font-family: var(--wp--preset--font-family--display);
  font-style: italic;
  line-height: 1.5;
  color: var(--wp--preset--color--contrast);
}
.ask-scripture cite {
  display: block;
  font-style: normal;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--tertiary);
  margin-top: 0.8rem;
}

/* Cover blocks used as page headers: keep the overlay readable on every crop. */
.ask-hero .wp-block-cover__background {
  background: linear-gradient(
    100deg,
    rgba(14, 22, 34, 0.94) 0%,
    rgba(14, 22, 34, 0.88) 32%,
    rgba(14, 22, 34, 0.55) 58%,
    rgba(14, 22, 34, 0.2) 82%,
    rgba(14, 22, 34, 0.1) 100%
  );
}
@media (max-width: 781px) {
  .ask-hero .wp-block-cover__background {
    background: linear-gradient(
      180deg,
      rgba(14, 22, 34, 0.86) 0%,
      rgba(14, 22, 34, 0.9) 55%,
      rgba(14, 22, 34, 0.96) 100%
    );
  }
}

/* Cards: one object, one border. No shadow stamped on every block. */
.ask-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 4px;
  background: var(--wp--preset--color--surface);
  height: 100%;
}
.ask-card:hover {
  border-color: var(--wp--preset--color--tertiary);
}

/* Respect the system preference. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
