/* ============================================
   Reset & Base Styles
   ============================================ */

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

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
}

.heading-h1 {
  font-size: var(--text-5xl);
  line-height: 1.1;
}

.heading-h2 {
  font-size: var(--text-4xl);
  line-height: 1.15;
}

.heading-h3 {
  font-size: var(--text-3xl);
}

.heading-h4 {
  font-size: var(--text-2xl);
  line-height: 1.3;
}

p {
  line-height: 1.7;
  color: var(--color-text-mid);
}

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

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

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

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

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

.text-xl {
  font-size: var(--text-xl);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-sm {
  font-size: var(--text-sm);
}

/* ============================================
   Layout Utilities
   ============================================ */

.page-wrapper {
  overflow: hidden;
}

.padding-global {
  padding-left: var(--padding-global);
  padding-right: var(--padding-global);
}

.container-large {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.container-medium {
  max-width: var(--container-medium);
  margin-left: auto;
  margin-right: auto;
}

.container-small {
  max-width: var(--container-small);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Vertical Frame Lines (decorative)
   ============================================ */

.line-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vertical-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-border);
  opacity: 0.5;
}

.vertical-line.is-left {
  left: 0;
}

.vertical-line.is-right {
  right: 0;
}

.horizontal-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-border);
  opacity: 0.5;
}

.horizontal-line.is-bottom {
  bottom: 0;
}

.horizontal-line.is-top {
  top: 0;
}

/* ============================================
   Spacers
   ============================================ */

.spacer-xxs { height: var(--space-xxs); }
.spacer-xs { height: var(--space-xs); }
.spacer-sm { height: var(--space-sm); }
.spacer-md { height: var(--space-md); }
.spacer-lg { height: var(--space-lg); }
.spacer-xl { height: var(--space-xl); }
.spacer-2xl { height: var(--space-2xl); }
.spacer-3xl { height: var(--space-3xl); }

/* ============================================
   Visibility Utilities
   ============================================ */

.hide { display: none !important; }

@media screen and (max-width: 991px) {
  .hide-tablet { display: none !important; }
  .show-tablet { display: flex !important; }
}

@media screen and (max-width: 767px) {
  .hide-mobile-landscape { display: none !important; }
}

@media screen and (max-width: 479px) {
  .hide-mobile { display: none !important; }
}
