/* Homepage only. Other pages keep their own styles. */
@font-face {
  font-family: "Cageroll";
  src: url("../fonts/cageroll.otf") format("opentype");
  font-display: swap;
}
:root { --ink: #780569; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Cageroll", Georgia, serif; color: var(--ink); background: #fa7590; }
.home {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  background: url("../images/Circle BG.png") center / cover no-repeat;
}
.home-title {
  position: relative;
  z-index: 2;
  flex: 0 0 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 3% 0 14%;
  color: var(--ink);
  font-size: clamp(4.8rem, 8.6vw, 9rem);
  font-weight: normal;
  line-height: 1;
  text-align: center;
  text-shadow: 2px 3px 0 rgba(58,0,44,.2);
}
.home-nav { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.nav-item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 7% 10px 43%;
  border-top: 2px solid rgba(120,5,105,.5);
  color: var(--ink);
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  line-height: 1.05;
  text-align: right;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-item:last-child { border-bottom: 2px solid rgba(120,5,105,.5); }
.nav-item:hover, .nav-item:focus-visible { background: rgba(120,5,105,.12); color: #fff570; }
.nav-item:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }
/* Portrait height tracks the homepage, with a hard cap below the title. */
.portrait {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  display: block;
  height: 110%;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: bottom left;
  pointer-events: none;
}
.home-footer {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 10px 5%;
  font-size: clamp(.9rem, 1.4vw, 1.35rem);
}
@media (max-width: 850px) {
  .home-title { font-size: clamp(2.5rem, 7vw, 5.5rem); }
  .nav-item { padding-left: 35%; font-size: clamp(2rem, 6vw, 4.5rem); }
  .portrait { height: 70%; }
}
@media (max-width: 600px) {
  .home { min-height: 580px; }
  .home-title { flex-basis: 24%; padding-left: 5%; font-size: clamp(2rem, 8vw, 3.5rem); }
  .nav-item { padding: 12px 5% 12px 25%; font-size: clamp(1.7rem, 6vw, 3rem); }
  .portrait { height: 53%; }
  .home-footer { gap: 10px; flex-wrap: wrap; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .nav-item { transition: none; } }

/* Mobile artwork: desktop homepage remains untouched above 600px. */
.mobile-artwork { display: none; }
@media (max-width: 600px) {
  .home { display: none; }
  .mobile-artwork { display: block; position: relative; width: 100%; line-height: 0; }
  .mobile-artwork img { display: block; width: 100%; height: auto; }
  .mobile-hotspot { position: absolute; z-index: 5; display: block; cursor: pointer; }
  .mobile-hotspot:focus-visible { outline: 3px solid #780569; outline-offset: 2px; }
}
/* Mobile homepage is hidden on desktop */
.mobile-home {
  display: none;
}

/* Mobile homepage only */
@media (max-width: 600px) {

  .home {
    display: none;
  }

  .mobile-home {
    display: block;
    position: relative;
    width: 100%;
  }

  .mobile-home-image {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Clickable navigation areas */
  .mobile-home a {
    position: absolute;
    display: block;
    top: 26%;
    height: 12%;
    z-index: 10;
  }

  .mobile-about {
    left: 5%;
    width: 27%;
  }

  .mobile-archive {
    left: 35%;
    width: 29%;
  }

  .mobile-contact {
    left: 67%;
    width: 29%;
  }
}