:root {
  color-scheme: light;
  --paper: #faf7f2;
  --ink: #29251f;
  --red: #bc302b;
  --orange: #f58920;
  --line: #eae2d8;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-size: 19px;
  line-height: 1.65;
}

.page-width {
  width: min(1076px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header { padding-block: 49px 38px; }
.logo { display: block; width: 300px; max-width: 100%; height: auto; }

.introduction {
  display: grid;
  grid-template-columns: 346px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 68px;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.services {
  margin-top: 22px;
  padding: 37px 16px 38px;
  border-radius: 4px;
  background: #f7e4c2;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}

.services-title { margin: 0; font-size: 35px; line-height: 1.2; }
.services-caption { margin: 17px 0 0; color: var(--red); font-size: 20px; line-height: 1.5; }

h1 {
  margin: 5px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 400;
  color: #17130f;
}

.accent { width: 65px; height: 4px; background: var(--orange); border-radius: 2px; margin-bottom: 23px; }
.text-column > p { margin: 0 0 24px; }
ul { padding-left: 26px; margin: 23px 0 26px; }
li + li { margin-top: 5px; }

.contact { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 26px; }
.contact h2 { margin: 0 0 11px; color: #696158; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact-name { margin: 0 0 13px; font-weight: 600; font-size: 20px; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding-block: 21px; }
.imprint-link { border: 0; padding: 0; background: none; color: #766c60; font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.imprint-link:hover { color: var(--red); }

dialog {
  width: min(433px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  padding: 54px 32px 40px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 64px #29251f26;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

dialog::backdrop { background: #29251f66; }
dialog h2 { margin: 0 0 46px; font-size: 14px; font-weight: 700; }
dialog address { font-style: normal; }
dialog address p { margin: 0 0 12px; }
dialog address a { color: inherit; }
.email-address { max-width: 100%; height: auto; vertical-align: middle; }
.dialog-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; color: #696158; font: inherit; font-size: 26px; cursor: pointer; }
html:has(dialog[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .introduction { grid-template-columns: minmax(230px, 1fr) minmax(0, 1.6fr); gap: 32px; }
  .services-title { font-size: 30px; }
  .services-caption { font-size: 18px; }
  h1 { font-size: 25px; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .page-width { width: calc(100% - 40px); }
  .site-header { padding-block: 30px; }
  .logo { width: 260px; }
  .introduction { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .text-column { order: -1; }
  .portrait-column { width: min(100%, 346px); margin-inline: auto; }
  h1 { margin-top: 0; }
  .contact { margin-top: 30px; }
}
