@layer reset, tokens, base, components;

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

  body,
  h1,
  h2,
  h3,
  p,
  figure {
    margin: 0;
  }

  h1,
  h2,
  h3 {
    font-size: inherit;
    font-weight: inherit;
  }

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

@layer tokens {
  :root {
    --grey-50: #f6f6f6;
    --grey-100: #e1e1e1;
    --grey-200: #b7b7b7;
    --grey-300: #939393;
    --grey-400: #707070;
    --grey-500: #585858;
    --grey-600: #3a3a3a;
    --grey-700: #222222;
    --grey-800: #121212;
    --grey-900: #090909;
    --grey-950: #030303;

    --brand-50: #f5f6ff;
    --brand-100: #d4d8fc;
    --brand-200: #a9b0fd;
    --brand-300: #8486ff;
    --brand-400: #6655fd;
    --brand-500: #5614fe;
    --brand-600: #3903b2;
    --brand-700: #210270;
    --brand-800: #12004a;
    --brand-900: #09002f;
    --brand-950: #030017;

    --accent-50: #fef3ec;
    --accent-100: #ffd9bf;
    --accent-200: #fda15b;
    --accent-300: #e27807;
    --accent-400: #ad5b07;
    --accent-500: #8a4600;
    --accent-600: #5b2c01;
    --accent-700: #371801;
    --accent-800: #210c00;
    --accent-900: #120601;
    --accent-950: #070200;

    --green-50: #e9fce4;
    --green-100: #adf29e;
    --green-200: #64ce4b;
    --green-300: #3faa20;
    --green-400: #288108;
    --green-500: #1d6505;
    --green-600: #124304;
    --green-700: #072701;
    --green-800: #031501;
    --green-900: #010c00;
    --green-950: #010400;

    --red-50: #fdf4f3;
    --red-100: #fed6d2;
    --red-200: #fe9b93;
    --red-300: #f36862;
    --red-400: #d52d33;
    --red-500: #ae1b24;
    --red-600: #7c0411;
    --red-700: #4b0207;
    --red-800: #2d0002;
    --red-900: #1d0102;
    --red-950: #0d0000;

    --color-text: var(--brand-900);
    --color-muted: var(--grey-500);
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-surface-hover: var(--grey-50);
    --color-border: var(--grey-100);
    --color-brand: var(--brand-500);
    --color-brand-strong: var(--brand-600);
    --color-on-brand: #ffffff;
    --color-accent: var(--accent-200);
    --color-success: var(--green-500);
    --color-danger: var(--red-500);

    --text-xs: 0.75rem;
    --leading-xs: 1rem;
    --text-sm: 0.875rem;
    --leading-sm: 1.25rem;
    --text-base: 1rem;
    --leading-base: 1.5rem;
    --text-lg: 1.125rem;
    --leading-lg: 1.75rem;
    --text-xl: 1.25rem;
    --leading-xl: 1.75rem;
    --text-2xl: 1.5rem;
    --leading-2xl: 2rem;
    --text-3xl: 1.875rem;
    --leading-3xl: 2.25rem;
    --text-4xl: 2.25rem;
    --leading-4xl: 2.5rem;

    --measure: 65ch;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    --radius: 0.25rem;
    --radius-input: 0.33em;
    --radius-lg: 1rem;

    --shadow-card: 0 10px 15px -3px var(--grey-200), 0 4px 6px -4px var(--grey-200);
    --shadow-card-hover: 0 1px 2px 0 var(--grey-200);
    --shadow-static: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-static-hover: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-button: 0 1px 2px 0 var(--brand-900);

    --page-max: 72rem;
    --page-grid: 1fr min(var(--page-max), calc(100% - 1rem)) 1fr;

    --icon-eur: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M190 192.33a8 8 0 0 1-.63 11.3A80 80 0 0 1 56.4 152H40a8 8 0 0 1 0-16h16v-16H40a8 8 0 0 1 0-16h16.4a80 80 0 0 1 132.94-51.63a8 8 0 0 1-10.68 11.93A64 64 0 0 0 72.52 104H136a8 8 0 0 1 0 16H72v16h48a8 8 0 0 1 0 16H72.52a64 64 0 0 0 106.14 39.71a8 8 0 0 1 11.34.62'/%3E%3C/svg%3E");
    --icon-pin: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 64a40 40 0 1 0 40 40a40 40 0 0 0-40-40m0 64a24 24 0 1 1 24-24a24 24 0 0 1-24 24m0-112a88.1 88.1 0 0 0-88 88c0 31.4 14.51 64.68 42 96.25a254.2 254.2 0 0 0 41.45 38.3a8 8 0 0 0 9.18 0a254.2 254.2 0 0 0 41.37-38.3c27.45-31.57 42-64.85 42-96.25a88.1 88.1 0 0 0-88-88m0 206c-16.53-13-72-60.75-72-118a72 72 0 0 1 144 0c0 57.23-55.47 105-72 118'/%3E%3C/svg%3E");
    --icon-calendar: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16M72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160zm-38.34-85.66a8 8 0 0 1 0 11.32l-48 48a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L116 164.69l42.34-42.35a8 8 0 0 1 11.32 0'/%3E%3C/svg%3E");
  }
}

