/* ==========================================================================
   Base Styles - Design Skills 2030
   ========================================================================== */

/* -------------------------------------------------------------------------
   Font Face - Panama Proportional
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'Panama Proportional';
  src: url('../fonts/PanamaProportionalRegular1.20.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panama Proportional';
  src: url('../fonts/PanamaProportionalBold1.20.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panama Proportional';
  src: url('../fonts/PanamaProportionalItalic1.20.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   CSS Reset (Modern)
   ------------------------------------------------------------------------- */

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

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

body {
  min-height: 100vh;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */

.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h1, .h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-tight);
}

h2, .h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-tight);
}

h3, .h3 {
  font-size: var(--fs-h3);
}

.body-large {
  font-size: var(--fs-h3);
  line-height: var(--lh-relaxed);
}

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

.caption {
  font-size: var(--fs-caption);
  color: var(--text-tertiary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

/* Text colors */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.text-accent {
  color: var(--accent-primary);
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------------------- */

.container {
  width: min(90%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-24);
}

/* -------------------------------------------------------------------------
   Focus States (Accessibility)
   ------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* -------------------------------------------------------------------------
   Selection
   ------------------------------------------------------------------------- */

::selection {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* -------------------------------------------------------------------------
   Scrollbar (WebKit)
   ------------------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--bg-secondary);
}

/* -------------------------------------------------------------------------
   Screen Reader Only
   ------------------------------------------------------------------------- */

.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;
}
