/*
Theme Name: Overcast
Theme URI: https://adamopoulos.net/
Author: George Adamopoulos
Description: Personal theme for adamopoulos.net.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: overcast
*/

:root {
	--sky: #ECEFF1;
	--cloud: #F7F8F9;
	--ink: #1F2A33;
	--slate: #55616B;
	--rule: #C8CED3;
	--rule-dark: #3A4752;
	--mist: #AAB4BC;
	--sun: #F2C230;
	--sun-deep: #B98C00;

	--font-display: "Commissioner", "Helvetica Neue", Arial, sans-serif;
	--font-text: "Literata", Georgia, "Times New Roman", serif;
	--font-code: ui-monospace, Menlo, Consolas, monospace;

	--measure: 38rem;
	--wide: 68rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--sky);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.125rem;
	line-height: 1.65;
}

img, video, iframe { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }

a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: var(--sun-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
}
a:hover { background: var(--sun); color: var(--ink); text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
a:focus-visible { background: var(--sun); color: var(--ink); }

code, kbd, pre { font-family: var(--font-code); font-size: .9em; }
pre {
	background: var(--cloud);
	border: 1px solid var(--rule);
	border-radius: 3px;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	line-height: 1.5;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wide));
	margin-inline: auto;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 10;
	background: var(--ink); color: var(--sky);
	padding: .5rem 1rem; font-family: var(--font-display);
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header__inner {
	display: flex; flex-wrap: wrap; align-items: baseline;
	justify-content: space-between; gap: .75rem 2rem;
	padding-block: 1.5rem;
}
.site-title {
	font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
	text-decoration: none;
}
.site-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
	font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.site-nav a { text-decoration: none; }
.site-nav [aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--sun-deep);
	text-decoration-thickness: 3px;
}

/* Buttons */
.button,
button,
input[type="submit"] {
	display: inline-block;
	font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
	background: var(--ink); color: var(--sky);
	border: 0; border-radius: 3px;
	padding: .8rem 1.3rem;
	text-decoration: none; cursor: pointer;
}
.button:hover,
button:hover,
input[type="submit"]:hover { background: var(--sun); color: var(--ink); }

/* Front page */
.intro { padding-block: clamp(3rem, 12vw, 8rem) clamp(2.5rem, 8vw, 5rem); }
.intro__title {
	font-size: clamp(3rem, 11vw, 7.5rem);
	font-weight: 800; line-height: .95; letter-spacing: -.035em;
	margin-bottom: .35em;
}
.intro__roles {
	font-family: var(--font-display); font-weight: 600;
	font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--slate);
	margin-bottom: 1.5rem;
}
.intro__lede { max-width: var(--measure); font-size: clamp(1.15rem, 2vw, 1.3rem); }
.intro__actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
	margin: 2rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}

.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.section__title {
	font-size: clamp(1.6rem, 3.5vw, 2.25rem);
	font-weight: 800; letter-spacing: -.015em;
	margin-bottom: 1.25rem;
}

.projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 2rem 3.5rem;
	max-width: 56rem;
}
.project__name { font-size: 1.4rem; margin-bottom: .35em; }
.project p { margin: 0; }

.about__grid {
	display: grid;
	grid-template-columns: minmax(10rem, 16rem) minmax(0, var(--measure));
	gap: 2rem 3.5rem;
	align-items: start;
}
.about__photo { margin: 0; }
.about__photo img {
	display: block; width: 100%;
	aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px;
}
.about__text h3 { font-size: 1.25rem; margin-top: 1.75rem; }

/* Post lists */
.post-list { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 48rem; }
.post-list__item {
	display: grid; grid-template-columns: 8.5rem 1fr;
	gap: .25rem 1.5rem; align-items: baseline;
	padding-block: 1rem; border-top: 1px solid var(--rule);
}
.post-list__item:last-child { border-bottom: 1px solid var(--rule); }
.post-list__date {
	font-family: var(--font-display); font-size: .95rem;
	color: var(--slate); font-variant-numeric: tabular-nums;
}
.post-list__title { font-size: 1.25rem; line-height: 1.3; margin: 0; }
.post-list__title a { text-decoration: none; }
.post-list__title a:hover { text-decoration: underline; }
.post-list__excerpt { margin: .4rem 0 0; }
.more-link { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }

