@font-face {
	font-family: "Abril Fatface";
	src: url("../fonts/abril-fatface-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("../fonts/crimson-pro-latin.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("../fonts/crimson-pro-italic-latin.woff2") format("woff2");
	font-weight: 300 800;
	font-style: italic;
	font-display: swap;
}

:root {
	--walnut-900: #1b110b;
	--walnut-800: #2b1a12;
	--walnut-700: #3b2418;
	--walnut-600: #5c3b27;
	--leather: #6e1f27;
	--leather-deep: #46131a;
	--leather-hi: #8e2f39;
	--brass: #c9a25a;
	--brass-hi: #ecd29a;
	--brass-lo: #8f6d33;
	--ivory: #f5ecd9;
	--paper: #efe3c7;
	--paper-line: #d8c6a0;
	--ink: #2a1b12;
	--ink-soft: #5b4433;
	--cream: #f1e5cc;
	--muted: #cdb995;
	--lamp: #f7c46d;
	--ok: #33583a;
	--wrong: #a3232c;
	--brass-face: linear-gradient(180deg, #f2dba4 0%, #c9a25a 48%, #9a7434 100%);
	--frame-face: linear-gradient(135deg, #ecd29a 0%, #9a7434 32%, #e4c587 55%, #8a672f 100%);
	--display: "Abril Fatface", "Bodoni 72", Didot, Georgia, serif;
	--text: "Crimson Pro", "Iowan Old Style", Georgia, serif;
	--wrap: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--walnut-800);
	color: var(--cream);
	font-family: var(--text);
	font-size: 1.22rem;
	line-height: 1.6;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--brass-hi);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--lamp);
}

:focus-visible {
	outline: 3px solid var(--lamp);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.005em;
	margin: 0 0 0.6em;
}

h3 {
	font-size: 1.35rem;
}

p {
	margin: 0 0 1em;
}

.cgr-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.cgr-sr,
.cgr-coat {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.cgr-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 50;
	padding: 8px 14px;
	background: var(--lamp);
	color: var(--ink);
	font-weight: 700;
}

.cgr-skip:focus {
	top: 12px;
}

.cgr-label {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brass);
	margin: 0 0 0.35em;
}

.cgr-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brass-hi);
	margin: 0 0 1rem;
}

.cgr-kicker .cgr-knight {
	width: 26px;
	height: 26px;
}

.cgr-pawn {
	flex: none;
	color: var(--brass);
}

.cgr-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid var(--brass);
	border-radius: 4px;
	background: linear-gradient(180deg, var(--leather-hi), var(--leather) 55%, var(--leather-deep));
	box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.25), 0 3px 0 var(--walnut-900);
	color: var(--ivory);
	font-family: var(--text);
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cgr-button:hover {
	color: var(--ivory);
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.3), 0 4px 0 var(--walnut-900), 0 0 22px rgba(247, 196, 109, 0.25);
}

.cgr-button--line {
	background: transparent;
	color: var(--brass-hi);
	box-shadow: none;
}

.cgr-button--line:hover {
	background: rgba(201, 162, 90, 0.12);
	color: var(--lamp);
	box-shadow: none;
}

.cgr-button--small {
	white-space: nowrap;
	min-height: 42px;
	padding: 6px 16px;
	font-size: 1rem;
}

.cgr-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 1.4rem 0 0;
}

.cgr-top {
	position: relative;
	z-index: 20;
	background: linear-gradient(180deg, var(--walnut-900), var(--walnut-800));
	border-bottom: 3px solid var(--brass-lo);
	box-shadow: 0 1px 0 var(--brass-hi) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cgr-top__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 84px;
}

.cgr-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--ivory);
	text-decoration: none;
	min-width: 0;
}

.cgr-brand:hover {
	color: var(--ivory);
}

.cgr-brand__plate {
	display: grid;
	place-items: center;
	flex: none;
	width: 50px;
	height: 50px;
	border-radius: 6px;
	background: var(--leather);
	border: 2px solid var(--brass);
	box-shadow: inset 0 0 0 3px var(--leather-deep), inset 0 0 0 4px rgba(236, 210, 154, 0.5);
	color: var(--brass-hi);
}

