/*
Theme Name: Garey Walker
Theme URI: https://gareywalker.com
Author: Garey Walker
Description: A museum-inspired WordPress theme for biblical teaching, theological writing, and sacred art.
Version: 1.0.0
Text Domain: garey-walker
*/

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-display: 'Cormorant Garamond';
  --font-sans: 'Inter';
  --color-obsidian: #12110f;
  --color-parchment: #f2ebdd;
  --color-carbon: #1c1915;
  --color-stone: #766e63;
  --color-gold: #b29662;
  --color-umber: #70452f;
  --line-light: rgba(242, 235, 221, 0.22);
  --line-dark: rgba(28, 25, 21, 0.18);
  --gutter: clamp(1.5rem, 4vw, 4.5rem);
  --section-space: clamp(5rem, 10vw, 10rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body.admin-bar .site-header { top: 32px; }

.content-page { min-height: 70svh; padding: clamp(8rem, 14vw, 13rem) var(--gutter) var(--section-space); background: var(--color-parchment); }
.content-page__inner { width: min(100%, 920px); margin-inline: auto; }
.content-page h1 { margin: 0 0 2rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 400; line-height: .94; letter-spacing: -.035em; }
.content-page h2 { margin: 3rem 0 1rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; }
.content-page p, .content-page li { color: #4c463e; }
.content-page a { text-underline-offset: .22rem; }
.content-header { position: absolute; color: var(--color-parchment); background: var(--color-obsidian); }
.content-page + .site-footer { margin-top: 0; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--color-obsidian); }
body { margin: 0; overflow-x: hidden; color: var(--color-carbon); background: var(--color-parchment); font-family: var(--font-sans), Arial, sans-serif; font-size: clamp(1rem, .96rem + .18vw, 1.125rem); line-height: 1.72; }
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
a { color: inherit; }

.container, .container-wide { width: min(100%, 1520px); margin-inline: auto; padding-inline: var(--gutter); }
.container { max-width: 1440px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3.5rem); }
.section { position: relative; padding-block: var(--section-space); }
.eyebrow { margin: 0 0 1.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.lead { font-family: var(--font-display), Georgia, serif; font-size: clamp(1.55rem, 2.1vw, 2.2rem); line-height: 1.28; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .65rem 1rem; color: var(--color-obsidian); background: var(--color-parchment); transform: translateY(-180%); transition: transform .2s; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 5px; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 1.8rem var(--gutter); color: var(--color-parchment); }
.site-header.content-header { background: var(--color-obsidian); }
.wordmark { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.75rem); }
.desktop-nav a, .mobile-nav a { font-size: .73rem; font-weight: 500; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.desktop-nav a { padding-block: .35rem; border-bottom: 1px solid transparent; transition: border-color .24s, color .24s; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { border-color: currentColor; }
.desktop-nav .nav-contact { margin-left: .25rem; color: #d8c39a; }
.mobile-nav { display: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--color-parchment); background: var(--color-obsidian); }
.hero__art { position: absolute; inset: 0; overflow: hidden; }
.hero__art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% top; animation: hero-settle 1.8s var(--ease-out) both; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,17,15,.9) 0%, rgba(18,17,15,.72) 19%, rgba(18,17,15,.42) 34%, rgba(18,17,15,.12) 48%, transparent 61%), linear-gradient(180deg, rgba(18,17,15,.32) 0%, transparent 19%); }
.hero__content { position: relative; z-index: 1; display: flex; min-height: 100svh; width: min(43rem, 45vw); flex-direction: column; justify-content: center; padding: 8rem 0 6rem var(--gutter); animation: copy-in .7s .12s var(--ease-out) both; }
.hero h1 { max-width: 7ch; margin: 0; font-family: var(--font-display), Georgia, serif; font-size: clamp(4rem, 6.65vw, 7.5rem); font-weight: 400; line-height: .91; letter-spacing: -.035em; }
.hero__identity { margin: 2rem 0 0; font-size: clamp(.82rem, 1vw, .98rem); font-weight: 500; letter-spacing: .06em; }
.hero__support { max-width: 36rem; margin: 1.1rem 0 0; color: rgba(242,235,221,.82); font-size: clamp(.96rem, 1.2vw, 1.12rem); line-height: 1.68; }
.hero__link { display: inline-flex; width: fit-content; align-items: center; gap: .7rem; margin-top: 2rem; padding-block: .35rem; border-bottom: 1px solid rgba(242,235,221,.7); font-size: .77rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.hero__caption { position: absolute; z-index: 2; right: var(--gutter); bottom: 1.75rem; display: flex; gap: .65rem 1.15rem; color: rgba(242,235,221,.68); font-size: .66rem; letter-spacing: .06em; }
.hero__caption span + span::before { content: '—'; margin-right: 1.15rem; color: var(--color-gold); }

.editorial-link { display: inline-flex; width: fit-content; align-items: center; gap: .6rem; margin-top: 1.75rem; padding-block: .35rem; border-bottom: 1px solid var(--color-carbon); font-size: .75rem; font-weight: 600; letter-spacing: .09em; line-height: 1.4; text-decoration: none; text-transform: uppercase; }
.editorial-link--light { color: var(--color-parchment); border-color: rgba(242,235,221,.65); }
.editorial-link__arrow { transition: transform .22s var(--ease-out); }
.editorial-link:hover .editorial-link__arrow, .editorial-link:focus-visible .editorial-link__arrow { transform: translateX(.28rem); }

.teaching { background: var(--color-parchment); }
.teaching__scripture { grid-column: 1 / span 6; }
.teaching__scripture h2, .about h2 { margin: 0; font-family: var(--font-display), Georgia, serif; font-size: clamp(3rem, 5.8vw, 6.25rem); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.teaching blockquote { margin-top: clamp(4rem, 8vw, 8rem); }
.teaching blockquote p { max-width: 13ch; margin: 0; font-family: var(--font-display), Georgia, serif; font-size: clamp(2.45rem, 4.2vw, 4.75rem); line-height: 1.04; }
.teaching blockquote cite { display: block; margin-top: 1.5rem; color: var(--color-stone); font-size: .72rem; font-style: normal; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.teaching__copy { grid-column: 8 / span 5; padding-top: clamp(4rem, 8vw, 9rem); }
.teaching__copy p:not(.lead) { max-width: 39rem; color: #4c463e; }
.sermon-feature { grid-column: 4 / span 8; margin-top: clamp(4rem, 8vw, 8rem); padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.sermon-feature__meta { display: flex; justify-content: space-between; color: var(--color-stone); font-size: .7rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.sermon-feature h3 { max-width: 14ch; margin: 1.25rem 0 .5rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(2.25rem, 4vw, 4.25rem); font-weight: 400; line-height: 1; }
.sermon-feature > p { max-width: 34rem; margin: 0; color: var(--color-stone); }

.artwork-feature { overflow: hidden; color: var(--color-parchment); background: var(--color-obsidian); }
.artwork-feature__grid { display: grid; grid-template-columns: minmax(0, 7.3fr) minmax(20rem, 4.2fr); gap: clamp(3rem, 6vw, 8rem); align-items: center; }
.artwork-feature__figure { width: 100%; }
.artwork-feature__figure img { width: min(100%, 57rem); aspect-ratio: 4/5; object-fit: cover; object-position: center 35%; }
.museum-caption { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; padding-top: 1rem; color: rgba(242,235,221,.58); font-size: .68rem; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.museum-caption__title { color: var(--color-parchment); font-family: var(--font-display), Georgia, serif; font-size: 1rem; letter-spacing: .02em; text-transform: none; }
.artwork-feature__copy { padding-block: 4rem; }
.artwork-feature__copy h2 { max-width: 11ch; margin: 0 0 2rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(3rem, 5.2vw, 6rem); font-weight: 400; line-height: .97; letter-spacing: -.025em; }
.artwork-feature__copy > p { max-width: 35rem; color: rgba(242,235,221,.76); }

.concept { min-height: min(980px, 105svh); display: grid; place-items: center; background: var(--color-parchment); }
.concept__inner { width: min(100%, 1120px); padding-inline: var(--gutter); }
.gold-rule { width: 4.5rem; height: 1px; margin-bottom: 3rem; background: var(--color-gold); }
.concept h2 { max-width: 13ch; margin: 0; font-family: var(--font-display), Georgia, serif; font-size: clamp(3.5rem, 7.3vw, 8rem); font-weight: 400; line-height: .94; letter-spacing: -.035em; }
.concept__declarations { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; margin-top: clamp(3rem, 7vw, 6rem); }
.concept__declarations p { max-width: 21ch; margin: 0; font-family: var(--font-display), Georgia, serif; font-size: clamp(1.75rem, 2.8vw, 3rem); line-height: 1.16; }
.concept__expansion { max-width: 45rem; margin: 4rem 0 0 auto; color: var(--color-stone); }

.selected-work { background: #ded2bf; }
.selected-work__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(5rem, 9vw, 9rem); }
.selected-work__heading .eyebrow { margin-bottom: .6rem; }
.selected-work__heading h2 { max-width: 11ch; margin: 0; font-family: var(--font-display), Georgia, serif; font-size: clamp(3.25rem, 6.5vw, 7rem); font-weight: 400; line-height: .92; text-align: right; }
.selected-work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.selected-item { padding-top: 1.75rem; border-top: 1px solid rgba(28,25,21,.35); }
.selected-item--teaching { grid-column: 1 / span 5; }
.selected-item--writing { grid-column: 7 / span 5; margin-top: 9rem; }
.selected-item__meta { color: var(--color-stone); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.selected-item h3 { margin: 1.5rem 0 1rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(2.5rem, 4.5vw, 5rem); font-weight: 400; line-height: .96; }
.selected-item > p:not(.eyebrow), .selected-item--art__copy > p { max-width: 35rem; }
.selected-item--art { grid-column: 2 / span 11; display: grid; grid-template-columns: minmax(0, 7fr) minmax(17rem, 3fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: end; margin-top: clamp(7rem, 13vw, 13rem); border-top: 0; padding-top: 0; }
.selected-item--art figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.selected-item--art .museum-caption { color: var(--color-stone); }
.selected-item--art .museum-caption__title { color: var(--color-carbon); }
.selected-item--art__copy { padding-bottom: 4rem; }

.about { background: var(--color-parchment); }
.about__grid { align-items: start; }
.about__portrait { grid-column: 1 / span 6; }
.about__portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 35%; filter: saturate(.88) contrast(.98); }
.about__copy { grid-column: 8 / span 5; padding-top: clamp(3rem, 8vw, 8rem); }
.about__copy h2 { max-width: 8ch; margin-bottom: 2.5rem; }
.about__copy p { max-width: 39rem; color: #4c463e; }

.closing { min-height: 92svh; display: grid; place-items: center; color: var(--color-parchment); background: var(--color-obsidian); }
.closing__inner { width: min(100%, 1280px); padding-inline: var(--gutter); }
.closing h2 { margin: 0; font-family: var(--font-display), Georgia, serif; font-size: clamp(3.5rem, 7.4vw, 8rem); font-weight: 400; line-height: .97; letter-spacing: -.035em; }
.closing h2 span { display: block; }
.closing h2 span:last-child { margin-left: clamp(0rem, 8vw, 8rem); color: #d8c39a; }
.closing__paths { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.closing__paths a { display: flex; justify-content: space-between; padding: 1.25rem; border-right: 1px solid var(--line-light); font-size: .76rem; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.closing__paths a:last-child { border-right: 0; }
.closing__inner > p { margin-top: 2rem; color: rgba(242,235,221,.65); font-size: .84rem; }
.closing__inner > p a { color: var(--color-parchment); text-underline-offset: .25rem; }

.site-footer { color: rgba(242,235,221,.6); background: var(--color-obsidian); border-top: 1px solid var(--line-light); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem var(--gutter); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__inner div { display: flex; gap: 1.25rem; align-items: baseline; }
.site-footer strong { color: var(--color-parchment); font-size: .74rem; }
.site-footer a { text-underline-offset: .25rem; }
.site-footer p { margin: 0; text-align: right; }

.content-page { min-height: 70svh; padding: clamp(9rem, 14vw, 13rem) 0 var(--section-space); color: var(--color-carbon); background: var(--color-parchment); }
.content-page__inner { width: min(calc(100% - (2 * var(--gutter))), 860px); margin-inline: auto; }
.content-page h1 { margin: 0 0 2.5rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 400; line-height: .95; letter-spacing: -.03em; }
.content-page h2 { margin: 3.5rem 0 1rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; }
.content-page h3 { margin: 2.5rem 0 1rem; font-family: var(--font-display), Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; line-height: 1.1; }
.content-page p, .content-page li { color: #4c463e; }
.content-page a { text-underline-offset: .2rem; }
.content-page article + article { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line-dark); }

@keyframes hero-settle { from { transform: scale(1.02); } to { transform: scale(1); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  .reveal { animation: reveal both linear; animation-timeline: view(); animation-range: entry 2% cover 28%; }
}

@media (max-width: 1023px) {
  .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .teaching__scripture { grid-column: 1 / span 4; }
  .teaching__copy { grid-column: 5 / span 4; }
  .sermon-feature { grid-column: 2 / span 7; }
  .artwork-feature__grid { grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); gap: 2.5rem; }
  .about__portrait { grid-column: 1 / span 4; }
  .about__copy { grid-column: 5 / span 4; }
}

@media (max-width: 767px) {
  :root { --gutter: clamp(1.25rem, 6vw, 1.5rem); --section-space: clamp(5rem, 22vw, 7rem); }
  body { line-height: 1.66; }
  .desktop-nav { display: none; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary { cursor: pointer; list-style: none; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: '+'; margin-left: .65rem; color: #d8c39a; }
  .mobile-nav[open] summary::after { content: '−'; }
  .mobile-nav nav { position: absolute; top: 2.2rem; right: 0; display: grid; width: min(16rem, calc(100vw - 2.5rem)); padding: .75rem 1.25rem; border: 1px solid var(--line-light); background: rgba(18,17,15,.97); box-shadow: 0 1.25rem 4rem rgba(0,0,0,.25); }
  .mobile-nav nav a { padding-block: .8rem; border-bottom: 1px solid var(--line-light); }
  .mobile-nav nav a:last-child { border-bottom: 0; }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .hero__art { inset: 0; }
  .hero__art img { object-position: 42% 22%; }
  .hero__shade { background: linear-gradient(180deg, rgba(18,17,15,.22) 0%, rgba(18,17,15,.04) 31%, rgba(18,17,15,.56) 54%, #12110f 89%); }
  .hero__content { justify-content: flex-end; width: 100%; min-height: 100svh; padding: 6rem var(--gutter) 4.5rem; }
  .hero__content .eyebrow { margin-bottom: .9rem; }
  .hero h1 { max-width: 7ch; font-size: clamp(3.7rem, 18vw, 5.2rem); }
  .hero__identity { margin-top: 1.25rem; }
  .hero__support { max-width: 31rem; margin-top: .7rem; font-size: .91rem; line-height: 1.55; }
  .hero__link { margin-top: 1.25rem; }
  .hero__caption { display: none; }
  .teaching__scripture, .teaching__copy, .sermon-feature, .about__portrait, .about__copy { grid-column: 1 / -1; }
  .teaching blockquote { margin-top: 4rem; }
  .teaching__copy { padding-top: 4.5rem; }
  .sermon-feature { margin-top: 5rem; }
  .artwork-feature__grid { display: flex; flex-direction: column; gap: 0; padding-inline: 0; }
  .artwork-feature__figure { order: 1; }
  .artwork-feature__figure img { width: 100%; }
  .artwork-feature__figure .museum-caption { padding-inline: var(--gutter); }
  .artwork-feature__copy { order: 2; padding: 5rem var(--gutter) 0; }
  .concept { min-height: auto; padding-block: clamp(8rem, 35vw, 12rem); }
  .concept__declarations { grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; }
  .concept__expansion { margin-top: 4rem; }
  .selected-work__heading { display: block; margin-bottom: 5rem; }
  .selected-work__heading h2 { text-align: left; }
  .selected-work__grid { grid-template-columns: 1fr; gap: 0; }
  .selected-item--teaching, .selected-item--writing, .selected-item--art { grid-column: auto; }
  .selected-item--writing { margin-top: 5rem; }
  .selected-item--art { display: flex; flex-direction: column; gap: 3rem; margin-top: 6rem; }
  .selected-item--art__copy { padding-bottom: 0; }
  .about__copy { padding-top: 4.5rem; }
  .closing { min-height: auto; padding-block: clamp(8rem, 30vw, 12rem); }
  .closing h2 span:last-child { margin: 1.25rem 0 0; }
  .closing__paths { grid-template-columns: 1fr 1fr; }
  .closing__paths a:nth-child(2) { border-right: 0; }
  .closing__paths a:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__inner div { flex-direction: column; gap: .25rem; }
  .site-footer p { grid-column: 1 / -1; text-align: left; }
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 359px) {
  .hero h1 { font-size: 3.35rem; }
  .hero__identity { font-size: .74rem; letter-spacing: .03em; }
  .closing__paths { grid-template-columns: 1fr; }
  .closing__paths a, .closing__paths a:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .closing__paths a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero__art img, .hero__content, .reveal { transform: none !important; opacity: 1 !important; animation: none !important; }
}
