@font-face {
  font-family: Vollkorn;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./vollkorn-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Vollkorn;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./vollkorn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #faf6ee;
  color: #33261c;
  font-family: Vollkorn, Georgia, serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

::selection {
  background: #dce3ee;
  color: #223353;
}

.page {
  width: min(100% - 112px, 1200px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.05;
}

.brand img {
  display: block;
  flex-shrink: 0;
}

.origin,
.eyebrow,
.contact-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.origin {
  margin: 0;
  color: #6b5645;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
  padding-block: 28px 56px;
}

.message {
  padding-bottom: 27px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #35507d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 4.7vw, 66px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.intro {
  margin: 25px 0 0;
  color: #6b5645;
  font-size: 20px;
  line-height: 1.55;
}

.contacts {
  display: grid;
  gap: 20px;
  margin-top: 35px;
  padding-top: 26px;
  border-top: 1px solid #ded4c5;
  font-style: normal;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-label {
  color: #6b5645;
}

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: #35507d;
  text-decoration-color: #bcc3ca;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.phone {
  font-size: 31px;
  line-height: 1.4;
  font-variant-numeric: lining-nums;
}

.email {
  font-size: 26px;
  line-height: 1.4;
}

a:focus-visible {
  outline: 2px solid #35507d;
  outline-offset: 5px;
}

a:active {
  color: #19263e;
}

@media (hover: hover) {
  a:hover {
    color: #19263e;
    text-decoration-color: currentColor;
  }
}

.portrait {
  min-width: 0;
  margin: 0;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.94;
  object-fit: cover;
  object-position: 49% center;
  background: #e4d9cb;
}

figcaption {
  margin-top: 13px;
  color: #6b5645;
  font-size: 14px;
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 21px 25px;
  border-top: 1px solid #ded4c5;
  color: #6b5645;
  font-size: 15px;
  line-height: 1.5;
}

.footer p {
  margin: 0;
}

.footer span {
  padding-inline: 6px;
}

@media (min-width: 1500px) {
  main {
    flex-grow: 0;
    margin-block: auto;
  }
}

@media (max-width: 1000px) {
  .page {
    width: calc(100% - 64px);
  }

  main {
    gap: 40px;
  }

  .intro {
    font-size: 18px;
  }

  .desktop-break {
    display: none;
  }

  .photo {
    aspect-ratio: 0.73;
  }
}

@media (max-width: 740px) {
  .page {
    width: calc(100% - 48px);
  }

  .header {
    padding-block: 24px;
  }

  .brand {
    gap: 11px;
    font-size: 21px;
  }

  .brand img {
    width: 34px;
    height: auto;
  }

  .origin {
    max-width: 110px;
    font-size: 11px;
    text-align: right;
  }

  main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 35px 30px;
  }

  .message {
    padding-bottom: 0;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(39px, 7.2vw, 52px);
  }

  .intro {
    max-width: 430px;
    margin-top: 20px;
    font-size: 19px;
  }

  .contacts {
    gap: 14px;
    margin-top: 26px;
    padding-top: 22px;
  }

  .phone {
    font-size: 29px;
  }

  .email {
    font-size: clamp(22px, 5.7vw, 26px);
  }

  .photo {
    aspect-ratio: 1.35;
    object-position: center 44%;
  }

  figcaption {
    margin-top: 10px;
    font-size: 13px;
  }

  .footer {
    flex-direction: column;
    gap: 4px;
    padding-block: 18px 24px;
    font-size: 14px;
  }
}
