/* The Thomas Nielsen, LLC — site styles. No JavaScript; layout is pure CSS. */

:root {
  --bg: #e7e7e7;
  --text: #151515;
  --max-width: 1500px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html {
  /* 15px base: all type is rem/clamp-based, so this scales the whole site ~6% smaller. */
  font-size: 93.75%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0 0 1.25em;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem var(--gutter);
}

.site-title {
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 400;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ---------- Main ---------- */

main {
  flex: 1;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 2.5rem var(--gutter) 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
}

.site-footer .footer-brand {
  text-align: center;
  max-width: 22em;
}

.site-footer .footer-contact {
  text-align: right;
  margin-left: auto;
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(90vh, 900px);
  margin: 0 var(--gutter);
  padding: 4rem 1rem;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("images/sf-skyline.jpg") center 60% / cover no-repeat;
}

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.01em;
}

/* ---------- Home: feature block ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 clamp(2rem, 8vw, 9rem);
  margin: 0 var(--gutter);
}

.feature img {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  object-fit: cover;
}

.feature-text {
  padding: clamp(3rem, 10vh, 8rem) 0 3rem;
}

.feature-text h2 {
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  margin-bottom: 1.25em;
}

.feature-text p {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  margin-bottom: 2.5em;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 8vw, 9rem);
  align-items: start;
  margin: 0 var(--gutter);
  padding: clamp(2rem, 6vh, 5rem) 0 3rem;
}

.contact h1 {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  margin-bottom: 0.6em;
}

.contact p {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  max-width: 40em;
}

.contact .email {
  display: inline-block;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  margin-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact img {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
}

/* ---------- Privacy ---------- */

.policy {
  max-width: 46em;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 9rem) var(--gutter) 4rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.policy h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 0.5em;
}

.policy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin: 1.5em 0 0.75em;
}

.policy .meta {
  margin-bottom: 3em;
}

.policy a {
  text-decoration: underline;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
  }

  .feature,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .feature-text {
    padding-top: 2.5rem;
  }

  .contact {
    padding-top: 1.5rem;
  }

  .contact img {
    order: -1;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-brand,
  .site-footer .footer-contact {
    text-align: center;
    margin-left: 0;
  }
}