/* -----------------------------------------------------------
   DE QUEIROZ VON BREMEN — interim placeholder
   Reset & base
------------------------------------------------------------ */
@font-face {
  font-family: "ABC Schengen Mono";
  src: url("fonts/ABCSchengenAMono-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Schengen Mono";
  src: url("fonts/ABCSchengenAMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "ABC Schengen Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 100;
  line-height: 1.3;
  color: #000;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

button {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
}

/* -----------------------------------------------------------
   About zone (top-left) — wraps the studio name and the About
   content. On desktop, hovering just the studio name (see the
   mousemove-based trigger logic in script.js) opens it; on touch,
   tapping it does. Purely a layout container otherwise — it no
   longer drives the hover/open state itself.
------------------------------------------------------------ */
#about-zone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  max-width: 480px;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    26px max(20px, env(safe-area-inset-left));
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Positioned absolutely (out of #about-zone's flow) so #about-content
   below can start flush with it. */
#studio-name {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  /* #about-content comes after it in the DOM and, once open, its own
     padding-top (there to visually clear the name) still overlaps this
     box for hit-testing purposes — without a z-index, that later paint
     order would put the (now interactive) content on top and swallow
     hover/touch meant for the name underneath it. */
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  user-select: text;
  pointer-events: auto;
  transition: opacity 0.4s ease-out;
}

/* Scoped to real hover so tapping on touch can't trigger this via
   mobile Safari's "sticky :hover after tap". */
@media (hover: hover) and (pointer: fine) {
  #studio-name:hover {
    opacity: 0.5;
  }
}

span.kern {
  letter-spacing: 1px;
}

/* Studio name starts out reduced to its initials; the remaining letters
   fade in together with the About content. opacity (not display/visibility)
   keeps their width reserved so the initials don't shift when revealed. */
#studio-name .label-default .letter-rest {
  opacity: 0;
  transition: opacity 1s ease-out;
}

body.about-open #studio-name .label-default .letter-rest {
  opacity: 1;
}

/* -----------------------------------------------------------
   About backdrop — transparent, full-screen layer shown while the
   About content is open. Purely functional (not a visual dim, since
   the whole page is already plain white): it catches outside
   clicks/taps to close About.
------------------------------------------------------------ */
#about-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: transparent;
  pointer-events: none;
}

body.about-open #about-backdrop {
  pointer-events: auto;
}

/* -----------------------------------------------------------
   About content — address, email, Instagram. Hidden via
   opacity/visibility rather than display:none so it still has real,
   measurable geometry the instant it opens (the hover logic in
   script.js reads its bounding box).
------------------------------------------------------------ */
#about-content {
  display: block;
  width: 100%;
  padding-top: 24px;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.8s ease-out, visibility 0s linear 0.8s;
  user-select: text;
  -webkit-user-select: text;
}

body.about-open #about-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease-out, visibility 0s linear 0s;
}

#about-content p {
  font-size: 11px;
  font-weight: 100;
  line-height: 1.3;
  letter-spacing: 0.02em;
  cursor: default;
}

#about-content a {
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

#about-content a:hover {
  opacity: 0.5;
}

/* -----------------------------------------------------------
   Mobile
------------------------------------------------------------ */
@media (max-width: 900px) {
  #about-zone {
    padding-top: env(safe-area-inset-top);
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: env(safe-area-inset-right);
    padding-bottom: 20px;
  }

  #studio-name {
    top: max(20px, env(safe-area-inset-top));
    left: max(20px, env(safe-area-inset-left));
  }

  #about-content {
    padding-top: 60px;
    padding-right: 20px;
  }
}