.cgr-brand__words {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cgr-brand__name {
	font-family: var(--display);
	font-size: 1.55rem;
	line-height: 1.1;
}

.cgr-brand__line {
	max-width: 19em;
	line-height: 1.3;
	font-size: 0.92rem;
	font-style: italic;
	color: var(--muted);
}

.cgr-menu {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 14px;
	border: 2px solid var(--brass);
	border-radius: 4px;
	background: transparent;
	color: var(--brass-hi);
	font-family: var(--text);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.cgr-nav {
	display: flex;
	align-items: center;
	gap: 18px;
}

.cgr-doors {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgr-door a {
	display: block;
	white-space: nowrap;
	padding: 8px 9px;
	color: var(--cream);
	font-size: 1.06rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.cgr-door a:hover {
	color: var(--lamp);
	border-bottom-color: var(--brass-lo);
}

.cgr-door--here a {
	color: var(--brass-hi);
	border-bottom-color: var(--brass);
}

.cgr-checks {
	height: 18px;
	background: repeating-conic-gradient(var(--ivory) 0 25%, var(--walnut-600) 0 50%) 0 0 / 36px 36px;
	border-top: 2px solid var(--brass-lo);
	border-bottom: 2px solid var(--brass-lo);
}

.cgr-band {
	padding: 76px 0;
}

.cgr-band--walnut,
.cgr-lamp,
.cgr-foot {
	background-color: var(--walnut-800);
	background-image:
		repeating-linear-gradient(91deg, rgba(255, 228, 190, 0.025) 0 2px, transparent 2px 11px),
		repeating-linear-gradient(89deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 27px),
		linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 30%, rgba(0, 0, 0, 0.2));
}

.cgr-band--leather,
.cgr-entry {
	background-color: var(--leather);
	background-image:
		radial-gradient(circle at 50% 50%, rgba(20, 4, 6, 0.55) 0 2px, transparent 3px),
		repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 34px),
		repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 34px),
		radial-gradient(ellipse at 30% 0%, rgba(255, 200, 170, 0.12), transparent 65%);
	background-size: 48px 48px, auto, auto, auto;
	background-position: 24px 24px, 0 0, 0 0, 0 0;
}

.cgr-band--paper {
	background: radial-gradient(ellipse at 50% 0%, var(--ivory), var(--paper) 70%);
	color: var(--ink);
}

.cgr-band--paper a,
.cgr-paper a {
	color: var(--leather);
}

.cgr-band--paper a:hover,
.cgr-paper a:hover {
	color: var(--leather-hi);
}

.cgr-band--paper .cgr-label,
.cgr-paper .cgr-label {
	color: var(--brass-lo);
}

.cgr-heading {
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	color: var(--ivory);
}

.cgr-heading--ink {
	color: var(--leather-deep);
}

.cgr-heading--sub {
	margin-top: 64px;
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.cgr-intro {
	max-width: 820px;
	color: var(--muted);
	margin-bottom: 40px;
}

.cgr-frame {
	margin: 0;
	padding: 9px;
	background: var(--frame-face);
	border-radius: 3px;
	box-shadow: inset 0 0 0 2px rgba(60, 35, 10, 0.45), 0 18px 36px rgba(0, 0, 0, 0.45);
}

.cgr-frame__img {
	width: 100%;
	border: 2px solid var(--walnut-900);
}

.cgr-lamp {
	position: relative;
	padding: 64px 0 48px;
	background-image:
		radial-gradient(ellipse 55% 70% at 78% 8%, rgba(247, 196, 109, 0.34), transparent 70%),
		radial-gradient(ellipse 40% 50% at 10% 100%, rgba(110, 31, 39, 0.45), transparent 70%),
		repeating-linear-gradient(91deg, rgba(255, 228, 190, 0.025) 0 2px, transparent 2px 11px),
		repeating-linear-gradient(89deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 27px);
}

.cgr-lamp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 56px;
	align-items: center;
}

.cgr-lamp__title {
	font-size: clamp(2.3rem, 4.8vw, 3.9rem);
	color: var(--ivory);
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.cgr-lamp__lede {
	font-size: 1.32rem;
	color: var(--cream);
	max-width: 36em;
}

.cgr-frame--lamp {
	transform: rotate(0.6deg);
}

.cgr-plaques {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 52px 0 0;
	padding: 0;
	list-style: none;
}

.cgr-plaques li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 18px 16px;
	border-radius: 4px;
	background: var(--brass-face);
	color: var(--walnut-900);
	box-shadow: inset 0 0 0 1px rgba(70, 40, 10, 0.5), 0 5px 12px rgba(0, 0, 0, 0.4);
}

.cgr-plaques li::before,
.cgr-plaques li::after {
	content: "";
	position: absolute;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fff2cc, #7a5a26);
}

.cgr-plaques li::before {
	left: 8px;
}

.cgr-plaques li::after {
	right: 8px;
}

.cgr-plaques__k {
	font-family: var(--display);
	font-size: 1.2rem;
}

.cgr-plaques__v {
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 600;
}

.cgr-namegrid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
}

