/* site-kit components. Values come from tokens.css and the site brand.css; never edit in a site. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* nav */
.site-nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(11, 13, 16, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 1.25rem; }
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-size: 1.4rem; letter-spacing: -0.03em; color: var(--text); }
.logo b { font-weight: 700; }
.logo span { font-weight: 200; color: var(--accent); margin-left: 0.3em; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links .nav-cta { background: var(--accent); color: #0b0d10; padding: 0.45rem 1rem; border-radius: 999px; font-weight: 700; }
.nav-links .nav-cta:hover { color: #0b0d10; filter: brightness(1.1); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 24px; height: 24px; display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.5rem 1.25rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; font-size: 1.05rem; }
  .nav-links .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.2rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; }
.accent { color: var(--accent); }
.btn { display: inline-block; background: var(--accent); color: #0b0d10; font-weight: 700; padding: 0.85rem 1.5rem; border-radius: 999px; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #4a515c; }
.btn.ghost:hover { border-color: var(--text); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
a.card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .meta { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: auto; padding-top: 0.5rem; }
.card .links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: auto; padding-top: 0.5rem; font-size: 0.92rem; font-weight: 600; }
.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.more { display: inline-block; margin-top: 2rem; font-weight: 700; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* prose-ish blocks */
.prose { max-width: 720px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.prose p { color: var(--muted); margin-bottom: 1.1rem; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* page header (inner pages) */
.page-head { padding: 9rem 0 2rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); }

/* post list */
.post-list { list-style: none; margin-top: 2rem; }
.post-list li { border-top: 1px solid var(--border); }
.post-list li:last-child { border-bottom: 1px solid var(--border); }
.post-list a { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.5rem 0; color: var(--text); }
.post-list a:hover { text-decoration: none; }
.post-list a:hover h3 { color: var(--accent); }
.post-list time { color: var(--muted); font-size: 0.9rem; padding-top: 0.2rem; }
.post-list p { color: #c2c7ce; font-size: 0.97rem; margin-top: 0.25rem; }
@media (max-width: 640px) { .post-list a { grid-template-columns: 1fr; gap: 0.35rem; } }

/* videos */
.video-embed { position: relative; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 1.25rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.site-footer a { color: var(--muted); margin: 0 0.6rem; }
.site-footer a:hover { color: var(--text); }

/* scroll reveals: hidden state only applies when JS is running */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  a.card:hover { transform: none; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .card { padding: 1.25rem; }
}

.faq details { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0.75rem 0 0; }
.faq + .btn { margin-top: 2rem; }
.prose a.btn { text-decoration: none; }

/* link cards: whole-card links with an H3 title (southern-utah hub; reusable for nearby links) */
.hub .prose { max-width: none; }
.hub .prose > p { max-width: 720px; }
ul.link-grid { list-style: none; padding: 0; margin: 1.25rem 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
ul.link-grid > li { margin: 0; }
.prose a.link-card, .prose a.link-card:hover, .prose a.link-card:focus-visible { text-decoration: none; }
.link-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.link-card:hover, .link-card:focus-visible { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.link-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.link-card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem 1.3rem; }
.link-card-icon { color: var(--accent); margin-bottom: 0.4rem; }
.link-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; color: var(--text); }
.link-card:hover h3, .link-card:focus-visible h3 { color: var(--accent); }
.link-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
ul.link-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hub .photo-credits { margin: 2.5rem 0 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; color: var(--muted); font-size: 0.8125rem; }
.hub .photo-credits li { margin: 0 0 0.35rem; break-inside: avoid; }
.hub .photo-credits a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.hub .photo-credits a:hover { color: var(--text); }
.photo-credits-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 1000px) { ul.link-grid, ul.link-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { ul.link-grid, ul.link-grid.cols-4 { grid-template-columns: 1fr; } .hub .photo-credits { columns: 1; } }
@media (prefers-reduced-motion: reduce) { .link-card:hover, .link-card:focus-visible { transform: none; } }
/* blog posts (layout: post) */
.post { max-width: 720px; margin: 0 auto; padding: 8rem 1.5rem 3rem; }
.post-label { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); background: rgba(255, 107, 44, 0.12); padding: 0.35rem 0.85rem; border-radius: 100px; margin-bottom: 1.5rem; }
.post h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.15; margin-bottom: 1rem; }
.post .subtitle { font-size: 1.2rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.75rem; }
.post .byline { font-size: 0.85rem; color: var(--muted); margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.post .byline a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.post .video-hero { margin: 0 auto 3rem; background: #000; border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.post .video-embed { position: relative; padding-bottom: 177.78%; height: 0; }
.post .video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.post .video-hero-caption { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }

.post-content { font-size: 1.125rem; line-height: 1.75; color: var(--text); }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content h2 { font-size: 1.75rem; margin-top: 3.5rem; margin-bottom: 1.25rem; line-height: 1.25; }
.post-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.post-content code { font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace; font-size: 0.875em; background: var(--surface-2); padding: 0.15em 0.4em; border-radius: 4px; color: var(--text); }
.post-content pre { font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace; font-size: 0.85em; background: #07090c; color: #e2e8f0; border: 1px solid var(--border); padding: 1.25rem 1.5rem; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; margin: 2rem 0; }
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content strong { font-weight: 700; color: var(--text); }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.25rem; margin: 1.75rem 0; color: var(--muted); font-style: italic; }
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.5rem; padding-left: 0.5rem; }
.post-content li { margin-bottom: 0.5rem; line-height: 1.6; }
.post-content img { max-width: 100%; height: auto; }
.post-content figure { margin: 2.5rem -1rem; }
.post-content figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--border); }
.post-content figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.75rem; padding: 0 1rem; line-height: 1.5; font-style: italic; }
.post-content .post-img { width: 100%; max-width: 780px; display: block; margin: 1.5rem auto; border-radius: 6px; }
.post-content .post-img-lead { margin: 0 auto 2rem; }
.post-content .post-img-tight { margin: 1.5rem auto 0.5rem; }
.post-content .post-img-dark { background: #000; }
.post-content .post-img-narrow { max-width: 420px; }
.post-content .post-table { width: 100%; max-width: 780px; margin: 1.5rem auto; border-collapse: collapse; font-size: 0.95rem; }
.post-content .post-table tr { border-bottom: 1px solid var(--border); }
.post-content .post-table tbody tr:last-child { border-bottom: 0; }
.post-content .post-table thead tr { border-bottom: 1px solid #4a515c; }
.post-content .post-table th, .post-content .post-table td { padding: 0.5rem; }
.post-content .post-table th { text-align: left; }
.post-content .post-caption-pulled { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: -0.5rem; }
.post-content .post-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.post-content .post-footnotes { font-size: 0.875rem; color: var(--muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.post-content hr + .post-bio, .post-content hr + .post-footnotes { border-top: 0; padding-top: 0; margin-top: 0; }
.post-bio { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); font-style: italic; }

.post-related { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.post-related h3 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1.25rem; }
.post-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.post-related a { color: var(--text); font-size: 0.95rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.post-related a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.post-related em { color: var(--muted); font-style: normal; font-size: 0.9rem; }
@media (max-width: 640px) {
  .post { padding: 6rem 1.25rem 2rem; }
  .post-content figure { margin: 2rem -0.5rem; }
  .post .video-hero { max-width: 100%; }
}


/* photo with credit (figure.photo-fig) */
.photo-fig { margin: 2rem 0; }
.photo-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.photo-fig figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.photo-fig figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
