.theme-hatira { --c-primary: #6b3d22; --c-accent: #b88a4a; --c-bg: #f1e6d1; --c-card: #e7d6b8; --c-surface: #fbf5e9; --c-ink: #2b1d12; --c-muted: #6b5845; --c-line: #dccaa8; --f-head: "Libre Caslon Text", Georgia, "Times New Roman", serif; --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --radius: 4px; --shadow: 0 10px 26px rgba(60, 36, 16, .14); --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .24 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.theme-hatira { background: var(--paper), radial-gradient(120% 80% at 50% 0%, #f6eddc 0%, #efe2c9 60%, #e8d7b8 100%); }
.theme-hatira h1, .theme-hatira h2, .theme-hatira h3 { font-weight: 700; color: var(--c-ink); }
.theme-hatira .btn { border-radius: 3px; letter-spacing: .02em; }
.theme-hatira .btn-primary { background: var(--c-primary); box-shadow: 0 4px 12px rgba(80, 40, 16, .25); }
.btn-paper { background: #f8f0e0; color: var(--c-primary); border-color: color-mix(in srgb, var(--c-primary) 30%, #e8d9bd); }
.btn-paper:hover { background: #fff8ea; }

.topbar { background: #3b2a1d; color: rgba(255, 240, 220, .82); font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar-in a, .topbar-right { display: inline-flex; align-items: center; gap: 7px; }
.topbar-right { gap: 14px; }
.topbar .ico { width: 14px; height: 14px; }
.topbar a:hover { color: #fff; }

.masthead { position: relative; z-index: 40; }
.crest { display: grid; justify-items: center; text-align: center; padding: 22px 0 10px; color: #4a3220; }
.tree-art { width: 96px; height: auto; color: #4a3220; margin-bottom: 4px; }
.crest-logo { width: 84px; height: 84px; object-fit: contain; margin-bottom: 6px; }
.crest-name { font: 700 27px/1.1 Cinzel, var(--f-head); letter-spacing: .08em; color: #3d2818; }
.crest-sub { font: 600 11.5px Cinzel, var(--f-head); letter-spacing: .2em; color: var(--c-muted); margin-top: 3px; }
.crest-year { font: 600 11px Cinzel, var(--f-head); letter-spacing: .2em; color: var(--c-muted); margin-top: 2px; display: inline-flex; align-items: center; gap: 8px; }
.crest-year::before, .crest-year::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.navrow { position: sticky; top: 0; background: color-mix(in srgb, #f1e6d1 94%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.navrow-in { display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 58px; position: relative; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-link { position: relative; font-size: 14.5px; font-weight: 600; color: var(--c-ink); padding: 18px 0; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform .2s ease; }
.nav-link:hover, .nav-link.is-on { color: var(--c-primary); }
.nav-link:hover::after, .nav-link.is-on::after { transform: scaleX(1); }
.theme-hatira .nav-sub { top: calc(100% - 8px); background: #fbf5e9; }
.btn-join { min-height: 40px; padding: 8px 20px; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--c-line); background: #fbf5e9; color: var(--c-ink); cursor: pointer; place-items: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
.mobile-nav { display: none; }

.hh { position: relative; height: clamp(500px, 66vh, 620px); overflow: hidden; }
.hh-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hh-slide.is-on { opacity: 1; visibility: visible; }
.hh-img { position: absolute; inset: 0 0 0 28%; background: var(--bg) center / cover no-repeat; filter: sepia(.35) saturate(.9) contrast(1.02); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.hh-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(241, 230, 209, .55) 0%, rgba(241, 230, 209, 0) 40%); }
.hh-in { position: relative; height: 100%; display: flex; align-items: center; }
.hh-copy { max-width: 560px; padding-bottom: 40px; }
.hh .kicker { font: 600 12px var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 14px; }
.hh h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; margin-bottom: 18px; color: #3a2414; }
.hh-text { font-size: 17px; color: #4e3c2b; margin-bottom: 28px; max-width: 470px; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hh-slide.is-on .hh-copy > * { animation: h-rise .9s ease both; }
.hh-slide.is-on .hh-copy > *:nth-child(2) { animation-delay: .08s; }
.hh-slide.is-on .hh-copy > *:nth-child(3) { animation-delay: .16s; }
.hh-slide.is-on .hh-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes h-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hh-branch { position: absolute; right: -20px; top: -10px; width: 230px; color: #3d3020; opacity: .85; z-index: 2; pointer-events: none; transform: scaleX(-1); }
.hh-stamp-wrap { position: absolute; left: 0; right: 0; top: 34px; z-index: 3; display: flex; justify-content: flex-end; pointer-events: none; }
.hh-stamp { pointer-events: auto; width: 128px; height: 128px; margin-right: 150px; border-radius: 50%; display: grid; place-items: center; padding: 22px; text-align: center; border: 2px solid rgba(107, 61, 34, .55); outline: 1px dashed rgba(107, 61, 34, .45); outline-offset: -10px; color: rgba(90, 50, 26, .85); font: italic 700 15px/1.15 var(--f-head); transform: rotate(-10deg); background: rgba(246, 236, 216, .55); }
.hh .slider-dots { position: absolute; left: max(24px, calc((100vw - 1240px) / 2 + 24px)); bottom: 26px; display: flex; gap: 8px; z-index: 3; }
.hh .slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(107, 61, 34, .3); cursor: pointer; transition: width .2s ease; }
.hh .slider-dots button.is-on { width: 24px; border-radius: 999px; background: var(--c-primary); }

.h-kraft { position: relative; padding: 30px 0; background: var(--paper), linear-gradient(180deg, #d9b98a, #cfab78); color: #3b2614; }
.h-kraft::before, .h-kraft::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12' viewBox='0 0 60 12'%3E%3Cpath d='M0 12 6 4l7 6 8-8 7 7 6-6 8 7 7-5 6 5 5-4v14z' fill='%23d6b584'/%3E%3C/svg%3E") repeat-x; }
.h-kraft::before { top: -11px; }
.h-kraft::after { bottom: -11px; transform: scaleY(-1); background-color: transparent; }
.h-kraft-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.h-stat { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 16px; border-left: 1px solid rgba(70, 40, 16, .25); }
.h-stat:first-child { border-left: 0; }
.h-stat-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(70, 40, 16, .5); }
.h-stat-ico .ico { width: 22px; height: 22px; }
.h-stat strong { display: block; font: 700 28px/1 var(--f-head); }
.h-stat small { display: block; font-size: 13px; margin-top: 4px; opacity: .85; }
.theme-hatira .mtools { padding-top: 44px; }
.theme-hatira .mtools-card { background: #fbf5e9; border-color: var(--c-line); }
.theme-hatira .mtools-tabs button.is-on { background: var(--c-primary); border-color: var(--c-primary); }

.h-kicker { font: 600 13px var(--f-body); letter-spacing: .14em; color: var(--c-primary); margin-bottom: 10px; }
.h-kicker.light { color: #e9cf9f; }
.h-story { position: relative; padding: 64px 0 54px; overflow: hidden; }
.h-story-branch { position: absolute; right: -10px; top: 10px; width: 220px; color: #3d3020; opacity: .8; transform: scaleX(-1) rotate(-8deg); pointer-events: none; }
.h-story-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 50px; align-items: center; }
.h-story-copy h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; margin-bottom: 18px; }
.h-story-copy p { color: #4e3c2b; font-size: 16px; margin-bottom: 26px; max-width: 480px; }
.h-collage { position: relative; height: 400px; }
.h-photo { position: absolute; margin: 0; padding: 10px 10px 26px; background: #fbf7ee; box-shadow: 0 14px 30px rgba(50, 30, 12, .28); }
.h-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.45) contrast(1.05); }
.h-photo.p1 { left: 0; top: 10px; width: 46%; height: 210px; transform: rotate(-4deg); z-index: 2; }
.h-photo.p2 { right: 2%; top: 40px; width: 50%; height: 270px; transform: rotate(3deg); }
.h-photo.p3 { left: 12%; bottom: 0; width: 44%; height: 190px; transform: rotate(2deg); z-index: 3; }

.h-dark { padding: 56px 0 60px; color: rgba(250, 236, 214, .85); background: var(--paper), linear-gradient(180deg, #2b2119, #221a13); }
.h-dark-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.h-dark-head h2 { color: #f6e8cf; font-size: clamp(28px, 3vw, 36px); margin-bottom: 10px; }
.h-dark-head p { color: rgba(250, 236, 214, .72); }
.h-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.h-act { text-align: center; padding: 8px 24px; border-left: 1px solid rgba(233, 207, 159, .2); }
.h-act:first-child { border-left: 0; }
.h-act-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; color: #e0b673; margin-bottom: 12px; }
.h-act-ico .ico { width: 40px; height: 40px; stroke-width: 1.3; }
.h-act h3 { color: #f6e8cf; font-size: 19px; margin-bottom: 8px; }
.h-act p { font-size: 14px; color: rgba(250, 236, 214, .7); }

.h-sec { padding: 56px 0 20px; }
.h-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.h-head h2 { font-size: clamp(26px, 2.6vw, 32px); }
.h-head p { color: var(--c-muted); margin-top: 6px; max-width: 620px; }
.h-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.h-more .ico { width: 15px; height: 15px; }
.h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.h-card { display: grid; gap: 8px; padding: 12px 12px 18px; background: #fbf7ee; box-shadow: 0 10px 24px rgba(50, 30, 12, .14); transition: transform .25s ease; }
.h-card:nth-child(odd) { transform: rotate(-.6deg); }
.h-card:nth-child(even) { transform: rotate(.6deg); }
.h-card:hover { transform: rotate(0) translateY(-4px); }
.h-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.h-card-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35); }
.h-card strong { font: 700 19px/1.25 var(--f-head); padding: 0 4px; }
.h-card small { font-size: 14px; color: var(--c-muted); padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-hatira .post-badge { background: #3b2a1d; color: #f2dfbd; border-radius: 2px; }

.h-feed-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; }
.h-feed-grid.single { grid-template-columns: 1fr; }
.h-news { display: grid; gap: 16px; }
.h-news-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 16px; border-bottom: 1px dashed var(--c-line); }
.h-news-img { display: block; padding: 6px; background: #fbf7ee; box-shadow: 0 6px 16px rgba(50, 30, 12, .16); }
.h-news-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.4); }
.h-news-text { display: grid; gap: 6px; }
.h-news-text em { font-style: italic; font-size: 13px; color: var(--c-muted); font-family: var(--f-head); }
.h-news-text strong { font: 700 19px/1.25 var(--f-head); }
.h-news-row:hover strong { color: var(--c-primary); }
.h-news-text small { font-size: 14px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-events { display: grid; gap: 12px; }
.h-event { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: #fbf5e9; border: 1px solid var(--c-line); }
.h-date { display: grid; justify-items: center; align-content: center; height: 64px; border: 1.5px solid var(--c-primary); color: var(--c-primary); outline: 1px solid var(--c-primary); outline-offset: -5px; line-height: 1; }
.h-date strong { font: 700 24px var(--f-head); }
.h-date span { font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-top: 3px; }
.h-event-text { display: grid; gap: 4px; }
.h-event-text strong { font: 700 17px/1.25 var(--f-head); }
.h-event-text small { font-size: 13px; color: var(--c-muted); }
.h-event:hover strong { color: var(--c-primary); }

.h-archive { margin-top: 40px; padding: 50px 0; background: var(--paper), linear-gradient(180deg, #ecdfc6, #e5d4b4); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.h-archive-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px; align-items: center; }
.h-archive-copy h2 { display: grid; gap: 4px; font-size: clamp(28px, 3vw, 36px); margin-bottom: 14px; }
.h-archive-copy h2 small { font-size: .62em; font-weight: 400; color: #4e3c2b; }
.h-archive-copy p { color: #4e3c2b; margin-bottom: 24px; }
.h-film-wrap { position: relative; transform: rotate(-2deg); }
.h-film { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 8px) / 3); gap: 8px; padding: 26px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: radial-gradient(circle, #e9dcc3 0 3.5px, transparent 4px) 6px 8px / 22px 18px repeat-x, radial-gradient(circle, #e9dcc3 0 3.5px, transparent 4px) 6px calc(100% - 8px) / 22px 18px repeat-x, #3a2a1c; box-shadow: 0 16px 34px rgba(40, 24, 10, .3); border-radius: 4px; }
.h-film::-webkit-scrollbar { display: none; }
.h-frame { margin: 0; scroll-snap-align: start; border: 3px solid #241a10; background: #241a10; }
.h-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) sepia(.5) contrast(1.1); transition: filter .4s ease; }
.h-frame:hover img { filter: sepia(.2); }
.h-film-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fbf5e9; color: var(--c-primary); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.h-film-btn.prev { left: -14px; }
.h-film-btn.next { right: -14px; }
.h-polaroids { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.h-polaroids .h-photo { position: relative; padding: 8px 8px 22px; }
.h-polaroids .h-photo img { aspect-ratio: 1; }
.h-polaroids .h-photo:nth-child(odd) { transform: rotate(-2deg); }
.h-polaroids .h-photo:nth-child(even) { transform: rotate(2deg); }

.h-cta { position: relative; margin-top: 50px; padding: 54px 0; color: #f6e8cf; background: linear-gradient(90deg, rgba(59, 42, 29, .95), rgba(107, 61, 34, .88)), var(--bg, none) center / cover, #3b2a1d; }
.h-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.h-cta h2 { color: #f6e8cf; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.h-cta p { color: rgba(246, 232, 207, .82); max-width: 620px; }
.h-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.theme-hatira .page-hero { background: linear-gradient(180deg, rgba(43, 29, 18, .35), rgba(43, 29, 18, .8)), var(--bg, none) center / cover no-repeat, #3b2a1d; }
.theme-hatira .page-hero h1 { color: #f6e8cf; }
.theme-hatira .news-card, .theme-hatira .event-row, .theme-hatira .contact-card, .theme-hatira .post-aside, .theme-hatira .side-card:not(.side-cta):not(.side-next):not(.side-tools), .theme-hatira .gallery-item { background: #fbf5e9; }

.site-foot { background: var(--paper), #2b2119; color: rgba(246, 232, 207, .75); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 36px; padding: 48px 24px 34px; }
.crest.small { justify-items: start; text-align: left; padding: 0; color: #e0c48f; }
.crest.small .tree-art { width: 64px; color: #e0c48f; }
.crest.small .crest-logo { width: 60px; height: 60px; }
.crest.small .crest-name { font-size: 20px; color: #f6e8cf; }
.crest.small .crest-sub { color: rgba(246, 232, 207, .6); }
.foot-motto { font-size: 22px; color: #e0c48f; margin: 14px 0; line-height: 1.1; }
.foot-col h3 { font: 700 16px var(--f-head); color: #f6e8cf; margin-bottom: 14px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.foot-links a:hover, .foot-contact a:hover, .foot-legal a:hover { color: #fff; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ico { width: 16px; height: 16px; color: #e0c48f; margin-top: 3px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(224, 196, 143, .4); color: #e0c48f; }
.foot-social a:hover { background: #e0c48f; color: #2b2119; }
.foot-portal { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: #e0c48f; }
.theme-hatira .foot-news h3 { color: #f6e8cf; }
.theme-hatira .foot-news button { background: var(--c-accent); border-radius: 3px; }
.theme-hatira .foot-news input { border-radius: 3px; background: #fbf5e9; }
.foot-bottom { border-top: 1px solid rgba(224, 196, 143, .18); font-size: 12.5px; }
.foot-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 54px; flex-wrap: wrap; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav-link { font-size: 13.5px; }
  .hh-stamp { margin-right: 40px; }
  .h-story-in, .h-archive-in { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 980px) {
  .navrow-in { justify-content: space-between; }
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-top: 1px solid var(--c-line); background: #f6ecd9; }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 10px 0; font-weight: 600; border-bottom: 1px solid var(--c-line); }
  .mobile-nav .btn { margin-top: 12px; border-bottom: 0; }
  .hh { height: 620px; }
  .hh-img { inset: 0; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 85%); }
  .hh-in { align-items: flex-end; padding-bottom: 50px; }
  .hh-branch { width: 150px; }
  .hh-stamp { width: 104px; height: 104px; font-size: 13px; margin-right: 0; }
  .h-acts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .h-act:nth-child(odd) { border-left: 0; }
  .h-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-feed-grid { grid-template-columns: 1fr; }
  .h-polaroids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-stat { justify-content: flex-start; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .topbar-in > a span { display: none; }
  .crest-name { font-size: 21px; }
  .tree-art { width: 74px; }
  .hh h1 { font-size: 32px; }
  .h-kraft-in { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .h-stat { padding: 4px 8px; gap: 10px; }
  .h-stat-ico { width: 38px; height: 38px; }
  .h-stat strong { font-size: 22px; }
  .h-collage { height: 320px; }
  .h-acts, .h-cards { grid-template-columns: 1fr; }
  .h-act { border-left: 0; }
  .h-news-row { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .h-film { grid-auto-columns: 70%; }
  .h-polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
}
