:root {
  --sand: #f4efe4;
  --paper: #fffaf1;
  --ink: #203238;
  --muted: #66777b;
  --sea: #0f6f78;
  --sea-deep: #16464e;
  --line: rgba(32, 50, 56, 0.14);
  --shadow: 0 18px 60px rgba(21, 43, 50, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: white;
  background: linear-gradient(to bottom, rgba(10, 31, 36, 0.62), rgba(10, 31, 36, 0));
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  color: white;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #f2c35f;
  box-shadow: 0 0 0 5px rgba(242, 195, 95, 0.22);
}

.site-header nav a {
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--sea-deep);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 38, 44, 0.78), rgba(13, 38, 44, 0.08) 62%),
    linear-gradient(to right, rgba(13, 38, 44, 0.38), rgba(13, 38, 44, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 11vh, 7rem);
  color: white;
  text-align: center;
}

.kicker,
.section-label {
  margin: 0 0 0.7rem;
  color: var(--sea);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #f7d897;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  font-weight: 400;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 9rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.hero-content p:last-child {
  max-width: 32rem;
  margin: 1.1rem auto 0;
  font-size: 1.15rem;
}

.poem-section,
.gallery-section,
.contact-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.poem-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 9vw, 8rem) 0;
  align-items: center;
}

.author {
  margin: 0.6rem 0 2.2rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.poem {
  max-width: 35rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.poem p {
  margin: 0 0 1.55rem;
}

.poem-image {
  margin: 0;
}

.poem-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.ad-band {
  width: min(970px, calc(100% - 2rem));
  min-height: 110px;
  margin: 0 auto clamp(3rem, 8vw, 6rem);
  padding: 1rem;
  border-block: 1px solid var(--line);
}

.gallery-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2.2rem;
}

.section-heading p:last-child,
.contact-section p {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: #d9d0c0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.gallery button:hover img,
.gallery button:focus-visible img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.contact-section {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.lightbox {
  width: min(1100px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(9, 26, 31, 0.86);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #111;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  color: white;
  background: rgba(9, 26, 31, 0.72);
  cursor: pointer;
}

.legal-page {
  background: var(--paper);
}

.legal-main {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

.legal-main h1 {
  color: var(--sea-deep);
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.legal-main h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.legal-main p,
.legal-main li {
  font-family: Arial, sans-serif;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .poem-section {
    grid-template-columns: 1fr;
  }

  .poem-image {
    order: -1;
  }

  .poem-image img {
    aspect-ratio: 16 / 11;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    display: block;
  }

  .site-header nav {
    margin-top: 0.8rem;
    justify-content: flex-start;
  }

  .hero {
    min-height: 76vh;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 0.7rem;
  }
}