.cgr-questions {
	counter-reset: question;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgr-questions li {
	counter-increment: question;
	position: relative;
	padding: 0 0 18px 64px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--paper-line);
}

.cgr-questions li::before {
	content: counter(question);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--leather);
	color: var(--brass-hi);
	font-family: var(--display);
	font-size: 1.4rem;
	box-shadow: 4px 4px 0 var(--walnut-600);
}

.cgr-questions h3 {
	color: var(--leather-deep);
	font-size: 1.3rem;
}

.cgr-questions p {
	margin: 0;
	color: var(--ink-soft);
}

.cgr-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.cgr-head__text {
	padding: 34px;
	background: rgba(27, 17, 11, 0.55);
	border-radius: 6px;
	outline: 1px dashed rgba(236, 210, 154, 0.55);
	outline-offset: -10px;
}

.cgr-head__mark {
	font-family: var(--display);
	font-size: 2.8rem;
	line-height: 1;
	color: var(--brass-hi);
}

.cgr-head__mark small {
	font-family: var(--text);
	font-size: 1rem;
	color: var(--muted);
	margin-left: 4px;
}

.cgr-rows {
	margin: 1.2rem 0;
	display: grid;
	gap: 0;
}

.cgr-rows div {
	display: grid;
	grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(201, 162, 90, 0.3);
}

.cgr-rows dt {
	font-weight: 700;
	color: var(--brass-hi);
}

.cgr-rows dd {
	margin: 0;
}

.cgr-paper .cgr-rows div {
	border-bottom-color: var(--paper-line);
}

.cgr-paper .cgr-rows dt {
	color: var(--leather);
}

.cgr-rows--brass dt {
	color: var(--lamp);
}

.cgr-rows--desk div {
	grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
}

.cgr-boards {
	display: grid;
	gap: 40px;
}

.cgr-board {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 36px;
	padding: 28px;
	background: linear-gradient(180deg, var(--ivory), var(--paper));
	color: var(--ink);
	border-radius: 4px;
	box-shadow: 0 0 0 1px var(--brass-lo), 0 0 0 6px var(--walnut-700), 0 0 0 8px var(--brass-lo), 0 22px 40px rgba(0, 0, 0, 0.45);
}

.cgr-board a:not(.cgr-button) {
	color: var(--leather);
}

.cgr-board .cgr-label {
	color: var(--brass-lo);
}

.cgr-board__frame {
	position: sticky;
	top: 24px;
	align-self: start;
}

.cgr-board__tag {
	position: absolute;
	left: -6px;
	top: 22px;
	padding: 6px 16px;
	background: var(--leather);
	color: var(--brass-hi);
	font-family: var(--display);
	font-size: 1.1rem;
	box-shadow: 3px 3px 0 var(--walnut-900);
}

.cgr-board__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	border-bottom: 2px solid var(--walnut-600);
	margin-bottom: 14px;
}

.cgr-board__name {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	color: var(--leather-deep);
}

.cgr-score {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin: 0 0 10px;
	flex: none;
}

.cgr-score__num {
	font-family: var(--display);
	font-size: 2.6rem;
	line-height: 1;
	color: var(--leather);
}

.cgr-score__unit {
	font-size: 0.85rem;
	color: var(--ink-soft);
	letter-spacing: 0.05em;
}

.cgr-board__hook {
	font-size: 1.3rem;
	font-style: italic;
	color: var(--ink-soft);
}

