/* Stylesheet for /resources/*.html procurement guides on customlogothing.com */
:root {
  --res-ink: #171815;
  --res-muted: #525753;
  --res-line: #e4e6e3;
  --res-paper: #fafaf8;
  --res-card: #ffffff;
  --res-green: #183f32;
  --res-accent: #ea580c;
  --res-accent-dark: #c2410c;
}

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

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--res-ink);
  background: var(--res-paper);
}

body > header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--res-line);
  backdrop-filter: blur(8px);
}

body > header > a {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--res-ink);
  text-decoration: none;
}

body > header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

body > header nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--res-muted);
  text-decoration: none;
}

body > header nav a:hover {
  color: var(--res-accent);
}

body > header nav a[href="/contact"],
body > header nav a[href="/contact.php"] {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--res-accent);
  color: #ffffff;
}

body > header nav a[href="/contact"]:hover,
body > header nav a[href="/contact.php"]:hover {
  background: var(--res-accent-dark);
  color: #ffffff;
}

body > main {
  max-width: 860px;
  margin: 32px auto 48px;
  padding: 36px 40px;
  background: var(--res-card);
  border: 1px solid var(--res-line);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(23, 24, 21, 0.04);
}

article h1 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--res-ink);
}

article h2 {
  margin: 34px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--res-line);
  font-size: 22px;
  line-height: 1.3;
  color: var(--res-ink);
}

article h3 {
  margin: 24px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--res-ink);
}

article p {
  margin: 0 0 16px;
  color: #2f3330;
}

article img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 22px 0 28px;
  border-radius: 10px;
  border: 1px solid var(--res-line);
  object-fit: cover;
}

article a {
  color: var(--res-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover {
  color: var(--res-accent-dark);
}

article ul,
article ol {
  margin: 0 0 18px;
  padding-left: 24px;
  color: #2f3330;
}

article li {
  margin-bottom: 8px;
}

article blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: #fff7ed;
  border-left: 4px solid var(--res-accent);
  border-radius: 0 8px 8px 0;
  color: #3f2b1d;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0 26px;
  border: 1px solid var(--res-line);
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

thead th {
  background: #f3f5f3;
  color: var(--res-ink);
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--res-line);
  white-space: nowrap;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--res-line);
  vertical-align: top;
  color: #2f3330;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: #fafbf9;
}

article section {
  margin-top: 28px;
}

body > footer {
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 28px 32px;
  background: var(--res-green);
  color: #eef4f1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

body > footer::before {
  content: "Need factory pricing, dielines, or samples for your custom packaging project?";
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  max-width: 540px;
}

body > footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--res-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body > footer a:hover {
  background: var(--res-accent-dark);
}

@media (max-width: 720px) {
  body > header {
    padding: 14px 16px;
  }
  body > main {
    margin: 16px 12px 28px;
    padding: 22px 18px;
    border-radius: 10px;
  }
  body > footer {
    margin: 0 12px 40px;
    padding: 22px 18px;
  }
  body > footer a {
    width: 100%;
  }
}
