/*
 * RRW Theme — WordPress-specific styles.
 *
 * The compiled 08-ink Tailwind CSS covers the shell (nav, mega menu, bands,
 * cards, footer). This file only styles what WordPress adds: entry content,
 * comments, pagination, widgets, captions, and accessibility helpers.
 * Colors intentionally reuse the same hex values so Customizer overrides
 * (emitted later) win the cascade.
 */

/* ---------- Helpers ---------- */
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100000;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
	background: #000;
	color: #fff;
	padding: 0.75rem 1.25rem;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.8125rem;
}

/* ---------- Entry content ---------- */
.entry-content {
	overflow-wrap: break-word;
}
.entry-content > * + * {
	margin-top: 1.25rem;
}
.entry-content p a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: #e34b32;
	text-underline-offset: 3px;
	font-weight: 700;
}
.entry-content p a:hover:not(.wp-block-button__link) {
	color: #e34b32;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	color: #000;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	line-height: 1;
	margin-top: 2.5rem;
}
.entry-content h1 { font-size: 2.5rem; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5,
.entry-content h6 { font-size: 1.125rem; letter-spacing: 0; }

.entry-content ul {
	list-style: disc;
	padding-left: 1.25rem;
}
.entry-content ol {
	list-style: decimal;
	padding-left: 1.5rem;
}
.entry-content li + li {
	margin-top: 0.375rem;
}

.entry-content blockquote {
	border-left: 4px solid #000;
	background: #f0eee9;
	padding: 1.25rem 1.5rem;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.75;
}
.entry-content blockquote p:first-of-type {
	margin: 0;
}
.entry-content blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-style: normal;
	color: #e34b32;
}

.entry-content pre {
	border: 4px solid #000;
	background: #f0eee9;
	padding: 1.25rem;
	overflow-x: auto;
	font-size: 0.875rem;
	line-height: 1.6;
}
.entry-content code {
	background: #f0eee9;
	padding: 0.125rem 0.375rem;
	font-size: 0.875em;
}
.entry-content pre code {
	background: transparent;
	padding: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	border: 4px solid #000;
	font-size: 0.9375rem;
}
.entry-content th,
.entry-content td {
	border: 2px solid #000;
	padding: 0.625rem 0.875rem;
	text-align: left;
}
.entry-content th {
	background: #f0eee9;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.8125rem;
	letter-spacing: 0.05em;
}

.entry-content img {
	border: 2px solid #000;
	height: auto;
}
.entry-content .wp-block-image img {
	border: 2px solid #000;
}

.entry-content hr {
	border: 0;
	border-top: 4px solid #000;
	margin: 2.5rem 0;
}

.entry-content dl,
.entry-content figure {
	margin: 0;
}

/* Alignment classes (align-wide support enabled). */
.entry-content .alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1.25rem 0;
}
.entry-content .alignright {
	float: right;
	margin: 0.5rem 0 1.25rem 1.5rem;
}
.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}
.entry-content .alignwide {
	width: 100vw;
	max-width: 80rem;
	margin-left: calc(50% - 50vw);
}
@media (min-width: 768px) {
	.entry-content .alignwide {
		width: calc(100% + 6rem);
		margin-left: -3rem;
	}
}
.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* Captions. */
.entry-content .wp-caption {
	max-width: 100%;
}
.entry-content .wp-caption img {
	border: 2px solid #000;
	margin-bottom: 0;
}
.entry-content .wp-caption-text,
.entry-content figcaption {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: rgba(0, 0, 0, 0.5);
}

/* Block buttons + classic buttons. */
.entry-content .wp-block-button__link,
.entry-content button,
.entry-content input[type="submit"] {
	font-weight: 900;
	text-transform: uppercase;
}
.entry-content .wp-block-button__link {
	border: 4px solid #000;
	border-radius: 0;
	background: #e34b32;
	color: #fff;
	padding: 0.875rem 1.75rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.entry-content .wp-block-button__link:hover {
	background: #000;
	color: #fff;
}
.entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #000;
}
.entry-content .is-style-outline .wp-block-button__link:hover {
	background: #000;
	color: #fff;
}

