:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #153d37;
  background: #f7f5ef;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #9a492e;
  outline-offset: 6px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px clamp(24px, 5vw, 72px) 24px;
}

.masthead {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.intro {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  text-align: center;
}

.horizon {
  position: relative;
  width: clamp(180px, 35vw, 320px);
  height: clamp(90px, 17.5vw, 160px);
  margin-bottom: 44px;
  overflow: hidden;
  border-bottom: 1px solid #153d37;
}

.horizon::after {
  position: absolute;
  right: -10%;
  bottom: -58%;
  left: -10%;
  height: 78%;
  border: 1px solid #153d37;
  border-radius: 50%;
  content: "";
}

.sun {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #c9754d;
}

.eyebrow {
  margin: 0 0 20px;
  color: #9a492e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8.5vw, 112px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

h1 span {
  font-style: italic;
}

.message {
  margin: 24px 0 0;
  color: #51645b;
  font-size: 16px;
  line-height: 1.6;
}

.error-title {
  font-size: clamp(40px, 6vw, 80px);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  text-decoration: none;
}

.footer {
  padding-top: 20px;
  border-top: 1px solid #d9dfd4;
  color: #51645b;
  font-size: 12px;
  letter-spacing: 0.025em;
}

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

  .intro {
    padding: 48px 0;
  }

  .horizon {
    margin-bottom: 32px;
  }
}