.cgr-board__notes {
	margin: 0 0 1rem;
}

.cgr-board__notes div {
	padding: 10px 0;
	border-top: 1px solid var(--paper-line);
}

.cgr-board__notes dt,
.cgr-facts dt {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--leather);
}

.cgr-board__notes dd {
	margin: 4px 0 0;
}

.cgr-pawns {
	margin: 0.4rem 0 1rem;
	padding: 0;
	list-style: none;
}

.cgr-pawns li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 0.45em;
}

.cgr-pawns li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.5em;
	width: 10px;
	height: 10px;
	background: var(--brass);
	transform: rotate(45deg);
	box-shadow: 1px 1px 0 var(--brass-lo);
}

.cgr-caution {
	padding: 12px 16px;
	border-left: 4px solid var(--leather);
	background: rgba(110, 31, 39, 0.08);
	font-size: 1.08rem;
	color: var(--leather-deep);
}

.cgr-bars {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 22px;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.cgr-bars li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px;
	align-items: center;
	gap: 2px 10px;
	font-size: 0.98rem;
}

.cgr-bars__name {
	grid-column: 1 / -1;
	color: var(--ink-soft);
}

.cgr-bars__track {
	height: 8px;
	background: var(--paper-line);
	border-radius: 4px;
	overflow: hidden;
}

.cgr-bars__track span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--brass-lo), var(--brass));
}

.cgr-bars__val {
	font-weight: 700;
	color: var(--leather);
	text-align: right;
}

.cgr-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 1rem;
	border: 1px solid var(--paper-line);
}

.cgr-facts div {
	padding: 8px 12px;
	border-bottom: 1px solid var(--paper-line);
}

.cgr-facts div:nth-child(odd) {
	border-right: 1px solid var(--paper-line);
}

.cgr-facts div:nth-last-child(-n+2) {
	border-bottom: 0;
}

.cgr-facts dd {
	margin: 2px 0 0;
	font-size: 1.05rem;
}

.cgr-board__hands {
	font-size: 1.08rem;
}

.cgr-sheet {
	overflow-x: auto;
	background: var(--ivory);
	color: var(--ink);
	border-radius: 4px;
	box-shadow: 0 0 0 1px var(--brass-lo), 0 12px 26px rgba(0, 0, 0, 0.3);
}

.cgr-sheet table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 1.08rem;
}

.cgr-sheet th,
.cgr-sheet td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--paper-line);
}

.cgr-sheet thead th {
	background: var(--walnut-700);
	color: var(--brass-hi);
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cgr-sheet tbody th {
	font-weight: 700;
	color: var(--leather-deep);
}

.cgr-sheet a {
	color: var(--leather);
}

.cgr-sheet tbody tr:nth-child(even) {
	background: rgba(216, 198, 160, 0.25);
}

.cgr-num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cgr-num--mark {
	font-family: var(--display);
	font-size: 1.3rem;
	color: var(--leather);
}

.cgr-temper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0 0 72px;
	padding: 0;
	list-style: none;
}

.cgr-temper li {
	padding: 24px 22px;
	background: var(--ivory);
	border-top: 6px solid var(--leather);
	box-shadow: 0 1px 0 var(--paper-line), 0 10px 22px rgba(60, 35, 15, 0.12);
}

.cgr-temper h3 {
	color: var(--leather-deep);
}

.cgr-temper p {
	color: var(--ink-soft);
}

.cgr-temper .cgr-temper__go {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	color: var(--ink);
	font-weight: 700;
}

.cgr-temper__go .cgr-pawn {
	color: var(--leather);
	margin-top: 4px;
}

.cgr-marksplit {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 48px;
	align-items: start;
}

.cgr-marksplit p {
	color: var(--ink-soft);
}

.cgr-split {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
}

.cgr-split--flip .cgr-frame {
	order: 2;
}

.cgr-moves {
	counter-reset: move;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgr-moves li {
	counter-increment: move;
	padding: 76px 20px 24px;
	position: relative;
	background: var(--ivory);
	border: 1px solid var(--paper-line);
}

.cgr-moves li:nth-child(even) {
	background: #e7d6b4;
}

.cgr-moves li::before {
	content: counter(move);
	position: absolute;
	left: 20px;
	top: 18px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--walnut-700);
	color: var(--brass-hi);
	font-family: var(--display);
	font-size: 1.5rem;
}

