@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Satoshi", Arial, sans-serif;
  font-synthesis: none;
  background: #000;
  color: #faf6ee;
  --muted: #cfcbc3;
}

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #000;
  background: #faf6ee;
}

.page {
  width: min(100%, 1440px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 44px clamp(24px, 6vw, 88px) 32px;
  display: flex;
  flex-direction: column;
}

.masthead,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  padding-block: 8px;
}

.brand img {
  width: 174px;
  height: auto;
  display: block;
}

.footer {
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 88px 96px;
}

.intro {
  width: 100%;
}

h1 {
  margin: 0 0 48px;
  max-width: 1120px;
  font-size: clamp(3rem, 7.25vw, 6.5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.description {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.contact,
.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact {
  gap: 18px;
  padding: 0 28px;
  border: 1px solid #faf6ee;
  background-color: #faf6ee;
  background-image: linear-gradient(180deg, #fffdf8, #e9e4db);
  color: #111;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #fff;
}

.contact svg,
.copy-email svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact .contact-arrow {
  width: 24px;
  height: 25px;
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.copy-email {
  position: relative;
  width: 58px;
  padding: 0;
  border: 1px solid #494740;
  background: #151512;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.check-icon,
.copy-email[data-copied] .copy-icon {
  display: none;
}

.copy-email[data-copied] .check-icon {
  display: block;
}

.copy-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border: 1px solid #35342f;
  border-radius: 6px;
  background: #191916;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.copy-email:hover .copy-tooltip,
.copy-email:focus-visible .copy-tooltip {
  opacity: 1;
}

.contact-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.email-fallback {
  width: min(100%, 300px);
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #494740;
  border-radius: 8px;
  background: #151512;
  color: #faf6ee;
  font: inherit;
  font-size: 0.875rem;
}

.email-address {
  color: var(--muted);
  font-size: 0.875rem;
}

.investment {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.contact:hover {
  box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgb(250 246 238 / 12%);
}

.copy-email:hover {
  background: #262620;
  border-color: #747167;
}

.contact:active,
.copy-email:active {
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 18%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #faf6ee;
  outline-offset: 8px;
  border-radius: 2px;
}

.footer p {
  margin: 0;
}

.origin {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swedish-flag {
  width: 20px;
  height: 12.5px;
  flex: none;
}

@media (max-width: 600px) {
  .page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .brand img {
    width: 145px;
  }

  main {
    padding-block: 88px;
  }

  h1 {
    font-size: clamp(2.75rem, 11.5vw, 4.25rem);
    margin-bottom: 40px;
  }

  .description {
    max-width: 360px;
    font-size: 1rem;
  }

  .footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .origin {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact,
  .copy-email {
    transition: none;
    transform: none;
  }
}
