@font-face {
  font-family: Inter;
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold-bright: #e6d1a0;
  --gold-mid: #dcc48a;
  --gold-deep: #d4b67a;
  --navy: #0a1220;
  --navy-mid: #101a2c;
  --text: #f3efe6;
  --text-soft: #b9b3a8;
  --line: rgba(230, 209, 160, 0.22);
  --focus: #e6d1a0;
}

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

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

html {
  background: var(--navy);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, var(--navy-mid) 0%, var(--navy) 70%);
  color: var(--text);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--gold-bright);
  border: 1px solid var(--line);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  flex: 0 0 auto;
}

.site-header {
  padding: 28px 0 0;
  text-align: center;
}

.brand-parent {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-mid);
  text-decoration: none;
}

.brand-parent:hover,
.brand-parent:focus-visible {
  color: var(--gold-bright);
}

main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 72px 0 80px;
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}

.lede {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--gold-bright);
}

.rule {
  width: 48px;
  height: 1px;
  margin: 36px auto 0;
  background: var(--gold-deep);
  border: 0;
}

.contact {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 1.05rem;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-mid);
}

.site-footer {
  padding: 0 0 36px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.01em;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-bright);
}

.site-footer p {
  margin: 0;
}

/* 404 */
.note {
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.home-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-mid);
  padding-bottom: 2px;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--gold-mid);
}

@media (max-width: 640px) {
  .wrap {
    width: min(720px, calc(100% - 40px));
  }

  main {
    padding: 56px 0 64px;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 160ms ease, border-color 160ms ease;
  }
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
