:root {
  --cream: #FBF7EF;
  --ink: #1F3B3A;
  --coral: #E8552B;
  --bg: #FBF7EF;
  --fg: #1F3B3A;
  --motto: #5B7A70;
  --muted: #7A9088;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101916;
    --fg: #FBF7EF;
    --motto: #9BB5AB;
    --muted: #8AA399;
  }
}

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

html {
  color-scheme: light dark;
  background: var(--bg);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fg);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: min(40rem, calc(100% - 2.5rem));
  margin: auto;
  padding: 4rem 0 2rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 0;
}

.wordmark {
  display: block;
  width: min(32rem, 100%);
  height: auto;
  margin-inline: auto;
}

.motto {
  margin: 1.15rem 0 0;
  color: var(--motto);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.soon {
  margin: 2.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-wrap {
  margin: 1.6rem 0 0;
}

.contact {
  display: inline-block;
  color: var(--fg);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 32%, transparent);
  padding-bottom: 0.12rem;
}

.contact:hover,
.contact:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.contact:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-bottom-color: transparent;
}

.rev {
  unicode-bidi: bidi-override;
  direction: rtl;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-img {
  display: none;
  height: 1.15rem;
  width: auto;
  vertical-align: middle;
}

html.no-js .rev,
html.no-js .sr-only {
  display: none;
}

html.no-js .contact {
  border-bottom: 0;
}

html.no-js .contact-img {
  display: inline-block;
}

footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem 2.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

footer p {
  margin: 0;
}

@media (max-width: 40rem) {
  main {
    padding-top: 3rem;
  }

  .soon {
    letter-spacing: 0.18em;
  }
}
