/* Global Styles - DsgnMate Portfolio */
body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-gray-darker);
  /* Warm paper texture, as on the reference site. `clip` rather than `hidden`
     so the body does not become a scroll container — that would break the
     hero's position: sticky. */
  background-color: var(--color-beige-primary);
  background-image: url("../images/off-white-background.jpg");
  background-position: 50%;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-black);
  color: var(--color-white);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* The reference makes .container full-bleed with em-based side gutters.
   Listed per-section while the remaining sections are ported; once the footer
   is on the reference layout this replaces the rule above outright. */
.section-about .container,
.section-peek .container,
.section-work .container {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2em 1em;
  font-size: 14px;
}

@media (min-width: 480px) {
  .section-about .container,
  .section-peek .container,
  .section-work .container { padding: 2em; }
}

@media (min-width: 992px) {
  .section-about .container,
  .section-peek .container,
  .section-work .container {
    padding: 0 4em;
    font-size: var(--font-size-base);
  }
}

.container-large {
  width: 100%;
  max-width: var(--container-large);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.padding-section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* Typography */
.heading-1 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h1);
  margin-bottom: var(--space-lg);
  color: var(--color-navy-primary);
}

.heading-2 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: 1.125;
  color: var(--color-gray-darker);
}

.heading-3 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  color: var(--color-gray-darker);
}

.heading-4 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  line-height: 1.33;
  color: var(--color-gray-darker);
}

.body-large {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-large);
  line-height: var(--line-height-large);
  color: var(--color-navy-primary);
  opacity: 0.75;
}

@media (max-width: 991px) {
  .heading-1 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .heading-1 {
    font-size: 28px;
  }

  .body-large {
    font-size: 16px;
  }
}

/* Highlight - Yellow for headings only */
.highlight {
  background: var(--color-yellow-highlight);
  color: var(--color-black);
  padding: 2px 4px;
  display: inline;
}

/* Text Utilities */
.text-align-center {
  text-align: center;
}

/* Announce-only text for screen readers */
.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

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

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-beige-darker);
  margin: var(--space-xl) 0;
}

.rule-mini {
  width: 20px;
  height: 2px;
  background-color: var(--color-black);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.dot-small {
  width: 10px;
  height: 10px;
  background-color: var(--color-gray-darker);
  border-radius: 50%;
  flex-shrink: 0;
}

.kicker {
  font-family: var(--font-family-primary);
  font-size: 0.69em;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gray-darker);
}

/* Max Title */
.max-title {
  max-width: 900px;
  margin: 0 auto var(--space-xl) auto;
}

.max-title.right {
  margin-left: auto;
  margin-right: 0;
}


