:root {
	--epoch-ink: #111111;
	--epoch-paper: #f6f4ed;
	--epoch-white: #ffffff;
	--epoch-blue: #20206d;
	--epoch-orange: #eea03b;
	--epoch-border: rgba(17, 17, 17, 0.2);
	--epoch-gutter: clamp(20px, 3vw, 48px);
	--epoch-header-height: 88px;
	--epoch-font-display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--epoch-font-body: "Helvetica Neue", "Yu Gothic", "YuGothic", Arial, sans-serif;
}

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

html {
	background: var(--epoch-white);
	color: var(--epoch-ink);
	font-size: 100%;
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--epoch-white);
	color: var(--epoch-ink);
	font-family: var(--epoch-font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

body.menu-is-open {
	overflow: hidden;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--epoch-white);
	border: 1px solid var(--epoch-ink);
	color: var(--epoch-ink);
}

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: var(--epoch-header-height);
	pointer-events: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 0 var(--epoch-gutter);
}

.site-branding,
.menu-toggle {
	pointer-events: auto;
}

.site-branding__wordmark {
	display: inline-flex;
	align-items: center;
	font-family: var(--epoch-font-display);
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 1;
}

.site-branding__wordmark:focus-visible,
.custom-logo-link:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 6px;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-width: clamp(86px, 9vw, 132px);
	max-height: 54px;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	min-width: 96px;
	padding: 12px 0 12px 12px;
	background: transparent;
	border: 0;
	color: var(--epoch-ink);
	cursor: pointer;
}

.menu-toggle__word {
	font-family: var(--epoch-font-display);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1;
}

.menu-toggle__icon {
	position: relative;
	display: block;
	width: 34px;
	height: 20px;
}

.menu-toggle__icon span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transition:
		top 350ms cubic-bezier(0.77, 0, 0.18, 1),
		transform 350ms cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-toggle__icon span:first-child {
	top: 5px;
}

.menu-toggle__icon span:last-child {
	top: 15px;
}

.menu-is-open .menu-toggle__icon span:first-child {
	top: 10px;
	transform: rotate(45deg);
}

.menu-is-open .menu-toggle__icon span:last-child {
	top: 10px;
	transform: rotate(-45deg);
}

/* Full-screen navigation */
.fullscreen-menu {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: var(--epoch-paper);
	clip-path: circle(0 at calc(100% - var(--epoch-gutter) - 20px) 42px);
	visibility: hidden;
	pointer-events: none;
	transition:
		clip-path 760ms cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s linear 760ms;
}

.menu-is-open .fullscreen-menu {
	clip-path: circle(160vmax at calc(100% - var(--epoch-gutter) - 20px) 42px);
	visibility: visible;
	pointer-events: auto;
	transition:
		clip-path 760ms cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s;
}

.fullscreen-menu__inner {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
	min-height: 100dvh;
	padding: calc(var(--epoch-header-height) + 16px) var(--epoch-gutter) 28px;
}

.fullscreen-menu__kicker,
.fullscreen-menu__meta {
	margin: 0;
	font-family: var(--epoch-font-display);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

.fullscreen-menu__kicker {
	opacity: 0;
	transform: translateY(10px);
	transition: 400ms ease 420ms;
}

.menu-is-open .fullscreen-menu__kicker {
	opacity: 1;
	transform: translateY(0);
}

.fullscreen-menu__nav {
	display: grid;
	align-items: center;
	justify-items: center;
	padding: 20px 0;
}

.fullscreen-menu__list,
.fullscreen-menu__list ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.fullscreen-menu__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(2px, 0.45vh, 8px);
}

.fullscreen-menu__list > li {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 420ms ease calc(240ms + var(--menu-index, 0) * 40ms),
		transform 560ms cubic-bezier(0.16, 1, 0.3, 1)
			calc(240ms + var(--menu-index, 0) * 40ms);
}

.menu-is-open .fullscreen-menu__list > li {
	opacity: 1;
	transform: translateY(0);
}

.fullscreen-menu__list > li > a {
	position: relative;
	display: block;
	font-family: var(--epoch-font-display);
	font-size: clamp(1.8rem, min(4.8vw, 5.2vh), 4.9rem);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 0.92;
	text-align: center;
	text-transform: uppercase;
}