@layer base {
  body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--page-grid);
    grid-auto-rows: min-content;
    align-items: start;
    font-family:
      ui-sans-serif,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      "Helvetica Neue",
      Arial,
      "Noto Sans",
      sans-serif,
      "Apple Color Emoji",
      "Segoe UI Emoji",
      "Segoe UI Symbol",
      "Noto Color Emoji";
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body > * {
    grid-column: 2;
  }

  .page {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: var(--page-grid);
    grid-auto-rows: min-content;
    align-items: start;
  }

  .page > * {
    grid-column: 2;
  }

  .page > .full-bleed {
    grid-column: 1 / -1;
  }

  p,
  li {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.15em;
  }

  .icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
  }

  h2 {
    margin-block: var(--space-8) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 300;
    text-transform: uppercase;
  }

  .page > section {
    margin-block: var(--space-8);
  }

  .page > section:not(.hero) p + p {
    margin-block-start: var(--space-8);
  }

  .page > section:not(.hero) p {
    max-width: var(--measure);
  }
}

@layer components {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
  }

  .site-header__logo {
    display: inline-flex;
    padding-block: var(--space-2) var(--space-1);
  }

  .logo {
    display: inline-block;
    height: 2rem;
    width: auto;
    aspect-ratio: 512 / 155;
    vertical-align: middle;
    color: var(--color-brand);
  }

  @media (min-width: 48rem) {
    .site-header {
      justify-content: space-between;
    }
  }

  .site-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid var(--color-border);
    z-index: 6;
  }

  .site-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-backdrop-filter: blur(12px) saturate(60%);
    backdrop-filter: blur(12px) saturate(60%);
  }

  .site-nav li {
    flex: 1;
  }

  .site-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    border-top: 4px solid transparent;
    font-weight: 500;
    text-transform: uppercase;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    border-top-color: var(--color-accent);
    text-decoration: none;
  }

  .site-nav a span {
    display: none;
  }

  @media (min-width: 48rem) {
    .site-nav {
      position: static;
      width: auto;
      border-top: none;
    }

    .site-nav ul {
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .site-nav li {
      flex: none;
    }

    .site-nav a {
      border-top: none;
      border-bottom: 4px solid transparent;
    }

    .site-nav a:hover,
    .site-nav a.is-active {
      border-bottom-color: var(--color-accent);
    }

    .site-nav a span {
      display: inline;
      white-space: nowrap;
    }
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding-block: var(--space-16);
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, max-content));
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    width: 100vw;
    font-size: var(--text-3xl);
  }

  .footer-logo::before,
  .footer-logo::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--color-accent);
  }

  .footer-logo::before {
    margin-inline-end: var(--space-8);
  }

  .footer-logo::after {
    margin-inline-start: var(--space-8);
  }

  .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .breadcrumbs li {
    padding-block: var(--space-2);
    white-space: nowrap;
  }

  .link-list {
    columns: 20ch auto;
    margin: 0;
    margin-block-start: var(--space-2);
    padding: 0;
    list-style: none;
  }

  .link-list li + li {
    margin-block-start: var(--space-2);
  }

  .prose {
    max-width: var(--measure);
    font-size: var(--text-base);
    line-height: 1.75;
  }

  article.prose {
    margin-inline: auto;
    font-size: var(--text-lg);
  }

  .prose h1 {
    margin-block: var(--space-4);
    font-size: 2.25em;
    font-weight: 600;
    line-height: 1.25;
  }

  .prose h2 {
    margin-block: 1.75em 0.5em;
    font-size: 1.75em;
    font-weight: 600;
    line-height: 1.25;
    text-transform: none;
  }

  .prose h3 {
    margin-block: 1.5em 0.5em;
    font-size: 1.375em;
    font-weight: 600;
    line-height: 1.25;
  }

  .prose p {
    margin-block: 1em;
  }

  .prose a {
    font-weight: 500;
    text-decoration: underline;
  }

  .prose ol,
  .prose ul {
    margin-block: 1em;
    padding-inline-start: 1.25em;
  }

  .prose ol {
    list-style: decimal;
  }

  .prose ul {
    list-style: disc;
  }

  .prose li {
    margin-block: var(--space-1);
  }

  .map {
    height: 60vh;
    min-height: 20rem;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    padding: 0.5em 1.5em;
    border: 0;
    border-radius: 0.25em;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--leading-sm);
    white-space: nowrap;
    color: var(--color-on-brand);
    background: var(--color-brand);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    user-select: none;
    transition:
      background 0.15s ease,
      box-shadow 0.15s ease;
  }

  .button:hover {
    background: var(--brand-400);
    box-shadow: none;
    text-decoration: none;
  }

  .button:active {
    background: var(--brand-400);
    box-shadow: none;
  }

  .button:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
  }
}
