:root {
  color-scheme: light;
  --bg: #f7f1e6;
  --ink: #241b17;
  --muted: #766a5c;
  --accent: #8c2f39;
  --accent-ink: #6e2129;
  --line: #e3d8c4;
  --card: #fffaf1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}

a { color: var(--accent-ink); }

.hero {
  position: relative;
  height: 64vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  display: block;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,27,23,0) 35%, rgba(20,14,11,0.9) 100%);
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px;
  color: #fdf8ee;
  max-width: 820px;
  margin: 0 auto;
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e7b7a8;
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 48px);
}

.hero-text .title {
  margin: 0;
  font-size: 17px;
  color: #f0e6d8;
  max-width: 620px;
}

.hero-text .title strong {
  color: #fff;
}

.jumpnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}

.jumpnav a {
  flex: 0 0 auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
}

.jumpnav a:hover {
  color: var(--accent-ink);
  background: var(--card);
}

#dnes,
.act,
.contact {
  scroll-margin-top: 52px;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 24px 20px;
}

.intro p {
  font-size: 18px;
  color: #3a2d26;
  max-width: 620px;
}

.act {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid var(--line);
}

.act-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.act-no {
  font-family: "Fraunces", serif;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}

.act-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.act-years {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.act-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: start;
}

.act-body.reverse {
  grid-template-columns: 1.3fr 1fr;
}

.act-body.reverse .act-media { order: 2; }
.act-body.reverse .act-text { order: 1; }

.act-media {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--card);
  border: 1px solid var(--line);
}

.act-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.act-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.act-media.placeholder span {
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 10px 14px;
}

.act-text p {
  margin: 0 0 14px;
  font-size: 16px;
}

.act-text .source {
  font-size: 13px;
  color: var(--muted);
}

.medailonek {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  color: #4a382f;
}

.medailonek .fill {
  color: var(--muted);
  font-style: normal;
}

.gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.contact {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--line);
}

.contact p {
  font-size: 16px;
}

.contact p {
  margin: 4px 0;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 44px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 680px) {
  .act-body, .act-body.reverse {
    grid-template-columns: 1fr;
  }
  .act-body.reverse .act-media,
  .act-body.reverse .act-text,
  .act-body .act-media,
  .act-body .act-text {
    order: initial;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
