/*
Theme Name:  RCA Carbon Calculator
Theme URI:   https://example.com/
Author:      Reliance Corporate Advisors
Author URI:  https://example.com/
Description: Turns the site into the firm carbon footprint calculator. The calculator takes over the front page and any page assigned the "Carbon Calculator" template; every other page and post keeps rendering its own content in a simple branded layout. The calculator itself is served from app/index.html, unmodified.
Version:     1.0.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rca-carbon-calculator-theme
Tags:        one-page, custom-colors, full-width-template
*/

/* ==========================================================================
   The calculator ships with its own complete stylesheet inside
   app/index.html and is rendered as a standalone document, so nothing here
   applies to it. The rules below only style the fallback layout used for
   ordinary pages and posts.
   ========================================================================== */

:root {
	--rca-maroon: #772428;
	--rca-maroon-dk: #5A1A1E;
	--rca-sand: #D9CEBB;
	--rca-ink: #2F2E35;
	--rca-muted: #7C7A83;
	--rca-paper: #FBF9F5;
	--rca-card: #FFFFFF;
	--rca-line: #E8E3DA;
	--rca-moss: #35694A;
}

* { box-sizing: border-box; }

body.rca-page {
	margin: 0;
	background: var(--rca-paper);
	color: var(--rca-ink);
	font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.rca-wrap {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 20px;
}

.rca-head {
	background: var(--rca-card);
	border-bottom: 1px solid var(--rca-line);
}

.rca-head .rca-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 18px;
	padding-bottom: 18px;
}

.rca-site-title {
	font-family: Fraunces, Georgia, serif;
	font-size: 19px;
	font-weight: 600;
	color: var(--rca-maroon);
	text-decoration: none;
	line-height: 1.2;
}

.rca-tagline {
	font-size: 11px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--rca-muted);
	margin-top: 3px;
}

.rca-nav {
	margin-left: auto;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.rca-nav a {
	color: var(--rca-ink);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.rca-nav a:hover,
.rca-nav a:focus { color: var(--rca-maroon); }

.rca-main { padding: 44px 0 64px; }

.rca-entry + .rca-entry {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--rca-line);
}

.rca-entry h1,
.rca-entry h2 {
	font-family: Fraunces, Georgia, serif;
	font-weight: 600;
	line-height: 1.25;
	color: var(--rca-ink);
	margin: 0 0 12px;
}

.rca-entry h1 { font-size: 32px; }
.rca-entry h2 { font-size: 24px; }

.rca-entry h2 a {
	color: inherit;
	text-decoration: none;
}

.rca-meta {
	font-size: 13px;
	color: var(--rca-muted);
	margin-bottom: 18px;
}

.rca-entry a { color: var(--rca-moss); }

.rca-entry img,
.rca-entry iframe {
	max-width: 100%;
	height: auto;
}

.rca-entry table {
	width: 100%;
	border-collapse: collapse;
}

.rca-entry th,
.rca-entry td {
	border: 1px solid var(--rca-line);
	padding: 8px 10px;
	text-align: left;
}

.rca-entry blockquote {
	margin: 20px 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--rca-sand);
	color: var(--rca-muted);
}

.rca-cta {
	display: inline-block;
	margin-top: 8px;
	padding: 11px 20px;
	border-radius: 99px;
	background: var(--rca-maroon);
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
}

.rca-cta:hover,
.rca-cta:focus { background: var(--rca-maroon-dk); }

.rca-pagination {
	margin-top: 40px;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 14px;
}

.rca-foot {
	border-top: 1px solid var(--rca-line);
	background: var(--rca-card);
	padding: 26px 0;
	font-size: 13px;
	color: var(--rca-muted);
}

.rca-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (max-width: 560px) {
	.rca-entry h1 { font-size: 26px; }
	.rca-main { padding: 32px 0 48px; }
}
