.discover-page { background: url("assets/fond.jpg") center / cover fixed; }
.discover-main { overflow: hidden; }

.discover-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, .55fr);
  gap: 50px;
  align-items: center;
  min-height: 430px;
  padding: clamp(65px, 10vw, 125px) max(24px, calc((100vw - 1160px) / 2));
}
.discover-intro::before {
  position: absolute;
  top: 12%;
  right: -8%;
  width: 48%;
  height: 70%;
  background: rgb(113 49 61 / 18%);
  content: "";
  transform: rotate(-8deg);
}
.intro-copy { position: relative; z-index: 1; max-width: 750px; }
.intro-copy h1 { margin: 42px 0 0; color: var(--pink); font-family: "Moon Get", sans-serif; font-size: clamp(2.8rem, 9.1vw, 7rem); line-height: 1.05; text-transform: uppercase; text-shadow: 5px 5px 0 var(--cream); }
.intro-copy > p:last-child { max-width: 620px; margin: 18px 0 0; font-size: 1.05rem; line-height: 1.7; }
.intro-note { position: relative; z-index: 1; justify-self: center; padding: 28px 25px; color: var(--pink-dark); font-family: "Moon Get", sans-serif; font-size: clamp(1rem, 2.5vw, 1.55rem); line-height: 1.3; text-align: center; background: var(--cream); box-shadow: 10px 10px 0 rgb(113 49 61 / 25%); transform: rotate(4deg); }
.intro-note::before { position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; background: rgb(227 131 140 / 55%); content: ""; transform: translateX(-50%) rotate(-4deg); }

