/* =========================================================
   CSS Custom Properties (Design Tokens)
   ========================================================= */
:root {
	--color-primary:      #f99a36;
	--color-primary-dark: #e0841e;
	--color-secondary:    #f99a36;
	--color-dark:         #292b30;
	--color-surface:      #292b30;
	--color-surface-2:    #303238;
	--color-light:        #f4f4f2;
	--color-light-2:      #eaeae8;
	--color-text:         #303238;
	--color-text-inv:     #FFFFFF;
	--color-muted:        #525359;
	--color-success:      #10B981;
	--color-danger:       #EF4444;
	--color-border:       #e0e0de;

	--font-display: 'Raleway', 'Segoe UI', Arial, sans-serif;
	--font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--fw-normal: 400;
	--fw-semibold: 600;
	--fw-bold: 700;

	--radius-sm:  4px;
	--radius-md:  6px;
	--radius-lg:  8px;
	--radius-xl:  12px;
	--radius-pill: 999px;

	--shadow-sm: 0 2px 8px rgba(0,0,0,.06);
	--shadow-md: 0 4px 12px rgba(0,0,0,.1);
	--shadow-lg: 0 8px 24px rgba(0,0,0,.14);

	--transition: 200ms ease;

	--header-height: 64px;
}

/* =========================================================
   Modern Reset
   ========================================================= */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
	height: 100%;
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-light);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#page {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.site-main {
	flex: 1;
}

.site-footer {
	margin-top: 0;
}

body.admin-bar {
	padding-top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		padding-top: 46px;
	}
}

img, svg, video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

button, input, select, textarea {
	font: inherit;
}

a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--color-primary-dark);
}

ul, ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	line-height: 1.2;
	color: var(--color-text);
}

p + p {
	margin-top: 1em;
}

/* =========================================================
   Typography Scale
   ========================================================= */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

.section-title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin-bottom: 1.5rem;
}

.section-title--light {
	color: var(--color-text-inv);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1.5rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
	white-space: nowrap;
}

.btn:focus-visible {
	outline: 3px solid var(--color-secondary);
	outline-offset: 2px;
}

.btn--primary {
	background: var(--color-primary);
	color: var(--color-text-inv);
	border-color: var(--color-primary);
}

.btn--primary:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: var(--color-text-inv);
}

.btn--outline {
	background: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn--outline:hover {
	background: var(--color-primary);
	color: var(--color-text-inv);
}

.btn--outline-light {
	background: transparent;
	color: var(--color-text-inv);
	border-color: rgba(255,255,255,.6);
}

.btn--outline-light:hover {
	background: rgba(255,255,255,.15);
	border-color: var(--color-text-inv);
	color: var(--color-text-inv);
}

.btn--large {
	padding: .875rem 1.75rem;
	font-size: .8125rem;
}

.btn--small {
	padding: .5rem 1rem;
	font-size: .6875rem;
}

.btn--block {
	width: 100%;
	justify-content: center;
}

/* =========================================================
   Accessibility
   ========================================================= */
.screen-reader-text {
	position: absolute;
	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;
	top: -100%;
	left: 1rem;
	z-index: 9999;
	padding: .5rem 1rem;
	background: var(--color-primary);
	color: #fff;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	text-decoration: none;
	transition: top var(--transition);
}

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

/* =========================================================
   Badges
   ========================================================= */
.badge {
	display: inline-block;
	padding: .2em .65em;
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: .06em;
	border-radius: var(--radius-pill);
	line-height: 1.4;
}

.badge--available { background: var(--color-success); color: #fff; }
.badge--sold-out  { background: var(--color-danger);  color: #fff; }
.badge--cancelled { background: var(--color-muted);   color: #fff; }
.badge--free      { background: var(--color-secondary); color: var(--color-dark); }

/* =========================================================
   Alerts
   ========================================================= */
.alert {
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	margin-bottom: 1.5rem;
	font-size: .9375rem;
}

.alert--success {
	background: #d1fae5;
	border: 1px solid #6ee7b7;
	color: #065f46;
}

.alert--error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

/* =========================================================
   Entry Content Prose
   ========================================================= */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.about-story__content h2,
.about-story__content h3,
.post-content h2,
.post-content h3,
.post-content h4,
.product-content h2,
.product-content h3,
.product-content h4 {
	line-height: 1.5;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.75em;
	margin-bottom: .5em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-bottom: 1em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
	list-style: revert;
}

.entry-content a {
	color: var(--color-primary);
}
