/* Paper theme: background and desk details on every page (approved 2026-11-06).
   1 graph paper grid  2 paper grain on cards  3 folder-tab section headings
   4 printer's crop marks  5 desk details  6 section colour shift */

/* 6 Section colour shift: bg-concept.js sets --page-bg as sections scroll into view */
:root { --page-bg: var(--teal); --paper: #f1ead3; }
html, body { background-color: var(--page-bg); transition: background-color .8s ease; }

/* 1 Graph paper grid: fine 24px squares, a stronger line every 120px */
body {
  background-image:
    linear-gradient(rgba(11, 26, 34, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 34, .11) 1px, transparent 1px),
    linear-gradient(rgba(11, 26, 34, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 34, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* 2 Paper grain on the yellow cards */
.card {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 0  0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 3 Folder-tab section headings: each heading is a tab standing on a line across the section */
.section > h2 { display: inline-block; position: relative; background: var(--yellow); border: 2px solid var(--black); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 12px 30px 10px; }
.section > h2 + .rule { width: 100%; height: 2px; margin: 0; }
@media (max-width: 560px) { .section > h2 { padding: 10px 18px 8px; } }

/* 4 Printer's crop marks round the hero logo card and the home page blocks */
.hero-image, .values, .feedback, body[data-page="home"] .products { position: relative; }
.hero-image::before, .values::before, .feedback::before, body[data-page="home"] .products::before {
  content: ""; position: absolute; inset: -20px; pointer-events: none;
  --m: rgba(11, 26, 34, .75);
  background:
    linear-gradient(var(--m), var(--m)) left top / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) left top / 2px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) right top / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) right top / 2px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) left bottom / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) left bottom / 2px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) right bottom / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) right bottom / 2px 18px no-repeat;
}

/* 5 Desk details: paper clip on the hero card, rubber stamp for SINCE 1983, tape on the top-left corner of each review card */
.hero-image::after {
  content: ""; position: absolute; top: -26px; right: 46px; width: 30px; height: 92px; transform: rotate(8deg); z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 92'%3E%3Cpath d='M9 30V12a6 6 0 0 1 12 0v58a9 9 0 0 1-18 0V22' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M9 30V12a6 6 0 0 1 12 0v58a9 9 0 0 1-18 0V22' fill='none' stroke='%23c9ced2' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body[data-page="home"] .hero .tag { background: transparent; color: #b8322a; border: 2px solid #b8322a; outline: 2px solid #b8322a; outline-offset: 2px; border-radius: 6px; padding: 6px 14px 5px; letter-spacing: 3px; font-weight: 700; transform: rotate(-4deg); opacity: .9; }
.review::after { content: ""; position: absolute; top: -12px; left: -14px; width: 84px; height: 24px; transform: rotate(-32deg); background: rgba(255, 255, 255, .6); border-left: 2px dashed rgba(0, 0, 0, .08); border-right: 2px dashed rgba(0, 0, 0, .08); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); pointer-events: none; }
