@font-face {
  font-family: Allura;
  src: url("fonts/allura.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

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

@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f8f5ed;
  --paper: #fffcf6;
  --ink: #252c22;
  --muted: #53594c;
  --olive: #3a4934;
  --olive-hover: #2b3927;
  --sage: #e8ebdf;
  --line: #d7d6c8;
  --brass: #98723f;
  --edge: clamp(1.375rem, 5.55vw, 5rem);
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

main:focus-visible,
section:focus-visible {
  outline-offset: -4px;
}

.wrap {
  width: calc(100% - var(--edge) * 2);
  max-width: 80rem;
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 0.75rem auto auto 0.75rem;
  transform: translateY(calc(-100% - 1rem));
  padding: 0.7rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.13rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand strong {
  font-weight: 700;
}

.brand img {
  width: 4.25rem;
  height: auto;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.85rem);
}

.site-nav a,
.site-footer nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.site-nav a {
  font-weight: 600;
}

.site-nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
}

.site-nav .nav-contact {
  border: 1px solid var(--olive);
  border-radius: 50px;
  padding-inline: 1.35rem;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: var(--ink);
  font: 600 0.91rem/1 var(--body);
  cursor: pointer;
}

.menu-glyph {
  position: relative;
  width: 1rem;
  height: 0.75rem;
}

.menu-glyph::before,
.menu-glyph::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.menu-glyph::before {
  top: 3px;
}
.menu-glyph::after {
  bottom: 3px;
}
.menu-button[aria-expanded="true"] .menu-glyph::before {
  top: 5px;
  transform: rotate(45deg);
}
.menu-button[aria-expanded="true"] .menu-glyph::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #f7f1e4;
  padding-block: clamp(2.5rem, 5vw, 5.6rem) clamp(3rem, 6.2vw, 6rem);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.55;
  background: url("papier.png");
  pointer-events: none;
}
@media (min-width: 1200px) {
  .hero {
    min-height: min(60rem, calc(100svh - 5.4rem));
    display: grid;
    align-content: center;
  }
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto auto 0;
  width: clamp(6rem, 12vw, 11.2rem);
  aspect-ratio: 178 / 212;
  background: url("blattwerk.webp") left top / contain no-repeat;
  opacity: 0.74;
  pointer-events: none;
}
.hero .lettering {
  display: block;
  color: #45523a;
  font:
    400 clamp(4.5rem, 9.6vw, 8.9rem)/0.97 Allura,
    cursive;
  letter-spacing: -0.035em;
}
.painted {
  display: table;
  position: relative;
  isolation: isolate;
  margin: 0.08em 0 0.1em -0.18em;
  padding: 0.22em 0.55em 0.3em;
  color: #fffdf4;
  font: 650 clamp(1.95rem, 3.8vw, 3.55rem)/1.05 var(--body);
  letter-spacing: -0.03em;
}
.painted::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("pinsel.png") center / 100% 100% no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: clamp(2rem, 5vw, 5.25rem);
  align-items: center;
}

.hero-copy {
  padding-block: 1rem;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3.25rem, 7.05vw, 6.6rem);
}
h1 em,
h2 em {
  color: var(--olive);
}

.hero-intro {
  max-width: 35ch;
  margin-top: clamp(1.4rem, 2.15vw, 2.05rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.48vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: clamp(1.65rem, 2.9vw, 2.55rem);
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--olive);
  border-radius: 50px;
  padding: 0.68rem 1.12rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.button-solid {
  background: var(--olive);
  color: var(--paper);
}
.button-solid:focus-visible {
  outline-color: var(--olive);
}
.button-outline {
  background: transparent;
  color: var(--olive);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }
  .button-solid:hover {
    background: var(--olive-hover);
  }
  .button-outline:hover {
    background: var(--sage);
  }
}

.button:active {
  transform: scale(0.975);
  transition-duration: 90ms;
}

.phone-icon {
  flex: 0 0 auto;
  font:
    1.1em/1 system-ui,
    sans-serif;
}