.cgr-moves li:nth-child(even)::before {
	background: var(--ivory);
	color: var(--leather);
	box-shadow: inset 0 0 0 2px var(--walnut-700);
}

.cgr-moves h3 {
	font-size: 1.2rem;
	color: var(--leather-deep);
}

.cgr-moves p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 1.08rem;
}

.cgr-askgrid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	gap: 48px;
	align-items: start;
}

.cgr-asks {
	display: grid;
	gap: 12px;
}

.cgr-ask {
	background: rgba(27, 17, 11, 0.55);
	border: 1px solid var(--brass-lo);
	border-radius: 4px;
}

.cgr-ask summary {
	position: relative;
	padding: 16px 52px 16px 20px;
	font-weight: 700;
	font-size: 1.18rem;
	cursor: pointer;
	list-style: none;
}

.cgr-ask summary::-webkit-details-marker {
	display: none;
}

.cgr-ask summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--display);
	font-size: 1.6rem;
	color: var(--brass);
}

.cgr-ask[open] summary::after {
	content: "\2212";
}

.cgr-ask p {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--cream);
}

.cgr-book {
	padding: 30px 28px;
	background: repeating-linear-gradient(180deg, transparent 0 33px, var(--paper-line) 33px 34px), var(--ivory);
	color: var(--ink);
	border-radius: 3px;
	box-shadow: -8px 0 0 var(--leather), 0 16px 30px rgba(0, 0, 0, 0.4);
}

.cgr-book__lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgr-book__lines li {
	margin-bottom: 18px;
	font-style: italic;
	line-height: 1.55;
}

.cgr-book__date {
	display: block;
	font-style: normal;
	font-weight: 700;
	color: var(--leather);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cgr-deskgrid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 48px;
	align-items: start;
}

.cgr-deskcard {
	padding: 30px;
	background: rgba(27, 17, 11, 0.55);
	border-radius: 6px;
	outline: 1px dashed rgba(236, 210, 154, 0.55);
	outline-offset: -10px;
}

.cgr-paper {
	padding: 40px 44px;
	background: linear-gradient(180deg, var(--ivory), var(--paper));
	color: var(--ink);
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--brass-lo), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cgr-paper--form {
	padding: 34px;
}

.cgr-paper--form > p {
	color: var(--ink-soft);
}

.cgr-note__pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 18px;
}

.cgr-cell {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 18px;
}

.cgr-cell label {
	font-weight: 700;
	color: var(--leather-deep);
}

.cgr-cell input,
.cgr-cell select,
.cgr-cell textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--walnut-600);
	border-radius: 3px;
	background: #fffaf0;
	color: var(--ink);
	font-family: var(--text);
	font-size: 1.12rem;
}

.cgr-cell textarea {
	resize: vertical;
	min-height: 150px;
}

.cgr-cell input:focus,
.cgr-cell select:focus,
.cgr-cell textarea:focus {
	border-color: var(--leather);
	box-shadow: 0 0 0 3px rgba(201, 162, 90, 0.45);
	outline: none;
}

.cgr-cell--wrong input,
.cgr-cell--wrong select,
.cgr-cell--wrong textarea {
	border-color: var(--wrong);
	border-width: 2px;
}

.cgr-cell__why {
	color: var(--wrong);
	font-weight: 700;
	font-size: 1rem;
}

.cgr-note__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.cgr-small {
	margin: 0;
	font-size: 1rem;
	color: var(--ink-soft);
	flex: 1 1 220px;
}

.cgr-slipnote {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 3px;
	color: var(--ivory);
}

.cgr-slipnote--ok {
	background: var(--ok);
}

.cgr-slipnote--wrong {
	background: var(--wrong);
}

.cgr-entry {
	padding: 70px 0 60px;
	border-bottom: 3px solid var(--brass-lo);
}

.cgr-entry__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	align-items: end;
}

.cgr-entry__title {
	font-size: clamp(2.2rem, 4.6vw, 3.5rem);
	color: var(--ivory);
	max-width: 22ch;
}

