/* ---------- Fonts (self-hosted, no remote calls) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'),
       url('../fonts/montserrat-latin-400-normal.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-400-italic.woff2') format('woff2'),
       url('../fonts/montserrat-latin-400-italic.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'),
       url('../fonts/montserrat-latin-700-normal.woff') format('woff');
}

/* ---------- Tokens ---------- */
:root {
  --beige: #CFC4AC;
  --rust: #9A5A34;
  --coal: #1A1E21;

  --footer-h: 7rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--beige);
  color: var(--coal);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: calc(100svh - var(--footer-h));
  overflow: hidden;
  background: var(--beige);
  display: flex;
  align-items: center;
}

.hero__text {
  position: relative;
  z-index: 1;
  max-width: 40ch;
  margin: 0;
  padding: 0 var(--gutter);
  font-size: clamp(1rem, 1.45vw, 1.375rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--coal);
}
.hero__text span { display: block; }

.hero__crow {
  position: absolute;
  right: 20%;
  bottom: -2%;
  height: 88%;
  width: auto;
  max-width: 70vw;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
}

/* ---------- Footer ---------- */
.footer {
  flex: 0 0 auto;
  min-height: var(--footer-h);
  background: var(--coal);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  line-height: 1.55;
}

.footer__contact { margin: 0; }

.footer__mail {
  color: var(--rust);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  /* >=44px tap target without shifting the text baseline */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
}
.footer__mail:hover,
.footer__mail:focus-visible { text-decoration: underline; }
.footer__mail:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.footer__legal {
  margin: 0;
  text-align: right;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.footer__legal span { display: block; }
.footer__name { font-weight: 700; color: var(--rust); }
.footer__legal .is-muted { opacity: 0.78; font-size: 0.95em; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero__crow { right: 6%; height: 68%; }
  .hero { align-items: flex-start; padding-top: clamp(2.5rem, 8vh, 5rem); }
  .hero__text { max-width: 34ch; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --footer-h: 8.5rem; }
  .hero { padding-top: clamp(1.75rem, 6vh, 3rem); }
  .hero__text { max-width: none; font-size: 1rem; line-height: 1.65; }
  .hero__crow {
    right: 50%;
    transform: translateX(50%);
    height: 46%;
    max-width: 86vw;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
  }
  .footer__legal { text-align: left; }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  :root { --footer-h: 5.5rem; }
  .hero { align-items: center; padding-top: 0; }
  .hero__text { font-size: 0.875rem; line-height: 1.5; max-width: 44ch; }
  .hero__crow { height: 80%; right: 8%; }
  .footer { padding-block: 0.75rem; font-size: 0.875rem; }
  .footer__mail { min-height: 36px; margin: -8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