.mail-icon {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 0.76em;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1.4px solid currentColor;
  border-radius: 0.12em;
}

.mail-icon::after {
  position: absolute;
  inset: -0.38em 0.12em auto;
  height: 0.65em;
  border: solid currentColor;
  border-width: 0 1.4px 1.4px 0;
  transform: rotate(45deg);
  content: "";
}

.hero-picture {
  position: relative;
  isolation: isolate;
  margin: 1rem 1.2rem 2.2rem 1.3rem;
}
.hero-picture picture {
  display: block;
  border: clamp(7px, 0.8vw, 12px) solid var(--paper);
  background: var(--paper);
  transform: rotate(2deg);
  box-shadow:
    0 8px 24px #4b3f291c,
    0 1px 3px #4b3f2930;
}
.hero-picture picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.03;
  object-fit: cover;
  object-position: 42% 48%;
}
.snapshot {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 29%;
  padding: 1.2% 1.2% 3.2%;
  background: var(--paper);
  transform: rotate(-8deg);
  box-shadow: 0 4px 12px #342f2930;
}
.snapshot img {
  width: 100%;
  height: auto;
}
.snapshot::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 12%;
  top: -4%;
  left: 28%;
  transform: rotate(6deg);
  background: #cfbd93db url("papier.png");
  clip-path: polygon(
    1% 5%,
    97% 0,
    100% 22%,
    97% 46%,
    100% 69%,
    97% 97%,
    0 100%,
    2% 75%,
    0 51%,
    3% 30%
  );
}

@media (prefers-reduced-motion: no-preference) {
  [data-enter] .hero-copy {
    animation: enter 0.55s ease-out both;
  }
  [data-enter] .hero-picture {
    animation: enter 0.65s 0.06s ease-out both;
  }
  @keyframes enter {
    from {
      opacity: 0.5;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.section {
  padding-block: clamp(3.45rem, 7.5vw, 7rem);
}
h2 {
  font-size: clamp(2.45rem, 5.15vw, 5rem);
}

.services {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-heading h2::after {
  content: "";
  display: inline-block;
  width: 0.66em;
  height: 0.79em;
  margin-left: 0.22em;
  background: url("herz.webp") center / contain no-repeat;
  transform: rotate(9deg);
}
.section-heading {
  margin-bottom: clamp(2rem, 4.2vw, 4rem);
}

.section-heading p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 4rem);
}
.service-photo,
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.35rem;
}
.service-photo {
  aspect-ratio: 1.95;
  object-position: 50% 90%;
}
.service-group:nth-child(2) .service-photo {
  object-position: 50% 36%;
}
.service-list {
  margin-top: 0.5rem;
}

.service-list > div {
  padding-block: clamp(0.85rem, 1.55vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}

.service-list dt {
  font: 500 clamp(1.25rem, 1.95vw, 1.75rem)/1.19 var(--display);
  letter-spacing: -0.02em;
}

.service-list dd {
  max-width: 48ch;
  margin-top: 0.3rem;
  color: var(--muted);
}

.about {
  background: var(--sage);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 10vw, 9rem);
}

.about-photo {
  aspect-ratio: 5 / 4;
  object-position: 50% 60%;
}

.about-copy p {
  max-width: 45ch;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--olive);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.contact {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--olive);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(1.5rem, 5.5vw, 5rem);
}

.contact h2 {
  max-width: 17ch;
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
}

.contact p {
  max-width: 43ch;
  margin-top: 0.9rem;
  color: var(--sage);
}

.contact-links {
  border-top: 1px solid #899584;
}

