/* ==========================================================================
   Base — Design Tokens, Resets & Typography
   Jay Anderson Art — jay-anderson-art theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */

:root {
	/* Colors */
	--color-black:           #0e0d0d;
	--color-brown-accent:    #806453;
	--color-brown-dk-accent: #4f432c;
	--color-paper-bg:        #f7f4ef;
	--color-paper-dk-bg:     #d8d0c0;
	--color-reverse-type:    #bcbbbb;

	/* Typography — families */
	--font-serif: 'Cormorant Garamond', georgia, serif;
	--font-sans:  'DM Sans', system-ui, sans-serif;

	/* Typography — scale */
	--text-xs:   0.8rem;   /* 12px — legal, fine print          */
	--text-sm:   0.9rem;  /* 14px — captions, meta, footer nav */
	--text-base: 1rem;      /* 16px — body copy default          */
	--text-md:   1.25rem;  /* 18px — lead text, nav items       */
	--text-lg:   1.5rem;    /* 24px — small headings, labels     */
	--text-xl:   2rem;      /* 32px — sub-headings               */
	--text-2xl:  3rem;      /* 48px — page headings              */
	--text-3xl:  4.5rem;    /* 72px — hero / display headings    */

	/* Spacing */
	--space-xs: 0.5rem;   /*  8px */
	--space-sm: 1rem;     /* 16px */
	--space-md: 2rem;     /* 32px */
	--space-lg: 4rem;     /* 64px */
	--space-xl: 8rem;     /* 128px */

	/* Layout */
	--max-width: 1280px;

	/* Borders */
	--border-thin:   1px solid var(--color-black);
	--border-accent: 2px solid var(--color-brown-accent);

	/* Transitions */
	--transition-base: 150ms ease;
}

/* --------------------------------------------------------------------------
   2. Modern CSS Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 100%; /* Respect user browser font size preferences */
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--color-paper-bg);
	color: var(--color-black);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

button {
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	font: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography — Base Styles
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.15;
	color: var(--color-black);
}

h1 {
	font-size: var(--text-3xl);
}

h2 {
	font-size: var(--text-2xl);
}

h3 {
	font-size: var(--text-xl);
}

h4 {
	font-size: var(--text-lg);
}

h5,
h6 {
	font-size: var(--text-md);
}

p {
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: 1.7;
	color: var(--color-black);
}

/* Section label — small spaced-out caps used above headings */
.jaa-label {
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-brown-accent);
}

/* Muted / meta text */
.jaa-meta {
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	color: var(--color-reverse-type);
}

/* --------------------------------------------------------------------------
   4. Layout — Container
   -------------------------------------------------------------------------- */

/*
 * .jaa-container
 *
 * Full-width sections use a background that spans the viewport.
 * This inner wrapper constrains content to --max-width and centers it.
 * Apply to the direct child of every full-bleed <section> or <header>/<footer>.
 *
 * Example:
 *   <section class="jaa-section">
 *     <div class="jaa-container">
 *       ...content...
 *     </div>
 *   </section>
 */

.jaa-container {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--space-md);
}

/* Generic page layout */
.jaa-page {
	padding-block: var(--space-lg);
}

.jaa-page__title {
	font-size: var(--text-2xl);
	margin-block-end: var(--space-md);
	padding-block-end: var(--space-sm);
	border-bottom: 1px solid var(--color-paper-dk-bg);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

/* Primary button — dark fill */
.jaa-btn {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-paper-bg);
	background-color: var(--color-black);
	border: 1px solid var(--color-black);
	padding: 0.75rem 1.75rem;
	transition:
		background-color var(--transition-base),
		color var(--transition-base),
		border-color var(--transition-base);
}

.jaa-btn:hover,
.jaa-btn:focus-visible {
	background-color: var(--color-brown-dk-accent);
	border-color: var(--color-brown-dk-accent);
	color: var(--color-paper-bg);
}

/* Secondary / outline button */
.jaa-btn-outline {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-black);
	background-color: transparent;
	border: 1px solid var(--color-black);
	padding: 0.75rem 1.75rem;
	transition:
		background-color var(--transition-base),
		color var(--transition-base),
		border-color var(--transition-base);
}

.jaa-btn-outline:hover,
.jaa-btn-outline:focus-visible {
	background-color: var(--color-black);
	color: var(--color-paper-bg);
}

/* --------------------------------------------------------------------------
   6. Utility — Visually Hidden (accessibility)
   -------------------------------------------------------------------------- */

.jaa-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   7. Content Lists — restore bullets/numbers inside WP editor output
   -------------------------------------------------------------------------- */

/*
 * The global reset removes all list styling for UI elements (nav, cards etc).
 * These rules restore sensible defaults for lists inside body copy — any
 * element that outputs the_content() should use one of these wrapper classes.
 */

.jaa-page__content ul,
.jaa-about-bio__content ul,
.jaa-single-product__about-body ul,
.entry-content ul,
.wp-block-list ul {
	list-style: disc;
	padding-inline-start: 1.5rem;
	margin-block-end: var(--space-sm);
}

.jaa-page__content ol,
.jaa-about-bio__content ol,
.jaa-single-product__about-body ol,
.entry-content ol,
.wp-block-list ol {
	list-style: decimal;
	padding-inline-start: 1.5rem;
	margin-block-end: var(--space-sm);
}

.jaa-page__content li,
.jaa-about-bio__content li,
.jaa-single-product__about-body li,
.entry-content li,
.wp-block-list li {
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: 1.7;
	color: var(--color-black);
	margin-block-end: 0.375rem;
}

.jaa-page__content ul ul,
.jaa-about-bio__content ul ul,
.entry-content ul ul {
	list-style: circle;
	margin-block-end: 0;
}

@media (width <= 600px) {
	.jaa-label {
		font-size: var(--text-xs);
	}
}