.fullscreen-menu__list > li > a::after {
	position: absolute;
	right: 0;
	bottom: -0.08em;
	left: 0;
	height: 0.06em;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 360ms cubic-bezier(0.77, 0, 0.18, 1);
}

.fullscreen-menu__list > li > a:hover::after,
.fullscreen-menu__list > li > a:focus-visible::after,
.fullscreen-menu__list .current-menu-item > a::after,
.fullscreen-menu__list .current_page_item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.fullscreen-menu__list .sub-menu {
	display: none;
}

.fullscreen-menu__meta {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	opacity: 0;
	transform: translateY(10px);
	transition: 400ms ease 520ms;
}

.fullscreen-menu__meta p {
	margin: 0;
}

.fullscreen-menu__meta a,
.site-footer__instagram {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.fullscreen-menu__meta a:hover,
.fullscreen-menu__meta a:focus-visible,
.site-footer__instagram:hover,
.site-footer__instagram:focus-visible {
	opacity: 0.55;
}

.menu-is-open .fullscreen-menu__meta {
	opacity: 1;
	transform: translateY(0);
}

/* One-screen front page */
.epoch-landing {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--epoch-white);
}

.epoch-landing__stage {
	position: relative;
	display: grid;
	min-height: 100vh;
	min-height: 100dvh;
	place-items: center;
	padding: calc(var(--epoch-header-height) + 14px) var(--epoch-gutter) 88px;
	overflow: hidden;
}

.epoch-landing__center {
	display: grid;
	place-items: center;
	width: 100%;
}

.epoch-entry {
	--entry-x: 0px;
	--entry-y: 0px;
	--entry-rotate-x: 0deg;
	--entry-rotate-y: 0deg;
	position: relative;
	display: block;
	width: clamp(260px, 31.2vw, 400px);
	aspect-ratio: 4 / 5;
	background: var(--epoch-paper);
	color: var(--epoch-ink);
	outline-offset: 8px;
	transform:
		perspective(1000px)
		translate3d(var(--entry-x), var(--entry-y), 0)
		rotateX(var(--entry-rotate-x))
		rotateY(var(--entry-rotate-y));
	transition:
		transform 260ms ease,
		box-shadow 350ms ease;
}

.epoch-entry:hover {
	box-shadow: 0 22px 55px rgba(17, 17, 17, 0.14);
}

.epoch-entry__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.epoch-entry__action {
	position: absolute;
	right: 16px;
	bottom: 14px;
	z-index: 3;
	padding: 6px 8px;
	background: var(--epoch-white);
	font-family: var(--epoch-font-display);
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	line-height: 1;
	opacity: 0;
	transform: translateY(8px);
	transition: 260ms ease;
}

.epoch-entry:hover .epoch-entry__action,
.epoch-entry:focus-visible .epoch-entry__action {
	opacity: 1;
	transform: translateY(0);
}

.epoch-poster {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	background:
		linear-gradient(135deg, transparent 0 72%, rgba(32, 32, 109, 0.1) 72%),
		var(--epoch-paper);
	border: 1px solid var(--epoch-ink);
}

.epoch-poster::before,
.epoch-poster::after {
	position: absolute;
	content: "";
	border: 1px solid var(--epoch-ink);
}

.epoch-poster::before {
	inset: 4.5%;
}

.epoch-poster::after {
	inset: 10% 8%;
	border-color: rgba(17, 17, 17, 0.25);
}

.epoch-poster__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px);
	background-size: 8% 8%;
	mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.epoch-poster__city,
.epoch-poster__number,
.epoch-poster__statement {
	position: absolute;
	z-index: 2;
	font-family: var(--epoch-font-display);
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.15;
}

.epoch-poster__city {
	top: 7%;
	left: 7%;
	font-size: clamp(0.5rem, 0.8vw, 0.7rem);
}

.epoch-poster__name {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	font-family: var(--epoch-font-display);
	font-size: clamp(3.2rem, 7vw, 6rem);
	font-weight: 900;
	letter-spacing: -0.09em;
	line-height: 0.75;
	transform: translate(-52%, -55%) rotate(-90deg);
}