.contact-links a {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid #899584;
  padding-block: 0.5rem;
  font-size: clamp(1rem, 1.75vw, 1.28rem);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-links a:first-child {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-variant-numeric: lining-nums;
}

.contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  padding-block: 1.4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner strong {
  color: var(--ink);
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
}
.site-footer nav a {
  font-weight: 600;
}

.legal {
  max-width: 46rem;
  min-height: 64vh;
  padding-block: clamp(2rem, 6vw, 5rem);
  overflow-wrap: anywhere;
}

.legal h1 {
  margin-block: 0.9rem 2rem;
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
}

.legal h2 {
  margin-block: 1.6rem 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  letter-spacing: -0.027em;
}

.legal p + p {
  margin-top: 0.7rem;
}
.legal p a,
.legal address a {
  text-underline-offset: 0.2em;
}

.legal-note {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--brass);
  padding: 0.8rem 1rem;
  background: var(--sage);
}

.legal-footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 1050px) {
  .hero-grid {
    gap: 2rem;
  }
  .hero-picture picture img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 4.35rem;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand {
    font-size: 1.05rem;
    gap: 0.5rem;
  }
  .brand img {
    width: 3.25rem;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: 0.91rem;
  }

  .menu-button:not([hidden]) + .site-nav {
    display: grid;
    position: absolute;
    top: 100%;
    left: var(--edge);
    right: var(--edge);
    width: auto;
    z-index: 2;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    padding: 0.25rem 0.8rem;
    background: var(--paper);
    box-shadow: 0 0.65rem 1.5rem #252c2217;
  }

  .site-nav a {
    min-height: 3rem;
  }
  .menu-button:not([hidden]) + .site-nav a + a {
    border-top: 1px solid var(--line);
  }
  .site-nav .nav-contact {
    border: 0;
    padding: 0;
    border-radius: 0;
  }

  .hero {
    padding-block: 2.15rem 2.6rem;
  }
  .hero-grid,
  .services-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid {
    gap: 1.8rem;
  }
  .hero {
    min-height: min(50rem, calc(100svh - 4.35rem));
    display: grid;
    align-content: center;
  }
  .hero::before {
    width: 4.3rem;
    opacity: 0.55;
    transform: translate(-12%, -32%);
  }
  .hero .lettering {
    font-size: clamp(4.65rem, 18vw, 7.4rem);
  }
  .hero-copy {
    padding: 0;
  }
  h1 {
    font-size: clamp(2.95rem, 10.4vw, 4.85rem);
  }
  .hero-intro {
    margin-top: 1rem;
  }
  .hero-actions {
    margin-top: 1.3rem;
  }
  .button {
    min-height: 3rem;
    padding-inline: 0.8rem;
    font-size: 0.9rem;
  }
  .hero-picture {
    margin: 0.35rem 0.55rem 0.8rem 1.4rem;
  }
  .hero-picture picture img {
    aspect-ratio: 1.24;
    object-position: 41% 42%;
  }
  .snapshot {
    width: 27%;
  }
  .section-heading {
    margin-bottom: 1.7rem;
  }
  .services-grid,
  .about-grid {
    gap: 1.8rem;
  }
  .about-copy {
    grid-row: 1;
  }
  .about-photo {
    aspect-ratio: 5 / 3.7;
    object-position: 50% 56%;
  }
  .footer-inner {
    display: block;
  }
  .site-footer nav {
    margin-top: 0.35rem;
    gap: 1.4rem;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    gap: 0.5rem;
  }
  .button {
    padding-inline: 0.65rem;
  }
}

@media (max-width: 350px) {
  .button {
    padding-inline: 0.62rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
  .button:hover,
  .button:active {
    transform: none;
  }
}

:where(a, button) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: #98723f35;
}

:where(main, section)[id] {
  scroll-margin-top: 1rem;
}
h2 {
  text-wrap: balance;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover span,
  .menu-button:hover {
    color: var(--olive-hover);
  }
  .menu-button:hover {
    background: var(--sage);
  }
}

.site-footer [aria-current="page"] {
  text-decoration: underline;
}

::selection {
  color: var(--paper);
  background: var(--olive);
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .menu-button[aria-expanded="true"]:not(:focus-visible) + .site-nav {
    transform-origin: right top;
    transition:
      opacity 140ms ease-out,
      transform 140ms ease-out;
    @starting-style {
      opacity: 0;
      transform: translateY(-3px) scale(0.985);
    }
  }
}
