/* Hollweck — hollweck.it
   Eine Tür. Papier, Tinte. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --paper: #f4efe6;
  --ink: #1a1a18;
  --muted: #5a5852;
  --rule: #d4cfc4;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.5rem, 6vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
}

a:hover {
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.35rem 0.55rem;
  background: var(--paper);
}

.skip:focus {
  top: 0.7rem;
}

.door {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 14vh, 8rem) var(--gutter);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0 0 1.15rem;
}

.lede {
  margin: 0;
  max-width: 22em;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
}

.door-mail {
  margin: 1.25rem 0 0;
}

.mail {
  font-family: var(--serif);
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.mail:hover {
  border-bottom-color: var(--ink);
}

.colophon {
  padding: 0 var(--gutter) 1.35rem;
  display: flex;
  gap: 1.15rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.colophon a {
  color: var(--muted);
  text-decoration: none;
}

.colophon a:hover {
  color: var(--ink);
}

.back {
  margin: 0;
  padding: 1.4rem var(--gutter) 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.back a {
  text-decoration: none;
}

main.page {
  flex: 1 0 auto;
  padding: clamp(1.6rem, 5vh, 3rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  width: min(100%, 42rem);
}

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.legal p {
  margin: 0 0 0.95rem;
  max-width: 36em;
}

.legal p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .colophon,
  .skip {
    display: none;
  }

  a {
    text-decoration: none;
  }
}
