/* ==========================================================================
   base.css — reset, typography, buttons
   Depends on: tokens.css (must be loaded first)
   ========================================================================== */


/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

* {
	margin: 0;
	padding: 0;
}

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

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


/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size:   var(--text-body);
	font-weight: 400;
	line-height: var(--leading-normal);
	color:       var(--ink);
	background:  var(--white);
	-webkit-font-smoothing:  antialiased;
	-moz-osx-font-smoothing: grayscale;
}


/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	font-family:    var(--font-display);
	font-weight:    400; /* Bebas Neue is display-weight by nature */
	text-transform: uppercase;
	letter-spacing: var(--tracking-display);
	line-height:    var(--leading-tight);
}

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


/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

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

a:hover {
	color: var(--deep-navy);
}

a:focus-visible {
	outline:        2px solid var(--marine-blue);
	outline-offset: 3px;
	border-radius:  2px;
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	gap:             var(--space-1);

	font-family:    var(--font-body);
	font-size:      0.875rem; /* 14px */
	font-weight:    600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	white-space:    nowrap;

	padding:        0.75rem 2rem; /* 12px 32px */
	min-height:     2.75rem;      /* 44px touch target */
	border-radius:  var(--radius);
	border:         2px solid transparent;
	cursor:         pointer;

	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Primary — red background, white text (CTAs) */
.btn--primary {
	background-color: var(--onog-red);
	border-color:     var(--onog-red);
	color:            var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background-color: var(--onog-red-dark);
	border-color:     var(--onog-red-dark);
	color:            var(--white);
}

/* Secondary — navy background, white text */
.btn--secondary {
	background-color: var(--deep-navy);
	border-color:     var(--deep-navy);
	color:            var(--white);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
	background-color: var(--deep-navy-dark);
	border-color:     var(--deep-navy-dark);
	color:            var(--white);
}

/* Outline — transparent background, red border and text */
.btn--outline {
	background-color: transparent;
	border-color:     var(--onog-red);
	color:            var(--onog-red);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background-color: var(--onog-red);
	color:            var(--white);
}

/* Outline-light — transparent background, white border/text (use on dark sections) */
.btn--outline-light {
	background-color: transparent;
	border-color:     var(--white);
	color:            var(--white);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
	background-color: var(--white);
	color:            var(--ink);
}

/* Small variant — tighter padding, same touch target */
.btn--small {
	padding:   0.5rem 1.25rem;
	font-size: 0.8125rem;
}

/* Shared focus ring for all buttons */
.btn:focus-visible {
	outline:        2px solid var(--marine-blue);
	outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Reduced motion — kill all animations/transitions globally
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration:   0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration:  0.01ms !important;
		scroll-behavior:      auto   !important;
	}
}
