/* Krakow Stay — first draft. English only. */

@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-Italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-SemiBold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --lime: #e8ebe4;        /* limewash plaster */
  --lime-2: #dde2d9;
  --ink: #17262b;         /* deep slate */
  --ink-2: #44555a;       /* muted text */
  --door: #2b4a42;        /* courtyard-door green */
  --door-2: #223b35;
  --brass: #9a7a33;       /* lines and focus only */
  --sky: #bfced4;         /* window light */
  --paper: #f4f6f1;

  --serif: "Crimson Text", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.012em; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--lime);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--lime) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.25rem;
}
.brand { text-decoration: none; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; }
.brand .brand-in { display: inline-block; background: var(--door); color: var(--paper); padding: 0.02em 0.32em 0.08em; margin-inline: 0.04em; line-height: 1.1; font-weight: 600; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { text-decoration: none; font-size: 1.12rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.lang { font-style: italic; color: var(--ink-2); font-size: 1.05rem; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.1rem;
  padding: 0.7rem 1.35rem; border-radius: 2px;
  background: var(--door); color: var(--paper); border: 1px solid var(--door);
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--door-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--lime); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
.hero-grid > div:first-child { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.05; max-width: 18ch; }
.hero .lead { font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--ink-2); max-width: 30em; margin-top: 1.6rem; }

/* The hero photo is framed as a casement window. Mullions are an overlay,
   so a real photo can sit underneath. Remove .mullions to drop it. */
.window { position: relative; margin: 0; aspect-ratio: 4 / 5; background: var(--sky); }
.window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 80%; }
.window.mullions::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--lime), var(--lime)) 50% 0 / 5px 100% no-repeat,
    linear-gradient(var(--lime), var(--lime)) 0 34% / 100% 5px no-repeat;
  opacity: .78;
}
.window.mullions::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 10px solid var(--lime);
}

