/* Same palette and structure as wildhaustahoe.com's style.css, so the two sites read as
   related. Every color is a variable here so the dark scheme below only has to redefine
   them. */
:root {
  --color-bg: #f3ecdf;
  --color-text: #22262b;
  --color-accent: #2f5233;
  --color-muted: #5e6168;
  --color-border: #e0d6c4;
  --color-on-photo: #fff;
  color-scheme: light dark;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Follows the visitor's device setting; there's no toggle. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1e1c;
    --color-text: #ebe5d8;
    --color-accent: #9cc5a1;
    --color-muted: #a8a49a;
    --color-border: #323833;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

a {
  color: var(--color-accent);
}

.site-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.site-header .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 60vh;
}

/* The photo with the name and tagline over its lower edge. The gradient keeps white text
   readable over the lighter parts of the photo (WCAG AA contrast). */
.hero {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgb(0 0 0 / 75%), rgb(0 0 0 / 0%));
  color: var(--color-on-photo);
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  margin: 0;
}

.hero .tagline {
  font-size: 1.1rem;
  margin: 0.25rem 0 0;
}

/* Square on phones so the house stays visible above the text; wide on larger screens. */
@media (min-width: 721px) {
  .hero img {
    aspect-ratio: 16 / 9;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }
}

.about {
  text-align: center;
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 2.5rem auto;
}

.contact {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}
