/*
Theme Name: Nuowa
Theme URI: https://innmi.com/
Author: Nuowa
Author URI: https://innmi.com/
Description: Science-led pharmaceutical theme with native posts and category-driven content.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nuowa
Tags: custom-logo, custom-menu, featured-images, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/

:root {
	/* Color. */
	--color-navy: #052f5d;
	--color-navy-deep: #031c38;
	--color-blue: #075db8;
	--color-teal: #04a9a7;
	--color-teal-bright: #14cfc5;
	--color-ink: #0c2847;
	--color-muted: #597087;
	--color-line: #dce8ef;
	--color-ice: #f3f9fc;
	--color-white: #fff;
	--color-header-bg: rgba(255, 255, 255, 0.94);
	--color-nav-link: #183958;

	/* Gradients. */
	--gradient-button: linear-gradient(100deg, #0758ac, #00aaa7);
	--gradient-announcement: linear-gradient(90deg, #063f78, #075ca3 56%, #069b9a);
	--gradient-coa-band: linear-gradient(155deg, #031e3b, #064b81 62%, #039a99);
	--gradient-contact-band: linear-gradient(145deg, #031e3b, #073f70);
	--color-footer-bg: #02172d;

	/* Typography. */
	--font-sans: Inter, "Segoe UI", Arial, sans-serif;
	--font-mono: Consolas, monospace;
	--fs-hero: clamp(44px, 6vw, 76px);
	--fs-section-title: clamp(34px, 4vw, 54px);
	--fs-story-title: clamp(28px, 3.2vw, 44px);
	--fs-detail-title: clamp(44px, 6vw, 74px);
	--fs-body: 15px;
	--fs-small: 13px;
	--fs-kicker: 12px;
	--tracking-kicker: 0.14em;
	--tracking-heading: -0.04em;
	--tracking-hero: -0.055em;
	--leading-heading: 1.08;

	/* Layout. */
	--container-max: 1280px;
	--container-detail: 1180px;
	--container-inset: 48px;
	--band-content-max: 1180px;
	--header-height: 88px;
	--announcement-height: 36px;

	/* Spacing scale. */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 32px;
	--space-8: 40px;
	--space-9: 48px;
	--space-10: 64px;
	--space-11: 78px;
	--space-12: 110px;

	/* Radius. */
	--radius-pill: 999px;
	--radius-input: 10px;
	--radius-button: 12px;
	--radius-field: 14px;
	--radius-stat: 18px;
	--radius-card: 20px;
	--radius-panel: 22px;
	--radius-media: 24px;
	--radius-hero: 28px;

	/* Shadows. */
	--shadow-theme: 0 18px 60px rgba(4, 43, 81, 0.12);
	--shadow-button: 0 12px 26px rgba(1, 118, 151, 0.22);
	--shadow-search: 0 8px 24px rgba(4, 43, 81, 0.06);
	--shadow-trust: 0 14px 36px rgba(5, 47, 93, 0.06);
	--shadow-card: 0 10px 28px rgba(3, 45, 84, 0.06);
	--shadow-card-hover: 0 22px 42px rgba(4, 77, 121, 0.14);

	/* Motion. */
	--transition-fast: 0.2s;
	--transition-base: 0.35s;
	--ease-carousel: cubic-bezier(0.3, 0.8, 0.3, 1);

	/* Z-index. */
	--z-announcement: 90;
	--z-header: 50;
	--z-dock: 1000;
}

/*--------------------------------------------------------------
# Reset and base
--------------------------------------------------------------*/

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

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

body {
	margin: 0;
	background: var(--color-white);
	color: var(--color-ink);
	font-family: var(--font-sans);
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 400;
	line-height: var(--leading-heading);
	letter-spacing: var(--tracking-heading);
}

p {
	margin: 0;
}

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

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

button,
input,
select,
textarea {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

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

table {
	border-collapse: collapse;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

:focus-visible {
	outline: 2px solid var(--color-teal);
	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;
}

.skip-link {
	left: -9999px;
	position: absolute;
	top: 0;
	z-index: 100000;
}

.skip-link:focus {
	background-color: var(--color-white);
	border: 2px solid var(--color-teal);
	clip: auto;
	clip-path: none;
	color: var(--color-navy);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 12px;
	padding: 12px 18px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Shared text styles
--------------------------------------------------------------*/

.section-kicker {
	color: var(--color-teal);
	font-size: var(--fs-kicker);
	font-weight: 900;
	letter-spacing: var(--tracking-kicker);
}

/*--------------------------------------------------------------
# Motion preferences
--------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
	}
}
