/*
Theme Name: Warmia — Modelarstwo
Description: Motyw Olsztyńskiego Stowarzyszenia Modelarzy Warmia.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: warmia-modele
License: GNU General Public License v2 or later
*/
@import url("assets/fonts.css");
:root {
    --paper:#f7f5ef; --cream:#ede9de; --ink:#192923; --muted:#4e6158;
    --forest:#172e27; --mint:#e1ebdf; --orange:#f2a177; --line:#d6d8cb;
    --display:"Barlow Condensed","Arial Narrow",sans-serif;
    --body:"DM Sans",system-ui,sans-serif;
}
*, *::before, *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font:400 1rem/1.65 var(--body); }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; text-underline-offset:.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid #b85831; outline-offset:4px; }
h1,h2,h3 { font-family:var(--display); font-weight:700; line-height:.97; margin:0; }
p { margin:0 0 1em; }
.wrap { width:min(1320px, calc(100% - 112px)); margin-inline:auto; }
.screen-reader-text { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.screen-reader-text:focus { z-index:20; inset:12px auto auto 12px; width:auto; height:auto; padding:12px; clip-path:none; background:white; }
.warmia-top { background:var(--paper); border-bottom:1px solid var(--line); }
.top-inner { min-height:84px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:inline-flex; align-items:center; gap:13px; text-decoration:none; flex:none; }
.brand img { width:48px; height:48px; object-fit:contain; }
.brand strong { display:block; font:700 29px/.9 var(--display); text-transform:uppercase; }
.brand small { display:block; margin-top:6px; font-size:10px; font-weight:700; }
.warmia-nav { display:flex; gap:clamp(16px,2.4vw,36px); align-items:center; }
.warmia-nav a { font-size:.91rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.warmia-nav a:hover, .warmia-nav a[aria-current="page"] { text-decoration:underline; }
.top-inner .nav-toggle { display:none; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:.75em; width:max-content; max-width:100%; padding:11px 20px; min-height:46px; border:1px solid transparent; border-radius:4px; background:var(--orange); color:var(--ink); font:700 .88rem/1.35 var(--body); text-decoration:none; cursor:pointer; }
.button:hover { background:#ffc29e; }
.button-outline { background:transparent; color:inherit; border-color:currentColor; }
.button-outline:hover { background:var(--mint); color:var(--ink); }
.eyebrow { font-size:.72rem; text-transform:uppercase; letter-spacing:.15em; font-weight:700; }
.hero { background:var(--forest); color:var(--paper); }
.hero .wrap { display:grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items:stretch; min-height:540px; }
.hero-copy { padding:clamp(52px,7vw,100px) clamp(22px,4.2vw,64px) clamp(44px,6.5vw,86px) 0; align-self:center; }
.hero-copy .eyebrow { color:var(--orange); margin-bottom:22px; }
.hero h1 { font-size:clamp(64px,7.8vw,119px); letter-spacing:-.025em; line-height:.85; }
.hero h1 span { color:var(--orange); display:block; }
.hero-copy > p:not(.eyebrow) { max-width:390px; margin:25px 0 24px; color:#e4e9e1; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; }
.hero-figure { margin:0; display:grid; grid-template-rows:1fr auto; min-width:0; padding-block:28px; }
.hero-figure img { width:100%; height:100%; min-height:0; object-fit:cover; object-position:49% 53%; border-radius:5px 5px 0 0; }
.hero-figure figcaption { display:flex; justify-content:space-between; gap:10px; color:var(--paper); border:1px solid #72908270; border-top:0; border-radius:0 0 5px 5px; padding:10px 14px; font-size:.72rem; }
.hero-figure figcaption span:last-child { color:#bcd2c2; }
.section { padding-block:clamp(58px,7vw,105px); }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:26px; }
.section h2 { font-size:clamp(46px,6vw,78px); letter-spacing:-.02em; }
.section-head p { color:var(--muted); margin:10px 0 0; }
.gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.gallery-card { display:flex; flex-direction:column; border-radius:6px; overflow:hidden; background:var(--cream); text-decoration:none; }
.gallery-card img { width:100%; aspect-ratio:1.55; height:auto; object-fit:cover; }
.gallery-card span { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:11px 15px; flex:1; font:700 clamp(20px,2.4vw,30px)/1.05 var(--display); }
.gallery-card:hover { background:var(--mint); }
.gallery-card b { display:grid; place-items:center; flex:0 0 28px; height:28px; border:1px solid var(--line); border-radius:50%; font:600 1rem var(--body); }
.festival { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:30px; background:var(--mint); padding:clamp(24px,5vw,65px); border-radius:6px; }
.festival p { color:var(--muted); }
.festival h2 { max-width:12ch; }
.festival p:last-of-type { margin-bottom:20px; }
.news { background:var(--cream); }
.news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.news-card { min-width:0; display:flex; flex-direction:column; padding:22px; background:var(--paper); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.news-card time { font-size:.79rem; font-weight:700; color:var(--muted); }
.news-card h3 { margin:12px 0; font-size:clamp(27px,3vw,38px); line-height:1; }
.news-card h3 a { text-decoration:none; }
.news-card h3 a:hover { text-decoration:underline; }
.news-card p { color:var(--muted); font-size:.91rem; }
.news-card .cover { display:block; margin:-22px -22px 18px; }
.news-card .cover img { width:100%; aspect-ratio:1.7; object-fit:cover; }
.news-card .read { margin-top:auto; }
.read { font-size:.86rem; font-weight:700; }
.social-heading { margin-top:48px; }
.social-feed { margin-top:22px; }
.social-feed .cff-item { background:var(--paper); border:1px solid var(--line); }
.home-facebook .fts-jal-fb-header { display:none; }
.home-facebook .fts-simple-fb-wrapper { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.home-facebook .fts-simple-fb-wrapper > .fts-jal-single-fb-post {
    display:flex; flex-direction:column; min-width:0; width:auto; background:var(--paper);
    border:1px solid var(--line); border-radius:6px; padding:0!important; overflow:hidden;
}
.home-facebook .fts-jal-fb-right-wrap { display:flex; flex-direction:column; padding:0; flex:1; }
.home-facebook .fts-jal-fb-top-wrap { padding:14px 16px 10px; }
.home-facebook .fts-jal-fb-user-thumb, .home-facebook .fts-jal-fb-user-name { display:none!important; }
.home-facebook .fts-jal-fb-post-time { color:var(--muted); font-size:.8rem; }
.home-facebook .fts-jal-fb-link-wrap { order:-1; }
.home-facebook .fts-jal-fb-picture { display:block; float:none; width:100%; margin:0; }
.home-facebook .fts-jal-fb-picture img { width:100%; aspect-ratio:1.62; object-fit:cover; }
.home-facebook .fts-photo-caption-text { padding-inline:16px; }
.home-facebook .fts-likes-shares-etc-wrap { padding-inline:16px; }
.home-facebook .fts-jal-fb-message[hidden] { display:none!important; }
.home-facebook .facebook-excerpt { color:var(--ink); margin:7px 0 0; overflow-wrap:anywhere; }
.club-subheading { font-size:clamp(34px,4vw,48px); }
.team { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-top:17px; }
.team article { padding:16px 12px; text-align:center; background:var(--cream); border-radius:6px; }
.team img { width:110px; height:110px; margin:0 auto 12px; object-fit:cover; border-radius:50%; }
.team p { font-size:.82rem; margin:4px 0 0; color:var(--muted); }
.home-history { margin-top:36px; border-top:1px solid var(--line); padding-top:26px; }
.home-history .prose { margin-top:16px; }
.home-history .prose p { margin-bottom:.45em; }
.warmia-footer { background:var(--forest); color:var(--paper); padding-block:34px; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.footer-inner .brand img { background:var(--paper); border-radius:50%; }
.footer-inner .brand small { color:#c2d4c5; }
.footer-nav { display:flex; gap:18px; flex-wrap:wrap; font-size:.86rem; }
.page-head { background:var(--forest); color:var(--paper); padding:clamp(40px,7vw,90px) 0; }
.page-head h1 { font-size:clamp(48px,7vw,91px); max-width:20ch; }
.page-head a, .page-head .eyebrow { color:var(--orange); }
.page-head .eyebrow { margin-bottom:13px; }
.page-content { padding-block:clamp(28px,5vw,64px) 72px; }
.prose { max-width:820px; }
.prose h2, .prose h3, .prose h4 { line-height:1; margin:1.3em 0 .45em; }
.prose h2 { font-size:clamp(32px,5vw,46px); }
.prose h3 { font-size:clamp(25px,4vw,34px); }
.prose img { height:auto; }
.prose figure { max-width:100%; }
.prose iframe { max-width:100%; }
.prose .alignwide { max-width:none; }
.prose a { overflow-wrap:anywhere; }
.entry-content { overflow-wrap:anywhere; }
.table-scroll, .entry-content .wp-block-table { overflow-x:auto; }
.entry-content table { border-collapse:collapse; }
.entry-content td, .entry-content th { border:1px solid var(--line); padding:7px; }
.prose input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .prose textarea, .prose select { max-width:100%; margin-top:4px; font:inherit; padding:8px 12px; border:1px solid var(--muted); border-radius:4px; }
.prose input[type="submit"], .prose button[type="submit"] { background:var(--forest); color:var(--paper); cursor:pointer; }
.post-nav { margin-top:30px; display:flex; flex-wrap:wrap; gap:11px; }
.post-nav .page-numbers { display:inline-block; padding:6px 11px; border:1px solid var(--line); margin-right:4px; }
.post-nav .current { background:var(--mint); }
#warmia-lightbox { width:min(1040px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:12px; background:var(--forest); color:white; border:0; border-radius:6px; }
#warmia-lightbox::backdrop { background:#101a16e8; }
.gallery-full-photo { width:100%; height:min(66dvh,700px); object-fit:contain; background:#0f211b; }
#warmia-lightbox header, .gallery-controls { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#warmia-lightbox header { margin-bottom:8px; }
.gallery-caption { font-weight:700; }
.gallery-controls { margin-top:8px; }
.gallery-position { font-size:.8rem; white-space:nowrap; }
@media(max-width:1000px) {
    .wrap { width:calc(100% - 64px); }
    .hero .wrap { min-height:490px; }
    .warmia-nav { gap:16px; }
    .home-facebook .fts-simple-fb-wrapper { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .top-inner > .button { display:none; }
}
@media(max-width:700px) {
    .wrap { width:calc(100% - 32px); }
    .top-inner { min-height:66px; flex-wrap:wrap; gap:0 14px; padding-block:10px; }
    .brand img { width:40px; height:40px; }
    .brand strong { font-size:25px; }
    .top-inner .nav-toggle { display:inline-flex; margin-left:auto; }
    .warmia-nav { width:100%; padding-block:10px 5px; display:flex; flex-wrap:wrap; }
    .warmia-nav[hidden] { display:none; }
    .hero .wrap, .festival { grid-template-columns:1fr; }
    .hero-copy { padding:39px 0 22px; }
    .hero h1 { font-size:clamp(62px,13vw,96px); }
    .hero-figure { padding:0 0 22px; }
    .hero-figure img { aspect-ratio:1.65; }
    .gallery { grid-template-columns:1fr 1fr; }
    .home-facebook .fts-simple-fb-wrapper { grid-template-columns:minmax(0,1fr); }
    .team { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gallery-full-photo { height:min(60dvh,560px); }
    .gallery-controls .button { padding-inline:9px; gap:4px; }
    .gallery-card span { padding:10px; }
    .news-grid { grid-template-columns:1fr; }
    .section-head { align-items:start; flex-direction:column; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
