/* Layout: light, paper-and-cream page matching roubenkausvahu.cz and zahradni-nabytek.cz;
   the two cabins sit side by side as photo cards ("windows"), the carpentry workshop below as a wide band. */
:root {
  --paper: #fffdf9;        /* page ground (roubenkausvahu.cz) */
  --cream: #f4f0e9;        /* alternate band */
  --cream-deep: #ece6dc;   /* workshop band */
  --line: #e5ded3;
  --ink: #29251f;          /* headings */
  --ink-soft: #696158;     /* body text */
  --gold: #b98243;         /* accent, links, labels */
  --gold-bright: #d6aa70;
  --frame: #3b3027;        /* dark oak window frame */
  --forest: #202520;       /* footer */
  --forest-text: #a59e94;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "PT Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* shared small-caps label, as on both sister sites */
.label {
  font-family: var(--label);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.cta .arr { color: var(--gold); transition: transform .3s ease; }
a:hover .cta .arr, .cta:hover .arr { transform: translateX(5px); }

/* ---------- header ---------- */
.site-head { padding-block: clamp(36px, 6vw, 72px) clamp(8px, 2vw, 16px); text-align: center; }
.stars {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-style: italic; font-size: 1.125rem; color: var(--ink-soft);
  margin: 0;
}
.stars::before, .stars::after { content: "★"; font-style: normal; font-size: .8rem; color: var(--gold); }
.domain {
  font-family: var(--label);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.domain .www, .domain .tld { color: var(--gold); }
.rule {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 14px;
}
.rule::before, .rule::after {
  content: ""; width: clamp(40px, 10vw, 90px); height: 5px;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.rule span { color: var(--ink-soft); }

/* ---------- the two windows ---------- */
.windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 5vw, 56px) clamp(48px, 8vw, 96px);
  max-width: 1000px;
  margin: 0 auto;
}
.window {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(14px, 2vw, 22px);
  text-decoration: none; color: inherit;
  box-shadow: 0 16px 40px rgba(42, 34, 25, .08);
  transition: box-shadow .4s ease, transform .4s ease;
}
.window:hover { box-shadow: 0 22px 50px rgba(42, 34, 25, .14); transform: translateY(-3px); }
/* the photo itself, without any frame: the 3:2 shape of a camera photo, so a landscape shot is shown whole */
.pane {
  position: relative;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  overflow: hidden;
  background: var(--cream);
}
.pane img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.window:hover .pane img, .window:focus-visible .pane img { transform: scale(1.04); }

.window-text { text-align: center; padding: 22px 8px 6px; display: grid; gap: 8px; justify-items: center; }
.window-text .label { color: var(--gold); }
.window-text h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.window-text p { margin: 0; max-width: 38ch; }
.window-text .cta { margin-top: 8px; }

/* ---------- carpentry band ---------- */
.workshop { background: var(--cream-deep); }
.workshop .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.workshop-photo { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; box-shadow: 0 16px 40px rgba(42, 34, 25, .1); }
.workshop-photo img { width: 100%; height: 100%; object-fit: cover; }
.workshop-text { min-width: 0; }
.workshop-text .label { color: var(--gold); margin: 0 0 10px; }
.workshop-text h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15;
  color: var(--ink); margin: 0 0 16px; text-wrap: balance;
}
.workshop-text p { margin: 0 0 1em; max-width: 56ch; }
.crafts { list-style: none; margin: 4px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crafts li {
  font-family: var(--label); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid rgba(41, 37, 31, .22); padding: 6px 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font-family: var(--label); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 22px; text-decoration: none;
  transition: background .3s ease;
}
.btn:hover { background: var(--gold); }

/* ---------- footer ---------- */
.site-foot { background: var(--forest); color: var(--forest-text); padding-block: 28px 32px; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; text-align: center;
  font-family: var(--body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
}
.site-foot a { color: var(--gold-bright); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---------- cabin subpage ---------- */
.subnav { border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-block: 16px; }
.subnav .home { font-family: var(--label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--ink); text-decoration: none; }
.subnav .home span { color: var(--gold); }
.back { color: var(--ink); }

.cabin-hero { padding-block: clamp(32px, 5vw, 56px) 0; text-align: center; }
.cabin-hero h1 {
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.05; color: var(--ink); margin: 12px 0 0; text-wrap: balance;
}
.cabin-hero .lead { font-size: 1.15rem; max-width: 56ch; margin: 18px auto 0; }
.hero-img {
  margin-top: clamp(28px, 4vw, 44px);
  aspect-ratio: 16 / 8; max-width: 100%; overflow: hidden;
  box-shadow: 0 16px 40px rgba(42, 34, 25, .1);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.section { padding-block: clamp(44px, 7vw, 80px) 0; }
.section h2 {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; margin: 0 0 18px;
}
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about p { margin: 0 0 1em; max-width: 62ch; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts span:first-child { font-family: var(--label); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); align-self: center; }
.facts span:last-child { color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }

.contact {
  background: var(--cream); border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; justify-content: space-between;
}
.contact h2 { margin: 0; }
.contact p { margin: 6px 0 0; }
.contact .lines { display: grid; gap: 4px; font-size: 1.15rem; font-weight: 700; }
.contact .lines a { color: var(--ink); text-decoration-color: var(--gold); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 18, 15, .94); display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: 100%; object-fit: contain; }
.lb-btn { position: absolute; background: rgba(255, 253, 249, .12); color: var(--paper); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 253, 249, .24); }
.lb-close { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: #d8d0c4; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .windows { grid-template-columns: minmax(0, 1fr); }
  .workshop .wrap { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
