:root {
  --ink: #17231e;
  --ink-soft: #24352e;
  --cream: #f6f1e8;
  --paper: #fbf8f2;
  --gold: #b9975b;
  --gold-light: #d8c39b;
  --sage: #728278;
  --line: rgba(23, 35, 30, 0.14);
  --white-line: rgba(255, 255, 255, 0.2);
  --shadow: 0 30px 70px rgba(15, 28, 22, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(185, 151, 91, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 151, 91, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.6rem 0;
  color: white;
  border-bottom: 1px solid var(--white-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.brand-copy small {
  opacity: 0.65;
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 0.25rem auto;
  background: white;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(0.86) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(14, 27, 21, 0.92) 0%, rgba(14, 27, 21, 0.64) 43%, rgba(14, 27, 21, 0.08) 76%),
    linear-gradient(0deg, rgba(14, 27, 21, 0.52), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: clamp(10rem, 24vh, 15rem);
}

.kicker {
  margin: 0 0 1.4rem;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--gold);
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 820px;
  font-size: clamp(4rem, 8.3vw, 8rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 620px;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.hero-caption {
  position: absolute;
  right: max(1.5rem, calc((100vw - 1280px) / 2));
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 235px;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-caption > span {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.7rem;
}

.hero-caption div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-caption strong {
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-caption small {
  opacity: 0.65;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.intro-strip p {
  max-width: 660px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.35;
}

.intro-strip span {
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 8rem 0;
}

.section-title {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.section-title h2,
.gallery-heading h2 {
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.profile-list {
  border-top: 1px solid var(--line);
}

.profile {
  display: grid;
  grid-template-columns: 1.05fr 0.18fr 0.77fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.profile.reverse {
  grid-template-columns: 0.77fr 0.18fr 1.05fr;
}

.profile.reverse .profile-image {
  grid-column: 3;
}

.profile.reverse .profile-number {
  grid-column: 2;
  grid-row: 1;
}

.profile.reverse .profile-copy {
  grid-column: 1;
  grid-row: 1;
}

.profile-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
}

.profile-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.profile:hover .profile-image img {
  transform: scale(1.025);
}

.profile-number {
  align-self: start;
  padding-top: 0.45rem;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.profile-meta {
  margin: 0 0 1rem;
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.profile-copy > p:not(.profile-meta) {
  margin: 0 0 2rem;
  color: #526159;
  line-height: 1.8;
}

.profile-copy dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-copy dl div {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-copy dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-copy dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.gallery-section {
  padding: 8rem max(1.5rem, calc((100vw - 1280px) / 2));
  color: white;
  background: var(--ink);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.gallery-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  grid-row: span 2;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #0d1713;
}

.gallery-item.gallery-large {
  grid-column: span 7;
  grid-row: span 4;
}

.gallery-item.gallery-wide {
  grid-column: span 6;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 16, 12, 0.82), transparent 48%);
}

.gallery-item:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.gallery-item span {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.2rem;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.gallery-item strong {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.gallery-item small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  color: white;
  background: var(--ink-soft);
}

.home-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 510px;
  padding: clamp(2.2rem, 5vw, 5rem);
  background:
    linear-gradient(rgba(23, 35, 30, 0.45), rgba(23, 35, 30, 0.78)),
    url("assets/hero-fluffy.jpg") center / cover;
}

.home-quote blockquote {
  max-width: 620px;
  font-size: clamp(2.8rem, 5vw, 5.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.home-rules {
  display: grid;
  align-content: center;
  padding: clamp(2.2rem, 5vw, 5rem);
}

.home-rules article {
  display: grid;
  grid-template-columns: 0.16fr 0.84fr;
  gap: 1rem 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.home-rules article > span {
  grid-row: span 2;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.home-rules h3 {
  font-size: 1.55rem;
}

.home-rules p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

footer strong {
  font-family: Georgia, serif;
  font-weight: 400;
}

footer p {
  margin: 0.25rem 0 0;
  color: var(--sage);
  font-size: 0.75rem;
  line-height: 1.5;
}

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

dialog::backdrop {
  background: rgba(5, 12, 9, 0.92);
  backdrop-filter: blur(8px);
}

dialog img {
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: white;
  background: rgba(15, 28, 22, 0.62);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .section-title,
  .gallery-heading,
  .home-card {
    grid-template-columns: 1fr;
  }

  .profile,
  .profile.reverse {
    grid-template-columns: 1fr;
  }

  .profile.reverse .profile-image,
  .profile.reverse .profile-number,
  .profile.reverse .profile-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-number {
    display: none;
  }

  .gallery {
    grid-auto-rows: 230px;
  }

  .gallery-item,
  .gallery-item.gallery-large,
  .gallery-item.gallery-wide {
    grid-column: span 6;
    grid-row: span 2;
  }

  .home-quote {
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: calc(100% - 2rem);
  }

  .brand-copy small {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem;
  }

  .hero-content {
    width: calc(100% - 2rem);
    padding-top: 9rem;
  }

  .hero-caption {
    display: none;
  }

  h1 {
    font-size: clamp(3.6rem, 17vw, 5.5rem);
  }

  .intro-strip,
  .section,
  footer {
    width: calc(100% - 2rem);
  }

  .intro-strip,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 5rem 0;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .profile {
    padding: 2.4rem 0;
  }

  .gallery-section {
    padding: 5rem 1rem;
  }

  .gallery {
    display: block;
  }

  .gallery-item,
  .gallery-item.gallery-large,
  .gallery-item.gallery-wide {
    width: 100%;
    height: 360px;
    margin-bottom: 1rem;
  }

  .gallery-item span {
    flex-direction: column;
    align-items: flex-start;
  }
}
