:root {
  --orange: #ef7d00;
  --orange-dark: #e15c11;
  --orange-soft: #fff0df;
  --graphite: #26282a;
  --graphite-2: #3a3c3e;
  --cream: #fffaf0;
  --paper: #fffdf7;
  --beige: #ead9bc;
  --moss: #52633d;
  --green: #87a428;
  --green-dark: #587d18;
  --white: #fff;
  --shadow: 0 16px 45px rgba(48, 37, 24, .12);
  --radius: 22px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--graphite); background: var(--cream); font-family: "Museo Sans", "Segoe UI", Arial, sans-serif; font-size: 17px; font-weight: 400; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: -1; background-image: radial-gradient(#9d8060 .45px, transparent .65px); background-size: 7px 7px; }
img { max-width: 100%; height: auto; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 10000; color: #fff; background: var(--graphite); padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 14px; }

h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--graphite); font-family: "Museo Sans", "Segoe UI", Arial, sans-serif; font-weight: 700; line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5.8vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.2em; }
.eyebrow { margin: 0 0 10px; color: var(--orange-dark); font-size: .79rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; margin: 0 9px 3px 0; border-radius: 4px; background: currentColor; }
.eyebrow.center::before { display: none; }
.eyebrow.light { color: #ffd9ad; }
.center { text-align: center; }
.section-title { margin-bottom: 34px; }
.section-tight { padding: 74px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading .section-title { margin-bottom: 0; }
.button, input[type="submit"], button.tygryski-submit { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 2px solid var(--orange); border-radius: 999px; color: #fff; background: var(--orange); box-shadow: 0 8px 20px rgba(239,108,0,.22); font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible, input[type="submit"]:hover { color: #fff; background: var(--orange-dark); border-color: var(--orange-dark); box-shadow: 0 10px 28px rgba(185,73,0,.3); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 16px; font-size: .9rem; }
.button-light { color: var(--graphite); background: #fff; border-color: #fff; box-shadow: none; }
.button-light:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
.text-link { font-weight: 850; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(81,62,37,.14); background: rgba(255,250,240,.94); box-shadow: 0 4px 20px rgba(47,35,24,.06); backdrop-filter: blur(14px); }
.header-map { position: absolute; inset: 0; opacity: .05; pointer-events: none; background-image: repeating-linear-gradient(45deg, var(--orange) 0 1px, transparent 1px 19px); }
.header-inner { position: relative; display: flex; min-height: 84px; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 252px; color: var(--graphite); text-decoration: none; }
.brand:hover { color: var(--graphite); }
.brand-patch, .custom-logo { width: 63px; height: 63px; object-fit: cover; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 12px rgba(42,32,22,.2); }
.brand-patch { clip-path: circle(47% at 50% 50%); }
.custom-logo-link { line-height: 0; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: "Museo Sans", "Segoe UI", Arial, sans-serif; font-size: 1.08rem; font-weight: 700; }
.brand-copy small { margin-top: 5px; color: #6a645c; font-size: .72rem; }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: 10px 10px; border-radius: 10px; color: var(--graphite); font-size: .87rem; font-weight: 750; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--orange-dark); background: var(--orange-soft); }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 8px; border: 0; border-radius: 10px; background: var(--orange-soft); cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--graphite); }

.hero { position: relative; min-height: 700px; overflow: hidden; background: #ead8b8; }
.hero-image { position: absolute; inset: 0; background: url('../images/hero.webp') center center / cover no-repeat; }
.hero-inner { position: relative; display: flex; min-height: 700px; align-items: center; }
.hero-copy { width: min(49%, 560px); padding: 80px 0; }
.hero-copy h1 { max-width: 650px; }
.hero-lead { max-width: 570px; color: #4a4843; font-size: clamp(1.06rem, 1.7vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card { position: relative; display: flex; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; padding: 26px 20px; overflow: hidden; border: 1px solid #eadbc6; border-radius: var(--radius); color: var(--graphite); background: var(--paper); box-shadow: 0 8px 26px rgba(60,45,28,.07); text-align: center; text-decoration: none; transition: transform .22s ease, border .22s ease, box-shadow .22s ease; }
.quick-card::after { content: "🐾"; position: absolute; right: -8px; bottom: -28px; color: var(--orange); font-size: 5rem; opacity: .06; transform: rotate(-20deg); }
.quick-card:hover { color: var(--graphite); border-color: #efb580; box-shadow: var(--shadow); transform: translateY(-5px); }
.quick-card.locked { color: #fff; border-color: var(--graphite); background: var(--graphite); }
.quick-card.locked span { color: #e7ded1; }
.quick-card strong { display: block; margin: 6px 0; font-family: "Museo Sans", "Segoe UI", Arial, sans-serif; font-size: 1.23rem; font-weight: 700; }
.quick-card > span:not(.quick-icon) { color: #6c665e; font-size: .91rem; }
.quick-icon { font-size: 2.2rem; }

.paper-section { padding: 82px 0; background: #f3e8d5; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid rgba(111,83,47,.15); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 30px rgba(47,34,20,.08); }
.post-thumb { display: block; height: 220px; overflow: hidden; background: linear-gradient(135deg, #ffa24f, #ef6c00); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.035); }
.post-placeholder { display: grid; height: 100%; place-items: center; color: rgba(255,255,255,.65); font-size: 4rem; }
.post-card-body { padding: 24px; }
.post-card h3 a { color: var(--graphite); text-decoration: none; }
.post-card h3 a:hover { color: var(--orange-dark); }
.post-card-body > p:not(.post-meta) { color: #625f59; font-size: .95rem; }
.post-meta { margin: 0 0 8px; color: var(--orange-dark); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.events-home { padding: 86px 0; }
.tygryski-events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.event-card { position: relative; min-height: 260px; padding: 24px; border: 1px solid #e7d8c1; border-radius: 18px; background: var(--paper); }
.event-card::before { content: ""; position: absolute; left: 0; top: 25px; bottom: 25px; width: 4px; border-radius: 4px; background: var(--orange); }
.event-date { display: flex; width: 62px; height: 65px; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 14px; color: #fff; background: var(--graphite); line-height: 1; }
.event-date strong { font: 700 1.7rem "Museo Sans", "Segoe UI", Arial, sans-serif; }
.event-date span { margin-top: 4px; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.event-card h3 { font-size: 1.2rem; }
.event-card p { color: #68645e; font-size: .9rem; }
.event-card.placeholder { border-style: dashed; opacity: .78; }

.join-banner { padding: 90px 0; background: #efe3cd; }
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(35px, 7vw, 90px); }
.join-illustration img { display: block; aspect-ratio: 1; border: 10px solid rgba(255,255,255,.72); border-radius: 46% 54% 50% 48% / 52% 45% 55% 48%; box-shadow: var(--shadow); object-fit: cover; }
.join-copy p:not(.eyebrow) { max-width: 620px; color: #5f5b54; font-size: 1.06rem; }
.parent-zone-cta { position: relative; overflow: hidden; padding: 74px 0; color: #fff; background: var(--graphite); }
.parent-zone-cta::after { content: "🐾"; position: absolute; right: 7%; top: -65px; color: #fff; font-size: 13rem; opacity: .035; transform: rotate(-16deg); }
.parent-zone-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.parent-zone-inner h2 { color: #fff; }
.parent-zone-inner p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: #dedbd6; }

.site-main { padding: 42px 0 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; color: #837b70; font-size: .82rem; }
.breadcrumbs a { color: var(--orange-dark); }
.page-paper { padding: clamp(28px, 6vw, 68px); border: 1px solid rgba(113,83,48,.14); border-radius: 26px; background: rgba(255,253,247,.96); box-shadow: var(--shadow); }
.entry-header { max-width: 850px; margin-bottom: 34px; }
.entry-header h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.entry-content > * { max-width: 850px; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content h2 { margin-top: 1.7em; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { margin: 2em 0; padding: 20px 26px; border-left: 5px solid var(--orange); border-radius: 0 14px 14px 0; background: var(--orange-soft); }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--orange); }
.page-featured { margin: 0 0 34px; }
.page-featured img { display: block; width: 100%; border-radius: 18px; }
.archive-header { max-width: 760px; margin: 26px 0 42px; }
.archive-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.archive-grid { margin-bottom: 45px; }
.nav-links { display: flex; gap: 12px; justify-content: center; }
.page-numbers { padding: 8px 14px; border-radius: 9px; background: #fff; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--orange); }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed #c8ac85; border-radius: 16px; background: rgba(255,255,255,.45); text-align: center; }
.error-page { text-align: center; }
.comments-area { margin-top: 54px; padding-top: 34px; border-top: 1px solid #e2d3bd; }
.comment-list { margin: 24px 0; padding: 0; list-style: none; }
.comment-list .comment { margin-bottom: 14px; padding: 18px; border-radius: 14px; background: #fffaf0; }
.comment-meta { font-size: .82rem; }
.comment-content { margin-top: 12px; }
.comment-form label { display: block; font-weight: 700; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 12px; border: 1px solid #cbbba3; border-radius: 10px; background: #fff; }

.tygryski-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.tygryski-panel-card { padding: 24px; border: 1px solid #ead8bd; border-radius: 18px; background: #fffaf0; }
.tygryski-panel-card h3 { margin-bottom: 8px; }
.tygryski-notice { margin: 18px 0; padding: 15px 18px; border-left: 5px solid var(--orange); border-radius: 9px; background: #fff0df; }
.tygryski-notice.error { border-color: #ad2929; background: #fff0f0; }
.tygryski-notice.success { border-color: #3f7546; background: #eef8ef; }
.tygryski-form { max-width: 620px; margin: 25px 0; }
.tygryski-form label { display: block; margin: 0 0 15px; font-weight: 750; }
.tygryski-form input[type="text"], .tygryski-form input[type="email"], .tygryski-form input[type="password"], .tygryski-form textarea, .tygryski-form select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cbbba3; border-radius: 10px; color: var(--graphite); background: #fff; }
.tygryski-form input:focus, .tygryski-form textarea:focus { outline: 3px solid rgba(239,108,0,.24); border-color: var(--orange); }
.tygryski-private-list { display: grid; gap: 14px; margin: 20px 0; }
.tygryski-private-item { padding: 18px; border: 1px solid #ead8bd; border-radius: 14px; background: #fff; }
.tygryski-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tygryski-gallery-grid a { display: block; overflow: hidden; border-radius: 12px; background: #eee; }
.tygryski-gallery-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tygryski-forum-topics { display: grid; gap: 10px; margin: 25px 0; }
.tygryski-topic { padding: 18px 20px; border: 1px solid #e3d5c0; border-radius: 13px; background: #fff; }
.tygryski-topic a { color: var(--graphite); font-weight: 850; text-decoration: none; }
.tygryski-topic-meta { color: #766e64; font-size: .82rem; }
.tygryski-replies { margin: 24px 0; }
.tygryski-reply { margin: 0 0 12px; padding: 16px; border-left: 4px solid #e6b27e; border-radius: 0 10px 10px 0; background: #fffaf0; }

.site-footer { position: relative; padding-top: 70px; color: #e8e4dd; background: #222425; }
.footer-trees { position: absolute; left: 0; right: 0; top: 0; height: 36px; opacity: .13; background: linear-gradient(135deg, transparent 22px, #fff 23px, transparent 24px) 0 0/48px 36px repeat-x; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr; gap: 60px; padding-bottom: 45px; }
.footer-grid h2 { color: #fff; font: 800 1rem "Trebuchet MS", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid p { margin: 0 0 .5em; color: #c9c5be; font-size: .92rem; }
.footer-grid a { color: #ffd29c; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-about { display: flex; align-items: flex-start; gap: 18px; }
.footer-about > img { border-radius: 50%; clip-path: circle(47% at 50% 50%); }
.footer-about strong { color: #fff; font-family: "Museo Sans", "Segoe UI", Arial, sans-serif; font-size: 1.08rem; font-weight: 700; }
.footer-zhp { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-zhp img { width: 82px; height: 82px; object-fit: contain; border-radius: 0; box-shadow: none; clip-path: none; }
.footer-zhp span { max-width: 250px; color: #fff; font-size: .82rem; line-height: 1.35; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); color: #aaa8a3; font-size: .8rem; }
.footer-bottom a { color: #ddd8d0; }

@media (max-width: 1080px) {
  .header-inner { min-height: 76px; }
  .brand { margin-right: auto; }
  .parent-login { order: 2; }
  .menu-toggle { display: block; order: 3; }
  .main-navigation { position: fixed; left: 20px; right: 20px; top: 86px; display: none; max-height: calc(100vh - 105px); margin: 0; padding: 18px; overflow: auto; border: 1px solid #e7d6bd; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; }
  .main-navigation a { padding: 12px 14px; }
  .quick-grid, .tygryski-events { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .brand-patch, .custom-logo { width: 52px; height: 52px; }
  .parent-login { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
  .parent-login span { font-size: 1rem; }
  .hero, .hero-inner { min-height: 720px; }
  .hero-image { background-position: 58% center; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,250,240,.96) 0, rgba(255,250,240,.9) 48%, rgba(255,250,240,.12) 78%); }
  .hero-inner { align-items: flex-start; z-index: 1; }
  .hero-copy { width: 100%; padding: 54px 0 280px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .quick-grid, .post-grid, .tygryski-events, .join-grid, .footer-grid, .tygryski-panel-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 178px; }
  .section-heading, .parent-zone-inner { align-items: flex-start; flex-direction: column; }
  .section-tight, .paper-section, .events-home, .join-banner { padding: 62px 0; }
  .join-illustration { max-width: 520px; margin-inline: auto; }
  .page-paper { padding: 28px 20px; }
  .site-main { padding-top: 24px; }
  .tygryski-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 30px; }
}

@media (max-width: 480px) {
  .brand-copy strong { max-width: 140px; font-size: .92rem; }
  .quick-grid, .tygryski-events, .tygryski-gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.55rem; }
  .hero-image { background-position: 62% center; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .parent-zone-cta, .button { display: none !important; }
  body { background: #fff; color: #000; }
  .page-paper { padding: 0; border: 0; box-shadow: none; }
}
