/*
Theme Name: Zane the Dane
Description: A photo-led journal, games, and Denver shelter resource hub.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: zane-the-dane
*/
:root {
  --ink: #1e3029;
  --muted: #43544a;
  --paper: #fbf8ef;
  --green: #1d4c39;
  --peach: #f7ddce;
  --mint: #dce9cf;
  --lilac: #e6dff0;
  --line: #dcded0;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #bb5226; outline-offset: 4px; }
h1, h2, h3 { font: 700 1em/1.03 var(--display); letter-spacing: -.035em; margin: 0 0 .4em; }
h1 { font-size: clamp(3rem, 7.5vw, 6.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
p, figure { margin: 0 0 1em; }
.wrap { width: min(1220px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; z-index: 10; background: white; padding: 10px; }
.skip-link:focus { top: 8px; left: 8px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 81px; }
.brand-link, .footer-brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; font: 700 26px/1 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.brand-link em { font-weight: 400; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--green); color: #fff7df; border-radius: 50%; }
.custom-logo { max-width: 170px; max-height: 65px; object-fit: contain; }
.site-header nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.site-header nav a { font-weight: 650; font-size: .9rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }
.button, .menu-toggle { display: inline-flex; align-items: center; gap: 12px; justify-content: center; border-radius: 100px; padding: 11px 19px; border: 1px solid var(--green); color: var(--green); background: transparent; font-size: .9rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover, .menu-toggle:hover { background: var(--mint); }
.primary { background: var(--green); color: white; }
.primary:hover { background: #123727; }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 64px; padding-block: 45px 48px; }
.kicker, .post-category { font-weight: 800; font-size: .72rem; letter-spacing: .14em; color: var(--green); text-transform: uppercase; }
.kicker span { display: inline-block; width: 9px; height: 9px; background: #b74b2b; border-radius: 50%; margin-right: 8px; }
.hero h1 { max-width: 7ch; line-height: .93; letter-spacing: -.075em; margin-bottom: .25em; }
.hero h1 span { color: #a94126; }
.hero-intro { max-width: 39ch; font-size: clamp(1.02rem, 1.8vw, 1.23rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: clamp(365px, 39vw, 528px); object-fit: cover; object-position: 50% 52%; border-radius: 26px; }
.hero-photo figcaption { position: absolute; right: 14px; bottom: 14px; padding: 6px 13px; border-radius: 99px; font: italic 1rem var(--display); background: var(--paper); }
.explore { background: #f0efe3; padding-block: 34px 42px; border-block: 1px solid #e5e4d6; }
.explore h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .65em; }
.tile-grid, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tile { position: relative; display: block; padding: 20px 23px 22px; border-radius: 19px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.tile:hover { border-color: var(--green); }
.mint { background: var(--mint); }
.peach { background: var(--peach); }
.lilac { background: var(--lilac); }
.tile p { margin: 0; font-size: .95rem; }
.tile-symbol { display: grid; place-items: center; height: 38px; width: 38px; border-radius: 50%; background: rgba(255,255,255,.62); font-size: 1.14rem; margin-bottom: 14px; }
.tile-arrow { position: absolute; right: 18px; top: 19px; font-size: 1.2rem; }
.home-journal, .home-extra, .listing { padding-block: 55px; }
.section-heading { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; justify-content: space-between; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fffdf7; }
.post-card img { aspect-ratio: 1.6; width: 100%; height: auto; object-fit: cover; object-position: center 35%; }
.post-card-body { padding: 17px 19px; }
.post-card-body h3 a { color: var(--ink); text-decoration: none; }
.post-card-body h3 a:hover { text-decoration: underline; }
.post-card-body p:last-child { margin: 0; }
.shelter-cta { margin: 45px 0; padding: 28px 34px; background: var(--mint); display: flex; align-items: center; gap: 20px; justify-content: space-between; border-radius: 22px; }
.shelter-cta h2 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
.shelter-cta p { margin: 0; }
.shelter-cta a { flex: 0 0 auto; }
.site-footer { background: #173b2e; color: #f9f5e5; margin-top: 42px; padding-block: 33px; }
.site-footer a { color: inherit; }
.footer-inner, .socials { display: flex; align-items: flex-start; gap: 14px; }
.footer-inner { justify-content: space-between; }
.footer-brand { color: inherit; font-size: 33px; margin-bottom: 13px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #afc1aa; border-radius: 50%; }
.socials a:hover { background: #2f5747; }
.socials svg { width: 19px; }
.inner-page { padding-block: 48px 20px; min-height: 55vh; }
.inner-page h1, .listing h1 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 21ch; }
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); margin-top: 1.2em; }
.prose h3 { margin-top: 1em; }
.prose li { margin-bottom: .45em; }
.prose img, .article-image { border-radius: 17px; }
.article-image { max-height: 465px; width: min(100%, 730px); object-fit: cover; object-position: center 34%; margin-bottom: 24px; }
.back-link { display: inline-block; margin-bottom: 16px; }
.wp-block-gallery { margin-block: 25px; }
.navigation.pagination { margin-top: 20px; }
.page-numbers { margin-right: 7px; }
@media (max-width: 1040px) {
  .wrap { width: calc(100% - 54px); }
  .header-inner { gap: 16px; }
  .site-header nav ul { gap: 7px 11px; }
  .hero { gap: 33px; }
}
@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr auto auto; padding-block: 12px; min-height: 66px; }
  .site-header nav { grid-column: 1/-1; grid-row: 2; }
  .site-header nav ul { justify-content: flex-start; }
  .site-header nav.collapsible { display: none; }
  .site-header nav.is-open { display: block; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .hero-photo img { height: 400px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .brand-link { font-size: 22px; gap: 6px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 22px; }
  .header-inner { gap: 8px; }
  .header-action, .menu-toggle { padding: 7px 10px; font-size: .78rem; }
  .header-action span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .hero h1 { max-width: 9ch; font-size: clamp(3.4rem, 14vw, 5.8rem); }
  .hero-photo img { height: clamp(290px, 85vw, 405px); }
  .tile-grid, .post-grid { grid-template-columns: 1fr; }
  .shelter-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
}

@font-face { font-family: 'DM Sans'; src: url('assets/dm-sans.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/instrument-serif.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
:root { --display: 'Instrument Serif', Georgia, serif; }
h1, h2, h3, .brand-link, .footer-brand { font-weight: 400; }
.hero h1 { font-size: clamp(4.3rem, 9.2vw, 8.5rem); letter-spacing: -.045em; max-width: 6.2ch; }
.brand-link { font-size: 31px; }
@media (max-width: 620px) {
  .brand-link { font-size: 25px; }
  .hero h1 { font-size: clamp(4rem, 16vw, 6.4rem); max-width: 7.4ch; }
}
@media (max-width: 370px) {
  .brand-mark { display: none; }
}