/* Pullquote / separator blocks. */
.entry-content .wp-block-pullquote {
	border-top: 4px solid #000;
	border-bottom: 4px solid #000;
	padding: 2rem 0;
}
.entry-content .wp-block-separator {
	border-top: 4px solid #000;
	opacity: 1;
}

/* ---------- Tags (single posts) ---------- */
.entry-content .rrw-tags a,
.rrw-tag-chip {
	display: inline-block;
	border: 2px solid #000;
	background: #fff;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.entry-content .rrw-tags a:hover,
.rrw-tag-chip:hover {
	background: #000;
	color: #fff;
}

/* ---------- Pagination ---------- */
.rrw-pagination,
.rrw-page-links,
.pagination {
	margin-top: 3rem;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.8125rem;
	letter-spacing: 0.05em;
}
.pagination .nav-links,
.rrw-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.pagination .page-numbers,
.rrw-pagination .page-numbers {
	display: inline-block;
	border: 4px solid #000;
	background: #fff;
	padding: 0.625rem 1rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.pagination .page-numbers.current,
.rrw-pagination .page-numbers.current {
	background: #000;
	color: #fff;
}
.pagination .page-numbers:hover:not(.current),
.rrw-pagination .page-numbers:hover:not(.current) {
	background: #f0eee9;
}
.pagination .page-numbers.dots,
.rrw-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ---------- Comments ---------- */
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.comment-list ol.children {
	list-style: none;
	margin: 1.5rem 0 0;
	padding-left: 1.5rem;
}
.comment-list .comment {
	border: 4px solid #000;
	background: #fff;
	padding: 1.5rem;
}
.comment-list .comment + .comment {
	margin-top: 1.5rem;
}
.comment-list .comment .comment {
	border-width: 2px;
}
.comment-list .comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
}
.comment-list .comment-author img {
	border: 2px solid #000;
}
.comment-list .comment-author .fn {
	font-weight: 900;
	text-transform: uppercase;
	font-style: normal;
}
.comment-list .comment-metadata {
	color: rgba(0, 0, 0, 0.4);
}
.comment-list .comment-metadata a {
	text-decoration: none;
}
.comment-list .comment-metadata a:hover {
	color: #e34b32;
}
.comment-list .comment-content {
	margin-top: 1rem;
	line-height: 1.75;
	color: rgba(0, 0, 0, 0.7);
}
.comment-list .reply {
	margin-top: 1rem;
	font-size: 0.8125rem;
	font-weight: 800;
	text-transform: uppercase;
}
.comment-list .reply a {
	text-decoration: none;
	color: #e34b32;
}
.comment-list .bypostauthor > .comment-body {
	background: #f0eee9;
}

/* Comment form. */
.rrw-comment-form p {
	margin: 0;
}
.rrw-comment-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}
.rrw-comment-form input[type="text"],
.rrw-comment-form input[type="email"],
.rrw-comment-form input[type="url"],
.rrw-comment-form textarea {
	width: 100%;
	border: 4px solid #000;
	background: #fff;
	padding: 0.875rem 1rem;
	font-size: 0.875rem;
}
.rrw-comment-form input:focus,
.rrw-comment-form textarea:focus {
	outline: none;
	border-color: #e34b32;
}
.rrw-comment-form .comment-form-cookies-consent label {
	text-transform: none;
	font-weight: 400;
}
.rrw-comment-form .required {
	color: #e34b32;
}

