:root {
  --olive: #c8c216;
  --olive-dark: #9a9900;
  --teal: #587074;
  --ink: #333;
  --muted: #66717d;
  --slab: "Bree Serif", Georgia, serif;
  --sans: "proxima-nova", "Montserrat", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body.malgorzata-site {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px; z-index: 30; }
.skip:focus { left: 10px; }

.site-shell { max-width: 1428px; margin: 0 auto; background: #fff; }

.malgorzata-hero { overflow: hidden; background: var(--teal); }
.hero-banner { display: block; }
.malgorzata-hero img { width: 100%; height: auto; aspect-ratio: 1140 / 300; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 42px;
  color: #fff;
  text-decoration: none;
  background: #637f80;
  position: relative;
  isolation: isolate;
}
.hero-title strong { font-family: var(--slab); font-size: 44px; line-height: 1.15; font-weight: 400; overflow-wrap: anywhere; }
.hero-title span {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.55);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.malgorzata-nav { background: var(--olive); min-height: 95px; display: flex; align-items: center; }
.malgorzata-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.malgorzata-nav li { position: relative; display: flex; align-items: center; }
.malgorzata-nav a,
.malgorzata-nav summary {
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  padding: 5px 6px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid rgba(255,255,255,.85);
}
.malgorzata-nav summary { list-style: none; }
.malgorzata-nav summary::-webkit-details-marker { display: none; }
.malgorzata-nav > ul > li > a:hover,
.malgorzata-nav summary:hover { border-top-color: #fff; }
.malgorzata-nav details ul {
  position: absolute;
  top: 100%;
  left: -2px;
  z-index: 20;
  display: block;
  width: 235px;
  padding: 8px 0;
  background: #fff;
  border-left: 3px solid #6c8688;
  box-shadow: 0 12px 24px rgba(20,30,40,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .34s ease, transform .34s ease, visibility .34s;
}
.malgorzata-nav details:hover ul,
.malgorzata-nav details[open] ul { opacity: 1; visibility: visible; transform: translateY(0); }
.malgorzata-nav details ul li { display: block; }
.malgorzata-nav details ul a {
  display: block;
  color: #24323a;
  text-transform: none;
  border: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  padding: 7px 14px;
}
.malgorzata-nav details ul a:hover { background: #f2f1dc; color: #111; }

.malgorzata-main { padding: 54px 14px 30px; }
.home-main { padding: 0; min-height: 280px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; }

.home-welcome {
  max-width: 960px;
  margin: 0 auto;
  padding: 54px 24px 68px;
  text-align: center;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.home-welcome h1 { font: 700 38px/1.16 var(--slab); margin: 0 0 18px; }
.home-welcome p { margin: 0 auto 18px; max-width: 760px; }
.welcome-kicker {
  color: var(--olive-dark);
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}
.welcome-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.welcome-links a {
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  border-bottom: 1px solid #111;
  padding: 8px 0;
}
.welcome-links a:hover { color: var(--olive-dark); border-color: var(--olive-dark); }

.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 82px 64px; }
.malgorzata-post { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; min-height: 190px; }
.post-date { text-align: right; padding-top: 4px; }
.post-date span { display: block; font-size: 38px; font-family: var(--slab); }
.post-date small { display: block; text-transform: uppercase; font-size: 18px; line-height: 1.25; }
.post-date::after { content: ""; display: block; height: 1px; background: #333; margin: 8px 0 9px; }
.post-date em { font-style: normal; text-transform: uppercase; font-size: 14px; }
.post-body h2 { margin: 0 0 10px; font: 400 29px/1.12 var(--slab); }
.post-body h2 a { color: var(--ink); text-decoration: none; }
.post-body h2 a:hover { color: var(--olive-dark); }
.post-body p { margin: 0 0 10px; }
.post-body img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
.read-more { display: inline-block; margin-top: 8px; color: #19222d; text-decoration: none; font-size: 14px; text-transform: uppercase; float: right; }

.malgorzata-sidebar { display: flex; flex-direction: column; gap: 34px; }
.malgorzata-sidebar h2 {
  margin: 0 0 12px;
  color: var(--olive-dark);
  font-size: 21px;
  font-weight: 400;
  text-transform: uppercase;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 8px;
}
.side-link { display: block; color: var(--ink); text-decoration: none; margin: 0 0 24px; }
.side-link span { display: block; text-transform: uppercase; font-size: 19px; line-height: 1.25; }
.side-link small { display: block; margin-top: 8px; color: #111; font-size: 13px; }

.page-heading { text-align: center; border-bottom: 1px solid #333; margin-bottom: 70px; padding-bottom: 48px; }
.page-heading h1,
.article h1 { font: 700 36px/1.15 var(--slab); margin: 0; }
.article { max-width: 890px; }
.breadcrumb { font-size: 14px; color: var(--muted); text-transform: uppercase; }
.breadcrumb a { color: var(--olive-dark); }
.article-image { width: 100%; max-height: 460px; object-fit: cover; margin: 0 0 26px; }
.article-body h2,
.rich-text h2,
.rich-text h3 { font-family: var(--slab); }
.article-body ul { padding-left: 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.intention-form { display: grid; gap: 18px; }
.intention-form label { display: grid; gap: 7px; font-weight: 700; }
.intention-form input,
.intention-form textarea { font: inherit; border: 1px solid #bfc6c7; padding: 12px; background: #fff; }
.intention-form textarea { resize: vertical; }
.notice { padding: 16px 18px; margin: 0 0 22px; }
.notice.success { background: #edf8ed; border-left: 5px solid #479a4b; }
.notice.error { background: #fff0ed; border-left: 5px solid #bd3d2c; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--olive);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 20px;
  min-height: 48px;
  cursor: pointer;
}
.button:hover { background: var(--olive-dark); }

.malgorzata-footer {
  margin-top: 40px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  font-size: 14px;
}
.malgorzata-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.malgorzata-footer a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 700; }
.fiction-note { background: #f4f4ee; color: #3d4548; padding: 18px 28px; font-size: 14px; }
.fiction-note p { max-width: 1120px; margin: 0 auto; }
.fiction-note a { color: #6d6900; font-weight: 700; }

.empty { grid-column: 1 / -1; color: var(--muted); }
.rich-text a { color: #6d6900; }

@media (max-width: 1050px) {
  .malgorzata-hero img { height: auto; }
  .malgorzata-nav { min-height: 0; }
  .malgorzata-nav ul { gap: 10px; flex-wrap: wrap; padding: 10px 16px; }
  .malgorzata-nav a,
  .malgorzata-nav summary { font-size: 18px; }
  .malgorzata-nav details ul { top: 100%; }
  .home-grid { grid-template-columns: 1fr; }
  .post-list { grid-template-columns: 1fr; }
  .malgorzata-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .malgorzata-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .malgorzata-nav details ul { transition: none; }
}

@media (max-width: 680px) {
  body.malgorzata-site { font-size: 16px; }
  .hero-title strong { font-size: 34px; }
  .hero-title { padding: 32px 20px; }
  .hero-title span { font-size: 13px; }
  .home-welcome h1 { font-size: 28px; }
  .malgorzata-main { padding: 30px 14px; }
  .malgorzata-post { grid-template-columns: 1fr; }
  .post-date { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
  .post-date::after { grid-column: 1 / -1; }
  .post-list { gap: 46px; }
  .malgorzata-sidebar { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
