/* Article pages (.ca-page). Built on the Cafe Pro frame: black hairline, white mat, peach menu tint. */

.ca-page {
	--ca-pad: 60px;
	--ca-peach: rgba(249, 158, 71, .26);
	--ca-link: #66701f;
	--ca-text: 'Century Gothic', CenturyGothic, AppleGothic, 'Trebuchet MS', sans-serif;
}

.ca-page .content .entry.ca-article {
	padding: var(--ca-pad);
}

.ca-article p,
.ca-article td {
	font-family: var(--ca-text);
	font-size: 17px;
	line-height: 1.75;
	color: #000;
}

.ca-article p {
	margin: 0 0 22px;
}

/* Links in text */
.ca-article .entry-content a,
.ca-card a {
	color: var(--ca-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ca-article .entry-content a:hover,
.ca-card a:hover {
	color: #000;
}

/* Hero photo runs to the frame edges, the title card sits on it */
.ca-hero {
	margin: calc(-1 * var(--ca-pad)) calc(-1 * var(--ca-pad)) 0;
}

.ca-hero__img,
.ca-close__img {
	display: block;
	max-width: none;
	object-fit: cover;
}

.ca-hero__img {
	width: 100%;
	height: auto;
	aspect-ratio: 12 / 5;
}

.ca-card {
	position: relative;
	margin: -128px 0 0;
	padding: 44px 52px 42px;
	background: #fff;
	border: 1px solid #000;
	box-shadow: 0 0 0 10px #fff;
}

.ca-card .entry-title {
	font-family: 'Judson', Georgia, serif;
	font-size: 46px;
	font-weight: 400;
	line-height: 1.12;
	margin: 0 0 22px;
}

.ca-card .ca-lead {
	font-size: 19px;
	line-height: 1.7;
	margin: 0;
}

/* Sections */
.ca-article .entry-content {
	margin-top: 68px;
}

.ca-sec {
	margin: 0 0 60px;
}

.ca-sec > h2 {
	font-family: 'Alice', Georgia, serif;
	font-size: 31px;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 22px;
	padding-top: 30px;
	border-top: 1px solid #000;
}

.ca-sec > p:last-child,
.ca-sec .ca-close__body > p:last-child {
	margin-bottom: 0;
}

/* Safety notes: the peach of the menu pages, framed like a menu card */
.ca-plaque {
	background: var(--ca-peach);
	padding: 54px 58px;
	outline: 1px solid #000;
	outline-offset: -12px;
}

.ca-plaque > h2 {
	border-top: 0;
	padding-top: 0;
}

/* Closing panel: photo under a dark wash, fills the bottom of the frame */
.ca-sec.ca-close {
	position: relative;
	isolation: isolate;
	margin: 76px calc(-1 * var(--ca-pad)) calc(-1 * var(--ca-pad));
	background: #1a1410;
}

.ca-close__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
}

.ca-close::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, .5) 100%);
}

.ca-close__body {
	padding: 100px var(--ca-pad) 92px;
}

.ca-close h2 {
	font-family: 'Alice', Georgia, serif;
	font-size: 31px;
	font-weight: 400;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 22px;
}

.ca-close p {
	color: #fff;
	font-size: 19px;
	line-height: 1.75;
}

/* Comparison table in the voice of the printed menu */
.ca-table {
	margin: 10px 0 30px;
}

.ca-table table {
	width: 100%;
	margin: 0;
	table-layout: fixed;
	border-collapse: collapse;
	line-height: 1.6;
}

.ca-table tbody {
	border-bottom: 0;
}

.ca-table th {
	font-family: 'Courier New', Courier, monospace;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	vertical-align: bottom;
	padding: 0 24px 14px 0;
	border-bottom: 2px solid #000;
}

.ca-table td {
	font-size: 16px;
	line-height: 1.6;
	vertical-align: top;
	padding: 18px 24px 18px 0;
	border-top: 0;
	border-bottom: 1px solid #000;
}

.ca-table th:last-child,
.ca-table td:last-child {
	padding-right: 0;
}

/* Widths */
@media only screen and (max-width: 1200px) {
	.ca-card {
		margin-top: -104px;
	}
}

@media only screen and (max-width: 800px) {
	.ca-page {
		--ca-pad: 28px;
	}

	.ca-hero__img {
		aspect-ratio: 3 / 2;
	}

	.ca-card {
		margin-top: -56px;
		padding: 28px 26px 30px;
		box-shadow: 0 0 0 6px #fff;
	}

	.ca-card .entry-title {
		font-size: 34px;
	}

	.ca-card .ca-lead {
		font-size: 17px;
	}

	.ca-article .entry-content {
		margin-top: 48px;
	}

	.ca-sec {
		margin-bottom: 44px;
	}

	.ca-sec > h2,
	.ca-close h2 {
		font-size: 26px;
	}

	.ca-plaque {
		padding: 38px 30px;
		outline-offset: -9px;
	}

	.ca-sec.ca-close {
		margin-top: 52px;
	}

	.ca-close__body {
		padding: 60px var(--ca-pad) 56px;
	}

	.ca-close p {
		font-size: 17px;
	}

	/* table rows become stacked entries */
	.ca-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.ca-table table,
	.ca-table tbody,
	.ca-table tr,
	.ca-table td {
		display: block;
		width: 100%;
	}

	.ca-table tbody {
		border-top: 2px solid #000;
	}

	.ca-table tr {
		padding: 16px 0;
		border-bottom: 1px solid #000;
	}

	.ca-table td {
		border: 0;
		padding: 4px 0;
	}

	.ca-table td::before {
		content: attr(data-label);
		display: block;
		font-family: 'Courier New', Courier, monospace;
		font-size: 15px;
		line-height: 1.4;
		margin-bottom: 2px;
	}
}

@media only screen and (max-width: 480px) {
	.ca-page {
		--ca-pad: 20px;
	}

	.ca-page .content .entry.ca-article {
		margin-left: 6px;
		margin-right: 6px;
		box-shadow: 0 0 0 6px #fff;
	}

	.ca-card {
		margin-top: -40px;
		padding: 24px 20px 26px;
	}

	.ca-card .entry-title {
		font-size: 30px;
	}

	.ca-plaque {
		padding: 32px 22px;
		outline-offset: -7px;
	}
}
