/* === FONT === */
@font-face {
  font-family: "DecimaMono";
  src: url("fonts/DecimaMono.ttf") format("truetype");
  font-display: block;
}

/* === RESET/BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Tweak these to adjust widths/position */
  --left-col-min: 480px;   /* wider min column */
  --left-col-ideal: 36vw;  /* % of viewport */
  --left-col-max: 880px;   /* absolute cap */

  --hero-right-gap: 280px;  /* space between image and right edge */
  --hero-height: 100vh;     /* full viewport height */
  --hero-translate-x: 0px;  /* fine nudge horizontally */
  --hero-translate-y: 0px;  /* fine nudge vertically */
  --skeleton-base: #efefef;
  --skeleton-glow: rgba(255, 255, 255, 0.92);
}

body {
  font-family: "DecimaMono", monospace;
  background: white;
  margin: 0;
  padding: 0;
  color: black;
}

/* === LAYOUT === */
.container {
  display: grid;
  grid-template-columns: clamp(
      var(--left-col-min),
      var(--left-col-ideal),
      var(--left-col-max)
    )
    1fr;
  column-gap: clamp(16px, 3vw, 48px);
  align-items: start;
}

.left-column {
  padding: 58px 60px;
  font-size: 12px;
  letter-spacing: 0px;
  line-height: 1.17;
}

/* Fixed right panel, always centered vertically */
.right-fixed {
  position: fixed;                        /* anchor to viewport */
  top: 50%;                               /* push to vertical middle */
  right: var(--hero-right-gap);
  transform: translate(
    var(--hero-translate-x),
    calc(-50% + var(--hero-translate-y))
  );
  z-index: 1;
}

/* Wrap that matches the image size (so the mask aligns perfectly) */
.hero-wrap {
  position: relative;
  display: inline-block;
  min-width: 520px;
  min-height: 720px;
}

/* The visible image */
.hero-img {
  display: block;
  max-height: var(--hero-height); /* now 100vh */
  width: auto;
  height: auto;
  pointer-events: none; /* clicks go to masked link */
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.hero-ready .hero-img {
  opacity: 1;
}

.hero-skeleton {
  position: absolute;
  inset: 0;
  border: 1px solid #e5e5e5;
  background: linear-gradient(135deg, #f8f8f8 0%, #ebebeb 100%);
  transition: opacity 0.35s ease;
}

body.hero-ready .hero-skeleton {
  opacity: 0;
  pointer-events: none;
}

.skeleton-block {
  margin-bottom: 1.6rem;
}

.skeleton-intro {
  margin-bottom: 2rem;
}

.skeleton-line,
.skeleton-label,
.skeleton-tile,
.hero-skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--skeleton-base);
}

.skeleton-line::after,
.skeleton-label::after,
.skeleton-tile::after,
.hero-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    var(--skeleton-glow) 50%,
    transparent 65%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-label {
  width: 112px;
  height: 11px;
  margin-bottom: 0.45rem;
}

.skeleton-line {
  width: 100%;
  height: 10px;
  margin-bottom: 0.3rem;
}

.skeleton-line-wide {
  width: 94%;
}

.skeleton-line-short {
  width: 62%;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(6, 50px);
  gap: 2px;
}

.skeleton-tile {
  width: 50px;
  height: 50px;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Clickable silhouette exactly over the image */
.masked-link {
  position: absolute;
  inset: 0;
  display: block;

  /* Only opaque pixels clickable */
  -webkit-mask: url("images/right-image.png") no-repeat 0 0;
  mask: url("images/right-image.png") no-repeat 0 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;

  /* Tiny transparent bg to capture clicks */
  background: rgba(0, 0, 0, 0.001);
  z-index: 2;
}

/* Keep default arrow over the right image even though it's clickable */
.masked-link,
.masked-link:hover {
  cursor: default;
}

/* === CATEGORY BLOCKS === */
.category {
  margin-bottom: 1.5rem;
}

.category-title {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

/* === INTRO BLOCK === */
.intro-text {
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.intro-header {
  display: flex;
  justify-content: space-between;
  font-weight: normal;
  margin: 0;
  padding: 0;
  line-height: 1.17;
  width: 100%;
  box-sizing: border-box;
}

.intro-body {
  text-align: justify;
  margin: 0;
  padding: 0;
  line-height: 1.17;
  width: 100%;
  box-sizing: border-box;
}

.inline-category {
  margin-bottom: 0;
}

.inline-category strong {
  font-weight: bold;
}

/* === DEFAULT P-TYPE GRID (Games, etc.) === */
.p-grid-container {
  display: grid;
  grid-template-columns: repeat(6, 50px);
  grid-auto-rows: auto;
  column-gap: 2px;
  row-gap: 2px;
}

.p-grid-container img,
.p-grid-container .placeholder {
  width: 50px;
  height: auto;
  object-fit: contain;
  background-color: white;
  display: block;
}

/* === CATEGORY-SPECIFIC GRID SIZES === */
.fragrances-grid {
  grid-template-columns: repeat(6, 40px);
}

.fragrances-grid img,
.fragrances-grid .placeholder {
  width: 30px;
  height: auto;
}

.epsAlbums-grid {
  grid-template-columns: repeat(5, 60px);
}

.epsAlbums-grid img,
.epsAlbums-grid .placeholder {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* === PLACEHOLDERS === */
.placeholder {
  background: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: #fff;
}

/* === TEXT ROWS === */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

/* === DESIGNER GRID === */
.designer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  gap: 2px;
}

.designer-grid img,
.designer-grid .placeholder {
  width: 100px;
  height: 40px;
  object-fit: contain;
}

.designer-grid .placeholder {
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #555;
}

/* === COLOUR SWATCH === */
.color-swatch {
  width: 10px;
  height: 10px;
  margin-left: 0px;
  border: 1px solid #000;
  flex-shrink: 0;
  flex-grow: 0;
  align-self: center;
  box-sizing: content-box;
}

/* === FONTS PREVIEW === */
.font-preview {
  font-size: 14px;
}

.runway-item {
  white-space: nowrap;
}

.fonts-item {
  display: inline-block;
  white-space: pre;
  width: 100%;
}

/* === LINKS === */
a {
  color: inherit;
  text-decoration: none;
}

/* Keep hand cursor for normal links, not the masked one */
a:hover:not(.masked-link) {
  text-decoration: none;
  cursor: pointer;
}

/* === CUSTOM CURSOR === */
.custom-cursor {
  position: fixed;
  min-width: 24px;
  height: auto;
  padding: 6px 8px;
  background: black;
  color: white;
  font-size: 14px;
  font-family: inherit;
  white-space: nowrap;
  border-radius: 0px;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

.last-updated {
  font-size: 10px;
  opacity: 1;
  margin-top: 2rem;
}

/* Note: mobile rotate hack removed (you already block mobile) */
