/* stevestreit.com: static replacement for the 2021 WordPress "Go" theme page. */

:root {
  --ink: #000;
  --muted: #555;
  --paper: #fff;
  --hero-top: #8e8e8e;
  --hero-bottom: #cecece;
  --on-hero: #fff;
  --rule: #e2e2e2;
  --measure: 38rem;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Mukta, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  line-height: 2.25;
}

a {
  color: var(--muted);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
  z-index: 10;
}

.skip:focus {
  left: var(--gutter);
}

/* Header sits over the grey hero, as on the original. */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2rem;
  line-height: 1.4;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
}

.site-description {
  color: var(--on-hero);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.site-header nav a {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.hero {
  margin: 0;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(var(--hero-top), var(--hero-bottom));
}

.hero img {
  display: block;
  height: 100%;
  width: auto;
}

article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.subtitle {
  margin: 0.75rem 0 3rem;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
}

article p {
  margin: 0 0 1.5rem;
}

article h2 {
  margin: 2.75rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

article ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  line-height: 1.9;
}

article li {
  margin-bottom: 0.6rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem var(--gutter) 3rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
}

.social {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
    line-height: 2;
  }

  .site-header {
    position: static;
    padding: 0.9rem var(--gutter);
    background: var(--hero-top);
    flex-wrap: wrap;
  }

  .brand {
    gap: 0.25rem 0.75rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .hero {
    height: 360px;
  }

  article {
    padding-top: 2.25rem;
  }
}
