@font-face {
  font-family: "DM Sans";
  src: url("./dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #103c34;
  --lime: #dceda7;
  --paper: #f7f8f2;
  --rule: #c8d1c5;
  --edge: clamp(1.15rem, 5vw, 6rem);
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--forest);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
.frame { max-width: 105rem; margin-inline: auto; padding-inline: var(--edge); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #337966; outline-offset: 4px; }

.masthead {
  min-height: clamp(5.5rem, 8vw, 7.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand { flex: none; }
.brand img { display: block; width: clamp(10rem, 18vw, 13rem); height: auto; }

.languages {
  display: flex;
  border: 1px solid var(--rule);
  padding: 3px;
  border-radius: 2rem;
}

.languages a {
  display: grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2.15rem;
  padding: 0 .45rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.languages a:hover { background: #e6ecdc; }
.languages a[aria-current="page"] { color: white; background: var(--forest); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  padding-block: clamp(3rem, 8vh, 7rem) clamp(2rem, 5vh, 4.5rem);
}

h1 {
  margin: 0;
  font: 400 clamp(4.5rem, 9.6vw, 10.1rem)/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -.041em;
  overflow-wrap: normal;
}
h1 em { font-weight: 400; }
.intro p {
  max-width: 31ch;
  margin: 0 0 .14em;
  color: #3c544d;
  font-size: clamp(1.06rem, 1.65vw, 1.6rem);
  font-weight: 440;
  line-height: 1.48;
  text-wrap: pretty;
}

figure { margin: 0; }
.photo {
  display: block;
  width: 100%;
  height: clamp(18rem, 47vh, 38rem);
  border-radius: .42rem;
  background: #b7c8c0;
  object-fit: cover;
  object-position: 50% 54%;
}
figcaption {
  padding: .9rem 0 1.25rem;
  text-align: right;
  color: #53665e;
  font-size: .875rem;
  line-height: 1.5;
}
figcaption a { text-decoration-color: #9daaa1; text-underline-offset: .2em; }

@media (max-width: 47rem) {
  .intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: clamp(2.6rem, 9vw, 4.2rem) 2rem;
  }
  h1 { font-size: clamp(3.6rem, 13.5vw, 6rem); }
  .intro p { max-width: 36ch; }
  .photo { height: clamp(16rem, 47vh, 31rem); object-position: 52% 50%; }
}

@media (max-width: 22rem) {
  .brand img { width: 9.25rem; }
  .languages a { min-width: 2.25rem; }
}
