/* ==========================================================================
   Chanda Printers — "Press Check" design system
   Palette and structure drawn from the print shop floor: process inks,
   crop marks, colour bars, coated stock.
   ========================================================================== */

:root {
  --ink: #191c1f;
  --ink-2: #23282c;
  --ink-3: #343b41;
  --paper: #f0f2ef;
  --paper-2: #ffffff;
  --stock: #e3e7e1;
  --reg: #b9c0b7;

  --cyan: #00a0df;
  --magenta: #e5007e;
  --yellow: #ffcc00;

  --rule: rgba(25, 28, 31, .14);
  --rule-dark: rgba(240, 242, 239, .16);

  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1220px;
}

/* --------------------------------------------------------- base --------- */

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.028em;
  margin: 0 0 .5em;
  font-variation-settings: "wdth" 100, "opsz" 24;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.95rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.6rem); letter-spacing: -.02em; }
h4 { font-size: 1.09rem; letter-spacing: -.012em; font-weight: 700; }

p { margin: 0 0 1.1rem; max-width: 68ch; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta); }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; color: #4a5157; }
.on-ink .lede,
.hero .lede,
.pagehead .lede,
.band--ink .lede { color: rgba(240, 242, 239, .74); }

/* ------------------------------------------------- colour bar strip ----- */

.colourbar {
  display: flex;
  height: 7px;
  width: 100%;
}
.colourbar span { flex: 1 1 auto; }
.colourbar span:nth-child(1) { background: var(--cyan); }
.colourbar span:nth-child(2) { background: var(--magenta); }
.colourbar span:nth-child(3) { background: var(--yellow); }
.colourbar span:nth-child(4) { background: var(--ink); }
.colourbar--onink span:nth-child(4) { background: var(--paper); }

/* ------------------------------------------------------------ nav ------- */

.topline {
  background: var(--ink);
  color: rgba(240, 242, 239, .8);
  font-size: .84rem;
  letter-spacing: .005em;
}
.topline .shell {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  padding-block: .5rem;
}
.topline a { text-decoration: none; }
.topline a:hover { color: var(--yellow); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .85rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
}
.wordmark:hover { color: inherit; }
.wordmark__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-radius: 3px;
  overflow: hidden;
}
.wordmark__mark i:nth-child(1) { background: var(--cyan); }
.wordmark__mark i:nth-child(2) { background: var(--magenta); }
.wordmark__mark i:nth-child(3) { background: var(--yellow); }
.wordmark__mark i:nth-child(4) { background: var(--ink); }
.wordmark__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -.035em;
  line-height: 1;
  display: block;
}
.wordmark__sub {
  font-size: .72rem;
  color: #5c646a;
  letter-spacing: .04em;
  display: block;
  margin-top: .22rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--magenta); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 600; }

.navtoggle {
  display: none;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 3px;
  padding: .5rem .7rem;
  cursor: pointer;
}
.navtoggle i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.navtoggle i + i { margin-top: 4px; }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.2rem;
  }
  .nav.is-open { display: flex; }
  .nav li { border-top: 1px solid var(--rule); }
  .nav a { display: block; padding: .8rem 0; border-bottom: 0; }
  .masthead .shell { position: relative; }
}

/* --------------------------------------------------------- buttons ------ */

