/*
Theme Name: CSWithRizwan
Theme URI: https://www.cswithrizwan.com
Author: CSWithRizwan
Author URI: https://www.cswithrizwan.com
Description: Custom production theme for CSWithRizwan — O & A Level Computer Science courses. Built for LearnPress, WooCommerce, Elementor, and Contact Form 7. A clean, structured-logic educational design with a navy/gold/teal/terracotta/periwinkle palette.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cswithrizwan
Tags: education, one-column, two-columns, right-sidebar, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, e-commerce

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* =========================================================
   1. CSS CUSTOM PROPERTIES (DESIGN SYSTEM)
   ========================================================= */
:root {
	--paper: #F9FAFB;
	--paper-alt: #F1F3F6;
	--ink: #10182B;
	--ink-soft: #4A5468;
	--navy: #232024;
	--navy-deep: #000000;
	--gold: #E7A33E;
	--gold-soft: #FBEBD1;
	--teal: #2F6F6B;
	--teal-soft: #EAF3F2;
	--terracotta: #C1633E;
	--terracotta-soft: #F7E9E2;
	--periwinkle: #232024;
	--periwinkle-soft: #ECECEC;
	--line: #E4E7ED;
	--white: #FFFFFF;
	--radius: 14px;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', 'Courier New', monospace;

	--container-width: 1180px;
	--transition-fast: 0.18s ease;
	--transition-base: 0.25s ease;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.01em;
	line-height: 1.25;
}

/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--navy-deep);
	color: var(--white);
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
}

.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* =========================================================
   4. LAYOUT UTILITIES
   ========================================================= */
.wrap {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 32px;
}

.site-main {
	overflow: hidden;
}

section {
	padding: 96px 0;
}

@media (max-width: 782px) {
	section {
		padding: 56px 0;
	}
	.wrap {
		padding: 0 20px;
	}
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 15px;
	transition: all var(--transition-fast);
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
}

.btn-primary {
	background: var(--navy);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--navy-deep);
	transform: translateY(-1px);
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

.btn-ghost:hover {
	border-color: var(--ink);
	background: var(--white);
}

.btn-gold {
	background: var(--gold);
	color: var(--navy-deep);
}

.btn-gold:hover {
	background: #DB9528;
	transform: translateY(-1px);
}

/* =========================================================
   6. WORDPRESS CORE STYLES (required selectors)
   ========================================================= */
.alignleft {
	float: left;
	margin: 0.5em 1.5em 1.5em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1.5em 1.5em;
}

.aligncenter {
	display: block;
	margin: 1.5em auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 13px;
	color: var(--ink-soft);
	text-align: center;
	margin-top: 8px;
}

.sticky {
	border-left: 3px solid var(--gold);
	padding-left: 16px;
}

.gallery-caption {
	font-size: 13px;
	color: var(--ink-soft);
}

.bypostauthor {
	/* intentionally left for theme checker compliance */
}

/* Screenshot note: see screenshot.png (1200x900) for theme directory listing */
