@font-face {
  font-family: "Cormorant Infant";
  src: url("CormorantInfant-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --mint: #e4f8e9;
  --white: #ffffff;
  --ink: #10321f;
  --line: rgba(16, 50, 31, 0.14);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mint);
  font-family: "Cormorant Infant", Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

p,
h1,
h2 {
  margin-top: 0;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 54px 36px;
  background: var(--mint);
}

.hero__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 88px;
  align-items: start;
}

.hero__copy {
  min-width: 0;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(3.7rem, 6.5vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.hero__role {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}

.hero__qualification {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.hero__contact {
  margin-top: 88px;
  display: grid;
  gap: 20px;
  font-size: clamp(1.08rem, 1.45vw, 1.36rem);
  line-height: 1.4;
}

.hero__contact a {
  width: fit-content;
}

.hero__contact p {
  margin-bottom: 0;
}

.hero__media {
  min-height: 610px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
}

.hero__portrait {
  width: 310px;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero__logo {
  width: 170px;
  max-height: 110px;
  display: block;
  object-fit: contain;
  align-self: end;
}

/* CONTENT SECTIONS */
.content-section {
  padding: 124px 36px;
}

.content-section--white {
  background: var(--white);
}

.content-section--green {
  background: var(--mint);
}

.content-section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.content-section h2 {
  margin-bottom: 38px;
  font-size: clamp(2.35rem, 3.35vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.content-section__text {
  max-width: 760px;
}

.content-section__text > p {
  margin-bottom: 24px;
  font-size: clamp(1.15rem, 1.45vw, 1.36rem);
  line-height: 1.62;
}

.areas {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.areas li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.45;
}

.areas li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 54px;
}

.contact-grid > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-grid a,
.contact-grid p {
  margin-bottom: 0;
  font-size: 1.16rem;
  line-height: 1.45;
}

.court-note {
  margin-top: 50px !important;
  font-size: 1.06rem !important;
  font-style: italic;
}

.site-footer {
  padding: 38px 20px 46px;
  display: flex;
  justify-content: center;
  gap: 18px;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

/* LEGAL PAGES */
.legal-page {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 60px 0 80px;
}

body:has(.legal-page) {
  background: var(--white);
}

.legal-page h1 {
  margin-bottom: 34px;
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 400;
}

.legal-page h2 {
  margin: 42px 0 14px;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 400;
}

.legal-page p,
.legal-page li {
  font-size: 1.05rem;
  line-height: 1.72;
}

.legal-page ul {
  padding-left: 1.4rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
}

/* TABLET */
@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding: 40px 22px 64px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero__contact {
    margin-top: 50px;
  }

  .hero__media {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 170px;
    grid-template-rows: auto;
    gap: 26px;
    align-items: end;
  }

  .hero__portrait,
  .hero__logo {
    width: 100%;
  }

  .content-section {
    padding: 92px 22px;
  }
}

/* MOBILE */
@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.35rem);
  }

  .hero__media,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: 170px;
  }

  .content-section h2 {
    font-size: 2.25rem;
  }

  .legal-page {
    width: min(100% - 28px, 900px);
    padding-top: 36px;
  }
}
