/**
 * Linda Store Base Stylesheet & Reset
 * Includes Google Fonts imports, modern CSS reset, WCAG AA accessibility focus rings, and body styles.
 */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Hanken+Grotesk:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--linda-background);
  color: var(--linda-text);
  font-family: var(--linda-font-body);
  font-size: var(--linda-font-base);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media Elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form & Input Reset */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Typography Base Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--linda-font-title);
  color: var(--linda-text);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: var(--linda-font-4xl); }
h2 { font-size: var(--linda-font-3xl); }
h3 { font-size: var(--linda-font-2xl); }
h4 { font-size: var(--linda-font-xl); }
h5 { font-size: var(--linda-font-lg); }
h6 { font-size: var(--linda-font-base); }

p {
  margin-bottom: 1rem;
}

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

a {
  color: var(--linda-primary);
  text-decoration: none;
  transition: color var(--linda-transition-fast);
}

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

/* List Reset */
ul, ol {
  list-style: none;
}

/* Table Base Reset */
table {
  border-collapse: collapse;
  width: 100%;
}

/* WCAG AA Accessibility Focus Rings */
:focus-visible {
  outline: 2px solid var(--linda-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(185, 0, 100, 0.2);
  border-radius: 4px;
}

/* Remove default focus for mouse users while preserving for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Screen Reader Utility Class (a11y) */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Material Symbols Icon Base Style */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
}

/* High Contrast Link & Text Classes */
.text-muted {
  color: var(--linda-text-muted) !important;
}

.text-variant {
  color: var(--linda-text-variant) !important;
}

.text-primary {
  color: var(--linda-primary) !important;
}

.text-gold {
  color: var(--linda-gold-text, #8a671d) !important;
}
