/* Shared layout for catalog, guide and exchange screens. */
:root {
  --ink: #212522;
  --muted: #60655f;
  --blue: #173dac;
  --line: #dfdfd7;
  --surface: #fffefa;
}
body {
  background: var(--surface);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.masthead {
  height: 62px;
  padding-inline: max(50px, calc((100% - 1140px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { position: relative; }
.brand::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% + 12px);
  width: 26px;
  height: 3px;
  background: #f1cb50;
}
.brand img { width: 132px; }
.tools { border: 0; padding: 0; }
.site-nav { gap: 24px; }
.site-nav a { color: var(--ink); font-size: 13px; font-weight: 600; }
.site-nav a[aria-current]::after, .menu-toggle::before { display: none; }
.lang-toggle img, .menu-toggle img { filter: none; }
.popover, .dropdown { background: var(--surface); }
.popover a[aria-current], .dropdown a[aria-current] { background: #edf0fb; }
.catalog-page {
  width: min(calc(100% - 100px), 1060px);
  margin: auto;
  padding: 42px 0 60px;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.catalog-page :where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.catalog-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.catalog-mark { flex: none; width: 66px; height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.headline { font-size: clamp(32px, 4vw, 53px); font-weight: 650; line-height: 1.15; letter-spacing: -.067em; }
.lead { margin: 9px 0 0; font-size: 14px; line-height: 1.65; color: #525b54; }
.section-title { font-size: 19px; line-height: 1.35; letter-spacing: -.05em; font-weight: 650; }
.back-link { display: inline-block; margin-bottom: 15px; font-size: 12px; font-weight: 500; color: var(--muted); }
.back-link:hover { color: var(--blue); }
@media (max-width: 749px) {
  .masthead { height: 53px; padding-inline: 20px; gap: 14px; }
  .lang-toggle img:first-child, .menu-toggle img { width: 17px; min-width: 17px; }
  .menu-toggle { width: 30px; min-height: 44px; padding-left: 0; }
  .tools { gap: 12px; }
  .catalog-page { width: calc(100% - 40px); padding: 27px 0 45px; }
  .catalog-mark { width: 46px; height: 39px; }
  .bottom-nav { margin: 0; justify-content: space-around; padding: 10px 0 max(12px, env(safe-area-inset-bottom)); }
  .bottom-nav a { font-size: 10px; font-weight: 500; gap: 3px; }
  .bottom-nav img { width: 16px; height: 16px; }
}

/* Paper goods from the category mockup. The same covers also appear in the detail views. */
.catalog-page .artbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.25;
  border-radius: 5px;
}
.catalog-page .artbox::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: multiply;
  background: url("../assets/paper.webp");
}
.catalog-page .artbox.books { background: #c6d6ae; }
.catalog-page .artbox.cards { background: #e9b798; }
.catalog-page :is(.zine, .postcard) {
  display: flex;
  position: relative;
  width: 46%;
  height: 78%;
  padding: 6px;
  border-left: 4px solid #b3a98b;
  box-shadow: 3px 4px 4px #1820123a;
  transform: rotate(-12deg);
  background: #fff6cd;
  color: #2041a1;
  font: 900 clamp(12px, 1.15vw, 16px)/.87 Georgia, serif;
}
.catalog-page .zine { display: block; }
.catalog-page .zine::after {
  content: "";
  position: absolute;
  bottom: 9%;
  left: 10%;
  width: 79%;
  height: 37%;
  background: repeating-radial-gradient(ellipse at 50% 100%, #203fa8 0 2px, transparent 3px 6px);
}
.catalog-page :is(.zine, .postcard).back {
  position: absolute;
  left: 46%;
  top: 13%;
  transform: rotate(14deg);
  background: #f5a0a0;
  border-left-color: #c97f7a;
}
.catalog-page .postcard {
  align-items: center;
  justify-content: center;
  width: 56%;
  height: 62%;
  border: 4px solid #fff3de;
  transform: rotate(-13deg);
  background: #f7d73c;
  color: #122f82;
  font: 800 clamp(20px, 2.1vw, 32px)/1 "DM Sans", sans-serif;
  letter-spacing: -.09em;
}
.catalog-page .postcard.back { left: 39%; top: 11%; background: repeating-linear-gradient(45deg, #145069 0 5px, #d0e4d9 5px 10px); }
