/* iamhere.rest — v7. Finálna verzia. */
:root {
  --text: #fffdf5;
  --am: #6f8b43;               /* odsúhlasená lesná zelená, vzorka č. 1 */
  --site-font: 'Instrument Sans';
  --message-weight: 500;
  --contact-weight: 600;
  --message-y-desktop: 77%;   /* nižšie, v zeleni */
  --message-y-mobile: 68%;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { background: #0a0b09; }
.forest { background: #0a0b09; }
.forest {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.forest__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.message {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: var(--message-y-desktop);
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 0;
  font-family: var(--site-font), 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: var(--message-weight);
  font-size: clamp(21px, 2.3vw, 43px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
  text-shadow: 0 2px 9px rgba(0,0,0,.87), 0 1px 3px rgba(0,0,0,.8);
}
.message__mobile { display: none; }
.message__mobile > span { display: block; }

/* Rozostup na širokom monitore stojí na pevnom strope 210px.
   Zmenšovať sa začne až keď je okno užšie než 1560px. */
.contact {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: calc(5.5% + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-inline: clamp(28px, calc(50vw - 570px), 210px);
  font-family: var(--site-font), 'Avenir Next', 'Segoe UI', sans-serif;
  color: var(--text);
  text-shadow: 0 2px 9px rgba(0,0,0,.94), 0 1px 3px rgba(0,0,0,.8);
}
.contact__mail {
  flex: none;
  color: inherit;
  font-size: clamp(20px, 1.65vw, 30px);
  font-weight: var(--contact-weight);
  letter-spacing: -.012em;
  text-decoration: none;
}
.contact__mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__mail:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.contact__am {
  color: var(--am);
  text-shadow: 0 1px 3px rgba(0,0,0,.94), 0 2px 8px rgba(0,0,0,.88);
}
.contact__city {
  font-size: clamp(20px, 1.65vw, 30px);
  font-weight: var(--contact-weight);
  letter-spacing: .035em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) and (orientation: portrait) {
  /* Rovnaký les ako na desktope, ale mierne priblížený a ukotvený
     spodnou hranou, takže obloha zaberá menej a zeleň viac. */
  .forest__image {
    inset: auto 0 0 0;
    height: 114%;
    object-position: center bottom;
  }
  .message {
    top: var(--message-y-mobile);
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    font-size: clamp(21px, 5.6vw, 30px);
    font-weight: var(--message-weight);
    line-height: 1.31;
    white-space: normal;
  }
  .message__desktop { display: none; }
  .message__mobile { display: block; }
  .contact {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-inline: 12px;
    bottom: calc(5% + env(safe-area-inset-bottom, 0px));
  }
  .contact__mail { font-size: clamp(19px, 5.25vw, 25px); }
  .contact__city { font-size: clamp(19px, 5.25vw, 25px); letter-spacing: .075em; }
}
@media (max-width: 700px) and (orientation: landscape) {
  .message { font-size: clamp(15px, 2.5vw, 23px); }
  .contact { padding-inline: 28px; bottom: 3%; }
  .contact__mail { font-size: 17px; }
  .contact__city { font-size: 17px; }
}
@media (max-height: 570px) and (orientation: portrait) {
  .message { top: 60%; font-size: 20px; }
  .contact { bottom: 2%; }
}

/* Na uzsich desktopovych oknach nesmie nadpis utekat za okraj. */
@media (min-width: 701px) and (max-width: 900px) {
  .message { width: calc(100% - 40px); white-space: normal; }
}
