:root {
  color-scheme: light;
  --background: #f5f0e8;
  --heading: #292d29;
  --secondary: #71695f;
  --whatsapp: #208c50;
  --white: #ffffff;
  --line: rgba(41, 45, 41, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--background);
  color: var(--heading);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(1.25rem, 3.5dvh, 3.5rem) clamp(1.25rem, 5vw, 5rem);
}

.presentation {
  width: min(100%, 76rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(17rem, 0.83fr) minmax(25rem, 1.17fr);
  grid-template-areas:
    "identity team"
    "message team";
  column-gap: clamp(3.5rem, 7vw, 7.5rem);
  row-gap: clamp(2.5rem, 5vh, 4.5rem);
  align-items: center;
}

.identity {
  grid-area: identity;
  align-self: end;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.85rem, 4.5vw, 4.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  white-space: nowrap;
}

.location {
  margin: 1.1rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location > svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #b36a4c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team {
  grid-area: team;
  width: min(100%, calc(87.5dvh - 8.3125rem));
  min-width: 0;
  margin: 0;
  justify-self: center;
}

.photo-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 8;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #e7ded1;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
}

figcaption {
  margin-top: 0.8rem;
  color: var(--secondary);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.message {
  grid-area: message;
  align-self: start;
  max-width: 31rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

h2 span {
  color: #b36a4c;
}

.message > p {
  margin: 1rem 0 0;
  color: var(--secondary);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.75;
}

.whatsapp-button {
  width: fit-content;
  min-height: 3.35rem;
  margin-top: 1.8rem;
  padding: 0.8rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 0.65rem;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.whatsapp-button svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
}

.whatsapp-button:hover {
  background: #187642;
}

.whatsapp-button:active {
  transform: translateY(1px);
}

.whatsapp-button:focus-visible {
  outline: 3px solid rgba(32, 140, 80, 0.32);
  outline-offset: 4px;
}

footer {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}

.footer-content {
  width: min(100%, 76rem);
  min-height: 4.25rem;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-content p {
  margin: 0;
}

.registrations {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.5rem;
  font-weight: 500;
}

@media (min-width: 901px) {
  body {
    height: 100dvh;
  }
}

@media (max-width: 900px) {
  main {
    display: block;
    padding: clamp(1.25rem, 3dvh, 2rem) 1.25rem clamp(1rem, 3dvh, 2rem);
  }

  .presentation {
    width: min(100%, 34rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .identity {
    width: 100%;
    margin-bottom: clamp(1rem, 2.5dvh, 1.5rem);
    text-align: center;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    white-space: normal;
    text-wrap: balance;
  }

  .location {
    margin-top: 0.85rem;
  }

  .team {
    width: min(100%, clamp(14rem, 26.5dvh, 18rem));
    margin: 0 auto clamp(1.25rem, 3dvh, 2rem);
  }

  .photo-frame {
    aspect-ratio: 7 / 8;
    border-radius: 0.9rem;
  }

  .photo-frame img {
    object-position: center 74%;
  }

  figcaption {
    margin-top: 0.55rem;
  }

  .message {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  h2 span {
    display: block;
  }

  .message > p {
    line-height: 1.7;
  }

  .whatsapp-button {
    width: 100%;
    min-height: 3.6rem;
    margin-top: 1.4rem;
  }

  .footer-content {
    padding: 1rem 0 1.25rem;
    display: block;
    font-size: 0.82rem;
    text-align: center;
  }

  .footer-content p span {
    display: block;
  }

  .registrations {
    margin-top: 0.55rem;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  main,
  footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 2.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-button {
    transition: none;
  }
}