/* ---------- Widgets ---------- */
.widget {
	min-width: 0;
}
.widget .widget-title {
	margin-bottom: 1rem;
	font-size: 1rem;
}
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.widget ul li {
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0;
	font-size: 0.875rem;
	font-weight: 700;
}
.widget ul li:last-child {
	border-bottom: 0;
}
.widget a {
	text-decoration: none;
}
.widget a:hover {
	color: #e34b32;
}
.widget .search-form {
	display: flex;
	gap: 0.5rem;
}
.widget .search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 4px solid #000;
	padding: 0.625rem 0.75rem;
	font-size: 0.875rem;
}
.widget .search-form input[type="submit"] {
	border: 4px solid #000;
	background: #000;
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.75rem;
	padding: 0 1rem;
	cursor: pointer;
}
.widget .tagcloud a {
	display: inline-block;
	border: 2px solid #000;
	background: #fff;
	margin: 0 0.375rem 0.375rem 0;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem !important;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
}
.widget .tagcloud a:hover {
	background: #000;
	color: #fff;
}
.widget_calendar caption {
	font-weight: 900;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}
.widget_rss .widget-title a {
	text-decoration: none;
}

/* Footer widgets sit on the black band. */
.footer-widgets .widget {
	color: #fff;
}
.footer-widgets .widget a:hover {
	color: #ffd7a3;
}

/* ---------- Sticky posts ---------- */
.sticky .rrw-sticky-badge,
.rrw-sticky-badge {
	display: inline-block;
	background: #e34b32;
	color: #fff;
	padding: 0.125rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	vertical-align: middle;
}

/* ---------- Gallery ---------- */
.gallery {
	display: grid;
	gap: 0.5rem;
}
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item img {
	border: 2px solid #000;
	width: 100%;
	height: auto;
}

/* ---------- Password-protected posts ---------- */
.post-password-form input[type="password"] {
	border: 4px solid #000;
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
}
.post-password-form input[type="submit"] {
	border: 4px solid #000;
	background: #000;
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
	padding: 0.625rem 1.25rem;
	cursor: pointer;
}

/* ---------- Screen-reader + focus parity with 08-ink ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid #f59e0b;
	outline-offset: 3px;
}
:focus {
	outline-color: #f59e0b;
}

/* ---------- Tailwind utilities missing from the frozen 08-ink build ----------
 * The copied tailwind.css only contains classes the static site used. These
 * are the utilities the theme templates rely on that were never compiled.
 * Match Tailwind 3.4 output exactly; loaded last so they always apply.
 */
.align-middle {
	vertical-align: middle;
}
.min-w-0 {
	min-width: 0;
}
.ml-2 {
	margin-left: 0.5rem;
}
.mt-16 {
	margin-top: 4rem;
}
.mt-20 {
	margin-top: 5rem;
}
.mb-12 {
	margin-bottom: 3rem;
}
.pt-8 {
	padding-top: 2rem;
}
.pt-12 {
	padding-top: 3rem;
}
.pb-20 {
	padding-bottom: 5rem;
}
.py-0\.5 {
	padding-top: 0.125rem;
	padding-bottom: 0.125rem;
}
.py-16 {
	padding-top: 4rem;
	padding-bottom: 4rem;
}
/* Hero font sizes (blog scale). Arbitrary sizes on purpose: Tailwind emits
 * font-size only for them, so the hero's .leading-[.82] controls line-height
 * at every breakpoint. Named sizes (text-3xl etc.) also set line-height and
 * would load after tailwind.css, overriding .leading-[.82] and smushing lines.
 */
.text-\[1\.5rem\] {
	font-size: 1.5rem;
}
@media (min-width: 640px) {
	.sm\:text-\[1\.875rem\] {
		font-size: 1.875rem;
	}
}
@media (min-width: 768px) {
	.md\:text-\[4rem\] {
		font-size: 4rem;
	}
}
.hover\:text-white:hover {
	--tw-text-opacity: 1;
	color: rgb(255 255 255 / var(--tw-text-opacity));
}
.hover\:bg-\[\#e34b32\]:hover {
	background-color: #e34b32;
}

/* ---------- Misc ---------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}
