.mahjong-hub {
  --jade: #122d22;
  --deep-jade: #0b251b;
  --ivory: #f8efde;
  --paper: #fff9ed;
  --red: #a62a17;
  --gold: #e4b75e;
  --line: #cbbd9f;
  color: var(--jade);
  background: var(--ivory);
}

.mahjong-hub + .site-footer { margin-top: 0; }
.mahjong-hub :focus-visible { outline-color: currentColor !important; }
.mahjong-hub section[id] { scroll-margin-top: 16px; }

.hub-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: var(--deep-jade);
}

.cover-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cover-table,
.cover-stones {
  position: absolute;
  display: block;
}

.cover-table {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}

.cover-stones {
  top: 50%;
  right: -1%;
  width: min(69%, 1060px);
  height: auto;
  transform: translateY(-50%);
}

.cover-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#07170eea 0%,#07170ec7 15%,#08190f81 31%,#08190f00 58%);
  content: '';
}

.cover-layout {
  display: grid;
  align-content: center;
  min-height: clamp(490px, 46vw, 710px);
  padding-block: 65px;
}

.hub-back,
.cover-link,
.hub-link {
  display: inline-flex;
  align-items: center;
  gap: .43em;
  width: fit-content;
  min-height: 44px;
  color: inherit;
  font-weight: 700;
  line-height: 1.28;
}

.hub-back,
.hub-link {
  font-size: .9rem;
}

.hub-back:hover,
.hub-link {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.hub-link:hover { text-decoration-thickness: .15em; }

.hub-back {
  position: absolute;
  top: 18px;
}

.cover-intro h1 {
  margin: 0;
  font: 900 clamp(3.4rem, 6.3vw, 6.3rem)/.92 var(--sans);
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.cover-line {
  margin-top: 14px;
  color: #f3c773;
  font: italic 700 clamp(2.6rem, 5vw, 5.25rem)/.98 var(--serif);
  letter-spacing: -.065em;
}

.cover-dek {
  margin-block: 17px 20px;
  color: var(--paper);
  font: 400 clamp(1.25rem, 2vw, 1.85rem)/1.18 var(--serif);
}

.cover-link {
  padding: 11px 18px;
  background: var(--red);
  color: #fff5e7;
}

.cover-link:hover {
  background: var(--paper);
  color: var(--jade);
}

.hub-index {
  background: var(--red);
  color: var(--paper);
}

.hub-index .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 clamp(12px, 5vw, 70px);
}

.hub-index a {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hub-index a:hover {
  text-decoration: underline;
  text-underline-offset: .24em;
}

.hub-sets,
.hub-events,
.hub-tiles {
  padding-block: clamp(43px, 6vw, 86px);
}

.sets-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: clamp(18px, 3vw, 40px);
}

.sets-heading h2,
.events-heading h2,
.tiles-heading h2 {
  font: italic 700 clamp(3rem, 7vw, 7rem)/.95 var(--serif);
  letter-spacing: -.066em;
}

.sets-heading > p {
  flex: 1;
  min-width: 13rem;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--jade);
  color: inherit;
  font: italic clamp(.96rem, 1.55vw, 1.65rem)/1.3 var(--serif);
  text-align: right;
}

.visual-story {
  display: grid;
  grid-template-columns: minmax(0,1.75fr) minmax(0,1fr);
  column-gap: clamp(28px, 5.4vw, 82px);
  align-items: center;
}

.visual-story-copy {
  grid-column: 2;
  grid-row: 1;
}

