/* Kehila Muuseum-Puhkemaja — "village museum hunting lodge".
   Colours from their photos: museum-sign green, weathered log brown, carved-root rust, limestone paper,
   low evening sun. Alegreya (headings) + Alegreya Sans (text), self-hosted, SIL OFL. */

@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/alegreya-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/alegreya-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/alegreyasans-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/alegreyasans-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/alegreyasans-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/alegreyasans-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F4EEE3;      /* limestone / birch paper */
  --sand: #E7DBC6;       /* dry grass, light log ends */
  --ink: #241C16;        /* charcoal */
  --log: #4B3628;        /* weathered timber */
  --muted: #6A5546;
  --green: #1F5A3D;      /* "KEHILA" on the museum sign */
  --green-dark: #163F2B;
  --rust: #9A4527;       /* the carved root */
  --sun: #E3A83F;        /* low evening sun */
  --line: #D6C7AE;
  --wrap: 1200px;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; color: var(--log); }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-bottom: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
figure { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.eyebrow { font: 700 .82rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin-bottom: .9rem; }
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--log); max-width: 40em; }
.note { color: var(--muted); font-style: italic; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 4px; font: 700 1.05rem/1.1 var(--sans); text-decoration: none; border: 2px solid transparent; }
.btn-main { background: var(--green); color: var(--paper); }
.btn-main:hover { background: var(--green-dark); }
.btn-line { border-color: var(--green); color: var(--green); background: transparent; }
.btn-line:hover { background: rgba(31, 90, 61, .08); }
.btn-call { background: var(--log); color: var(--paper); min-height: 42px; padding: .5rem 1rem; white-space: nowrap; }
.btn-call::before { content: ""; width: 16px; height: 16px; margin-right: .5rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.mark { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--log); margin-right: auto; }
.mark svg { width: 36px; height: 36px; color: var(--green); flex: none; }
.mark b { display: block; font: 700 1.5rem/1 var(--serif); }
.mark small { display: block; font: 400 .82rem/1.3 var(--sans); color: var(--muted); letter-spacing: .02em; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: var(--log); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; gap: .15rem; font-weight: 700; font-size: .95rem; }
.lang > * { padding: .35rem .45rem; border-radius: 3px; }
.lang span { background: var(--sand); color: var(--log); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--green); }
@media (min-width: 1100px) { .nav { display: flex; } }
@media (max-width: 480px) { .btn-call { font-size: 0; padding: .5rem .8rem; } .btn-call::before { margin: 0; width: 18px; height: 18px; } .mark small { font-size: .74rem; } }

/* hero */
.hero { padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
.hero-text { margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem); font-weight: 800; letter-spacing: -.02em; max-width: 12em; margin-bottom: 1.1rem; }
.hero-photo { position: relative; max-width: 1600px; margin: 0 auto; }
.hero-photo img { width: 100%; aspect-ratio: 1.75; object-fit: cover; object-position: 55% 50%; }
@media (min-width: 700px) { .hero-photo img { aspect-ratio: 2.4; } }

/* museum placard caption: a small label card under the photo's edge */
.placard { display: inline-flex; flex-direction: column; background: var(--paper); color: var(--muted);
  font: 400 .92rem/1.3 var(--sans); padding: .7rem 1rem .75rem; border-left: 4px solid var(--rust);
  margin: 0 0 0 20px; position: relative; box-shadow: 0 2px 0 var(--line); }
@media (min-width: 700px) { .placard { margin-top: -1.6rem; } }
.placard span { font: 700 1.15rem/1.2 var(--serif); color: var(--log); }
@media (min-width: 1240px) { .hero-photo .placard { margin-left: calc((100% - var(--wrap)) / 2); } }

/* facts band */
.facts { background: var(--green); color: var(--paper); margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.facts-in { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 0; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.facts li { padding: .9rem 0; border-bottom: 1px solid rgba(244, 238, 227, .22); font-size: 1rem; color: #DCE7DF; }
.facts li:last-child { border-bottom: 0; }
.facts b { display: block; font: 700 1.45rem/1.15 var(--serif); color: var(--paper); margin-bottom: .2rem; }
@media (min-width: 700px) { .facts-in { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } .facts li:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 1024px) { .facts-in { grid-template-columns: repeat(4, 1fr); padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .facts li { border-bottom: 0; border-left: 1px solid rgba(244, 238, 227, .25); padding: .2rem 0 .2rem 1.4rem; } .facts li:first-child { border-left: 0; padding-left: 0; } }

/* photo slots: each slot has its photo's own ratio (no crop) */
.ph img { width: 100%; object-fit: cover; }
.ph-18 img { aspect-ratio: 1.8; }
.ph-24 img { aspect-ratio: 2.4; }
.ph-16 img { aspect-ratio: 1.6; }
.ph figcaption { font: 700 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .6rem; }

section { scroll-margin-top: 1rem; }
.museum, .house, .photos, .where { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }

/* museum */
.museum-in { display: grid; gap: 2rem; align-items: center; }
.museum-text p { max-width: 34em; }
.band { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.band img { width: 100%; aspect-ratio: 2.4; object-fit: cover; }
.band .placard { margin-left: 20px; }
@media (min-width: 900px) { .museum-in { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* house */
.house { background: #FBF7F0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.floors { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.floor { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 1.25rem 1.4rem .4rem; }
.floor h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.floor h3 span { display: block; font: 700 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: .35rem; }
@media (min-width: 760px) { .floors { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.chips { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--sand); color: var(--log); border-radius: 999px; padding: .35rem .95rem; font-weight: 700; font-size: .98rem; }
.grid { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* outdoor */
.outdoor { background: var(--log); color: var(--paper); padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.outdoor h2 { color: var(--paper); }
.outdoor .eyebrow { color: var(--sun); }
.outdoor-in { display: grid; gap: 2.25rem; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid rgba(244, 238, 227, .18); position: relative; color: #E6DACB; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .6rem; height: .6rem; background: var(--sun); transform: rotate(45deg); }
.list b { color: var(--paper); }
.outdoor .ph figcaption { color: #CDBDA9; }
@media (min-width: 900px) { .outdoor-in { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; } }

/* photos */
.pair { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }

/* where */
.where-in { display: grid; gap: 2.25rem; align-items: center; }
address { font-style: normal; font-size: 1.2rem; line-height: 1.55; color: var(--log); margin-bottom: 1rem; }
.coords { color: var(--muted); }
.coords span { font-weight: 700; color: var(--log); }
.map img { border: 1px solid var(--line); }
.map figcaption { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .85rem; }
.map figcaption a { color: var(--muted); }
@media (min-width: 900px) { .where-in { grid-template-columns: 1fr 1.25fr; gap: 3.5rem; } }

/* contact */
.contact { background: var(--green); color: var(--paper); padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0; }
.contact h2 { color: var(--paper); }
.contact .eyebrow { color: var(--sun); }
.contact .lead { color: #DCE7DF; }
.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card { display: block; background: var(--paper); color: var(--log); text-decoration: none; padding: 1.2rem 1.4rem; border-radius: 4px; border-left: 5px solid var(--rust); }
.card span { display: block; font: 700 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.card b { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.2 var(--serif); overflow-wrap: anywhere; }
a.card:hover b { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1.3fr 1fr; gap: 1.25rem; } }

/* footer */
.foot { background: var(--ink); color: #BFB2A3; padding: 2.25rem 0 2.5rem; font-size: .95rem; }
.foot p { margin: 0 0 .4rem; }
.foot b { color: var(--paper); }
.foot a { color: #E6DACB; }
.foot .made { margin-top: 1rem; font-size: .85rem; color: #9C8F80; }