.cgr-entry__lede {
	font-size: 1.3rem;
	max-width: 40em;
	color: var(--cream);
	margin: 0;
}

.cgr-plate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 190px;
	margin: 0;
	padding: 16px 22px;
	background: var(--brass-face);
	color: var(--walnut-900);
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	box-shadow: inset 0 0 0 1px rgba(70, 40, 10, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.cgr-plate__big {
	font-family: var(--display);
	font-size: 1.7rem;
	font-weight: 400;
}

.cgr-reading {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding-top: 56px;
	padding-bottom: 80px;
}

.cgr-reading--plain {
	grid-template-columns: minmax(0, 1fr);
}

.cgr-index {
	position: sticky;
	top: 24px;
	padding: 22px;
	background: rgba(27, 17, 11, 0.6);
	border: 1px solid var(--brass-lo);
	border-radius: 4px;
}

.cgr-index ol {
	margin: 0;
	padding-left: 1.3em;
	font-size: 1.04rem;
}

.cgr-index li {
	margin-bottom: 6px;
}

.cgr-index li::marker {
	color: var(--brass);
	font-weight: 700;
}

.cgr-index a {
	color: var(--cream);
	text-decoration: none;
}

.cgr-index a:hover {
	color: var(--lamp);
	text-decoration: underline;
}

.cgr-frame--page {
	margin-bottom: 36px;
}

.cgr-part {
	padding-bottom: 14px;
	scroll-margin-top: 24px;
}

.cgr-part + .cgr-part {
	padding-top: 22px;
	border-top: 1px solid var(--paper-line);
}

.cgr-part h2 {
	display: flex;
	align-items: baseline;
	gap: 14px;
	font-size: clamp(1.5rem, 2.6vw, 1.95rem);
	color: var(--leather-deep);
}

.cgr-part__no {
	flex: none;
	font-family: var(--text);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--brass-lo);
	padding: 2px 8px;
	border: 1px solid var(--brass);
}

.cgr-part .cgr-sheet {
	margin-bottom: 1.2rem;
}

.cgr-reset {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding-top: 10px;
}

.cgr-paper .cgr-button--line {
	color: var(--leather);
	border-color: var(--leather);
}

.cgr-reset__done {
	color: var(--ok);
	font-weight: 700;
}

.cgr-frame--wide {
	max-width: 900px;
	margin: 0 auto 56px;
}

.cgr-crew {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgr-crew__card {
	padding: 28px 26px;
	background: rgba(110, 31, 39, 0.35);
	border: 1px solid var(--brass-lo);
	border-radius: 4px;
}

.cgr-crew__mono {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 16px;
	background: var(--brass-face);
	color: var(--walnut-900);
	font-family: var(--display);
	font-size: 1.4rem;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(70, 40, 10, 0.5);
}

.cgr-crew h3 {
	color: var(--ivory);
	margin-bottom: 0.2em;
}

.cgr-foot {
	color: var(--muted);
	font-size: 1.06rem;
}

.cgr-foot > .cgr-wrap {
	padding-top: 56px;
	padding-bottom: 40px;
}

.cgr-foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 44px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--brass-lo);
}

.cgr-brand--foot {
	margin-bottom: 16px;
}

.cgr-ledger {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 20px;
}

.cgr-ledger .cgr-door a {
	padding: 3px 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--cream);
	border: 0;
}

.cgr-ledger .cgr-door--here a {
	color: var(--brass-hi);
}

.cgr-foot__desk a {
	color: var(--brass-hi);
}

.cgr-foot__rule {
	margin: 28px 0 14px;
	padding: 14px 18px;
	border: 1px solid var(--brass-lo);
	color: var(--cream);
	font-weight: 600;
}

.cgr-foot__fine {
	font-size: 0.98rem;
	line-height: 1.55;
}

.cgr-foot__copy {
	margin: 0;
	font-size: 0.92rem;
	font-style: italic;
}

.cgr-notice {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 40;
	width: min(440px, calc(100% - 36px));
	padding: 22px 22px 20px;
	background: var(--leather-deep);
	color: var(--cream);
	border: 2px solid var(--brass);
	border-radius: 6px;
	outline: 1px dashed rgba(236, 210, 154, 0.5);
	outline-offset: -9px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	font-size: 1.04rem;
}

