/* ==========================================================================
   Aurum Theme — Base Styles
   Reset, typography, links, global elements
   ========================================================================== */

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

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

body {
  font-family: var(--au-font-body);
  font-size: var(--au-fs-base);
  font-weight: var(--au-fw-regular);
  line-height: var(--au-lh-base);
  color: var(--au-text);
  background-color: var(--au-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--au-font-display);
  font-weight: var(--au-fw-semibold);
  line-height: var(--au-lh-tight);
  color: var(--au-text);
}

h1 {
  font-size: var(--au-fs-3xl);
  letter-spacing: var(--au-ls-wide);
}

h2 {
  font-size: var(--au-fs-2xl);
  letter-spacing: var(--au-ls-wide);
}

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

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

h5 {
  font-size: var(--au-fs-md);
}

h6 {
  font-size: var(--au-fs-base);
}

p {
  margin-bottom: var(--au-sp-4);
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: var(--au-fs-sm);
}

strong, b {
  font-weight: var(--au-fw-semibold);
}

/* ---- Links ---- */
a:hover {
  color: var(--au-gold);
}

.au-link {
  color: var(--au-text);
  position: relative;
  transition: color var(--au-duration) var(--au-ease);
}

.au-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--au-gold);
  transition: width var(--au-duration) var(--au-ease);
}

.au-link:hover {
  color: var(--au-gold);
}

.au-link:hover::after {
  width: 100%;
}

/* ---- Buttons ---- */
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--au-sp-2);
  padding: var(--au-sp-3) var(--au-sp-6);
  font-family: var(--au-font-body);
  font-size: var(--au-fs-sm);
  font-weight: var(--au-fw-medium);
  letter-spacing: var(--au-ls-wider);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--au-radius);
  cursor: pointer;
  transition: all var(--au-duration) var(--au-ease);
  white-space: nowrap;
  line-height: 1;
}

.au-btn--primary {
  background-color: var(--au-gold);
  color: #ffffff;
  border-color: var(--au-gold);
}

.au-btn--primary:hover {
  background-color: var(--au-gold-dark);
  border-color: var(--au-gold-dark);
  color: #ffffff;
}

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

.au-btn--outline:hover {
  border-color: var(--au-gold);
  color: var(--au-gold);
}

.au-btn--dark {
  background-color: var(--au-text);
  color: #ffffff;
  border-color: var(--au-text);
}

.au-btn--dark:hover {
  background-color: var(--au-gold);
  border-color: var(--au-gold);
  color: #ffffff;
}

.au-btn--sm {
  padding: var(--au-sp-2) var(--au-sp-4);
  font-size: var(--au-fs-xs);
}

.au-btn--lg {
  padding: var(--au-sp-4) var(--au-sp-8);
  font-size: var(--au-fs-base);
}

/* ---- Utilities ---- */
.au-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.au-text-gold {
  color: var(--au-gold);
}

.au-text-muted {
  color: var(--au-muted);
}

.au-text-center {
  text-align: center;
}

.au-text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--au-ls-wider);
}

/* ---- Selection ---- */
::selection {
  background-color: var(--au-gold);
  color: #ffffff;
}

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

/* ---- Scrollbar (Webkit) ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--au-surface-muted);
}

::-webkit-scrollbar-thumb {
  background: var(--au-border);
  border-radius: var(--au-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--au-muted);
}
