/*
Theme Name: PNT
Theme URI: https://www.paradosnotempo.com.br/
Author: Tiago Araújo
Author URI: https://tiagoaraujo.com/
Description: Tema do Parados no Tempo. Baseado no layout do Gridspace (Graph Paper Press, GPL), reescrito do zero: coluna lateral com logo, menu e widgets; posts em grade de 2 colunas.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pnt
*/

/* ---------- Tokens ---------- */
:root {
	--text: #3a3a3a;
	--muted: #6b6b6b;      /* lowest grey used for text: 5.3:1 on white */
	--link: #4a4a4a;
	--rule: #d6d6d6;
	--brand: #faad16;      /* logo yellow: lines and accents only, never text */
	--surface: #f4f4f4;
	--radius: 2px;
	--measure: 680px;      /* comfortable line length for running text */
	--heading: "Oswald", "Arial Narrow", sans-serif;
	--body: "Open Sans", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font: 16px/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #000; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 400; line-height: 1.3; margin: 1.6em 0 .6em; }
p, ul, ol, figure, blockquote, table { margin: 0 0 1.4em; }
blockquote { margin-left: 0; padding-left: 1.2em; border-left: 3px solid var(--brand); font-style: italic; }
blockquote p { font-size: 1.15em; }
hr { clear: both; border: 0; border-top: 1px dotted var(--rule); margin: 2em 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	clip-path: none; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100;
	padding: 8px 12px; background: #fff; color: #000;
}

/* One quiet underline style for every link that needs one. */
.entry-content a,
.main-navigation a:hover, .main-navigation .current-menu-item > a,
.widget_nav_menu a:hover, .widget_nav_menu .current-menu-item > a,
.card-link:hover .card-title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: rgb(0 0 0 / .3);
	text-underline-offset: 3px;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a,
.widget_nav_menu a:hover, .widget_nav_menu .current-menu-item > a,
.card-link:hover .card-title { color: #000; }
.entry-content a:hover { text-decoration-color: currentColor; }

/* ---------- Layout: left column (branding + sidebar), content on the right ---------- */
#page {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 25px;
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	grid-template-areas:
		"branding content"
		"sidebar  content"
		"footer   footer";
	grid-template-rows: auto 1fr auto;
	column-gap: 48px;
	align-items: start;
}
#branding  { grid-area: branding; padding-top: 32px; }
#content   { grid-area: content; padding-top: 32px; min-width: 0; }
#secondary { grid-area: sidebar; color: var(--muted); font-size: 14px; }
#colophon  { grid-area: footer; }

/* ---------- Branding ---------- */
.site-title { margin: 0; font-size: 21px; line-height: 1; }
.site-title a { display: block; }
.site-title img { display: block; width: 180px; }
.site-description {
	margin: .5em 0 0;
	font: 13px/1.3 var(--heading);
	color: var(--muted);
}

.main-navigation {
	margin-top: 1.5em;
	padding-bottom: 1.2em;
	border-bottom: 1px dotted var(--rule);
}
.menu, .social-links, .widget ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a,
.widget_nav_menu a {
	display: inline-block;
	font: 15px/2 var(--heading);
	color: var(--link);
}

.social-links {
	display: flex;
	gap: 14px;
	padding: 1.1em 0;
	border-bottom: 1px dotted var(--rule);
}
.social-links a { display: block; padding: 2px; color: var(--muted); line-height: 0; }
.social-links a:hover { color: #000; }
.social-links svg { fill: currentColor; }

/* ---------- Sidebar widgets ---------- */
.widget {
	margin: 1.6em 0;
	padding-bottom: 1.6em;
	border-bottom: 1px dotted var(--rule);
	line-height: 1.4;
}
.widget:last-child { border-bottom: 0; }
.widget-title {
	margin: 0 0 1em;
	font: 700 15px/1.25 var(--heading);
	text-transform: uppercase;
	color: var(--muted);
}
.search-form { position: relative; }
.search-field {
	width: 100%;
	padding: 7px 38px 7px 10px;
	border: 1px solid #ccc;
	border-radius: var(--radius);
	font: 14px var(--body);
	color: var(--text);
	-webkit-appearance: none;
	appearance: none;
}
.search-field:focus { border-color: var(--text); outline: none; }
.search-submit {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
}
.search-submit:hover { color: #000; }

/* Tag cloud: small, even, quiet. */
.tagcloud, .wp-block-tag-cloud { line-height: 1.9; }
.tagcloud a, .wp-block-tag-cloud a {
	display: inline-block;
	margin-right: .5em;
	font-size: 12px !important;
	color: var(--muted);
}
.tagcloud a:hover { color: #000; }

/* ---------- Page titles ---------- */
.entry-title,
.page-title {
	margin: 0 0 .9em;
	padding-bottom: .35em;
	border-bottom: 3px solid var(--brand);
	font-size: 28px;
	line-height: 1.2;
}
.page-title span { color: var(--muted); }
.archive-description { margin-top: -.5em; color: var(--muted); }

.entry-meta {
	margin: -.6em 0 1.6em;
	font-size: 13px;
	color: var(--muted);
}
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: #000; }
.entry-meta .sep { margin: 0 .5em; }

/* ---------- Post grid ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0 0 2em;
}
.card-link { display: block; color: var(--text); }
.card-media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
}
.card-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transform: scale(1.5);  /* crops out the watermark that the 4:3 frame cuts in half */
	transition: transform .5s ease;
}
.card-link:hover .card-image,
.card-link:focus-visible .card-image { transform: scale(1.56); }
@media (prefers-reduced-motion: reduce) { .card-image { transition: none; } }
.card-title {
	margin: .6em 0 0;
	font-size: 19px;
	line-height: 1.3;
}

/* ---------- Pagination & post navigation ---------- */
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin: 2.5em 0;
	padding-top: 1.2em;
	border-top: 1px dotted var(--rule);
	font-family: var(--heading);
}
.post-navigation .nav-next,
.posts-navigation .nav-next { margin-left: auto; text-align: right; }

/* ---------- Content ---------- */
/* Running text keeps a readable width; photos and galleries use the full column. */
.entry-content :where(p, ul, ol, blockquote, h2, h3, h4, h5, h6, pre) { max-width: var(--measure); }
.entry-content a { color: inherit; }
.entry-content a:hover { color: #000; }
.entry-content a:has(> img) { text-decoration: none; }
.entry-content img { border-radius: var(--radius); }
/* Quem Somos: old Instagram badge images replaced by the same icon as the menu. */
.entry-content a.ig-b- {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	text-decoration: none;
}
.entry-content a.ig-b-:hover { color: #000; }
.ig-b- img { display: none; }
.ig-b-::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"/%3E%3C/svg%3E') center / contain no-repeat;
	mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"/%3E%3C/svg%3E') center / contain no-repeat;
}
/* Quem Somos: the portraits are small originals, so show them smaller (70%). */
.page-id-20 .entry-content img.size-medium { width: 210px; }
.alignleft  { float: left;  margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption-text, .gallery-caption, figcaption { font-size: 13px; color: var(--muted); }
figure { padding: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .4em .6em; border-bottom: 1px solid #eee; text-align: left; }

/* Classic [gallery] shortcode: WordPress drops its own gallery CSS when a theme declares HTML5 support. */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; margin: 0 0 1.5em; }
.gallery-columns-1 { --cols: 1; } .gallery-columns-2 { --cols: 2; } .gallery-columns-3 { --cols: 3; }
.gallery-columns-4 { --cols: 4; } .gallery-columns-5 { --cols: 5; } .gallery-columns-6 { --cols: 6; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; height: auto; }

/* Block galleries: same spacing as the home grid, no coloured backdrop. */
.wp-block-gallery.has-background { padding: 0; background: none !important; }

/* ---------- Comments ---------- */
.comments { margin-top: 2em; max-width: var(--measure); }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: var(--radius); font: inherit; }

/* ---------- Footer ---------- */
#colophon {
	margin: 2.5em 0 3em;
	padding-top: 1.8em;
	border-top: 1px dotted var(--rule);
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}
#colophon p { margin: 0; }
#colophon p + p { margin-top: .3em; }
#colophon a { color: var(--link); }

/* ---------- Tablet & phone: one column, compact header ---------- */
@media (max-width: 768px) {
	#page {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "branding" "content" "sidebar" "footer";
		grid-template-rows: auto;
	}
	#branding { padding-top: 24px; text-align: center; }
	#content { padding-top: 24px; }
	.site-title img { width: 180px; margin: 0 auto; }
	.main-navigation { margin-top: 1em; padding: .4em 0; border-top: 1px dotted var(--rule); }
	.main-navigation .menu { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.4em; }
	.social-links { justify-content: center; padding: .8em 0; }
	#secondary { text-align: center; }
	.search-form { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 520px) {
	body { font-size: 15px; }
	.card-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.card-title { font-size: 17px; }
	.entry-title, .page-title { font-size: 24px; }
	.alignleft, .alignright { float: none; margin: 0 auto 1em; }
	.gallery { --cols: 2 !important; }
}
