:root {
  --print-ink: #19382a;
  --print-red: #a92d1c;
  --print-paper: #f5ead4;
  --print-white: #fff8e9;
  --print-gold: #efc257;
  --print-line: #bca989;
}

.v10-hub, .mag-page, main:has(.article-hero) {
  background: var(--print-paper);
  color: var(--print-ink);
}

.v10-hub .wrap, .mag-page .wrap { padding-inline: clamp(18px, 5vw, 80px); }
.v10-hub a:focus-visible, .mag-page a:focus-visible,
.v10-cabinet button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.v10-eyebrow {
  color: var(--print-red);
  font: 800 .73rem/1.4 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.v10-inverse .v10-eyebrow { color: var(--print-gold); }

.v10-cover { padding-block: clamp(12px, 2.1vw, 30px) clamp(23px, 3.8vw, 53px); }
.v10-mastline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.v10-back { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; }
.v10-masthead {
  margin: 3px 0 clamp(8px, 1.45vw, 22px);
  color: var(--print-ink);
  font: 950 clamp(2.9rem, 13.35vw, 12rem)/.85 var(--sans);
  letter-spacing: -.087em;
  text-transform: uppercase;
}
.v10-cover-grid { display: grid; grid-template-columns: minmax(0, 2.28fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 25px); align-items: start; }
.v10-cover-photo { margin: 0; }
.v10-cover-photo picture { display: block; background: #173e38; }
.v10-cover-photo img { width: 100%; height: auto; aspect-ratio: 2.20; object-fit: cover; object-position: 67% 76%; }
.v10-credit { margin: 6px 0 0; color: inherit; font: .76rem/1.5 var(--sans); }
.v10-credit a { text-decoration: underline; text-underline-offset: .17em; }
.v10-cover-invite {
  padding: clamp(18px, 2.7vw, 40px);
  background: var(--print-red);
  border-top: 4px solid var(--print-gold);
  color: var(--print-white);
}
.v10-cover-invite h2 {
  font: italic 700 clamp(2.2rem, 4.7vw, 5.15rem)/.94 var(--serif);
  letter-spacing: -.067em;
  text-wrap: balance;
}
.v10-cover-invite h2 em { color: #ffe2a2; }
.v10-cover-invite p { margin: 13px 0 17px; max-width: 30ch; font: clamp(.99rem, 1.4vw, 1.24rem)/1.5 var(--sans); color: inherit; }
.v10-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 15px;
  background: var(--print-ink);
  color: var(--print-white);
  font: 750 .92rem/1.35 var(--sans);
}
.v10-button:hover { background: #0d2419; }
.v10-button:focus-visible { outline-color: var(--print-white) !important; }

.v10-section { padding-block: clamp(36px, 6vw, 87px); }
.v10-section-title {
  margin: 5px 0 13px;
  font: 700 clamp(2rem, 5.15vw, 5rem)/.97 var(--serif);
  letter-spacing: -.056em;
  text-wrap: balance;
}
.v10-section-title em { font-weight: inherit; }
.v10-cabinet {
  color: var(--print-white);
  background: #193b2c;
}
.v10-cabinet-grid {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  gap: 20px clamp(23px, 6.2vw, 94px);
  align-items: start;
}
.v10-cabinet .v10-section-title { max-width: 9ch; }
.v10-cabinet .v10-section-title em { color: var(--print-gold); }
.v10-cabinet p:not([class]) { color: inherit; font-size: 1rem; line-height: 1.55; max-width: 36ch; }
.v10-cabinet-figure { margin: 0; min-width: 0; }
.v10-cabinet-figure .v10-cabinet-mat {
  display: grid;
  place-items: center;
  background: #0f291f;
  border: 1px solid #8a805c;
  padding: clamp(8px, 1vw, 16px);
  aspect-ratio: 1.53;
}
.v10-cabinet-mat img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.v10-cabinet-figure figcaption { margin-top: 10px; font: .94rem/1.5 var(--sans); }
.v10-cabinet .v10-credit { color: #fae3ac; }
.v10-cabinet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 12px;
}
.v10-cabinet-buttons[hidden], .v10-cabinet-figure[hidden] { display: none; }
.v10-cabinet button {
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid #ccbe99;
  background: transparent;
  color: inherit;
  font: 750 .85rem/1.25 var(--sans);
  cursor: pointer;
}
.v10-cabinet button:hover { background: #28533d; }
.v10-cabinet button[aria-pressed="true"] {
  background: var(--print-gold);
  border-color: var(--print-gold);
  color: #182b20;
  box-shadow: inset 0 -3px #a96723;
}

.v10-front-section .mag-front-grid { align-items: stretch; }
.v10-front-section .mag-front-lead { background: var(--print-white); }
.v10-front-section .mag-front-lead img { height: clamp(210px, 36vw, 500px); }
.v10-front-section .mag-front-side article:first-child { background: var(--print-red); }
.v10-front-section .mag-front-side article:first-child .hub-kicker { color: var(--print-white); }
.v10-hub .v10-front-section .mag-front-side article:first-child .hub-link { color: var(--print-white); }
.v10-front-section .mag-front-rules { border-top: 2px solid var(--print-red); }
.v10-hub .mag-workbench { background: #efdcac; }
.v10-archive-teaser { background: #ce6346; }
.v10-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px clamp(24px, 5vw, 72px);
}
.v10-archive-grid figure { margin: 0; }
.v10-archive-grid img { width: 100%; max-height: 420px; object-fit: contain; background: #321b15; }
.v10-archive-grid > div { padding: clamp(18px, 3vw, 38px); background: var(--print-paper); }
.v10-archive-grid p:not([class]) { color: inherit; max-width: 34ch; }
.v10-archive-grid .v10-credit { color: #1c130c; }

.v10-hub .mahjong-game { padding: 22px 0; }
.v10-hub .game-details { display: block; }
.v10-hub .game-details p { margin: 0; color: inherit; font-size: .92rem; letter-spacing: 0; text-transform: none; }
.v10-hub .game-details p::before { content: none; }

.mag-header {
  background: var(--print-paper);
  color: var(--print-ink);
  padding-block: clamp(29px, 5.6vw, 78px);
  border-bottom: 1px solid var(--print-line);
}
.mag-header .wrap { position: relative; }
.mag-header .wrap::before { content: ""; display: block; width: 40px; height: 4px; margin-bottom: 15px; background: var(--print-red); }
.mag-header .hub-kicker, .mag-header .mag-kicker, .mag-header .mag-checked { color: var(--print-red); }
.mag-header h1 { font-style: normal; }
.mag-header .mag-checked { font-weight: 700; }
.mag-related li { background: #e9d9b4; }
.mag-nav { background: var(--print-red); }

.v10-case-view { grid-template-columns: minmax(0, 1.47fr) minmax(0, .82fr); }
.v10-case-view .visual-story-copy { border-top: 3px solid var(--print-red); padding-top: 14px; }
.v10-case-view .visual-story-copy p { max-width: 36ch; }
.v10-case-view .object-panel img { width: 100%; }
.v10-case-view .object-photo { min-height: 0; }
.v10-case-view .object-panel figcaption { padding: 10px 15px; }
.v10-case-view .story-credit { grid-column: 1/-1; }
.v10-case-notes {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1fr);
  gap: 15px clamp(22px, 5vw, 63px);
  margin-top: clamp(28px, 5vw, 65px);
  padding-top: clamp(22px, 3.1vw, 44px);
  border-top: 1px solid var(--print-line);
}
.v10-case-notes p { max-width: 57ch; }

.v10-guide-case { margin-bottom: clamp(32px, 5vw, 70px); }
.v10-guide-example { margin: 0 0 12px; }
.v10-guide-example p { max-width: 55ch; }
.v10-guide-compare { margin-top: clamp(25px, 4vw, 50px); }
.v10-guide-compare .mag-term-grid { margin-top: 15px; }

@media(max-width: 790px) {
  .v10-cover-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 17px; }
  .v10-cover-photo img { aspect-ratio: 1.75; }
  .v10-cabinet-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; }
}

@media(max-width: 620px) {
  .v10-cover { padding-top: 8px; }
  .v10-masthead { font-size: clamp(2.75rem, 15.45vw, 5.6rem); margin-top: 3px; }
  .v10-cover-grid, .v10-cabinet-grid, .v10-archive-grid,
  .v10-case-view, .v10-case-notes { grid-template-columns: 1fr; }
  .v10-cover-photo img { aspect-ratio: 1.4; }
  .v10-cover-invite { padding: 15px 17px 17px; }
  .v10-cover-invite h2 { text-wrap: wrap; }
  .v10-cover-invite p { margin: 7px 0 11px; max-width: 37ch; }
  .v10-cabinet .v10-section-title { max-width: none; }
  .v10-cabinet-buttons { margin: 11px 0 0; }
  .v10-cabinet-figure .v10-cabinet-mat { aspect-ratio: 1.34; }
  .v10-case-view .visual-story-copy { grid-column: 1; grid-row: auto; }
}

@media(prefers-reduced-motion: reduce) {
  html:has(.v10-hub), html:has(.mag-page) { scroll-behavior: auto; }
}