.cgr-notice[hidden] {
	display: none;
}

.cgr-notice__acts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cgr-lost {
	padding: 90px 0;
}

.cgr-lost__grid {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.cgr-lost__mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	color: var(--brass-hi);
	font-family: var(--display);
	font-size: 4.5rem;
	line-height: 1;
}

.cgr-lost__mark .cgr-knight {
	width: 140px;
	height: 140px;
	color: var(--brass);
}

.cgr-lounge--inner .cgr-top,
.cgr-lounge--lost .cgr-top {
	border-bottom-color: var(--brass);
}

.cgr-lounge--lost .cgr-foot__rule {
	border-style: dashed;
}

@media (max-width: 1200px) {
	.cgr-menu {
		display: inline-flex;
	}

	.cgr-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px 20px 22px;
		background: var(--walnut-900);
		border-bottom: 3px solid var(--brass-lo);
		box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
	}

	.cgr-nav--open {
		display: flex;
	}

	.cgr-doors {
		flex-direction: column;
	}

	.cgr-door a {
		padding: 10px 4px;
		border-bottom: 1px solid rgba(201, 162, 90, 0.2);
	}

	.cgr-moves {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cgr-moves li:last-child {
		grid-column: 1 / -1;
	}

	.cgr-moves li:nth-child(even) {
		background: var(--ivory);
	}

	.cgr-moves li:nth-child(4n + 2),
	.cgr-moves li:nth-child(4n + 3) {
		background: #e7d6b4;
	}

	.cgr-temper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.cgr-lamp__grid,
	.cgr-head__grid,
	.cgr-namegrid,
	.cgr-marksplit,
	.cgr-split,
	.cgr-askgrid,
	.cgr-deskgrid,
	.cgr-reading,
	.cgr-board {
		grid-template-columns: minmax(0, 1fr);
	}

	.cgr-split--flip .cgr-frame {
		order: 0;
	}

	.cgr-board__frame {
		position: relative;
		top: 0;
	}

	.cgr-plaques {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cgr-index {
		position: static;
	}

	.cgr-crew {
		grid-template-columns: minmax(0, 1fr);
	}

	.cgr-foot__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.cgr-foot__about {
		grid-column: 1 / -1;
	}

	.cgr-entry__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.cgr-plate {
		align-items: flex-start;
		text-align: left;
		justify-self: start;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 1.12rem;
	}

	.cgr-band {
		padding: 52px 0;
	}

	.cgr-wrap {
		padding: 0 16px;
	}

	.cgr-top__row {
		min-height: 72px;
	}

	.cgr-brand__plate {
		width: 42px;
		height: 42px;
	}

	.cgr-brand__name {
		font-size: 1.2rem;
	}

	.cgr-brand__line {
		display: none;
	}

	.cgr-menu span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.cgr-plaques,
	.cgr-temper,
	.cgr-moves,
	.cgr-note__pair,
	.cgr-bars,
	.cgr-facts,
	.cgr-foot__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cgr-facts div:nth-child(odd) {
		border-right: 0;
	}

	.cgr-facts div:nth-last-child(2) {
		border-bottom: 1px solid var(--paper-line);
	}

	.cgr-moves li:nth-child(n) {
		background: var(--ivory);
	}

	.cgr-moves li:nth-child(even) {
		background: #e7d6b4;
	}

	.cgr-board {
		padding: 18px;
		gap: 22px;
	}

	.cgr-board__top {
		flex-direction: column;
		gap: 0;
	}

	.cgr-score {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
	}

	.cgr-paper {
		padding: 26px 20px;
	}

	.cgr-head__text,
	.cgr-deskcard {
		padding: 24px 20px;
	}

	.cgr-rows div,
	.cgr-rows--desk div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.cgr-ledger {
		columns: 1;
	}

	.cgr-lost__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.cgr-lost__mark {
		flex-direction: row;
		gap: 12px;
		font-size: 3rem;
	}

	.cgr-lost__mark .cgr-knight {
		width: 70px;
		height: 70px;
	}

	.cgr-button {
		width: 100%;
	}

	.cgr-notice__acts .cgr-button {
		width: auto;
		flex: 1 1 130px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.cgr-button {
		transition: none;
	}
}
