/*
Theme Name: Adam D. Williams — Field
Theme URI: https://adamdwilliams.com
Author: Adam D. Williams
Description: Dark, photographic one-page portfolio for adamdwilliams.com. Stories, awards and contact details are edited in front-page.php; the accent color is under Appearance › Customize › Colors.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adw-field
*/

:root {
	--accent: #F2A93B;
	--ink: #131311;
	--card: #1D1D1A;
	--line: #3A3A35;
	--line-strong: #5A5A53;
	--text: #EDEBE6;
	--text-2: #C4C2BA;
	--muted: #A3A19A;
	--sans: Archivo, system-ui, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: var(--accent); }
img { max-width: 100%; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100;
	width: auto; height: auto; clip: auto;
	padding: 12px 16px; background: var(--accent); color: var(--ink);
}

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Condensed display type */
.display {
	font-weight: 800;
	font-stretch: 62%;
	font-variation-settings: 'wdth' 62;
	text-transform: uppercase;
}
.mono { font-family: var(--mono); }

/* Header */
.site-header {
	padding-top: 24px; padding-bottom: 24px;
	display: flex; flex-wrap: wrap; gap: 12px 32px;
	align-items: center; justify-content: space-between;
}
.site-header__coords { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a {
	display: block; padding: 12px 0;
	font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
	text-decoration: none;
}

/* Hero */
.hero { padding-top: 32px; }
.hero__name { margin: 0; font-size: clamp(56px, 11.5vw, 160px); line-height: 0.86; letter-spacing: -0.01em; }
.hero__intro { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.hero__copy { display: flex; flex-direction: column; gap: 16px; }
.hero__copy p { margin: 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); }
.hero__copy .hero__lede { font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--text); }
.hero__photo { margin: 16px 0; width: 100%; max-width: 720px; }
.hero__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 100%; }
.hero__photo figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding-top: 112px; }
.section__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
	gap: 12px; margin-bottom: 32px;
}
.section__title { margin: 0; font-size: clamp(44px, 6vw, 80px); line-height: 0.95; }
.section__note { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.eyebrow {
	margin: 56px 0 16px;
	font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
	align-self: flex-start;
	font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 5px 8px; border: 1px solid var(--line-strong); color: var(--text);
}
.tag--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Story cards */
.card {
	display: flex; flex-direction: column;
	background: var(--card); border: 1px solid var(--line);
	text-decoration: none; color: var(--text);
}
.card:hover { color: var(--text); border-color: var(--line-strong); }
.card:hover .card__title { color: var(--accent); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__img--contain { object-fit: contain; background: #FFFFFF; }
.card__img--placeholder {
	display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
	background: #2A2A26; color: var(--muted); font-family: var(--mono); font-size: 12px;
}
.card__body { display: flex; flex-direction: column; gap: 14px; padding: 24px; flex-grow: 1; }
.card__meta {
	display: flex; justify-content: space-between; gap: 12px;
	font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.card__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; flex-grow: 1; transition: color .15s; }
.card__banner {
	display: flex; flex-direction: column; gap: 6px; padding: 16px 24px;
	background: var(--accent); color: var(--ink);
}
.card__banner-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.card__banner-title { font-size: 26px; line-height: 1; }
.card--compact { align-self: start; }

/* Lead story */
.card--lead { flex-direction: row; flex-wrap: wrap; margin-bottom: 24px; }
.card--lead .card__img { flex: 999 1 480px; min-width: 0; width: 100%; }
.card--lead .card__body { flex: 1 1 440px; min-width: 0; padding: clamp(20px, 2.4vw, 32px); }
.card--lead .card__meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.card--lead .card__title { flex-grow: 0; font-size: clamp(30px, 2.8vw, 40px); line-height: 0.95; }
.card--lead p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.card--lead .tags { margin-top: auto; }

.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }

/* Archives */
.archives { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 1px solid var(--text); }
.archives a {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	min-height: 44px; padding: 24px 16px 24px 0;
	border-bottom: 1px solid var(--line); text-decoration: none;
}
.archives__name { font-size: 36px; line-height: 1; }
.archives__arrow { font-size: 22px; color: var(--accent); }

/* Awards */
.award {
	display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline;
	padding: 28px 0; border-top: 1px solid var(--line);
}
.section__head + .award { border-top-color: var(--text); }
.award__year { flex: 0 0 140px; font-size: 56px; line-height: 1; color: var(--accent); text-transform: none; }
.award__body { flex: 999 1 420px; min-width: 0; }
.award__title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; }
.award__detail { margin: 4px 0 0; color: var(--muted); }

.fellowships { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.fellowship { display: block; border: 1px solid var(--line); padding: 24px; text-decoration: none; color: var(--text); }
a.fellowship:hover { color: var(--text); border-color: var(--line-strong); }
a.fellowship:hover .fellowship__title { color: var(--accent); }
.fellowship__meta { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.fellowship__title { margin: 0; font-size: 20px; font-weight: 700; }

/* Contact */
.contact { margin-top: 112px; }
.contact__panel {
	background: var(--accent); color: var(--ink);
	padding: clamp(20px, 3vw, 32px);
	display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center;
}
.contact__photo { flex: 0 0 160px; width: 160px; display: block; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; }
.contact__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact__title { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 0.95; }
.contact__list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px 24px;
	font-family: var(--mono); font-size: 14px;
}
.contact__list a {
	display: flex; flex-direction: column; gap: 2px; padding: 4px 0; min-width: 0;
	color: var(--ink); overflow-wrap: anywhere;
}
.contact__list a:hover { color: var(--ink); text-decoration-thickness: 2px; }
.contact__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Footer */
.site-footer {
	padding-top: 40px; padding-bottom: 40px;
	display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
	font-family: var(--mono); font-size: 13px; color: var(--muted);
}

/* Generic pages and posts (index.php) */
.entry { max-width: 760px; margin: 0 auto; padding: 48px 24px 0; }
.entry__title { margin: 0 0 24px; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; }
.entry__title a { text-decoration: none; }
.entry__content { color: var(--text-2); }
.entry__content a { color: var(--accent); }
.entry + .entry { border-top: 1px solid var(--line); margin-top: 48px; }
