/*
Theme Name: LOA Youth Ranch
Description: Editable block theme for the LOA Youth Ranch website.
Version: 1.4.6
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: loa-youth-ranch
*/
:root {
  --r-barn: #84372e; --r-oxblood: #642b25; --r-trim: #fffaf2;
  --r-linen: #ffe9d5; --r-cream: #f6f1ea; --r-paper: #fffdf9;
  --r-rust: #824034; --r-ink: #302722; --r-line: #dbd0c5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + *, .ranch-home > *, .wp-site-blocks > .wp-block-template-part { margin-block: 0; }
.ranch-home, .ranch-header, .ranch-footer { font-family: system-ui, sans-serif; }
.ranch-shell, .ranch-interior {
  width: min(var(--wp--style--global--wide-size, 1180px), calc(100% - clamp(2.5rem, 9vw, 9rem)));
  margin-inline: auto;
}
.ranch-home p, .ranch-header p, .ranch-footer p, .ranch-home figure, .ranch-header figure, .ranch-footer figure { margin-block: 0; }
.ranch-home h1, .ranch-home h2, .ranch-home h3, .ranch-footer h2 { margin: 0; letter-spacing: -.038em; font-family: Georgia,serif; font-weight: 400; line-height: 1.08; }
.ranch-home h1 { font-size: clamp(3rem, 6.4vw, 6.45rem); }
.ranch-home h2 { font-size: clamp(2.3rem, 4.1vw, 4.4rem); text-wrap: balance; }
.ranch-home h3 { font-size: clamp(1.7rem, 2.35vw, 2.5rem); }
.ranch-home a, .ranch-footer a { text-underline-offset: .22em; }
.ranch-home a:focus-visible, .ranch-header :focus-visible, .ranch-footer :focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.ranch-header { color: white; background: var(--r-barn); border-bottom: 2px solid #e8d8c7; }
.ranch-header-row { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(1rem, 3vw, 2.8rem); min-height: 86px; }
.ranch-header-row > *, .ranch-updates-row > * { margin-block: 0; }
.ranch-logo img { display: block; width: 112px; max-height: 70px; object-fit: contain; }
.ranch-nav { margin-left: auto; font-weight: 650; }
.ranch-header .ranch-nav { color: white; }
.ranch-header .wp-block-navigation-item__content { text-decoration: none; }
.ranch-header .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: .3em; }
.ranch-header .wp-block-navigation__responsive-container.is-menu-open { color: var(--r-oxblood); background: var(--r-cream); }
.ranch-header { position: relative; z-index: 3; }
.ranch-header .wp-block-navigation__responsive-container-open, .ranch-header .wp-block-navigation__responsive-container-close { padding: 9px; }
.ranch-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(530px,54vw,710px); display: grid; align-items: center; background: var(--r-oxblood); color: white; }
.ranch-hero-photo { position: absolute; inset: 0 0 0 auto; width: 57%; z-index: -1; }
.ranch-hero-photo img, .ranch-story-photo img, .ranch-community-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ranch-hero-photo img { object-position: center 53%; }
.ranch-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(90deg, #642b25 35%, rgba(100,43,37,.92) 45%,rgba(100,43,37,.45) 61%,rgba(100,43,37,.02) 80%); }
.ranch-hero-inner { position: relative; z-index: 1; padding-block: clamp(4.5rem,8vw,8rem); }
.ranch-home .ranch-label { font-size: .85rem; font-weight: 750; letter-spacing: .115em; color: var(--r-rust); text-transform: uppercase; }
.ranch-hero .ranch-label, .ranch-pine .ranch-label, .ranch-dark-card .ranch-label { color: var(--r-linen); }
.ranch-hero h1 { margin-block: 1.3rem 1.6rem; max-width: 14ch; }
.ranch-hero h1 em { color: var(--r-linen); }
.ranch-home .ranch-lead { font-size: clamp(1.1rem,1.55vw,1.32rem); line-height: 1.55; }
.ranch-hero .ranch-lead { max-width: min(48%, 37rem); }
.ranch-home .wp-block-buttons, .ranch-header .wp-block-buttons { gap: .75rem; }
.ranch-hero .wp-block-buttons { margin-top: 2rem; }
.ranch-gold .wp-block-button__link, .ranch-outline .wp-block-button__link, .ranch-solid .wp-block-button__link { border: 1px solid transparent; border-radius: .3rem; padding: .82rem 1.32rem; font: 700 1rem/1.4 system-ui,sans-serif; text-decoration: none; }
.ranch-gold .wp-block-button__link { background: var(--r-trim); color: #642b25; }
.ranch-outline .wp-block-button__link { background: var(--r-oxblood); border-color: #d9bdb0; color: white; }
.ranch-solid .wp-block-button__link { color: white; background: var(--r-barn); }
.ranch-header .ranch-gold .wp-block-button__link { border-radius: 3rem; min-width: 76px; }
.ranch-gold .wp-block-button__link:hover { background: #f2e2d2; }
.ranch-outline .wp-block-button__link:hover, .ranch-solid .wp-block-button__link:hover { background: #783329; }
.ranch-band { padding-block: clamp(4rem,7.5vw,7.75rem); }
.ranch-cream { background: var(--r-cream); }
/* Fine vertical seams echo painted barn siding behind the mission statement. */
.ranch-pine {
  color: white;
  background-color: var(--r-barn);
  background-image: repeating-linear-gradient(90deg, transparent 0 117px, rgba(55,20,15,.13) 117px 118px, rgba(255,253,249,.06) 118px 120px);
}
.ranch-pine .ranch-shell > * + *, .ranch-story > * + *, .ranch-involved > * + *, .ranch-updates-intro p { margin-top: 1.25rem; }
.ranch-pine a { color: var(--r-linen); }
.ranch-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; margin-top: 2.5rem; }
.ranch-card { min-height: 285px; padding: clamp(1.45rem,2.8vw,2.75rem); display: flex; flex-direction: column; gap: 1rem; margin: 0; background: var(--r-paper); border: 1px solid var(--r-line); }
.ranch-card .ranch-text-link { margin-top: auto; padding-top: .7rem; }
.ranch-text-link { font-weight: 700; }
.ranch-dark-card { background: var(--r-barn); color: white; border-color: var(--r-barn); }
.ranch-dark-card a { color: white; }
.ranch-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,6.5vw,7rem); }
.ranch-split > * { margin-block: 0; min-width: 0; }
.ranch-story-photo { height: clamp(380px,43vw,590px); }
.ranch-story-photo img { object-position: 50% 60%; }
.ranch-community-photo { height: clamp(300px,36vw,480px); }
.ranch-involved .ranch-text-link { border-bottom: 1px solid var(--r-line); padding-bottom: .7rem; }
.ranch-updates-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.ranch-footer { background: #46221e; color: #fff7ee; padding-block: clamp(2.5rem,5.5vw,5rem); }
.ranch-footer a { color: #fff7ee; }
.ranch-footer h2 { font-size: 1.55rem; margin-bottom: .9rem; }
.ranch-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.ranch-footer-grid > * { margin: 0; }
.ranch-footer .ranch-logo { margin-bottom: 1rem; }
.ranch-footer .ranch-text-link { font-weight: 500; margin-top: .4rem; }
.ranch-footer .ranch-fine { font-size: .9rem; margin-bottom: .3rem; }
.ranch-interior { padding-block: clamp(3rem,6vw,6rem); margin-block: 0; }
.ranch-interior img, .ranch-interior iframe { max-width: 100%; }
@media(max-width: 840px) {
  .ranch-cards { grid-template-columns: 1fr; }
  .ranch-card { min-height: 0; }
  .ranch-split { grid-template-columns: 1fr; }
  .ranch-story-photo { height: auto; aspect-ratio: 5 / 4; }
  .ranch-header-row { min-height: 74px; }
}
@media(min-width: 600px) and (max-width: 950px) {
  .ranch-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .ranch-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}
@media(max-width: 650px) {
  .ranch-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .ranch-hero-photo { position: relative; inset: auto; width: 100%; height: clamp(170px,53vw,290px); z-index: 0; }
  .ranch-hero::before { display: none; }
  .ranch-hero-inner { padding-block: 2.15rem 3.2rem; }
  .ranch-hero .ranch-lead { max-width: 100%; }
  .ranch-hero h1 { font-size: clamp(2.65rem,9vw,3.7rem); margin-block: 1rem; }
  .ranch-hero .wp-block-buttons { margin-top: 1.4rem; }
  .ranch-header .ranch-logo img { width: 91px; }
  .ranch-footer-grid { grid-template-columns: 1fr; }
}

.ranch-directory { padding: clamp(1.2rem,3vw,2rem); margin-block: 1.75rem; background: var(--r-cream); border-inline-start: 4px solid var(--r-barn); scroll-margin-top: 4rem; }
.ranch-directory h2 { margin: 0 0 1rem; font-size: clamp(1.6rem,3vw,2.25rem); }
.ranch-directory ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: 0 1.6rem; margin: 0; padding: 0; list-style: none; }
.ranch-directory a { display: block; padding: .52rem 0; font-weight: 600; text-underline-offset: .22em; }
.ranch-directory a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.ranch-programs { padding-bottom: clamp(3rem,6vw,6rem); }
.ranch-original-programs { border-block: 1px solid var(--r-line); }
.ranch-original-programs > summary { color: var(--r-oxblood); padding: 1.1rem .25rem; font-size: clamp(1.15rem,2vw,1.4rem); font-weight: 650; cursor: pointer; }
.ranch-original-programs > .wp-block-post-content { padding: 1rem 0 2rem; }
.ranch-original-programs .wp-block-post-content > * + * { margin-block-start: 1.5rem; }
.ranch-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.ranch-nav .is-menu-open .wp-block-navigation__container { align-items: stretch; }
.ranch-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0; }
.ranch-nav .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--r-line); align-items: stretch; }
.ranch-nav .is-menu-open .wp-block-navigation-item__content { width: 100%; padding: 1rem .5rem; font-size: 1.2rem; }
.ranch-hub { margin: 0; font-family: system-ui,sans-serif; }
.ranch-hub h1, .ranch-hub h2 { font-family: Georgia,serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.ranch-hub h1 { font-size: clamp(3rem,6vw,5.3rem); margin: 0; color: var(--r-oxblood); }
.ranch-hub h2 { font-size: clamp(1.75rem,3vw,2.55rem); }
.ranch-hub-mast { background: var(--r-cream); border-bottom: 1px solid var(--r-line); }
.ranch-hub-split { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; gap: clamp(1.5rem,5vw,5rem); }
.ranch-hub-intro { padding-block: clamp(2rem,5vw,4.5rem); align-self: center; }
.ranch-hub-intro .ranch-hub-lead { margin: 1.1rem 0 0; max-width: 54ch; font-size: clamp(1.07rem,1.65vw,1.32rem); line-height: 1.55; }
.ranch-hub-intro .wp-block-buttons { margin: 1.5rem 0 0; }
.ranch-hub-photo { margin: 0; position: relative; min-height: 230px; }
.ranch-hub-photo img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.ranch-news-mast { background: var(--r-oxblood); color: var(--r-paper); border-color: var(--r-barn); }
.ranch-news-mast .ranch-hub-split { display: block; }
.ranch-news-mast h1 { color: var(--r-paper); }
.ranch-news-mast .ranch-hub-lead { max-width: 65ch; }
.ranch-topics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,255px),1fr)); gap: clamp(1rem,2.8vw,2.3rem); padding-block: clamp(2rem,4vw,3.7rem); }
.ranch-about-topics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ranch-topics > *, .ranch-hub-mast, .ranch-original, .ranch-topic > * { margin-block: 0; }
.ranch-topic { border-top: 3px solid var(--r-barn); padding: 1.25rem 0 0; display: flex; flex-direction: column; height: 100%; }
.ranch-topic h2 { margin: 0 0 .7rem; font-size: clamp(1.6rem,2.5vw,2.1rem); }
.ranch-topic p { line-height: 1.6; }
.ranch-topic-links { margin-top: auto; padding-top: .75rem; }
.ranch-topic-links p { margin: .4rem 0 0; }
.ranch-hub a { text-underline-offset: .22em; }
.ranch-hub a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ranch-original { border-top: 1px solid var(--r-line); padding-block: clamp(2rem,4vw,3.7rem) clamp(3rem,6vw,5rem); }
.ranch-original > h2, .ranch-original > .wp-block-post-content { margin-block: 0 1.1rem; }
.ranch-original .wp-block-post-content > * { max-width: 100%; }
.ranch-original img, .ranch-original iframe { max-width: 100%; }
.ranch-hub [id] { scroll-margin-top: 4rem; }
@media(max-width: 700px) {
  .ranch-hub-split, .ranch-about-topics { grid-template-columns: 1fr; gap: 0; }
  .ranch-hub-photo { min-height: 0; height: clamp(150px,45vw,260px); }
  .ranch-hub-photo img { object-position: 50% 50%; }
  .ranch-about-topics { row-gap: 1.8rem; }
}

.ranch-header .ranch-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 2px; }

.ranch-hub-schedule-a-session .ranch-hub-photo,
.ranch-hub-get-involved .ranch-hub-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 8 / 7;
  align-self: center;
}
.ranch-hub-schedule-a-session .ranch-hub-photo img { object-position: 50% 42%; }
.ranch-hub-get-involved .ranch-hub-photo img { object-position: 50% 36%; }
@media (max-width: 700px) {
  .ranch-hub-schedule-a-session .ranch-hub-photo,
  .ranch-hub-get-involved .ranch-hub-photo { aspect-ratio: 10 / 9; }
}