/* photo placeholders */
.ph {
  display: grid; place-items: end start; padding: 1rem 1.1rem;
  background:
    linear-gradient(160deg, #c7d5da 0%, #aebfc6 46%, #8ea3ab 100%);
  color: rgba(23, 38, 43, .62); font-style: italic; font-size: 1rem;
}
.ph.warm { background: linear-gradient(160deg, #d9d3c2 0%, #c4bca6 55%, #a99f84 100%); }
.ph.green { background: linear-gradient(160deg, #b9c9bf 0%, #8fa79a 60%, #6f877b 100%); }

/* ---------- Booking bar ---------- */
.platform {
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  text-decoration: none; padding: 0.8rem 1.4rem; min-width: 10rem;
  background: var(--door); color: var(--paper); transition: filter .2s;
}
.platform { background: #003b95; color: #fff; }            /* Booking.com blue */
.platform + .platform { background: #e31c5f; color: #fff; } /* Airbnb pink-red */
.platform:focus-visible { outline-color: var(--brass); }
.platform:hover { filter: brightness(1.22); }
.platform .p-name { font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.platform .p-sub { font-size: 0.95rem; font-style: italic; opacity: .92; }
.apt-actions .platform { border-radius: 2px; }
.book-note { margin: 0.6rem 0 0; font-size: 1rem; color: var(--ink-2); min-height: 1.5em; }

/* ---------- Facts strip ---------- */
.facts { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem;
}
.facts li { border-top: 1px solid var(--ink); padding-top: 0.7rem; font-size: 1.15rem; line-height: 1.3; }
.facts li span { display: block; color: var(--ink-2); font-size: 1rem; margin-top: 0.2rem; }

/* ---------- Statement (scroll reveal) ---------- */
.statement { padding-block: clamp(4rem, 10vw, 9rem); }
.statement p {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.16; letter-spacing: -0.01em;
  max-width: 22em; margin: 0;
}
.statement .w { transition: opacity .35s ease; }
.js .statement .w { opacity: .18; }
.js .statement .w.on { opacity: 1; }
.statement .more { display: inline-block; margin-top: 2rem; font-size: 1.15rem; }

/* ---------- Apartments ---------- */
.section-title { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.apartments { padding-bottom: clamp(3rem, 7vw, 6rem); }
.apt {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--ink);
}
.apt-intro { max-width: 34em; margin: 1rem 0 0; color: var(--ink-2); }
.apt:first-of-type { margin-top: 1.6rem; }
.apt:nth-of-type(even) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.apt-media { min-width: 0; }
.apt:nth-of-type(even) .apt-media { order: 2; }
.apt-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 3; }
.apt-photos .shot { display: block; overflow: hidden; background: var(--lime-2); cursor: zoom-in; min-height: 0; }
.apt-photos .shot.big { grid-row: 1 / 3; }
.apt-photos .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.apt-photos .shot:hover img { transform: scale(1.03); }
.all-photos { margin-top: 0.9rem; }
.apt-photos .ph { min-height: 0; }
.apt h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.apt .size { color: var(--ink-2); font-style: italic; margin: 0.35rem 0 1.1rem; }
.apt dl { margin: 0 0 1.6rem; }
.apt dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: 0.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); font-size: 1.15rem; line-height: 1.35; }
.apt dt { color: var(--ink-2); font-style: italic; }
.apt dd { margin: 0; }
.apt-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- The house (dark band) ---------- */
.house { background: var(--door); color: var(--paper); padding-block: clamp(3.5rem, 8vw, 7rem); }
.house-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.house h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.house p { color: #d7e0db; max-width: 32em; }
.house .know { margin: 0; padding: 0; list-style: none; }
.house .know li { padding-block: 1rem; border-top: 1px solid rgba(244, 246, 241, .28); }
.house .know li:last-child { border-bottom: 1px solid rgba(244, 246, 241, .28); }
.house .know strong { display: block; font-size: 1.3rem; font-weight: 600; }
.house .know span { color: #cdd8d2; font-size: 1.1rem; }

/* ---------- Things to do ---------- */
.todo { padding-block: clamp(3.5rem, 8vw, 7rem); }
.todo-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.todo-head p { max-width: 28em; margin: 0; color: var(--ink-2); }
.todo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.todo-item .ph { aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.todo-item h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.todo-item p { color: var(--ink-2); font-size: 1.12rem; margin: 0; }

/* ---------- Contact / footer ---------- */
.contact { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; }
.contact h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.contact .todo-fill { color: var(--ink-2); font-style: italic; }
.contact .todo-fill a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { padding-block: 1.6rem 2.4rem; font-size: 1rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .window { aspect-ratio: 5 / 4; }
  .hero-grid > div:first-child { padding-bottom: 0; }
  .platform { min-width: 0; padding-block: 0.9rem; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .apt, .apt:nth-of-type(even) { grid-template-columns: 1fr; }
  .apt:nth-of-type(even) .apt-media { order: 0; }
  .house-grid, .contact-grid { grid-template-columns: 1fr; }
  .todo-list { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: inline-block; font: inherit; font-size: 1.1rem; background: none; border: 1px solid var(--ink); padding: 0.45rem 0.9rem; border-radius: 2px; cursor: pointer; color: var(--ink); }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--lime); flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem var(--gutter) 1.6rem; border-bottom: 1px solid var(--ink); z-index: 20; }
  .nav.open { display: flex; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 760px) {
  .apt dl div { grid-template-columns: 6rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .statement .w { transition: none; }
  .js .statement .w { opacity: 1; }
}

/* ---------- House photo ---------- */
.house-photo { margin: clamp(2rem, 5vw, 4rem) 0 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--door-2); }
.house-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 760px) { .house-photo { aspect-ratio: 4 / 3; } }

/* ---------- Lightbox ---------- */
#lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: #0f191c; color: var(--paper); }
#lightbox:not([open]) { display: none; }
#lightbox[open] { display: grid; grid-template-columns: 4.5rem 1fr 4.5rem; align-items: center; }
#lightbox figure { margin: 0; display: grid; justify-items: center; gap: 0.8rem; min-width: 0; }
#lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; }
#lightbox figcaption { font-size: 1.05rem; color: #d7e0db; text-align: center; max-width: 40em; padding-inline: 1rem; }
#lightbox button { font: inherit; font-size: 1.05rem; color: var(--paper); background: transparent; border: 1px solid rgba(244, 246, 241, .5); border-radius: 2px; padding: 0.55rem 0.8rem; cursor: pointer; }
#lightbox button:hover { background: rgba(244, 246, 241, .14); }
#lightbox .lb-prev { grid-column: 1; justify-self: center; }
#lightbox .lb-next { grid-column: 3; justify-self: center; }
#lightbox .lb-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 760px) {
  #lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-content: center; }
  #lightbox figure { grid-row: 1; }
  #lightbox .lb-prev, #lightbox .lb-next { grid-row: 2; grid-column: 1; justify-self: start; margin: 0 1rem 1rem; }
  #lightbox .lb-next { justify-self: end; margin-top: -3.2rem; }
}

/* ---------- Discount, guides, contact ---------- */
.discount { margin: 1rem 0 0; font-size: 1.08rem; color: var(--ink-2); }
.discount a, .contact .mail a, .stay-cta a:not(.btn), .goodtips a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact .mail { font-size: 1.5rem; margin: 0.4rem 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo-list { grid-template-columns: repeat(3, 1fr); row-gap: clamp(2rem, 4vw, 3.2rem); }
.todo-item h3 { font-size: 1.45rem; }
.todo-item h3 a { text-decoration: none; }
.todo-item h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.todo-photo { display: block; }
.todo-item .more { display: inline-block; margin-top: 0.7rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 0.1rem; }
.todo-item .more::after { content: " \2192"; }
.todo-item .more:hover { border-bottom-color: var(--ink); }
.article { max-width: 46rem; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem); }
.article h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 0.4rem 0 1.2rem; }
.article .lead { font-size: 1.35rem; color: var(--ink-2); }
.article h2 { font-size: 1.7rem; margin: 2.2rem 0 0.6rem; }
.article p { max-width: 38em; }
.article .crumb { margin: 0; font-size: 1.05rem; }
.article .crumb a { color: var(--ink-2); }
.article-photo { aspect-ratio: 16 / 9; margin: 1.6rem 0 0; }
.goodtips { margin-top: 2.4rem; padding: 1.2rem 1.4rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.goodtips h2 { margin-top: 0; }
.goodtips ul, .more-places ul { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.stay-cta { margin-top: 2.6rem; padding: 1.6rem; background: var(--door); color: var(--paper); }
.stay-cta h2 { margin-top: 0; }
.stay-cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 980px) { .todo-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .todo-list { grid-template-columns: 1fr; } }

/* ---------- Hero banner ---------- */
.hero { padding-block: 0 clamp(1.5rem, 3vw, 2.5rem); }
.banner { position: relative; height: clamp(300px, 38vw, 540px); overflow: hidden; background: var(--sky); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 22, 26, .72) 0%, rgba(12, 22, 26, .25) 45%, rgba(12, 22, 26, 0) 70%); }
.banner-text { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(1.4rem, 3.5vw, 3rem); color: #fff; }
.banner-text h1 { color: #fff; margin: 0; max-width: 20ch; font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.05; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.hero > .wrap .lead { font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--ink-2); max-width: 36em; margin: clamp(1.4rem, 3vw, 2.2rem) 0 0; }

/* ---------- Guide photos ---------- */
.ph { position: relative; overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-fig { margin: 1.6rem 0 0; }
.article-fig .article-photo { margin: 0; }
.article-fig figcaption, .photo-credits { font-size: 0.95rem; color: var(--ink-2); }
.article-fig figcaption { margin-top: 0.5rem; }
.article-fig figcaption a, .photo-credits a { color: inherit; text-underline-offset: 3px; }
.photo-credits { padding-block: 0 2rem; }
.photo-credits summary { cursor: pointer; }
.photo-credits ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
