@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/plus-jakarta-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: #f7f4ef;
  background: #0c1c12;
  -webkit-font-smoothing: antialiased;
}

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

body,
h1,
p {
  margin: 0;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding: 2.5rem 3.5rem;
  background:
    linear-gradient(to bottom, rgb(12 28 18 / 45%), rgb(12 28 18 / 65%)),
    url("assets/leaves.jpg") center / cover no-repeat;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgb(247 244 239 / 90%);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6ee7b7;
  animation: pulse 2.5s ease-in-out 2;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

main {
  width: min(100%, 620px);
  align-self: center;
  margin-inline: auto;
  padding-block: 2rem;
  text-align: center;
}

h1 {
  margin-bottom: 1.25rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgb(247 244 239 / 82%);
  text-wrap: pretty;
}

a {
  padding-block: 0.5rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(247 244 239 / 30%);
  text-underline-offset: 0.35rem;
  transition: text-decoration-color 0.2s;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

a:hover {
  text-decoration-color: #f7f4ef;
}

a:focus-visible {
  outline: 2px solid #f7f4ef;
  outline-offset: 6px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@supports (padding: env(safe-area-inset-top)) {
  .hero {
    padding-top: max(2.5rem, env(safe-area-inset-top));
    padding-right: max(3.5rem, env(safe-area-inset-right));
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
    padding-left: max(3.5rem, env(safe-area-inset-left));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.75rem;
    padding-top: max(1.75rem, env(safe-area-inset-top));
    padding-right: max(1.75rem, env(safe-area-inset-right));
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
    padding-left: max(1.75rem, env(safe-area-inset-left));
  }

  .site-header,
  .site-footer {
    font-size: 0.75rem;
  }

  .status {
    padding-inline: 0.65rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }

  a {
    transition: none;
  }
}
