@font-face {
  font-family: "5x5 Dots";
  src: url("/fonts/5x5-dots/5x5dots.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

/* Kept declared but currently unreferenced -- PropCourier Sans replaced it as
   the site text face. Same standing arrangement as 5x5 Dots above: the files
   stay in the repo so text rendering can come back without re-sourcing them. */
@font-face {
  font-family: "OCR B Letterpress";
  src: url("/fonts/ocr-b-letterpress/ocr-b-letterpress-m-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

/* The site text face: everything except the centre wordmark, which is a masked
   image rather than live text. */
@font-face {
  font-family: "PropCourier Sans";
  src: url("/fonts/prop-courier-sans/PropCourierSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "PropCourier Sans";
  src: url("/fonts/prop-courier-sans/PropCourierSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}

:root {
  /* Fixed brand colours, set by the owner. These were briefly runtime-editable
     via a top-left colour picker; that was a temporary dev affordance and has
     been removed, so these are now the values.
       --ink      : every piece of text, on every page.
       --logo-ink : the masked centre wordmark only. Deliberately split from
                    --ink so the wordmark keeps its colour while all text goes
                    black -- they used to be the same variable.
       --glass    : the root background-color, i.e. what iOS Safari samples to
                    tint its Liquid Glass chrome. */
  --ink: #000000;
  --logo-ink: #00c7fc;
  --glass: #f1c9fe;

  /* A 20x25 copy of the background, inlined as a data URI (~1.8KB). Because it
     lives in the stylesheet it needs no network request of its own and paints
     on the very first frame -- so the page is never blank white while the
     full-resolution artwork downloads. Regenerate whenever background.png
     changes (match its aspect ratio -- currently 4:5):
       convert <source>.png -flatten -resize 20x25! -strip \
         -define png:compression-level=9 ph.png && base64 < ph.png */
  --bg-placeholder: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAZCAYAAAAxFw7TAAAFDklEQVQ4yyXUyY4lRxmA0e+PjBzvWHVr6nK5jdttN1YvwF6w4gl4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/SmZqyv8WHFhtf0JLQudCUDSGWSKoJzrEL39AajfcD+u66YF4psnROFddMaUYfagZ5oY1/JD/miCpRakZTlJRlgWSgZE7yNWM0RCx5UUM5R99sVpS6YRnPyZ0mUyc6eSbUns3smUIcojagEkqDZCU+zdHqFdEX+OkZOyl8nqNLhS7yQEo9KVQUbAis6FJHpltqZRAxZEpQImRKkaTATjNGO+GMxY6BGBRBLEEH9OSPIHBSHiUQJWFjTwoDPoBOilzlLPMjy/we5y/phvdEV2HHxORGfBqJWUS5gHbeICIYFUkZKDJ8METrGENERHHZJGb139DFX8F+go0rel/jA3TugPE9KQgXWHQmClEapTQBS0gRhaBTxeQmYvREvUf5f5Hw7NslewMoA3nJlGBvhDRZzvmArvXPQAKJACkhJDIBIRB9gFgwjpof4q9JUbEf7v6/Tu1omk9I4YLd6Uem7sgpnqGzdIUQCMkTUyDFiI8OO3Z0fQDxCAVdd0VvoY6WxnVYYwlhwzTlhNgRbMeLX6JD1AiKmHISiugDzk50fWTXa7q4R0xHSAnjPLjAgkCeP0FoSUnR0jJpMGnG/wABcQfXYMKH2AAAAABJRU5ErkJggg==");
}

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

html {
  height: 100%;
  /* The root background-color IS the feature here: on iOS Safari the Liquid
     Glass chrome tints itself from the page's background rather than from
     rendered content, so this is what shows through at the top/bottom. Set to
     the owner's specified colour. (Deliberate reversal of the earlier "never set a
     background-color" rule -- that rule existed because an *accidental* flat
     swatch appeared there; this is the same surface, now deliberate.) */
  background-color: var(--glass);
  background-image: url("/images/background.png"), var(--bg-placeholder);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body {
  min-height: 100%;
  font-family: "PropCourier Sans", "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color: var(--ink);
}

/* Home only: never scrolls. .backdrop is position:fixed (contributes no
   scroll height) and .stage is sized to the *smallest* viewport, so there is
   no overflow to scroll in the first place -- this just guarantees it. The
   about/designers pages have real content and MUST stay scrollable. */
html.page-home,
html.page-home body {
  overflow: hidden;
}

/* Full-bleed background layer. position:fixed sized to 100lvh (the *largest*
   viewport) means it spans the entire screen -- including behind Safari's
   translucent top and bottom chrome -- in every toolbar state, while adding
   zero scrollable height. This is what puts real artwork behind the glass. */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  background-image: var(--bg-placeholder);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Landscape viewports (i.e. desktop): the artwork is 4:5 portrait, so on a
   ~1.6-ratio screen `cover` scales it to match width and crops ~50% of its
   height away. Turning the backdrop a quarter turn means the box being covered
   is portrait again, so only ~22% is lost. Sizing it as (width: viewport
   height, height: viewport width) makes it land exactly viewport-sized once
   rotated. Portrait/phone viewports already match the artwork and are left
   alone. The ::before artwork layer is inset:0 inside this box, so it rotates
   along with it. */
@media (orientation: landscape) {
  .backdrop {
    top: 50%;
    left: 50%;
    width: 100vh;
    width: 100lvh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

/* The real artwork, over the placeholder. A pseudo-element paints above its
   parent's own background, so the placeholder shows through only until this
   finishes decoding -- then it's covered completely. */
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.stage {
  position: relative;
  z-index: 1;
  /* svh = smallest viewport (chrome fully expanded), so content always fits
     the visible area in every toolbar state and can never overflow into a
     scroll. The backdrop still covers everything behind and beyond it. */
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Centre wordmark, and a second link to Instagram alongside the corner mark.
   Not an <img>: the artwork is text on transparency, so it's used as a mask
   over a solid fill instead, which is what makes it recolourable at all.
   aspect-ratio matches the source PNG (1762x186) so the box is the right shape
   before the mask loads. The fill is --logo-ink, NOT --ink: the wordmark is the
   one thing that stays coloured while all text is black. */
.logo {
  display: block;
  position: relative;
  z-index: 1;
  width: clamp(240px, 34vw, 640px);
  aspect-ratio: 1762 / 186;
  background-color: var(--logo-ink);
  -webkit-mask-image: url("/images/logo-primary.png");
  mask-image: url("/images/logo-primary.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
  animation: textReveal 1s ease-out 2.15s forwards;
}

@keyframes textReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo {
    animation: none;
    opacity: 1;
  }
}

.intro-logo {
  /* Resting (final) box is defined once, anchored top-right, and never
     changes during the animation -- only `transform`/`opacity` animate.
     top/left/right/width are NOT animated: swapping left:50%<->left:auto
     (needed for an earlier center<->corner approach) isn't interpolatable,
     which caused a visible jerk/snap. */
  /* An <a> to Instagram wrapping the mark. The anchor itself carries the
     positioning/animation so it keeps a real clickable box -- an absolutely
     positioned child would collapse the link to zero size. */
  display: block;
  position: absolute;
  z-index: 2;
  top: clamp(24px, 6vw, 64px);
  right: clamp(24px, 6vw, 64px);
  width: clamp(64px, 9vw, 100px);
  height: auto;
  transform-origin: top right;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.7));
  animation: introReveal 3.2s forwards;
}

.intro-logo img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes introReveal {
  /* translate() shifts the (fixed-size, top-right-anchored) box so it
     appears centered in the viewport at 4.5x its resting size; scale()
     does the enlarging. Both properties always interpolate smoothly,
     unlike an earlier top/left/right/width approach. */
  0% {
    transform: translate(
        calc(-50vw + clamp(24px, 6vw, 64px) + clamp(64px, 9vw, 100px) * 2.25),
        calc(50vh - clamp(24px, 6vw, 64px) - clamp(64px, 9vw, 100px) * 2.25)
      )
      scale(4.5);
    opacity: 0;
    animation-timing-function: ease-in;
  }
  62.5% {
    transform: translate(
        calc(-50vw + clamp(24px, 6vw, 64px) + clamp(64px, 9vw, 100px) * 2.25),
        calc(50vh - clamp(24px, 6vw, 64px) - clamp(64px, 9vw, 100px) * 2.25)
      )
      scale(4.5);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-logo {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* wordmark + corner labels stay hidden until just after .intro-logo
   starts its move to the corner (2s into its 3.2s animation), then
   fade in together. */
.corner {
  position: absolute;
  bottom: clamp(32px, 7vw, 72px);
  font-family: "PropCourier Sans", "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(16px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink);
  text-shadow: none;
  white-space: nowrap;
  opacity: 0;
  animation: textReveal 1s ease-out 2.15s forwards;
}

/* Each corner is two stacked lines now (hours under "store + music"; the
   postal line under the street address). */
.corner__line {
  display: block;
}

/* inline-block so the hover rule underlines the address block itself rather
   than stretching the full width of the corner. */
.corner a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.corner a:hover {
  border-bottom-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .corner {
    animation: none;
    opacity: 1;
  }
}

.corner--left {
  left: clamp(32px, 7vw, 72px);
}

.corner--right {
  right: clamp(32px, 7vw, 72px);
  text-align: right;
}

@media (max-width: 640px) {
  .corner,
  .panel {
    font-size: clamp(13px, 3.6vw, 17px);
  }

  .corner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
  }

  /* Stacked here, so the address block has to clear a two-line hours block
     below it: 2 lines at line-height 1.35, plus a gap. */
  .corner--right {
    bottom: calc(clamp(24px, 8vw, 48px) + 3.4em);
  }

  .corner--left {
    bottom: clamp(24px, 8vw, 48px);
  }
}

/* ---------------------------------------------------------------------------
   top-left panel: nav
   Nav links are static markup in each page -- real navigation, must work
   without JS.
--------------------------------------------------------------------------- */

.panel {
  position: fixed;
  z-index: 10;
  top: clamp(16px, 3vw, 28px);
  left: clamp(16px, 3vw, 28px);
  font-family: "PropCourier Sans", "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Same scale as .corner, so all four screen-edge labels match. Keep these
     two in step if either changes. */
  font-size: clamp(16px, 2.2vw, 26px);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink);
}

/* On the home page the panel follows the same "nothing appears until the intro
   sequence gets there" rule as the wordmark and corner labels. */
html.page-home .panel {
  opacity: 0;
  animation: textReveal 1s ease-out 2.15s forwards;
}

@media (prefers-reduced-motion: reduce) {
  html.page-home .panel {
    animation: none;
    opacity: 1;
  }
}

.panel__nav {
  display: flex;
  gap: 12px;
}

.panel__nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.panel__nav a:hover,
.panel__nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

/* ---------------------------------------------------------------------------
   about / designers pages
--------------------------------------------------------------------------- */

.sheet {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(96px, 18vh, 200px) clamp(24px, 7vw, 80px) clamp(64px, 12vh, 140px);
  display: flex;
  justify-content: center;
}

.sheet__inner {
  width: 100%;
  max-width: 680px;
  color: var(--ink);
}

.sheet h1 {
  font-family: "PropCourier Sans", "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  margin-bottom: clamp(24px, 4vh, 44px);
}

.sheet p {
  font-family: "PropCourier Sans", "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.75;
  letter-spacing: 0.04em;
  margin-bottom: 1.4em;
}

/* --- designers: category filters --- */

/* Two independent groups (category, leaning). A row must match a checked box
   in *each* group to show -- so the groups AND together while the boxes within
   a group OR. Hence they read as separate labelled rows, not one flat list. */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(24px, 4vh, 40px);
  font-family: "PropCourier Sans", "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.filters__legend {
  opacity: 0.55;
  min-width: 5.5em;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.filters input {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  margin: 0;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  flex: none;
}

.filters input:checked {
  background: currentColor;
}

/* --- designers: list --- */

.designers {
  list-style: none;
  font-family: "PropCourier Sans", "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.04em;
}

/* Height-collapse + fade. The row is a 1-row grid whose track animates
   1fr -> 0fr; the inner wrapper has overflow:hidden + min-height:0 so it
   actually clips as the track closes. Rows below slide up naturally to fill
   the gap -- no JS measuring, no layout jump. */
.designer {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

.designer__inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 0.5em 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  /* The 0fr track collapses the *content* box, but this element's own padding
     and border are not clipped by overflow:hidden -- they'd leave ~16px of
     residual height per hidden row. So they animate to zero as well. */
  transition: padding 0.35s ease, border-bottom-width 0.35s ease;
}

.designer.is-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
}

.designer.is-hidden .designer__inner {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
}

.designer__name {
  flex: 1 1 auto;
}

.designer__leaning,
.designer__category,
.designer__location {
  flex: none;
  opacity: 0.7;
  font-size: 0.9em;
  text-transform: lowercase;
}

.designer__leaning {
  width: 6em;
}

/* Wide enough for the long case ("clothes; accessories; shoes"); it wraps
   inside its column rather than pushing the row, which the height-collapse
   animation handles fine since it never assumes a fixed row height. */
.designer__category {
  width: 12em;
}

.designer__location {
  width: 8.5em;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .designer,
  .designer__inner {
    transition: none;
  }
}

@media (max-width: 560px) {
  .designer__inner {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .designer__name {
    flex: 1 0 100%;
  }

  .designer__leaning,
  .designer__category,
  .designer__location {
    width: auto;
    font-size: 0.85em;
  }

  .designer__location {
    text-align: left;
  }
}
