/* ==========================================================================
   Base: reset, design tokens, typography
   ========================================================================== */

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/raleway-regular.woff2") format("woff2"),
       url("../fonts/raleway-regular.woff") format("woff");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/raleway-semibold.woff2") format("woff2"),
       url("../fonts/raleway-semibold.woff") format("woff");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/raleway-bold.woff2") format("woff2"),
       url("../fonts/raleway-bold.woff") format("woff");
}

@font-face {
  font-family: "Crete Round";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/crete-round-regular.woff2") format("woff2"),
       url("../fonts/crete-round-regular.woff") format("woff");
}

@font-face {
  font-family: "Crete Round";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/crete-round-italic.woff2") format("woff2"),
       url("../fonts/crete-round-italic.woff") format("woff");
}

:root {
  /* Colors */
  --color-text: #666666; /* was #8d8d8d; darkened to 5.7:1 on white (WCAG AA) */
  --color-heading: #393939;
  --color-link: #e6ae48;
  --color-accent: #fe9d57;
  --color-dark: #253b53;
  --color-white: #ffffff;
  --color-bg-light: #f8f8f8;
  --color-header-scrolled: #eee;
  --color-border: #c9c9c9;
  --color-newsletter-bg: #deeae1;
  --color-cookie-bg: #e8efda;
  --color-placeholder: #cccccc;

  /* Type */
  --font-base: "Raleway", sans-serif;
  --font-size-base: 16px;
  --line-height-base: 23px;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 100px;
}

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

/* Keep the native [hidden] behavior authoritative regardless of any other
   display rule a more specific selector (e.g. ".button") might set. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Keep in-page anchors (e.g. service/#hochzeit) clear of the fixed header. */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px;
  color: var(--color-heading);
  font-family: var(--font-base);
  font-weight: 700;
}

h1 {
  font-size: 3em;
  line-height: 1.2em;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2 {
  font-size: 40px;
  line-height: 1.2em;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
}

h3, h6 {
  font-size: 28px;
  line-height: 1.29em;
  font-weight: 400;
  font-family: "Crete Round", serif;
  font-style: italic;
}

/* An h2 that looks like an h3: used where a heading is styled as an h3 but
   sits directly under the h1 (page subtitles, Kontakt's sections), so the
   heading outline doesn't skip a level for screen readers. */
h2.h3 {
  font-size: 28px;
  line-height: 1.29em;
  letter-spacing: normal;
  font-weight: 400;
  font-family: "Crete Round", serif;
  font-style: italic;
  text-transform: none;
}

p {
  margin: 0 0 20px;
}

::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media only screen and (max-width: 480px) {
  h1 {
    font-size: 2.5em;
    letter-spacing: 0.1em;
    line-height: 1em;
  }

  h2 {
    font-size: 1.2em;
  }

  h3,
  h2.h3 {
    font-size: 1em;
  }
}
