/* src/styles.css */
:root {
  --text: #404040;
  --muted: #a9a39a;
  --bg: #fbfaf8;
  --max-content-width: 550px;
  --fade-ms: 800ms;
}

/* Use only if you are licensed to self-host Lars */
@font-face {
  font-family: "Lars";
  src: url("../public/fonts/Lars-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lars";
  src: url("../public/fonts/Lars-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lars", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100svh;
  padding: 80px 16px 40px;
}

.content {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.founded {
  margin: 2px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.35;
}

.slideshow {
  position: relative;
  width: 100%;
  margin-top: 40px;
  height: 390px;
  max-height: 390px;
  overflow: hidden;
  background: transparent;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--fade-ms) ease-in-out;
  will-change: opacity;
}

.slide-img.active {
  opacity: 1;
}

.footer {
  margin-top: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

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

.footer a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .slide-img {
    transition: none;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overscroll-behavior-y: none;
  }

  .page {
    padding-top: 40px;
    min-height: auto;
  }

  .slideshow {
    margin-top: 20px;
  }
}