:root {
  color-scheme: dark;
  --forest: #15362d;
  --deep: #102b24;
  --lime: #e0f368;
  --white: #f7faf1;
  --muted: #d3ded5;
  --edge: clamp(1.4rem, 5.2vw, 6.5rem);
  --frame: clamp(.85rem, 1.65vw, 2.3rem);
  font: 100%/1.5 "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background: var(--forest);
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
.page {
  isolation: isolate;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: radial-gradient(ellipse at 9% 9%, #214639 0, transparent 56%), var(--deep);
}
.masthead {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2vw, 2.8rem);
  width: 47%;
  padding: clamp(1.7rem, 5.4vh, 4rem) 2rem 0 var(--edge);
}
.masthead::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 13rem;
  background: linear-gradient(90deg, #6d8b7b, transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(1.6rem, 2.25vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: 1;
}
.brand img { width: 1.22em; height: auto; }
main { display: grid; align-items: center; }
.intro {
  position: relative;
  width: 50%;
  padding: clamp(4.5rem, 11vh, 8rem) 1.5rem clamp(4.8rem, 13vh, 10rem) var(--edge);
}
h1 {
  margin: 0;
  font-size: clamp(3.35rem, 6.45vw, 7.7rem);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 700;
}
h1 em {
  color: var(--lime);
  font: italic 400 1.04em/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -.067em;
}
.message {
  max-width: 31ch;
  margin: clamp(1.3rem, 3.2vh, 2.2rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.43vw, 1.4rem);
  line-height: 1.55;
}
.contact-block {
  border-top: 1px solid #526d60;
  max-width: 24rem;
  margin-top: clamp(2.1rem, 5.7vh, 4.4rem);
  padding-top: clamp(1.1rem, 2.4vh, 1.8rem);
}
.contact-block p {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: 1rem;
}
.contact {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: .7rem;
  color: var(--white);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -.025em;
  text-decoration: none;
}
.mail-symbol {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
}
.contact:hover { color: var(--lime); text-decoration: underline; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; border-radius: 2px; }
.envelope {
  position: relative;
  width: 1rem;
  height: .75rem;
  overflow: hidden;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}
.envelope::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  left: 15%;
  top: -57%;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.street {
  position: absolute;
  z-index: -1;
  inset: var(--frame) var(--frame) var(--frame) 46.5%;
  background: var(--lime);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.street img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 79% 53%;
  clip-path: polygon(calc(15% + .26rem) 0, 100% 0, 100% 100%, .26rem 100%);
}
@media (max-width: 51rem), (max-aspect-ratio: 4/5) {
  .page { display: flex; flex-direction: column; }
  .masthead { width: 100%; padding: 1.5rem var(--edge) 0; }
  .masthead::after { max-width: none; }
  main { display: flex; flex: 1; flex-direction: column; align-items: stretch; }
  .intro {
    width: 100%;
    padding: clamp(2.35rem, 6.1vh, 4.6rem) var(--edge) clamp(1.6rem, 4.5vh, 3.3rem);
  }
  h1 { font-size: clamp(3.3rem, 10vw, 5.5rem); }
  .message { margin-top: 1.1rem; }
  .contact-block { margin-top: 1.4rem; padding-top: .9rem; }
  .street {
    position: relative;
    inset: auto;
    z-index: auto;
    flex: 1 0 auto;
    height: clamp(15rem, 56vw, 26rem);
    margin: 0 var(--frame) var(--frame);
    clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  }
  .street img {
    position: absolute;
    inset: 0;
    object-position: 69% 59%;
    clip-path: polygon(0 calc(7% + .2rem), 100% .2rem, 100% 100%, 0 100%);
  }
}
@media (max-width: 23rem) {
  :root { --edge: 1.15rem; --frame: .65rem; }
  h1 { font-size: clamp(2.5rem, 14.2vw, 3.25rem); }
}
@media (forced-colors: active) {
  .contact, .brand { color: LinkText; }
  .mail-symbol, .contact-block { border: 1px solid ButtonText; }
}
