:root {
  --ink: #17201c;
  --muted: #5e6a63;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d8ded4;
  --sage: #557866;
  --sage-dark: #27483b;
  --blue: #416f8f;
  --gold: #c08a3d;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(23, 32, 28, 0.58);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.95rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.86);
}

.main-nav a:hover {
  color: #fff;
}

.language-switcher {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.lang-button {
  width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-button.is-active {
  color: var(--ink);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: end;
  padding: 136px clamp(18px, 5vw, 72px) 86px;
  overflow: hidden;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 15, 0.82), rgba(10, 18, 15, 0.42) 48%, rgba(10, 18, 15, 0.16)),
    linear-gradient(0deg, rgba(10, 18, 15, 0.52), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.closing .section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--sage);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.section,
.intro-band,
.closing {
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 72px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
}

.copy-block p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-band {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.link-card,
.photo-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid article {
  min-height: 250px;
  padding: 28px;
}

.feature-number {
  color: var(--blue);
  font-weight: 900;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  background: #edf2ec;
}

.about-layout {
  align-items: center;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(rgba(39, 72, 59, 0.1), rgba(39, 72, 59, 0.1)),
    url("assets/hero-bibliuferdin.png") center / cover;
  box-shadow: var(--shadow);
}

.portrait-placeholder span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(23, 32, 28, 0.42);
  font-size: 1.5rem;
  font-weight: 900;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 30px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.link-card[aria-disabled="true"] {
  cursor: default;
}

.link-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage-dark);
  font-weight: 900;
}

.link-card strong {
  display: block;
  font-size: 1.05rem;
}

.link-card span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.photos-section {
  background: var(--surface);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.photo-grid figure {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e6ece6;
}

.photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 14px 16px;
  color: var(--muted);
  background: var(--surface);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.closing {
  color: #fff;
  background: var(--sage-dark);
}

.closing h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.6rem);
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--paper);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    position: absolute;
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 820px;
    padding-top: 170px;
  }

  .two-column,
  .about-layout,
  .feature-grid,
  .link-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }
}

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

  .brand {
    font-size: 0.95rem;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .language-switcher {
    gap: 2px;
  }

  .lang-button {
    width: 33px;
    min-height: 30px;
  }

  .hero {
    min-height: 780px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .button {
    width: 100%;
  }
}
