/*
Theme Name: Pushtikona
Description: Editorial WordPress theme for the Pushtikona project.
Version: 1.0.0
Text Domain: pushtikona
*/
:root {
    --ink: #242060;
    --body: #52495e;
    --paper: #fbf8f1;
    --cream: #f3eddf;
    --white: #fff;
    --gold: #efbf55;
    --link: #403581;
    --rule: #ddd3c3;
    --page: min(76rem, calc(100% - 2.5rem));
    color: var(--body);
    font-family: system-ui, sans-serif;
    font-size: 100%;
    line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); }
[hidden] { display: none !important; }
.wrap { width: var(--page); margin-inline: auto; }
h1, h2, h3 { color: var(--ink); font-family: Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 1.15rem + 4vw, 4.75rem); letter-spacing: -0.027em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem); margin: 2em 0 0.55em; }
h3 { font-size: clamp(1.18rem, 1.05rem + 0.7vw, 1.5rem); }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.skip-link { position: absolute; top: 0.6rem; left: 0.8rem; transform: translateY(-180%); background: var(--white); padding: 0.6rem 1rem; z-index: 5; }
.skip-link:focus { transform: translateY(0); }
img, video { display: block; max-inline-size: 100%; block-size: auto; }
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6.75rem; }
.site-brand a { display: inline-flex; color: var(--ink); font-weight: 700; }
.site-brand img { width: clamp(5.5rem, 9vw, 7.25rem); height: auto; }
.primary-menu ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem 0.9rem; list-style: none; margin: 0; padding: 0; }
.primary-menu a, .menu-toggle { font-size: 0.95rem; font-weight: 650; padding: 0.55rem 0.35rem; min-height: 2.75rem; display: inline-flex; align-items: center; }
.primary-menu a { text-decoration: none; color: var(--ink); }
.primary-menu a[aria-current="page"], .primary-menu a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-toggle { border: 1px solid var(--rule); border-radius: 0.35rem; background: var(--paper); color: var(--ink); padding-inline: 1rem; cursor: pointer; }
.home-hero { background: var(--paper); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(3rem, 8vw, 7rem); }
.hero-copy p, .page-header p { font-size: clamp(1.05rem, 1rem + 0.6vw, 1.32rem); max-width: 47ch; margin-block: 1.3rem 0; }
.hero-art img { margin-inline: auto; width: min(100%, 28rem); }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; }
.button, input[type="submit"] { display: inline-flex; align-items: center; min-height: 2.9rem; border: 1px solid transparent; border-radius: 0.38rem; padding: 0.65rem 1.1rem; background: var(--gold); color: var(--ink); font: inherit; font-weight: 720; text-decoration: none; cursor: pointer; }
.button:hover, input[type="submit"]:hover { background: #e6aa38; }
.subtle-link { font-weight: 650; }
.page-header { background: var(--paper); padding-block: clamp(2.3rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.page-header h1 { max-width: 25ch; }
.body-copy { padding-block: clamp(1.85rem, 5vw, 4.5rem); }
.body-copy > :first-child { margin-top: 0; }
.body-copy :is(p, ul, ol, blockquote) { max-width: 72ch; overflow-wrap: anywhere; }
.body-copy img { max-width: min(100%, 48rem); }
.body-copy a[href$=".pdf"], .body-copy a[href$=".mp4"] { font-weight: 650; }
.body-copy table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.body-copy :is(th,td) { border: 1px solid var(--rule); padding: 0.6rem; }
.body-copy video { width: min(100%, 50rem); background: var(--ink); border-radius: 0.45rem; }
.resource-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1.2rem; }
.resource { border-top: 1px solid var(--rule); padding-block: 1rem; }
.resource a { display: block; }
.resource img { width: 100%; max-height: 11rem; object-fit: contain; object-position: left center; margin-bottom: 0.65rem; }
.resource h3 { margin: 0; }
.partner-copy { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); align-items: start; gap: 1.7rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.partner-copy p:first-child { margin-top: 0; }
.wp-block-details { max-width: 53rem; border: 1px solid var(--rule); border-radius: 0.4rem; margin-block: 0.75rem; padding: 0.8rem 1rem; }
.wp-block-details summary { color: var(--ink); font-weight: 650; cursor: pointer; min-height: 2rem; }
.wpcf7 { max-width: 42rem; }
.wpcf7 label { display: block; color: var(--ink); font-weight: 630; }
.wpcf7 :is(input:not([type="submit"]),textarea,select) { color: var(--ink); font: inherit; width: 100%; padding: 0.7rem 0.8rem; margin-top: 0.3rem; border: 1px solid #87768d; border-radius: 0.35rem; background: var(--white); }
.site-footer { color: var(--white); background: var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-block: 2.1rem; }
.footer-inner p { margin: 0.35rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: center; }
.site-footer a { color: var(--white); }
.site-footer a:focus-visible { outline-color: var(--gold); }
@media (max-width: 58rem) {
    .header-inner { flex-wrap: wrap; gap: 0.35rem 1rem; padding-block: 0.75rem; min-height: auto; }
    .primary-menu { width: 100%; }
    .primary-menu ul { justify-content: flex-start; }
}
@media (max-width: 42rem) {
    :root { --page: calc(100% - 2rem); }
    .hero-grid { grid-template-columns: 1fr; padding-block: 2.35rem 2.5rem; gap: 1.65rem; }
    .hero-art img { max-width: 19rem; }
    .partner-copy { grid-template-columns: 1fr; gap: 1rem; }
    .partner-copy img { max-width: 8rem; }
}