/* Single posts, pages, archives */
.page-header,
.entry__header { padding-block: clamp(2.5rem, 8vw, 5rem) 1.5rem; max-width: 48rem; }
.page-title,
.entry__title {
	font-size: clamp(2.25rem, 6vw, 4rem);
	font-weight: 800; letter-spacing: -.025em; line-height: 1.05;
	margin: 0;
}
.page-description { margin-top: 1rem; max-width: var(--measure); }
.entry__meta {
	font-family: var(--font-display); font-size: 1rem; color: var(--slate);
	margin: 1rem 0 0;
}
.entry__image { margin: 0 0 2.5rem; }
.entry__image img { display: block; width: 100%; border-radius: 2px; }
.entry__content { padding-bottom: 1.5rem; }
.entry__footer {
	max-width: var(--measure); padding-bottom: 1rem;
	font-family: var(--font-display); font-size: 1rem; color: var(--slate);
}

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li + li { margin-top: .3em; }
.prose blockquote {
	margin: 1.75em 0; padding-left: 1.25em;
	border-left: 3px solid var(--ink); font-style: italic;
}
.prose figure { margin: 1.75em 0; }
.prose img { border-radius: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose figcaption,
.wp-caption-text,
.wp-element-caption {
	font-family: var(--font-display); font-size: .9rem; color: var(--slate); margin-top: .5em;
}
.prose .alignwide { width: min(100vw - 2 * var(--gutter), var(--wide)); max-width: none; }
.prose .alignfull {
	width: 100vw; max-width: none;
	margin-left: calc(-1 * (100vw - min(100vw - 2 * var(--gutter), var(--wide))) / 2);
}
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

.pagination .nav-links {
	display: flex; flex-wrap: wrap; gap: .5rem 1rem;
	font-family: var(--font-display); font-weight: 600; font-size: 1rem;
	margin-top: 2rem;
}
.page-numbers.current {
	text-decoration: underline; text-decoration-color: var(--sun-deep); text-decoration-thickness: 3px;
}

.post-navigation { margin-block: 1rem 2rem; }
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1rem 3rem; max-width: 48rem;
	border-top: 1px solid var(--rule); padding-top: 1.5rem;
}
.post-navigation a { font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.nav-label { display: block; font-weight: 400; font-size: .9rem; color: var(--slate); }

/* Comments and forms */
.comments > * { max-width: var(--measure); }
.comments__title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.comment-author { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.comment-metadata { font-family: var(--font-display); font-size: .9rem; color: var(--slate); margin: .25rem 0 .75rem; }
.comment-metadata a { text-decoration: none; }
.reply { font-family: var(--font-display); font-size: .95rem; }

label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	width: 100%;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--cloud);
	border: 1px solid #77828B; border-radius: 3px;
	padding: .6rem .75rem;
}
.comment-form p { margin-bottom: 1rem; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: baseline; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.search-form { display: flex; gap: .5rem; max-width: 28rem; }
.search-form label { flex: 1; margin: 0; }

/* Footer */
.site-footer {
	background: var(--ink); color: var(--sky);
	margin-top: clamp(3rem, 8vw, 5rem);
	padding-block: clamp(3rem, 8vw, 4.5rem) 2rem;
}
.site-footer a { color: var(--sky); text-decoration-color: var(--sun); }
.site-footer a:hover { color: var(--ink); }
.site-footer :focus-visible { outline-color: var(--sun); }

.elsewhere__intro { max-width: var(--measure); margin-bottom: 1.75rem; }
.elsewhere__list {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	column-gap: 3rem;
}
.elsewhere__list li { border-top: 1px solid var(--rule-dark); }
.elsewhere__list a {
	display: grid; grid-template-columns: 6.5rem 1fr;
	gap: 1rem; align-items: baseline;
	padding: .7rem .5rem; margin-inline: -.5rem;
	text-decoration: none;
}
.elsewhere__name { font-family: var(--font-display); font-weight: 600; }
.elsewhere__handle { color: var(--mist); font-size: 1rem; overflow-wrap: anywhere; }
.elsewhere__list a:hover .elsewhere__handle { color: var(--ink); }

.colophon {
	margin-top: 3rem; padding-top: 1.5rem;
	border-top: 1px solid var(--rule-dark);
	font-family: var(--font-display); font-size: .95rem; color: var(--mist);
}
.colophon p { margin: 0; }

@media (max-width: 44rem) {
	.about__grid { grid-template-columns: 1fr; }
	.about__photo { max-width: 14rem; }
}
@media (max-width: 36rem) {
	.post-list__item { grid-template-columns: 1fr; }
	.elsewhere__list a { grid-template-columns: 5.5rem 1fr; }
}