* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #27221e;
  --muted: #756d65;
  --gold: #a6814d;
  --gold-light: #d7bd91;
  --cream: #f8f4ed;
  --paper: #fffdf9;
  --line: #e8dfd2;
}

body {
  background: #eee9e1;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto;
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(49, 39, 29, 0.12);
  overflow: hidden;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 46% 54%;
  background: var(--cream);
}

/*
  Profile image container.
  The image is NOT cropped.
*/
.hero-photo {
  position: relative;
  background: #000;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  height: 590px;

  object-fit: contain;
  object-position: center;

  display: block;
  background: #000;
}

/*
  IMPORTANT:
  contain = shows the complete original image.
  No zooming/cropping.
*/
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #ded5c7;
}

/* Profile placeholder */

.photo-placeholder,
.hero-photo.placeholder .photo-placeholder {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 8px;
  color: #817666;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3),
      rgba(130, 105, 70, 0.08)
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(120, 95, 60, 0.035) 20px,
      rgba(120, 95, 60, 0.035) 40px
    );
}

.photo-placeholder span {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  letter-spacing: 4px;
}

.photo-placeholder small {
  font-size: 12px;
  letter-spacing: 1px;
}

/* Hero content */

.hero-content {
  padding: 80px 70px;

  display: flex;
  justify-content: center;
  flex-direction: column;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.95;
  max-width: 550px;
}

.hero-subtitle {
  margin-top: 25px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 1px;
}

.hero-line {
  width: 65px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
}

.intro {
  color: var(--muted);
  max-width: 430px;
  font-size: 15px;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 78px 70px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 38px;
}

.section-heading span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
}

.section-heading h2 {
  font-size: 42px;
}

/* =========================
   PERSONAL DETAILS
========================= */

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.detail {
  padding: 22px 25px 22px 0;
  border-bottom: 1px solid var(--line);
}

.detail:nth-child(even) {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.detail span {
  display: block;

  color: var(--muted);

  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  margin-bottom: 4px;
}

.detail strong {
  font-size: 15px;
  font-weight: 500;
}

/* =========================
   FAMILY
========================= */

.family-section {
  background: #fbf8f2;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.family-card {
  padding: 28px;

  background: var(--paper);
  border: 1px solid var(--line);

  display: flex;
  gap: 18px;
}

.family-icon {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  border: 1px solid var(--gold-light);

  color: var(--gold);

  display: grid;
  place-items: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
}

.family-card .role {
  color: var(--gold);

  text-transform: uppercase;
  letter-spacing: 1.5px;

  font-size: 10px;

  margin-bottom: 4px;
}

.family-card h3 {
  font-size: 25px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.family-card p:not(.role) {
  color: var(--muted);
  font-size: 12px;
}

/* Native place */

.native-place {
  margin-top: 20px;

  padding: 24px 28px;

  border: 1px solid var(--line);

  display: flex;
  justify-content: space-between;

  gap: 25px;
  align-items: center;
}

.native-place span {
  color: var(--gold);

  text-transform: uppercase;
  letter-spacing: 1.5px;

  font-size: 10px;

  white-space: nowrap;
}

.native-place strong {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

/* =========================
   GALLERY
========================= */

.gallery {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr;

  gap: 16px;
}

.gallery-photo {
  position: relative;

  min-height: 330px;

  overflow: hidden;

  background: #e5ddd0;
}

.gallery-photo.large {
  min-height: 440px;
}

.gallery-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

.gallery-placeholder {
  display: grid;
  place-items: center;

  color: #8b7d6c;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.35),
      rgba(130, 105, 70, 0.08)
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(120, 95, 60, 0.035) 20px,
      rgba(120, 95, 60, 0.035) 40px
    );
}

.gallery-placeholder span {
  font-family: "Cormorant Garamond", serif;

  font-size: 25px;

  letter-spacing: 3px;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 45px;

  text-align: center;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 12px;

  letter-spacing: 1px;
}

.footer-mark {
  color: var(--gold);

  font-family: "Cormorant Garamond", serif;

  font-size: 25px;

  letter-spacing: 4px;

  margin-bottom: 6px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

  .page {
    width: 100%;
    margin: 0;
  }

  .hero {
    display: block;
  }

  /*
    Mobile:
    Keep the entire image visible.
  */
  .hero-photo {
    min-height: 470px;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-photo img {
    width: 100%;
    height: auto;

    min-height: 0;

    max-height: 650px;

    object-fit: contain;

    display: block;
  }

  .hero-content {
    padding: 55px 28px 65px;
  }

  h1 {
    font-size: 52px;
  }

  .section {
    padding: 55px 28px;
  }

  .details-grid,
  .family-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .detail:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .family-card {
    padding: 23px;
  }

  .native-place {
    display: block;
  }

  .native-place strong {
    display: block;

    text-align: left;

    margin-top: 10px;
  }

  .gallery-photo,
  .gallery-photo.large {
    min-height: 380px;
  }
}