.epoch-poster__number {
	top: 7%;
	right: 7%;
	font-size: clamp(0.75rem, 1.1vw, 1rem);
}

.epoch-poster__statement {
	right: 7%;
	bottom: 7%;
	font-size: clamp(0.56rem, 0.85vw, 0.75rem);
	text-align: right;
}

.epoch-landing__footer {
	position: absolute;
	right: var(--epoch-gutter);
	bottom: 24px;
	left: var(--epoch-gutter);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	font-family: var(--epoch-font-display);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.epoch-landing__footer p {
	margin: 0;
}

.epoch-landing__footer p:nth-child(2) {
	text-align: center;
}

.epoch-landing__footer p:last-child {
	text-align: right;
}

.legal-links ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 16px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.legal-links a {
	color: inherit;
	text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.legal-links--landing {
	grid-column: 1 / -1;
	justify-self: center;
	margin-top: 5px;
	font-size: 0.52rem;
	letter-spacing: 0.04em;
	text-transform: none;
}

/* Interior pages */
.page-shell {
	width: min(100% - (var(--epoch-gutter) * 2), 1440px);
	min-height: calc(100vh - 110px);
	padding: calc(var(--epoch-header-height) + 74px) 0 110px;
	margin: 0 auto;
}

.page-shell--centered {
	display: grid;
	place-items: center;
}

.epoch-page__header,
.archive-header {
	padding-bottom: clamp(50px, 8vw, 120px);
	border-bottom: 1px solid var(--epoch-border);
}

.epoch-page__eyebrow,
.post-card__date {
	margin: 0 0 14px;
	font-family: var(--epoch-font-display);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.epoch-page__title {
	max-width: 14ch;
	margin: 0;
	font-family: var(--epoch-font-display);
	font-size: clamp(3rem, 8vw, 7rem);
	font-weight: 900;
	letter-spacing: -0.07em;
	line-height: 0.84;
	text-transform: uppercase;
}

.epoch-page__featured {
	margin: 48px 0 0;
}

.epoch-page__featured img {
	width: 100%;
	max-height: 78vh;
	object-fit: cover;
}

.epoch-page__content {
	width: min(100%, 860px);
	margin: clamp(54px, 9vw, 130px) auto 0;
	font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.epoch-page__content > *:first-child {
	margin-top: 0;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 60px);
	padding-top: 60px;
}

.post-card__image {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.post-card__date {
	margin-top: 18px;
}

.post-card__title {
	margin: 0;
	font-family: var(--epoch-font-display);
	font-size: clamp(1.5rem, 2.4vw, 2.6rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 0.95;
	text-transform: uppercase;
}

.error-page {
	width: min(100%, 980px);
	text-align: center;
}

.error-page .epoch-page__title {
	margin-inline: auto;
}

.error-page__message {
	max-width: 520px;
	margin: 30px auto 0;
	color: rgba(17, 17, 17, 0.72);
}

.error-page__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 40px;
}

.epoch-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 24px;
	border: 1px solid var(--epoch-ink);
	background: var(--epoch-ink);
	color: var(--epoch-white);
	font-family: var(--epoch-font-display);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	transition: background-color 180ms ease, color 180ms ease;
}

.epoch-button:hover,
.epoch-button:focus-visible {
	background: var(--epoch-white);
	color: var(--epoch-ink);
}

.epoch-button:focus-visible {
	outline: 2px solid var(--epoch-ink);
	outline-offset: 4px;
}

.epoch-button--outline {
	background: var(--epoch-white);
	color: var(--epoch-ink);
}

.epoch-button--outline:hover,
.epoch-button--outline:focus-visible {
	background: var(--epoch-ink);
	color: var(--epoch-white);
}

.epoch-search-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 28px;
	padding-bottom: clamp(50px, 8vw, 120px);
	border-bottom: 1px solid var(--epoch-border);
}

.epoch-search-header__count {
	margin: 0;
	font-family: var(--epoch-font-display);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.epoch-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	padding-top: clamp(36px, 5vw, 72px);
}

.epoch-search-form__field,
.epoch-search-form__submit {
	min-height: 54px;
	border: 1px solid var(--epoch-ink);
	border-radius: 0;
	font-family: var(--epoch-font-display);
}

.epoch-search-form__field {
	width: 100%;
	padding: 12px 16px;
	background: var(--epoch-white);
	color: var(--epoch-ink);
	font-size: 1rem;
}

.epoch-search-form__submit {
	min-width: 132px;
	padding: 12px 22px;
	background: var(--epoch-ink);
	color: var(--epoch-white);
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	cursor: pointer;
}

.epoch-search-form__field:focus,
.epoch-search-form__submit:focus-visible {
	outline: 2px solid var(--epoch-ink);
	outline-offset: 3px;
}

.epoch-search-empty {
	padding: clamp(70px, 12vw, 160px) 0;
	text-align: center;
}

.epoch-search-empty__title {
	margin: 0;
	font-family: var(--epoch-font-display);
	font-size: clamp(2rem, 6vw, 5rem);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 0.92;
}

.epoch-search-empty > p:not(.epoch-search-empty__title) {
	margin: 22px 0 32px;
}

.navigation.pagination {
	margin-top: 70px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: grid;
	width: 42px;
	height: 42px;
	border: 1px solid var(--epoch-border);
	place-items: center;
	font-family: var(--epoch-font-display);
	font-size: 0.7rem;
	font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
	border-color: var(--epoch-ink);
	background: var(--epoch-ink);
	color: var(--epoch-white);
}

.site-footer {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 25px var(--epoch-gutter);
	border-top: 1px solid var(--epoch-border);
	font-family: var(--epoch-font-display);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.site-footer p {
	margin: 0;
}

.legal-links--footer {
	margin-left: auto;
	font-size: 0.58rem;
	letter-spacing: 0.04em;
}

@media (max-width: 780px) {
	:root {
		--epoch-header-height: 70px;
	}

	.site-header__inner {
		padding-inline: 20px;
	}

	.menu-toggle {
		min-width: 44px;
		padding-right: 0;
	}

	.menu-toggle__word {
		display: none;
	}

	.fullscreen-menu__inner {
		padding: calc(var(--epoch-header-height) + 16px) 20px 22px;
	}

	.fullscreen-menu__kicker {
		visibility: hidden;
	}

	.fullscreen-menu__list > li > a {
		font-size: clamp(1.9rem, 9vw, 3.1rem);
		line-height: 0.95;
	}

	.fullscreen-menu__meta {
		font-size: 0.55rem;
	}

	.fullscreen-menu__meta p:last-child {
		text-align: right;
	}

	.epoch-landing__stage {
		padding: calc(var(--epoch-header-height) + 8px) 20px 112px;
	}

	.epoch-entry {
		width: min(90vw, 352px);
	}

	.epoch-entry__action {
		opacity: 1;
		transform: none;
	}

	.epoch-landing__footer {
		right: 20px;
		bottom: 18px;
		left: 20px;
		grid-template-columns: 1fr auto;
		row-gap: 5px;
		font-size: 0.55rem;
	}

	.epoch-landing__footer p:nth-child(2) {
		text-align: right;
	}

	.epoch-landing__footer p:last-child {
		grid-column: 1 / -1;
		text-align: left;
	}

	.legal-links--landing {
		justify-self: start;
	}

	.legal-links--landing ul {
		gap: 4px 10px;
	}

	.legal-links--footer {
		margin-left: 0;
	}

	.page-shell {
		width: calc(100% - 40px);
		padding-top: calc(var(--epoch-header-height) + 55px);
	}

	.epoch-page__title {
		font-size: clamp(3rem, 17vw, 5.4rem);
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

	.epoch-search-header {
		grid-template-columns: 1fr;
	}

	.epoch-search-form {
		grid-template-columns: 1fr;
	}

	.epoch-search-form__submit {
		width: 100%;
	}

	.error-page__actions {
		display: grid;
	}

	.error-page__actions .epoch-button {
		width: 100%;
	}

	.site-footer {
		flex-direction: column;
	}
}

@media (max-height: 680px) and (min-width: 781px) {
	.epoch-entry {
		width: min(29vw, 330px);
	}

	.fullscreen-menu__list > li > a {
		font-size: clamp(2rem, 4.5vw, 3.8rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
