:root {
    --ink: #17243e;
    --muted: #485975;
    --blue: #17397e;
    --paper: #fff;
    --pink: #fce0ec;
    --line: #dbe4f1;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #8054d4; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.wrap { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: absolute; top: -10rem; z-index: 5; background: white; padding: 12px; }
.skip:focus { top: 6px; left: 8px; }
.location { background: #172d5d; color: white; padding: 6px 14px; text-align: center; font-size: .8rem; }
.site-header { position: sticky; top: 0; z-index: 2; background: white; border-bottom: 1px solid var(--line); }
.header-row { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; color: #244aa0; text-decoration: none; font-weight: 850; letter-spacing: -.06em; white-space: nowrap; font-size: 1.35rem; }
.brand b { color: #c52232; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; color: white; background: #244aa0; border-radius: 9px; }
.header-row nav, .footer-row nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.header-row nav a { text-decoration: none; font-weight: 650; }
.header-row nav a:hover, .header-row nav a[aria-current] { text-decoration: underline; }
.hero { background: linear-gradient(120deg, #e1f3ff, #f5f3ff 60%, #ffe8f1); }
.hero-grid { min-height: 490px; display: grid; grid-template-columns: 1fr .98fr; align-items: center; gap: 24px; padding-block: 30px; }
.hero h1 { font-size: clamp(2.65rem, 6.1vw, 5.75rem); line-height: .98; letter-spacing: -.075em; margin: .16em 0 .25em; }
.hero h1 em { font-style: normal; color: #274699; display: block; }
.hero-copy > p:not(.eyebrow) { max-width: 33rem; color: var(--muted); font-size: 1.13rem; }
.hero-image { width: 100%; max-height: 490px; object-fit: contain; }
.eyebrow { color: var(--blue); text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .105em; }
.actions, .chips, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions { margin-top: 24px; }
.button, .menu { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { background: #214393; color: white; }
.primary:hover { background: #172d5d; }
.secondary, .menu { background: white; border-color: #aebfe4; color: var(--blue); }
.block { padding-block: 44px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.details-link { color: var(--blue); font-weight: 750; }
.chips { margin: 6px 0 20px; }
.chips a, .social { border: 1px solid #cbd9ee; border-radius: 30px; padding: 6px 13px; background: white; text-decoration: none; }
.chips a:hover, .social:hover { background: #e6f3ff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.article-grid .product-card img { aspect-ratio: 640/420; background: #e6f3ff; }
.product-card { border-radius: 15px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 7px 20px #17397e0a; }
.product-card:hover { border-color: #9bb2d5; }
.product-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-card a:focus-visible { outline-offset: -4px; }
.product-card img { width: 100%; object-fit: cover; aspect-ratio: 640/460; }
.card-copy { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.card-copy h3 { font-size: 1.17rem; margin-top: 7px; }
.card-copy p, .template-callout p, .site-footer p { color: var(--muted); }
.card-copy .details-link { margin-top: auto; padding-top: 3px; }
.template-section { padding-top: 0; }
.template-callout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--pink); padding: 26px; border-radius: 15px; }
.template-callout p { margin-bottom: 0; }
.site-footer { background: #eef6ff; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 22px; padding-block: 24px; }
.footer-row p { margin: 9px 0 0; }
.copyright { border-top: 1px solid var(--line); padding-block: 12px; font-size: .87rem; color: var(--muted); }
.page-title { font-size: clamp(2.15rem, 5vw, 3.65rem); letter-spacing: -.055em; overflow-wrap: anywhere; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; background: #eff6ff; border-radius: 13px; padding: 17px; margin-bottom: 19px; }
.filters label { display: grid; gap: 4px; font-weight: 650; }
.filters label:first-child { flex: 1 1 240px; }
.filters input, .filters select { min-width: 0; min-height: 44px; font: inherit; color: inherit; background: white; border: 1px solid #aebfe4; border-radius: 8px; padding: 7px 10px; }
.filters > a { align-self: center; }
.notice { background: #eef5ff; padding: 17px; border-radius: 10px; }
.pagination { margin-top: 25px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; margin-top: 22px; }
.product-detail img { border-radius: 17px; width: 100%; object-fit: cover; aspect-ratio: 640/460; }
.product-detail dt { font-weight: 750; }
.product-detail dd { margin: 0 0 .8em; }
@media (max-width: 890px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { min-height: 0; }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); }
    .header-row { flex-wrap: wrap; padding-block: 10px; min-height: 0; }
    .header-row nav { width: 100%; gap: 10px 16px; }
    .header-row nav a { padding-block: 8px; }
    .hero-grid, .product-detail, .product-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { gap: 4px; padding-block: 25px 12px; }
    .hero-image { max-height: 360px; }
    .block { padding-block: 28px; }
    .template-section { padding-top: 0; }
    .section-head { flex-wrap: wrap; gap: 0 10px; }
    .filters label { flex: 1 1 100%; }
}

.blog-library { padding-block: clamp(32px, 6vw, 72px); }
.blog-intro { margin-bottom: clamp(24px, 4vw, 42px); }
.blog-intro h1 { margin: 0 0 12px; font-size: clamp(2.25rem, 5.5vw, 4.25rem); line-height: 1.04; letter-spacing: -.055em; }
.blog-intro p { max-width: 60ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.blog-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 22px;
    background: #142952;
    color: #fff;
}
.blog-feature-copy { align-self: center; padding: clamp(26px, 4vw, 52px); }
.blog-kicker { margin: 0 0 10px; color: var(--blue); font-size: .875rem; font-weight: 750; }
.blog-feature .blog-kicker { color: #b9d4ff; }
.blog-feature h2 { margin: 0 0 14px; color: inherit; font-size: clamp(1.65rem, 3.4vw, 2.8rem); line-height: 1.12; letter-spacing: -.035em; }
.blog-feature h2 + p { max-width: 46ch; margin: 0 0 24px; color: #e1ebff; }
.blog-feature-link { background: #fff; color: #142952; }
.blog-feature-link:hover { background: #dbe9ff; }
.blog-feature img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: contain; background: #e6eefb; }
.blog-collection { margin-top: clamp(32px, 5vw, 56px); }
.blog-collection > h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 28px); }
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px #1c38650d;
}
.blog-card:hover, .blog-card:focus-within { border-color: #9bb2d5; }
.blog-card:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.blog-card > img { display: block; width: 100%; height: auto; aspect-ratio: 640/420; object-fit: cover; background: #e6eefb; }
.blog-card-copy { padding: clamp(16px, 2.25vw, 24px); overflow-wrap: anywhere; }
.blog-card h3 { margin: 0 0 10px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.22; letter-spacing: -.015em; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a::after { position: absolute; inset: 0; content: ""; }
.blog-card h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.blog-card .blog-kicker a { position: relative; z-index: 1; color: inherit; }
.blog-summary { margin: 0; color: var(--muted); }
.blog-filter, .blog-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.blog-filter { padding: 14px 18px; border-radius: 12px; background: #eff6ff; }
.blog-filter p { margin: 0; overflow-wrap: anywhere; }
.blog-pagination { justify-content: center; margin-top: 32px; }
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .blog-feature, .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-feature img { order: -1; height: auto; min-height: 0; aspect-ratio: 720/440; }
}

/* Message severity shared by storefront and admin pages. */
.notice-warning,
.notice[role="alert"],
.lanyard-product-preview .lanyard-preview-error {
    background-color: #ffe9e9;
    color: #821c26;
}
.notice-success {
    background-color: #e6f5e9;
    color: #18572f;
}
[role="status"].notice-success,
.lanyard-product-preview .lanyard-preview-error,
.quantity-estimator output.notice-warning {
    padding: .65rem .85rem;
    border-radius: .55rem;
}
#status.status[data-error="true"] {
    background-color: #ffe9e9;
    color: #821c26;
}

/* Pastel backgrounds are limited to article cards. The feature counts as the first card. */
.blog-library, .article-grid {
    --article-baby-pink: #f9d9e7;
    --article-powder-blue: #d7e8f7;
}
.blog-library > .blog-feature,
.blog-grid > .blog-card:nth-child(odd),
.article-grid > .product-card:nth-child(odd) { background: var(--article-baby-pink); }
.blog-grid > .blog-card:nth-child(even),
.article-grid > .product-card:nth-child(even) { background: var(--article-powder-blue); }
.blog-feature ~ .blog-collection .blog-grid > .blog-card:nth-child(odd) { background: var(--article-powder-blue); }
.blog-feature ~ .blog-collection .blog-grid > .blog-card:nth-child(even) { background: var(--article-baby-pink); }
.blog-library > .blog-feature { color: #142952; border: 1px solid var(--line); }
.blog-feature .blog-kicker { color: #214393; }
.blog-feature h2 + p { color: #374861; }
.blog-feature .blog-feature-link { border-color: #a6b9d6; }
.blog-grid > .blog-card > img:is([src$="school-event-printing-timeline.svg"], [src$="screen-versus-print-color.svg"]),
.article-grid .product-card img:is([src$="school-event-printing-timeline.svg"], [src$="screen-versus-print-color.svg"]) { object-fit: contain; }
