/*
Theme Name: Tripping Flamingos Press
Theme URI: https://trippingflamingospress.com
Author: Tripping Flamingos Press
Description: Editorial theme for Tripping Flamingos Press. Black ground, Anton display, Space Mono chrome, Newsreader body. Built around a downloadable zine and separate photo essays.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: tfp
*/

:root {
	--bg: #0b0b0b;
	--fg: #eceae6;
	--muted: #8c8a85;
	--faint: #55534e;
	--line: #262624;
	--line-soft: #1e1e1c;
	--edge: #3a3833;
	--accent: #ff3e8a;
	--wrap: 1152px;
	--gutter: 24px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: Newsreader, Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.mono {
	font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.display {
	font-family: Anton, "Arial Narrow", Impact, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: var(--gutter);
	top: 12px;
	z-index: 50;
	background: var(--fg);
	color: var(--bg);
	padding: 10px 16px;
}

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line-soft); }

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--fg);
}
.brand svg { width: 12px; height: 12px; flex: none; }
.brand span { transition: color 0.2s; }
.brand:hover span { color: var(--muted); }

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	order: 3;
	width: 100%;
}
.nav a {
	color: var(--muted);
	transition: color 0.2s;
}
.nav a:hover { color: var(--fg); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav a[aria-current="page"] {
	color: var(--fg);
	text-decoration: underline;
	text-underline-offset: 8px;
}
.nav .num {
	color: rgba(140, 138, 133, 0.6);
	margin-right: 8px;
}

.btn {
	display: inline-block;
	font-family: "Space Mono", ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 12px 20px;
	border: 1px solid var(--edge);
	color: var(--fg);
	transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }

.btn--solid {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}
.btn--solid:hover { background: transparent; color: var(--fg); }

@media (min-width: 800px) {
	.nav { order: 0; width: auto; }
}

/* ---------- shared page furniture ---------- */

.eyebrow {
	color: var(--muted);
	margin: 0;
}

.section { padding-top: 88px; padding-bottom: 88px; }
.section--tight { padding-top: 56px; padding-bottom: 56px; }
.rule { border-top: 1px solid var(--line); }

h1.page-title,
h2.page-title {
	font-family: Anton, "Arial Narrow", Impact, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	font-size: clamp(2.8rem, 8vw, 7rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	margin: 40px 0 0;
}

.lede {
	font-size: 20px;
	line-height: 1.6;
	color: rgba(236, 234, 230, 0.9);
	max-width: 46ch;
}

.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- home ---------- */

.masthead { padding-top: 72px; padding-bottom: 72px; }

.masthead__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
	padding-bottom: 16px;
}

.masthead__mark {
	margin-top: 56px;
	width: 100%;
	max-width: 672px;
	height: auto;
}

.masthead__line {
	margin: 56px 0 0;
	font-size: 19px;
	color: rgba(236, 234, 230, 0.9);
}

/* ---------- issue block ---------- */

.issue {
	display: grid;
	gap: 40px;
	align-items: center;
}

.issue__cover { position: relative; }
.issue__numeral {
	position: absolute;
	top: -64px;
	left: 0;
	font-family: Anton, "Arial Narrow", Impact, sans-serif;
	font-size: 10rem;
	line-height: 1;
	color: rgba(236, 234, 230, 0.1);
	pointer-events: none;
	user-select: none;
}
.issue__cover img {
	position: relative;
	width: 100%;
	max-width: 384px;
	border: 1px solid var(--line);
}

.issue__title {
	font-family: Anton, "Arial Narrow", Impact, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	font-size: clamp(2.4rem, 6vw, 3.8rem);
	line-height: 1;
	margin: 24px 0 0;
}

.issue__specs { color: var(--muted); font-size: 16px; margin: 24px 0 0; }
.issue__actions { margin-top: 40px; }

@media (min-width: 860px) {
	.issue { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* ---------- lists ---------- */

.list { border-bottom: 1px solid var(--line); }
.list__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 32px;
	border-top: 1px solid var(--line);
	padding: 32px 8px;
	transition: background 0.2s, color 0.2s;
}
.list__row:hover { background: var(--fg); color: var(--bg); }
.list__num {
	font-family: Anton, "Arial Narrow", Impact, sans-serif;
	font-size: 3.5rem;
	line-height: 1;
	color: rgba(236, 234, 230, 0.25);
}
.list__row:hover .list__num { color: rgba(11, 11, 11, 0.4); }
.list__title {
	font-family: Anton, "Arial Narrow", Impact, sans-serif;
	font-size: 2rem;
	line-height: 1;
	text-transform: uppercase;
}
.list__meta { margin-left: auto; color: var(--muted); }
.list__row:hover .list__meta { color: rgba(11, 11, 11, 0.7); }

/* ---------- essays ---------- */

.essays { display: grid; gap: 48px; }
.essay-card__image { border: 1px solid var(--line); }
.essay-card__title {
	font-family: Anton, "Arial Narrow", Impact, sans-serif;
	font-size: 2rem;
	text-transform: uppercase;
	line-height: 1;
	margin: 16px 0 8px;
}
.essay-card__note { color: var(--muted); font-size: 17px; margin: 0; }

@media (min-width: 760px) {
	.essays { grid-template-columns: 1fr 1fr; }
}

.essay-body { max-width: 760px; margin: 0 auto; }
.essay-body figure { margin: 56px 0; }
.essay-body figure img { width: 100%; }
.essay-body .alignfull,
.essay-body .alignwide { max-width: none; }

.empty-note { color: var(--muted); }

/* ---------- two column text ---------- */

.cols { display: grid; gap: 48px; }
@media (min-width: 860px) {
	.cols { grid-template-columns: 7fr 4fr; gap: 80px; }
}
.cols__aside { border-top: 1px solid var(--line); padding-top: 24px; }
.cols__aside + .cols__aside { margin-top: 40px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; }
.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 40px;
	padding-bottom: 40px;
}
.site-footer .nav {
	order: 0;
	justify-content: center;
	gap: 8px 20px;
	width: 100%;
}
.site-footer .nav .num { display: none; }
.copyright {
	text-align: center;
	font-family: "Space Mono", ui-monospace, monospace;
	font-size: 10px;
	letter-spacing: 0.2em;
	color: rgba(140, 138, 133, 0.7);
	margin: 0;
}