.discover-board { padding: clamp(55px, 8vw, 95px) max(20px, calc((100vw - 1220px) / 2)); background: rgb(255 250 245 / 72%); border-block: 2px solid var(--wine); }
.board-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 50px; }
.board-toolbar > div:first-child { display: flex; align-items: center; gap: 14px; }
.board-toolbar h2 { margin: 0; color: var(--wine); font-family: "Moon Get", sans-serif; font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1.05; text-transform: uppercase; }
.folder-symbol { color: var(--pink); font-size: 2.2rem; transform: rotate(-5deg); }
.filter-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.filter-buttons button { padding: 9px 14px; color: var(--wine); font-family: "Moon Get", sans-serif; font-size: .72rem; text-transform: uppercase; background: var(--cream); border: 2px solid var(--wine); cursor: pointer; box-shadow: 3px 3px 0 rgb(113 49 61 / 20%); }
.filter-buttons button[aria-pressed="true"] { color: #fff; background: var(--pink); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wine); }

.discover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 65px); }
.discover-card { position: relative; display: grid; grid-template-columns: minmax(110px, .72fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 35px); align-items: center; min-height: 320px; padding: clamp(22px, 4vw, 40px); color: var(--wine); text-align: left; background: var(--paper); border: 2px solid var(--wine); cursor: pointer; box-shadow: 10px 10px 0 rgb(113 49 61 / 20%); transition: transform 180ms ease, box-shadow 180ms ease; }
.discover-card::before { position: absolute; top: -12px; left: 18%; width: 88px; height: 24px; background: rgb(227 131 140 / 52%); content: ""; transform: rotate(-4deg); }
.discover-card:hover, .discover-card:focus-visible { outline: none; transform: translate(-3px, -5px) rotate(-.5deg); box-shadow: 15px 16px 0 rgb(113 49 61 / 24%); }
.discover-card[hidden] { display: none; }
.discover-card img { width: 100%; height: auto; max-height: 255px; object-fit: contain; object-position: center; border: 0; }
.card-copy { display: grid; gap: 8px; }
.card-copy strong { color: var(--pink); font-family: "Moon Get", sans-serif; font-size: clamp(1.5rem, 3.5vw, 2.8rem); line-height: 1.05; text-transform: uppercase; }
.card-collection .card-copy strong { font-size: clamp(1.35rem, 2.8vw, 2.25rem); }
.card-copy small { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.card-number { position: absolute; top: 15px; right: 18px; color: rgb(113 49 61 / 45%); font-family: "Moon Get", sans-serif; font-size: .75rem; }
.work-in-progress { position: absolute; z-index: 1; top: 38px; right: 18px; padding: 7px 10px 6px; color: var(--cream); font-family: "Moon Get", sans-serif; font-size: .65rem; line-height: 1; background: var(--pink-dark); box-shadow: 3px 3px 0 rgb(113 49 61 / 28%); transform: rotate(4deg); }
.work-in-progress::before { position: absolute; top: -7px; left: 50%; width: 46px; height: 14px; background: rgb(227 131 140 / 68%); content: ""; transform: translateX(-50%) rotate(-5deg); }
.open-label { position: absolute; right: 22px; bottom: 17px; color: var(--pink-dark); font-family: "Moon Get", sans-serif; font-size: .75rem; text-transform: uppercase; }
.card-collection { transform: rotate(1deg); }
.card-robes { transform: rotate(-.8deg); background: var(--cream); }
.card-marah { transform: rotate(.5deg); }
.empty-message { padding: 50px; text-align: center; }

.discover-help { display: flex; gap: 30px; align-items: center; max-width: 920px; margin: clamp(70px, 10vw, 130px) auto; padding: 28px 35px; background: var(--cream); border: 2px dashed var(--pink-dark); transform: rotate(-.4deg); }
.discover-help span { flex: 0 0 auto; color: var(--pink); font-family: "Moon Get", sans-serif; font-size: 1.2rem; }
.discover-help p { margin: 0; line-height: 1.55; }

.publication-dialog { width: min(920px, calc(100% - 28px)); padding: 0; color: var(--wine); background: var(--paper); border: 2px solid var(--wine); box-shadow: 16px 16px 0 rgb(113 49 61 / 35%); }
.publication-dialog::backdrop { background: rgb(35 12 17 / 72%); backdrop-filter: blur(4px); }
.dialog-window-bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px 7px 14px; color: var(--cream); font-family: "Moon Get", sans-serif; font-size: .75rem; background: var(--wine); }
.dialog-window-bar button { width: 30px; height: 27px; padding: 0; color: var(--wine); font-size: 1.25rem; line-height: 1; background: var(--cream); border: 0; cursor: pointer; }
.publication-dialog-content { display: grid; gap: clamp(20px, 3vw, 32px); padding: clamp(25px, 5vw, 55px); }
.publication-dialog-info { max-width: 680px; }
.edition-browser { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: clamp(12px, 2vw, 24px); align-items: center; width: min(680px, 100%); margin: 0 auto; }
.edition-nav { width: 42px; height: 52px; padding: 0; background: var(--pink); border: 2px solid var(--wine); cursor: pointer; clip-path: polygon(100% 0, 0 50%, 100% 100%); transition: transform 160ms ease, opacity 160ms ease; }
.edition-nav-next { transform: rotate(180deg); }
.edition-nav:hover:not(:disabled) { transform: translateX(-3px); }
.edition-nav-next:hover:not(:disabled) { transform: rotate(180deg) translateX(-3px); }
.edition-nav:disabled { cursor: default; opacity: .25; }
.publication-dialog.marah-dialog .edition-nav { visibility: hidden; pointer-events: none; }
.dialog-image-button { position: relative; display: block; width: 100%; padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; cursor: zoom-in; transform: rotate(-1.5deg); }
.dialog-image-button::before { position: absolute; z-index: 1; top: -12px; left: 50%; width: 88px; height: 25px; background: rgb(227 131 140 / 62%); content: ""; transform: translateX(-50%) rotate(-4deg); }
.dialog-image-button img { display: block; width: 100%; height: min(58vh, 470px); object-fit: cover; object-position: top; }
.dialog-image-button > span { position: absolute; right: 7px; bottom: 7px; padding: 6px 8px; color: var(--cream); font-family: "Moon Get", sans-serif; font-size: .57rem; background: rgb(113 49 61 / 88%); }
.dialog-image-button:hover, .dialog-image-button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.edition-caption { display: flex; justify-content: center; gap: 12px; align-items: baseline; color: var(--pink-dark); font-family: "Moon Get", sans-serif; text-align: center; text-transform: uppercase; }
.edition-caption strong { font-size: clamp(1.2rem, 3vw, 2rem); }
.edition-caption span { font-size: .72rem; }
.publication-dialog.image-expanded { width: min(1120px, calc(100% - 20px)); }
.publication-dialog.image-expanded .publication-dialog-content { display: block; padding: 24px; }
.publication-dialog.image-expanded .publication-dialog-info, .publication-dialog.image-expanded .edition-nav, .publication-dialog.image-expanded .edition-caption, .publication-dialog.image-expanded .dialog-return { display: none; }
.publication-dialog.image-expanded .edition-browser { display: block; width: 100%; }
.publication-dialog.image-expanded .dialog-image-button { width: min(900px, 100%); margin: 0 auto; cursor: zoom-out; transform: none; }
.publication-dialog.image-expanded .dialog-image-button img { max-height: none; height: auto; object-fit: contain; }
.publication-dialog h2 { margin: 0 0 18px; color: var(--pink); font-family: "Moon Get", sans-serif; font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.05; text-transform: uppercase; }
.publication-dialog p:not(.eyebrow) { line-height: 1.65; }
.edition-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.edition-actions:empty { display: none; }
.edition-actions a { padding: 10px 13px 9px; color: var(--cream); font-family: "Moon Get", sans-serif; font-size: .67rem; text-decoration: none; text-transform: uppercase; background: var(--pink); border: 2px solid var(--wine); box-shadow: 3px 3px 0 var(--wine); transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.edition-actions a:hover, .edition-actions a:focus-visible { color: #fff; background: var(--wine); outline: none; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wine); }
.edition-actions button { padding: 10px 13px 9px; color: var(--pink-dark); font-family: "Moon Get", sans-serif; font-size: .67rem; text-transform: uppercase; background: rgb(242 235 224 / 75%); border: 2px dashed var(--pink-dark); box-shadow: none; cursor: not-allowed; opacity: .8; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.dialog-meta span { padding: 6px 9px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--cream); border: 1px solid var(--pink); }
.dialog-return { padding: 11px 14px; color: #fff; font-family: "Moon Get", sans-serif; font-size: .74rem; text-transform: uppercase; background: var(--pink); border: 2px solid var(--wine); cursor: pointer; box-shadow: 3px 3px 0 var(--wine); }

@media (max-width: 850px) {
  .discover-intro { grid-template-columns: 1fr; }
  .intro-note { justify-self: start; }
  .board-toolbar { align-items: start; flex-direction: column; }
  .filter-buttons { justify-content: flex-start; }
  .discover-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .discover-card { grid-template-columns: 105px minmax(0, 1fr); min-height: 250px; }
  .discover-help { margin-inline: 18px; align-items: flex-start; flex-direction: column; }
  .publication-dialog-content { grid-template-columns: 1fr; }
  .dialog-image-button { width: min(240px, 75%); margin: 0 auto; }
  .publication-dialog.image-expanded .dialog-image-button { width: 100%; }
}
