:root {
  --bg: #fafafa;
  --ink: #2f2f2f;
  --brand: #5e2a2c;
  --muted: rgba(47, 47, 47, 0.4);
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav: clamp(1.45rem, 2.4vw, 2.5rem);
  --nav-m: 1.45rem;
  --body: 1.05rem;
  --pad: clamp(1.15rem, 3.4vw, 3rem);
}

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

html, body { height: 100%; }

html { background: var(--bg); }

@media (max-width: 860px) {
  html, body { overflow: hidden; height: 100dvh; }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.04em;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--bg);
  color: var(--brand);
  padding: 0.4rem 0.6rem;
}

/* ---- chrome ---- */
.top, .foot {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 20;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.top {
  top: 0;
  padding-top: clamp(1.1rem, 3vw, 2.6rem);
}

.foot {
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.1rem, 3vw, 2.4rem);
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.nav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.nav-item:nth-child(1) { text-align: left; }
.nav-item:nth-child(2) { text-align: center; }
.nav-item:nth-child(3) { text-align: center; }
.nav-item:nth-child(4) { text-align: center; }
.nav-item:nth-child(5) { text-align: right; }

.word {
  display: inline-block;
  font-size: var(--nav);
  line-height: 1.15;
  letter-spacing: 0.03em;
  padding: 0.15em 0.1em 0.2em;
  min-height: 44px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-item.is-active > .word,
.word.is-active,
.word:hover,
.word:focus-visible {
  color: var(--brand);
}

.hover-card {
  position: absolute;
  top: calc(100% + 0.15rem);
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  color: var(--brand);
  font-size: clamp(0.92rem, 1.15vw, 1.125rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.nav-item:nth-child(1) .hover-card { text-align: left; }
.nav-item:nth-child(2) .hover-card,
.nav-item:nth-child(3) .hover-card,
.nav-item:nth-child(4) .hover-card { text-align: center; }
.nav-item:nth-child(5) .hover-card { text-align: right; }

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover .hover-card,
  .nav-item:focus-within .hover-card {
    opacity: 1;
    pointer-events: auto;
  }
}

.nav-item.is-open .hover-card {
  opacity: 1;
  pointer-events: auto;
}

.hover-card a,
.hover-card p {
  margin: 0;
}

.hover-card a {
  display: block;
  padding: 0.28rem 0;
  min-height: 40px;
  color: var(--brand);
}

.hover-card a:hover,
.hover-card a:focus-visible { text-decoration: underline; text-underline-offset: 0.18em; }

.foot a,
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  color: var(--muted);
  min-height: 44px;
  transition: color 0.2s ease;
}

.foot a:hover,
.foot a:focus-visible { color: var(--brand); }

.arrow {
  width: 0.72em;
  height: 0.72em;
  flex: 0 0 auto;
}

/* mobile header like Otto: pages left, brand center, extras right */
.mobile-bar { display: none; }

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7.5rem var(--pad) 6.5rem;
}

.art {
  position: relative;
  display: block;
  width: clamp(220px, 32vmin, 380px);
  height: clamp(220px, 32vmin, 380px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
}

.art > picture,
.art > img {
  display: block;
  width: 100%;
  height: 100%;
}

.art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.art img.is-window {
  object-position: center 70%;
}

.copy {
  margin: 1.35rem auto 0;
  max-width: 34rem;
  text-align: center;
  font-size: var(--body);
  letter-spacing: 0.055em;
  line-height: 1.45;
  color: var(--ink);
}

.copy p { margin: 0 0 0.95em; }
.copy p:last-child { margin-bottom: 0; }

.copy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.copy a:hover,
.copy a:focus-visible { color: var(--brand); }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin-top: 1.4rem;
}

.links a {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.1em;
}
.links a:hover,
.links a:focus-visible { color: var(--brand); }

@media (max-width: 860px) {
  .nav { display: none; }

  .mobile-bar {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    padding: 1.05rem 1.1rem 0;
    min-height: 2.6rem;
  }

  .m-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    position: relative;
    z-index: 1;
    max-width: 42%;
  }
  .m-right { display: none; }

  .m-left .word,
  .m-brand {
    font-size: var(--nav-m);
    min-height: 40px;
    padding: 0.12em 0;
  }

  .m-brand {
    position: absolute;
    left: 50%;
    top: 1.05rem;
    transform: translateX(-50%);
    color: var(--ink);
    line-height: 1.15;
    z-index: 2;
  }
  .m-brand.is-active { color: var(--brand); }

  .foot {
    justify-content: space-between;
    gap: 1rem;
  }
  .foot a {
    font-size: 1.2rem;
  }

  .m-sub {
    display: none;
    flex-direction: column;
    padding: 0.15rem 0 0.35rem 0.15rem;
  }
  .m-item.is-open .m-sub { display: flex; }
  .m-sub a {
    color: var(--brand);
    font-size: 1.15rem;
    padding: 0.35rem 0;
    min-height: 40px;
  }

  .stage {
    padding: 13.2rem 1.1rem 5.6rem;
    justify-content: center;
  }
  .stage--home {
    justify-content: center;
    padding-top: 13.2rem;
  }
  .art {
    width: 62vw;
    height: 62vw;
    max-width: 62vw;
    max-height: 62vw;
  }
  .stage:not(.stage--home) .art {
    width: min(52vw, 28dvh);
    height: min(52vw, 28dvh);
    max-width: min(52vw, 28dvh);
    max-height: min(52vw, 28dvh);
  }
  .copy {
    font-size: 0.94rem;
    letter-spacing: 0.04em;
    margin-top: 0.95rem;
    max-width: 20rem;
  }
  .copy p { margin: 0 0 0.65em; }
  .links { margin-top: 0.85rem; gap: 0.2rem 1.15rem; }
  .links a { font-size: 1.25rem; }
}

