/*
Theme Name: Wonder Kid Golf
Theme URI: https://wonderkidgolf.com/
Author: HayGen Media
Author URI: https://wonderkidgolf.com/about/
Description: A fast, accessible block theme for the parent-facing Wonder Kid Golf publication.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.2.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wonder-kid-golf
*/

:root {
  --wkg-navy: #12304a;
  --wkg-green: #1f7a5a;
  --wkg-sky: #67b7d1;
  --wkg-yellow: #f2c94c;
  --wkg-sand: #f7f2e8;
  --wkg-ink: #17202a;
  --wkg-white: #ffffff;
  --wkg-border: #d9e0e4;
  --wkg-radius: 18px;
  --wkg-shadow: 0 18px 45px rgba(18, 48, 74, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--wkg-yellow);
  outline-offset: 3px;
}

.wp-site-blocks {
  min-height: 100vh;
}

.wkg-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(18, 48, 74, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.wkg-brand-lockup .wp-block-site-title {
  letter-spacing: -0.025em;
}

.wkg-logo {
  display: inline-flex;
  align-items: center;
}

.wkg-logo img {
  display: block;
  width: min(300px, 42vw);
  height: auto;
}

.wkg-logo--footer img {
  width: min(270px, 70vw);
}

.wkg-brand-kicker {
  margin: 0;
  color: var(--wkg-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wkg-nav .wp-block-navigation-item__content {
  font-weight: 700;
  text-decoration: none;
}

.wkg-nav .wp-block-navigation-item__content:hover {
  color: var(--wkg-green);
}

.wkg-hero {
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background-image: linear-gradient(90deg, rgba(247, 242, 232, 0.99) 0%, rgba(247, 242, 232, 0.93) 37%, rgba(247, 242, 232, 0.2) 70%), url("assets/images/hero-editorial.png");
  background-position: center;
  background-size: cover;
}

.wkg-hero::after {
  content: none;
}

.wkg-eyebrow {
  color: var(--wkg-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wkg-hero h1 {
  max-width: 12ch;
  text-wrap: balance;
}

.wkg-lede {
  max-width: 62ch;
  color: #344454;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.wkg-section-heading {
  max-width: 18ch;
  text-wrap: balance;
}

.wkg-card {
  height: 100%;
  border: 1px solid var(--wkg-border);
  border-radius: var(--wkg-radius);
  background: var(--wkg-white);
  box-shadow: var(--wkg-shadow);
}

.wkg-card .wp-block-heading a,
.wkg-card > a {
  text-decoration: none;
}

.wkg-card-link {
  color: var(--wkg-green);
  font-weight: 800;
}

.wkg-highlight {
  box-shadow: inset 0 -0.32em 0 rgba(242, 201, 76, 0.55);
}

.wkg-post-grid .wp-block-post-template {
  align-items: stretch;
}

.wkg-post-grid .wp-block-post {
  overflow: hidden;
  border: 1px solid var(--wkg-border);
  border-radius: var(--wkg-radius);
  background: var(--wkg-white);
  box-shadow: var(--wkg-shadow);
}

.wkg-post-grid .wp-block-post-featured-image {
  aspect-ratio: 16 / 10;
  margin: 0;
  background: var(--wkg-sand);
}

.wkg-post-grid .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wkg-post-card-body {
  padding: 1.35rem;
}

.wkg-post-card-body .wp-block-post-title a {
  text-decoration: none;
}

.wkg-post-card-body .wp-block-post-title a:hover {
  color: var(--wkg-green);
}

.wkg-newsletter {
  overflow: hidden;
  border-radius: 26px;
  background: var(--wkg-navy);
  color: var(--wkg-white);
}

.wkg-newsletter .wp-block-heading,
.wkg-newsletter p {
  color: inherit;
}

.wkg-article-shell {
  border-radius: 22px;
  background: var(--wkg-white);
}

.wkg-article-meta {
  color: #566474;
  font-size: 0.94rem;
}

.wkg-article-shell .wp-block-post-content {
  font-size: 1.06rem;
  line-height: 1.78;
}

.wkg-article-shell .wp-block-post-content > h2,
.wkg-article-shell .wp-block-post-content > h3 {
  margin-top: 1.8em;
}

.wkg-author-box {
  border-left: 5px solid var(--wkg-sky);
  border-radius: 0 var(--wkg-radius) var(--wkg-radius) 0;
  background: var(--wkg-sand);
}

.wkg-editorial-notice,
.wkg-reading-notes {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--wkg-border);
  border-radius: 14px;
  background: var(--wkg-sand);
}

.wkg-editorial-notice {
  border-left: 5px solid var(--wkg-yellow);
}

.wkg-editorial-notice strong,
.wkg-reading-notes strong {
  color: var(--wkg-navy);
}

.wkg-reading-notes ul {
  margin-bottom: 0;
}

.wkg-article-shell > .wp-block-post-title {
  font-size: clamp(2.25rem, 5vw, 4.35rem) !important;
}

#gdpr-cookie-consent-bar {
  max-height: min(60vh, 460px);
  overflow-y: auto;
}

.wkg-site-footer a {
  color: var(--wkg-white);
}

.wkg-site-footer a:hover {
  color: var(--wkg-yellow);
}

.wkg-footer-label {
  color: var(--wkg-yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wkg-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wkg-footer-links li {
  margin: 0.4rem 0;
}

.wkg-footer-links a {
  text-decoration: none;
}

.wkg-search-box .wp-block-search__input {
  border: 1px solid var(--wkg-border);
  border-radius: 12px;
}

.wkg-search-box .wp-block-search__button {
  border-radius: 12px;
}

@media (max-width: 781px) {
  .wkg-header-cta {
    display: none;
  }

  .wkg-hero {
    border-radius: 0 0 24px 24px;
    background-image: linear-gradient(90deg, rgba(247, 242, 232, 0.98) 0%, rgba(247, 242, 232, 0.93) 64%, rgba(247, 242, 232, 0.48) 100%), url("assets/images/hero-editorial.png");
    background-position: 66% center;
  }

  .wkg-hero h1 {
    max-width: 13ch;
  }

  .wkg-entry-grid,
  .wkg-footer-grid {
    gap: 1rem;
  }

  .wkg-article-shell {
    padding: 1.5rem !important;
  }

  #gdpr-cookie-consent-bar {
    max-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