.object-view {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.object-view label {
  display: flex;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 5px;
  border-bottom: 2px solid var(--line);
  color: var(--jade);
  cursor: pointer;
  font-size: clamp(.88rem, 1.3vw, 1.05rem);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
}

.object-view label:hover { background: #e9dfcb; }
.object-choice:checked + label {
  border-bottom-color: var(--gold);
  background: var(--jade);
  color: var(--paper);
}

.object-choice:focus-visible + label {
  z-index: 1;
  outline: 3px solid currentColor;
  outline-offset: -5px;
}

.object-panel {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
}

.object-choice:checked + label + .object-panel { display: block; }

.object-photo {
  display: grid;
  height: clamp(315px, 37vw, 510px);
  place-items: center;
  background: #fff;
}

.object-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.object-panel figcaption {
  padding: 11px clamp(12px, 2vw, 24px);
  font-size: .92rem;
  line-height: 1.5;
}

.visual-story-copy h3 {
  margin: 0 0 11px;
  font: italic 700 clamp(2.15rem, 4vw, 4.35rem)/1 var(--serif);
  letter-spacing: -.06em;
  text-wrap: balance;
}

.visual-story-copy p,
.maker-entry > p:not(.hub-kicker),
.event-main > p:not(.event-status),
.event-archive article > p:not(.event-status),
.tiles-heading > p,
.tile-fact > p:not(.tile-family) {
  max-width: 53ch;
  color: inherit;
  font-size: 1.035rem;
  line-height: 1.58;
}

.visual-story-copy .hub-link,
.maker-entry .hub-link { margin-top: 6px; }

.photo-credit {
  font-size: .76rem;
  line-height: 1.48;
}

.photo-credit a,
.bird-note a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.story-credit {
  grid-column: 1;
  margin-top: 7px;
  color: #3d493b;
}

.maker-section {
  margin-top: clamp(35px, 6vw, 82px);
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.maker-heading h2 {
  font: 400 clamp(1.9rem, 4vw, 3rem)/1.05 var(--serif);
  letter-spacing: -.04em;
}

.maker-grid {
  display: grid;
  grid-template-columns: minmax(0,1.36fr) repeat(3,minmax(0,1fr));
  gap: 0 clamp(15px, 3.4vw, 48px);
  margin-top: 18px;
}

.maker-entry { padding: 18px 0 10px; }

.maker-entry + .maker-entry {
  padding-left: clamp(13px, 2vw, 30px);
  border-left: 1px solid var(--line);
}

.hub-kicker,
.event-status,
.tile-family {
  color: inherit;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.maker-entry .hub-kicker { color: #8b301c; }

.maker-entry h3 {
  margin: 7px 0;
  font: 400 clamp(1.5rem, 2.6vw, 2.5rem)/1.02 var(--serif);
  letter-spacing: -.045em;
}

.maker-lead h3 {
  font-size: clamp(1.85rem, 3.5vw, 3.5rem);
}

.table-reportage {
  margin: 0;
  background: var(--jade);
  color: var(--paper);
}

.table-reportage img {
  width: 100%;
  height: clamp(330px, 41vw, 630px);
  object-fit: cover;
  object-position: center 56%;
}

.table-reportage figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 22px;
  padding-block: 11px 13px;
  font-size: .92rem;
}

.hub-events {
  background: radial-gradient(ellipse at 25% 5%, #ffe5a1, #f1cd80 70%);
}

.events-heading { margin-bottom: clamp(20px, 4vw, 52px); }
.events-heading .hub-kicker { margin-bottom: 6px; }

.events-layout {
  display: grid;
  grid-template-columns: minmax(0,1.26fr) minmax(0,1fr);
  gap: clamp(22px, 5vw, 65px);
  align-items: start;
}

.feature-event {
  display: grid;
  grid-template-columns: minmax(0,.6fr) minmax(0,1fr);
  color: var(--paper);
  background: var(--jade);
  box-shadow: 0 12px 30px #704c2633;
}

.event-ticket {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 18px 8px;
  border-right: 1px dashed #f7cb86;
  background: var(--red);
  text-align: center;
}

.ticket-month,
.ticket-year {
  font: italic 1.2rem/1.2 var(--serif);
}

.ticket-days {
  font: 700 clamp(2.1rem, 4.8vw, 4.9rem)/1.1 var(--serif);
  letter-spacing: -.08em;
}

.event-main { padding: clamp(15px, 2.7vw, 34px); }
.event-main .event-status { color: #f4cb83; }

.event-main h3,
.event-archive h3 {
  margin: 7px 0;
  font: 400 clamp(1.4rem, 2.5vw, 2.55rem)/1.06 var(--serif);
  letter-spacing: -.04em;
}

.event-main .event-place,
.event-archive .event-place {
  margin-bottom: 7px;
  font-size: .94rem;
  font-weight: 700;
}

.event-main .hub-link,
.event-archive .hub-link {
  margin-right: 9px;
  min-height: 40px;
}

.secondary-link { font-size: .82rem; }

.event-archive article {
  padding: 12px 0;
  border-top: 1px solid #716040;
}

.event-archive article + article { margin-top: 7px; }

.hub-tiles { background: #f6edda; }

.tiles-heading h2 {
  font-size: clamp(2.65rem, 5vw, 4.75rem);
}

.tiles-heading > p:not(.hub-kicker) { margin-top: 8px; }

.tile-explorer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 9px clamp(5px, 1vw, 15px);
  min-width: 0;
  max-width: 900px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.visually-hidden,
.tile-choice,
.object-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tile-label {
  grid-row: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 5px 4px 6px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
}

.tile-label img {
  width: min(100%,92px);
  height: auto;
  transition: transform .16s ease;
}

.tile-label:hover img { transform: translateY(-2px); }
.tile-choice:checked + .tile-label { border-color: var(--jade); background: var(--paper); }
.tile-choice:focus-visible + .tile-label { outline: 3px solid var(--jade); outline-offset: 2px; }

.tile-fact {
  display: none;
  grid-column: 1 / -1;
  padding: 13px clamp(13px, 3vw, 28px) 16px;
  border-left: 4px solid var(--red);
  background: var(--paper);
}

.tile-choice:checked + .tile-label + .tile-fact { display: block; }
.tile-family { color: #8a2d1c; }
.tile-fact h3 { margin: 3px 0; font: 400 1.65rem/1.05 var(--serif); }

.bird-note {
  margin-top: 8px;
  color: inherit;
  font-size: .9rem;
}

.bird-note a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-left: .25em;
  font-weight: 700;
}

.set-gallery {
  max-width: 900px;
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.set-gallery > h3 { margin: 0; font: 400 1.5rem/1.2 var(--serif); }

.gallery-intro {
  margin: 3px 0 7px;
  color: inherit;
  font-size: .89rem;
}

.set-gallery details { border-bottom: 1px solid var(--line); }

.set-gallery summary {
  min-height: 44px;
  padding: 11px 10px;
  cursor: pointer;
  font-size: .91rem;
  font-weight: 750;
}

.set-gallery details[open] summary {
  background: var(--jade);
  color: var(--paper);
}

.mahjong-hub .set-gallery details[open] summary:focus-visible {
  outline-offset: -4px !important;
}

.set-gallery figure { margin: 0; padding-top: 8px; }
.set-gallery img { width: min(100%,720px); height: auto; }
.set-gallery figcaption { padding: 8px 0; font-size: .89rem; }
.set-gallery .photo-credit { display: block; }

.mahjong-game { border-top: 1px solid var(--line); }

.game-details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  padding-block: 16px;
}

.game-details h2,
.game-details p {
  color: inherit;
  font: 600 .91rem/1.4 var(--sans);
  letter-spacing: normal;
}

.game-details p { font-weight: 400; }
.game-details p::before { margin-right: 12px; content: '·'; }

@media(max-width: 960px) {
  .maker-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
  .maker-entry + .maker-entry { border: 0; padding-left: 0; }
  .maker-entry { border-top: 1px solid var(--line) !important; }
}

@media(max-width: 760px) {
  .cover-scene {
    position: relative;
    height: clamp(280px, 87vw, 505px);
  }

  .cover-scene::after { background: linear-gradient(0deg,var(--deep-jade),#0b251b00 32%); }
  .cover-table { object-position: 70% 53%; }
  .cover-stones {
    top: 50%;
    right: -5%;
    width: 110%;
    height: auto;
    transform: translateY(-50%);
  }
  .cover-layout { min-height: 0; padding-block: 0 25px; }
  .hub-back { top: 7px; }
  .cover-intro h1 { font-size: clamp(2.75rem, 12vw, 5.2rem); }
  .cover-line { margin-top: 8px; font-size: clamp(2.3rem, 9.5vw, 4.45rem); }
  .cover-dek { margin-block: 10px 14px; }
  .hub-index a { min-height: 45px; font-size: .71rem; letter-spacing: .07em; }
  .hub-index .wrap { justify-content: flex-start; gap: 0 clamp(12px,4vw,28px); }
  .sets-heading > p { min-width: 100%; text-align: left; }
  .visual-story,
  .events-layout { grid-template-columns: minmax(0,1fr); }
  .visual-story { gap: 8px; }
  .object-view, .story-credit, .visual-story-copy { grid-column: 1; grid-row: auto; }
  .story-credit { margin-top: 0; }
  .visual-story-copy { margin: 4px 0 7px; }
  .visual-story-copy h3 { text-wrap: initial; }
  .object-photo { height: clamp(255px, 83vw, 470px); }
  .table-reportage img { height: clamp(250px, 69vw, 440px); object-position: 54% 53%; }
  .event-main .hub-link { min-height: 44px; }
  .tile-explorer { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tile-label { grid-row: auto; }
  .tile-fact { grid-row: 3; }
}

@media(max-width: 460px) {
  .maker-grid { grid-template-columns: minmax(0,1fr); }
  .maker-entry { padding-top: 12px; }
  .feature-event { grid-template-columns: minmax(0,1fr); }
  .event-ticket {
    flex-direction: row;
    gap: .4em;
    padding: 7px 12px;
    border-right: 0;
    border-bottom: 1px dashed #f7cb86;
  }
  .ticket-month { order: 1; }
  .ticket-year { order: 2; }
  .ticket-month,
  .ticket-days,
  .ticket-year { font: 700 1rem/1.25 var(--serif); letter-spacing: normal; }
}

@media(prefers-reduced-motion: reduce) {
  .tile-label img { transition: none; }
}
