﻿@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/fira-sans-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/fira-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fira-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-400.woff2") format("woff2");
}

:root {
  color-scheme: light;
  /* Colors from sysav.se: white-40, ocean-100, and fjord-20. */
  --color-background: #fcfbfa;
  --color-text: #415e72;
  --color-accent: #415e72;
  --color-footer-text: #fcfbfa;
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
}

.container {
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
}

@media (min-width: 64rem) {
  .container {
    width: min(100% - 120px, 1400px);
  }
}

.site-header {
  padding-block: 1.5rem;
  background: var(--color-background);
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: block;
  width: 130px;
  height: auto;
}

main {
  position: relative;
  flex: 1;
  padding-block: clamp(2rem, 8vw, 5rem);
}

@media (min-width: 570px) {
  main {
    padding-top: 1.5rem;
  }
}

@media (min-width: 64rem) {
  main {
    padding-bottom: 8rem;
  }
}

@media (min-width: 1600px) {
  main {
    padding-top: clamp(1.5rem, calc(1.5rem + (100vw - 1600px) * 0.2), 8rem);
  }
}

.notice {
  max-width: 830px;
  margin-inline: auto;
  text-align: center;
}

.scene {
  display: none;
}

@media (min-width: 64rem) {
  main > .container {
    position: relative;
    z-index: 1;
  }

  .scene-frame {
    position: absolute;
    inset: 0;
    width: min(100% - 120px, 1400px);
    margin-inline: auto;
    pointer-events: none;
  }

  .scene {
    display: block;
    position: absolute;
    bottom: 0;
    height: auto;
  }

  .scene-sign {
    left: 0;
    width: 18%;
  }

  .scene-truck {
    right: 0;
    width: 24%;
  }
}

.notice-image {
  display: block;
  max-width: min(100%, 800px);
  height: auto;
  margin: 2rem auto 0;
}

@media (min-width: 64rem) {
  .notice-image {
    display: none;
  }
}

h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 3.375rem;
  line-height: 1.2;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.intro {
  font-weight: 500;
  font-size: 1.5rem;
  text-wrap: balance;
}

.notice-contact {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  text-wrap: pretty;
}

.notice-contact a {
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.notice-link {
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
}

.notice-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.notice-link svg {
  flex: none;
}

@media (max-width: 569.98px) {
  .notice {
    text-align: left;
  }
}

@media (max-width: 63.99rem) {
  h1 {
    font-size: 2.25rem;
  }

  .intro {
    font-size: 1.25rem;
  }
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.site-footer {
  padding-block: 3rem;
  background: var(--color-accent);
  color: var(--color-footer-text);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.site-footer p {
  margin: 0;
  font-weight: 400;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .site-logo {
  width: 100px;
  height: auto;
}

@media (min-width: 570px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bio {
  max-width: 32rem;
  font-size: 1rem;
  text-wrap: pretty;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(209 228 240 / 0.3);
  font-size: 1rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .social-links a {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  color: #d1e4f0;
  text-decoration: none;
}

.site-footer .social-links a:hover {
  color: #fff;
}

.social-links svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer h2 {
  margin: 0 0 1rem;
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #d1e4f0;
}

.site-footer a:focus-visible {
  outline-color: var(--color-footer-text);
}
