/* nlsleasing.com one-page site. Brand colors from docs/brand/README.md. */
:root {
  --charcoal: #181818;
  --gold: #c9a44e;      /* the sun; on charcoal, or as a rule on light backgrounds */
  --gold-ink: #7a5c14;  /* gold for text on light backgrounds (6:1 on white) */
  --ivory: #f4f1ea;
  --ink: #181818;
  --muted: #4a4a4a;
  --rule: #e2ddd1;
  --page: #ffffff;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.wrap {
  flex: 1 0 auto;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--gold-ink);
  text-underline-offset: 0.15em;
}

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

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

/* Header */
.site-header {
  background: var(--charcoal);
  border-bottom: 4px solid var(--gold);
  padding: 1.5rem 0;
}

.logo {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
}

/* Main */
main.wrap {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

h1,
h2 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

section + section {
  margin-top: 2.5rem;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Properties */
.properties {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.properties li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.properties li:last-child {
  border-bottom: 0;
}

.property-name {
  display: block;
  font-weight: 600;
}

.property-address {
  display: block;
  color: var(--muted);
}

/* Contact */
.contact-list {
  margin: 0.5rem 0 0;
  background: var(--ivory);
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
}

.contact-list > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list > div:last-child {
  border-bottom: 0;
}

.contact-list dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.contact-list address {
  font-style: normal;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 2rem 0;
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover {
  color: var(--ivory);
}

.opt-out {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #3a3a3a;
}

/* Wider screens */
@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }

  .site-header {
    padding: 2rem 0;
  }

  main.wrap {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .contact-list > div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    align-items: baseline;
    gap: 1rem;
  }
}

.nowrap {
  white-space: nowrap;
}
