:root {
  --accent: #ed1c24;      /* logo red */
  --accent-dark: #c4121a;
  --ink: #231f20;         /* logo dark */
  --text: #2b2f36;
  --muted: #5f6672;
  --line: #e4e7ec;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --cyan: #00aeef;
  --magenta: #ec008c;
  --yellow: #ffd400;
  --key: #1b1b1b;
  --radius: 10px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header (white, logo is designed for white) */
.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; flex-wrap: wrap; }
.logo { display: block; text-decoration: none; }
.logo img { display: block; height: 42px; width: auto; }
.site nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site nav a { color: #3a404a; text-decoration: none; font-size: 15px; font-weight: 500; }
.site nav a:hover, .site nav a.on { color: var(--accent); }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; font-size: 15px;
}
.btn.primary { background: var(--accent); color: #fff !important; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { border-color: #c7ccd4; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #3a3536; }
.site .btn { padding: 8px 14px; }

/* hero */
.hero { background: var(--soft); color: var(--ink); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.cmyk { display: flex; width: 150px; height: 8px; margin-bottom: 22px; border-radius: 4px; overflow: hidden; }
.cmyk i { flex: 1; }
.cmyk i:nth-child(1) { background: var(--cyan); }
.cmyk i:nth-child(2) { background: var(--magenta); }
.cmyk i:nth-child(3) { background: var(--yellow); }
.cmyk i:nth-child(4) { background: var(--key); }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; margin: 0 0 18px; max-width: 14em; color: var(--ink); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 38em; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .wrap.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .pic img { width: 100%; display: block; border-radius: 14px; box-shadow: 0 10px 28px rgba(35,31,32,.18); }
.story-img { width: 100%; max-width: 720px; display: block; border-radius: 12px; margin: 0 0 24px; }

.page-head { background: var(--soft); color: var(--ink); padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 8px; font-size: 34px; }
.page-head p { margin: 0; color: var(--muted); max-width: 40em; }

/* sections */
section.block { padding: 56px 0; }
section.block.soft { background: var(--soft); }
h2 { font-size: 28px; margin: 0 0 14px; line-height: 1.25; color: var(--ink); }
h3 { font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 42em; }
.grid { display: grid; gap: 20px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .bar { height: 5px; width: 44px; border-radius: 3px; margin-bottom: 14px; }
.bar.c { background: var(--cyan); }
.bar.m { background: var(--magenta); }
.bar.y { background: var(--yellow); }
.bar.k { background: var(--key); }

.proof { background: #fff; border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.proof strong { display: block; font-size: 24px; color: var(--accent); }
.proof span { color: var(--muted); font-size: 14px; }
.footnote { font-size: 13px; color: var(--muted); margin-top: 14px; }

.cta-band { background: var(--soft); border-top: 1px solid var(--line); text-align: center; padding: 56px 0; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--muted); margin: 0 0 22px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e5f7e8; color: #176b2b; }
.tag.note { background: #fff4cf; color: #7a5b00; }

details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 12px; background: #fff; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { margin: 10px 0 0; color: #3a4553; }

ul.tick { list-style: none; padding: 0; margin: 0; }
ul.tick li { padding-left: 26px; position: relative; margin: 0 0 8px; }
ul.tick li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

footer.site-foot { background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); padding: 32px 0; font-size: 14px; }
footer.site-foot a { color: var(--ink); }
footer.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .grid.g3, .grid.g2, .grid.g4, .proof .wrap { grid-template-columns: 1fr; }
  .hero .wrap.two { grid-template-columns: 1fr; }
  .site nav { gap: 12px; }
}

/* XColorRIP sub navigation (Features / Supported printers ...) */
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 9; }
.subnav .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.subnav .subnav-title { font-weight: 800; color: var(--ink); margin-right: 14px; white-space: nowrap; }
.subnav a { padding: 13px 12px; color: #3a404a; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
section[id] { scroll-margin-top: 122px; }
h3.feat { font-size: 24px; margin: 0 0 12px; }

/* YouTube slots */
.video, .video-slot { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: linear-gradient(135deg, #fff, var(--soft)); }
.video-slot span { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 99px; padding: 3px 12px; }
.video-slot strong { color: var(--ink); font-size: 17px; line-height: 1.35; max-width: 24em; }

.btn small { font-weight: 400; opacity: .8; }
.card .btn { margin: 0 8px 8px 0; }

/* blog feed */
ul.feedlist { list-style: none; padding: 0; margin: 0; }
ul.feedlist li { padding: 12px 4px; border-bottom: 1px solid var(--line); }
ul.feedlist .fdate { display: inline-block; min-width: 110px; color: var(--muted); font-size: 14px; }
ul.feedlist a { color: var(--ink); text-decoration: none; font-weight: 600; }
ul.feedlist a:hover { color: var(--accent); }
.feed .thumb { width: 100%; height: auto; border-radius: 8px; margin-bottom: 10px; display: block; }
.feed .card h3 a { color: var(--ink); text-decoration: none; }
.feed .card h3 a:hover { color: var(--accent); }
/* single post: post on the left, list of the same kind on the right */
.postwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.postbody { min-width: 0; }
.postside { border-left: 1px solid var(--line); padding-left: 24px; position: sticky; top: 80px; }
.postside h3 { margin: .2em 0 .6em; font-size: 17px; }
.postside ul.feedlist li { padding: 9px 2px; }
.postside ul.feedlist .fdate { display: block; min-width: 0; font-size: 13px; }
.postside ul.feedlist li.cur { background: rgba(237, 28, 36, .07); border-radius: 8px; padding-left: 8px; }
.postside ul.feedlist li.cur a { color: var(--accent); }
@media (max-width: 860px) { .postwrap { grid-template-columns: 1fr; } .postside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; position: static; } }
.postbody h1.ptitle { font-size: 30px; margin: .2em 0 .1em; }
.postbody .pbody { font-size: 17px; line-height: 1.75; word-break: break-word; }
.postbody .pbody img { max-width: 100%; height: auto; border-radius: 10px; }
.postbody .pbody a { color: var(--accent); }
.postbody .pbody iframe { max-width: 100%; }
.postbody .pbody .separator { margin: 1em 0; }
.postbody .pnav { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.postbody .pnav a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* PayPal box (download page) */
.paybox { margin-top: 28px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; }
.paybox h3 { margin: 0 0 8px; }
.paybox p { margin: 0 0 16px; color: var(--muted); }
