/* The Schmidt House — local styles only. No fonts, CDNs, or tracking. */
:root {
  --paper: #f6f1e8;
  --ink: #1e241c;
  --ink-soft: #3d4438;
  --forest: #1e3a2f;
  --forest-deep: #14261f;
  --gold: #b8892a;
  --gold-lite: #e7d3a1;
  --line: #d7cbb6;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  padding-top: var(--safe-top);
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero {
  margin: 0;
  background: var(--paper);
}

.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.15rem calc(1.25rem + var(--safe-right)) calc(1.5rem + var(--safe-bottom)) calc(1.25rem + var(--safe-left));
  text-align: center;
}

.welcome h1 {
  margin: 0 0 0.5rem;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}

.welcome h1 .name { display: block; }

.tagline {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.motto {
  margin: 0;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--forest);
}

.motto::before,
.motto::after {
  content: " · ";
  color: var(--gold);
  font-style: normal;
}

@media (max-width: 340px) {
  .welcome h1 { font-size: 1.4rem; }
}

/* Short landscape: show the whole photo beside the words so nothing is cropped. */
@media (max-height: 500px) and (orientation: landscape) {
  main {
    flex-direction: row;
    align-items: stretch;
  }

  .hero {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 70%;
    background: #d8dee4;
  }

  .hero img {
    width: auto;
    height: calc(100dvh - var(--safe-top));
    max-width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
  }

  .welcome {
    flex: 1 1 15rem;
    max-width: none;
    justify-content: center;
    text-align: left;
    padding: 0.7rem calc(1.15rem + var(--safe-right)) calc(0.7rem + var(--safe-bottom)) 1.1rem;
  }

  .welcome h1 { font-size: 1.35rem; margin-bottom: 0.4rem; }
  .welcome h1 .name { display: block; }
  .tagline { font-size: 0.98rem; margin-bottom: 0.5rem; }
  .motto { font-size: 1.05rem; }
}

/* Wide + tall: fit the whole photo and the welcome lines on the first screen. */
@media (min-width: 900px) and (min-height: 700px) {
  .hero {
    display: flex;
    justify-content: center;
    background: var(--paper);
  }
  .hero picture { display: block; width: auto; max-width: 100%; }
  .hero img {
    width: auto;
    max-width: min(100%, 72rem);
    max-height: calc(100dvh - 9.75rem);
    margin: 0 auto;
  }
  .welcome {
    flex: 0 0 auto;
    padding-top: 1.25rem;
    padding-bottom: calc(1.5rem + var(--safe-bottom));
  }
  .welcome h1 { font-size: 2rem; }
  .welcome h1 .name { display: inline; }
  .tagline { font-size: 1.15rem; }
  .motto { font-size: 1.25rem; }
}
