/*
 * File: assets/css/base.css, the document reset, type and layout primitives of printncopy.
 * Purpose: sets the box model, the body fill and type, the Manrope heading scale, links, images, the focus ring, the
 * skip link, the container, the section bands and their headers, the grids and the prose block.
 * Defines: the element rules and the .container, .section, .section-header, .section-label, .grid and .prose classes
 * Doc: docs/notes/client-sites/printncopyglobal.com/assets/themes/printncopy/assets/css/base.css.md
 */

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

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

html.pnc-menu-locked {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-md);
}

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

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

a:hover {
  text-decoration-color: var(--text);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

/* The hidden attribute wins over every display rule of the theme and shop sheets. */
[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--inverse-bg);
  color: var(--inverse-text);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-sm);
}

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

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

.container-narrow {
  max-width: 820px;
}

.site-main {
  display: block;
  min-height: 50vh;
}

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

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding: var(--space-2xl) 0;
}

.section-header {
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section-header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: none;
  text-align: left;
}

/* A solid accent pill with white text; a label carries no bar beside it. */
.section-label {
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.05rem;
}

.section-header--split .section-subtitle {
  margin: 0;
}

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

.grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.prose {
  max-width: 72ch;
  color: var(--text);
}

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  margin-top: var(--space-lg);
  margin-bottom: 0.45rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 0.85rem;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-lg);
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: var(--space-xs);
}

.prose blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text);
}

.prose img {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
}

@media (max-width: 640px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }
}