.btn-ink,
.btn-line,
.btn-mag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: .82rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  cursor: pointer;
}
.btn-mag { background: var(--magenta); color: #fff; }
.btn-mag:hover { background: #b90066; color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-ink .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.masthead .btn-mag { display: none; }
@media (min-width: 992px) { .masthead .btn-mag { display: inline-flex; } }
@media (max-width: 420px) { .wordmark__sub { display: none; } }

/* ------------------------------------------------------------ hero ------ */

.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero .shell { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.sheet { position: relative; }

/* crop / trim marks — the signature structural device */
.sheet::before,
.sheet::after,
.sheet > .sheet__mark::before,
.sheet > .sheet__mark::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--reg);
  opacity: .55;
}
.sheet::before { top: -18px; left: -18px; border-top-width: 1px; border-left-width: 1px; }
.sheet::after { top: -18px; right: -18px; border-top-width: 1px; border-right-width: 1px; }
.sheet > .sheet__mark::before { bottom: -18px; left: -18px; border-bottom-width: 1px; border-left-width: 1px; }
.sheet > .sheet__mark::after { bottom: -18px; right: -18px; border-bottom-width: 1px; border-right-width: 1px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { color: var(--paper); max-width: 15ch; }
@media (max-width: 880px) { .hero h1 br { display: none; } }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: rgba(240, 242, 239, .62);
}
.hero__meta li { display: flex; align-items: center; gap: .5rem; }
.hero__meta li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.hero__meta li:nth-child(2)::before { background: var(--magenta); }
.hero__meta li:nth-child(3)::before { background: var(--yellow); }

.hero .btn-row { margin-top: 2rem; }

/* the imposition sheet: four tiles, as they would sit on a press sheet */
.proof {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 8px;
}
.proof__pane {
  border-radius: 2px;
  padding: 1.1rem 1.15rem;
  min-height: 140px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}
.proof__pane small {
  font-family: var(--body);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: 0;
  line-height: 1.35;
  opacity: .78;
}
.proof__pane--a { background: var(--cyan); color: #04303f; min-height: 190px; }
.proof__pane--b { background: var(--yellow); color: #4a3b00; min-height: 190px; }
.proof__pane--c { background: var(--magenta); color: #fff; }
.proof__pane--d { background: var(--paper); color: var(--ink); }

@media (max-width: 880px) {
  .proof { margin-top: 2.5rem; }
  .proof__pane--a, .proof__pane--b { min-height: 150px; }
}

/* single orchestrated page-load reveal */
.reveal > * { animation: rise .6s cubic-bezier(.22, .61, .36, 1) backwards; }
.reveal > *:nth-child(1) { animation-delay: .04s; }
.reveal > *:nth-child(2) { animation-delay: .1s; }
.reveal > *:nth-child(3) { animation-delay: .16s; }
.reveal > *:nth-child(4) { animation-delay: .22s; }
.reveal > *:nth-child(5) { animation-delay: .28s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- sections ---- */

.band { padding-block: clamp(3.2rem, 7vw, 5.6rem); }
.band--tight { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.band--stock { background: var(--stock); }
.band--paper { background: var(--paper-2); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2, .band--ink h3 { color: var(--paper); }

.band__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band__head p:last-child { margin-bottom: 0; }

.pagehead {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.8rem, 6vw, 4.4rem);
}
.pagehead h1 { color: var(--paper); margin-bottom: .55rem; }
.pagehead .lede { margin-bottom: 0; }

.crumbs {
  font-size: .85rem;
  color: rgba(240, 242, 239, .55);
  margin-bottom: 1.4rem;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span { margin-inline: .45rem; }

/* ---------------------------------------------------- service listing --- */

.groups { display: grid; gap: clamp(2.4rem, 5vw, 3.4rem); }

.group__title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-top: 2px solid var(--ink);
  padding-top: .9rem;
  margin-bottom: 1.4rem;
}
.group__title h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.group__title span { font-size: .86rem; color: #5c646a; margin-left: auto; white-space: nowrap; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card-s {
  background: var(--paper-2);
  padding: 1.3rem 1.4rem 1.45rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: background-color .15s ease;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--card-accent, var(--ink));
  margin: 0 -1px -1px 0;
}
.card-s:hover { background: var(--stock); color: var(--ink); }
.card-s:hover h3 { color: var(--magenta); }
.card-s h3 { font-size: 1.12rem; margin: 0; }
.card-s p { font-size: .93rem; color: #545c62; margin: 0; }
.card-s--cyan { --card-accent: var(--cyan); }
.card-s--magenta { --card-accent: var(--magenta); }
.card-s--yellow { --card-accent: var(--yellow); }
.card-s--ink { --card-accent: var(--ink); }

/* ------------------------------------------------------- feature rows --- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}
.band--ink .steps li { border-top-color: var(--rule-dark); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--magenta);
  padding-top: .12rem;
}
.steps h4 { margin: 0 0 .2rem; }
.steps p { margin: 0; font-size: .95rem; color: #545c62; }
.band--ink .steps p { color: rgba(240, 242, 239, .68); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.facts div { background: var(--ink); padding: 1.4rem 1.3rem; }
.facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: .4rem;
}
.facts span { font-size: .89rem; color: rgba(240, 242, 239, .7); }

/* --------------------------------------------------------- specs list --- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}
.spec th, .spec td {
  text-align: left;
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec th {
  font-weight: 600;
  width: 38%;
  color: #4a5157;
}

.ticks { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .6rem;
  font-size: .99rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 10px; height: 10px;
  background: var(--cyan);
}
.ticks li:nth-child(3n+2)::before { background: var(--magenta); }
.ticks li:nth-child(3n+3)::before { background: var(--yellow); }

.aside {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem;
  position: sticky;
  top: 92px;
}
.aside h3 { font-size: 1.15rem; }
.aside p { font-size: .94rem; color: #545c62; }
@media (max-width: 860px) { .aside { position: static; } }

.chiplist { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-block;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: .42rem .85rem;
  font-size: .88rem;
  border-radius: 2px;
  text-decoration: none;
}
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --------------------------------------------------- service areas ------ */

.service-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin: 1.1rem 0 1.6rem;
}
.service-area-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3.5px solid var(--cyan);
  padding: .85rem 1rem;
  border-radius: 2px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 28, 31, .06);
}
.service-area-card:nth-child(5n+1) { border-left-color: var(--cyan); }
.service-area-card:nth-child(5n+2) { border-left-color: var(--magenta); }
.service-area-card:nth-child(5n+3) { border-left-color: var(--yellow); }
.service-area-card:nth-child(5n+4) { border-left-color: var(--ink); }
.service-area-card:nth-child(5n+5) { border-left-color: var(--cyan); }

.service-area-card strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.015em;
  margin-bottom: .25rem;
  color: var(--ink);
}
.service-area-card span {
  display: block;
  font-size: .86rem;
  line-height: 1.42;
  color: #545c62;
}


/* ------------------------------------------------------------- CTA ------ */

.callout {
  background: var(--magenta);
  color: #fff;
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255, 255, 255, .88); }
.callout .btn-line { border-color: #fff; color: #fff; }
.callout .btn-line:hover { background: #fff; color: var(--magenta); }
.callout__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

/* ----------------------------------------------------------- forms ------ */

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: .78rem .9rem;
  border: 1px solid #c3cac2;
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--magenta);
  outline-offset: 1px;
}
.field textarea { min-height: 130px; resize: vertical; }
.formnote { font-size: .87rem; color: #5c646a; }

.status {
  display: none;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--cyan);
  background: var(--stock);
  font-size: .95rem;
  margin-bottom: 1.2rem;
}
.status.is-shown { display: block; }

/* ---------------------------------------------------------- contact ----- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.infolist { list-style: none; margin: 0; padding: 0; }
.infolist li { padding: 1rem 0; border-top: 1px solid var(--rule); }
.infolist li:first-child { border-top: 0; padding-top: 0; }
.infolist h4 { margin: 0 0 .25rem; }
.infolist p { margin: 0; font-size: .97rem; color: #4a5157; }
.infolist a { font-weight: 600; text-decoration: none; }
.infolist a:hover { text-decoration: underline; }

.mapframe {
  width: 100%;
  height: 380px;
  border: 1px solid var(--rule);
  filter: saturate(.85);
}

/* ------------------------------------------------------------ FAQ ------- */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.015em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 700;
  color: var(--magenta);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .18s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; font-size: .97rem; color: #4a5157; }

/* ---------------------------------------------------------- footer ------ */

.footer {
  background: var(--ink);
  color: rgba(240, 242, 239, .72);
  padding-block: clamp(2.8rem, 5vw, 4rem) 0;
  font-size: .94rem;
}
.footer h4 { color: var(--paper); margin-bottom: .9rem; font-size: .98rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 2rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer p { max-width: 40ch; }
.footer__base {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule-dark);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .87rem;
  color: rgba(240, 242, 239, .5);
}

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  display: none;
  background: var(--ink);
  border-top: 2px solid var(--magenta);
}
.callbar a {
  flex: 1;
  text-align: center;
  padding: .95rem .5rem;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.callbar a + a { border-left: 1px solid var(--rule-dark); }
@media (max-width: 680px) {
  .callbar { display: flex; }
  body { padding-bottom: 54px; }
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: .8rem 1.2rem;
  z-index: 2000;
}
.skip:focus { left: 1rem; top: 1rem; position: fixed; }
