/* ============================================================
   vuxa.co.uk — "fresh stationery"
   Paper white + graph-paper texture, ink navy, ballpoint blue,
   binder-divider tabs carrying each category's colour.
   ============================================================ */

:root {
  --paper:   #fbfaf7;
  --ink:     #22304a;
  --ink-soft:#5b6880;
  --line:    #e3e1d8;
  --blue:    #2b50c8;   /* ballpoint */
  --blue-dk: #1f3c9c;
  --hi:      #ffe264;   /* highlighter */
  --tab:     var(--blue); /* overridden per category */
  --radius:  10px;
  --shadow-sheet: 0 1px 0 #d8d5ca, 0 6px 14px -8px rgba(34,48,74,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* faint graph paper */
  background-image:
    linear-gradient(rgba(43,80,200,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,80,200,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 2.2rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dk); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------------- header ---------------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.3rem;
  border-radius: 8px 8px 8px 2px; /* paper corner */
}
.logo-text { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.logo-dot { color: var(--ink-soft); font-weight: 500; font-size: 1rem; }

.search { display: flex; flex: 1; max-width: 420px; margin-left: auto; }
.search input {
  flex: 1; border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
  padding: 9px 14px; font: inherit; font-size: .95rem; background: var(--paper); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--blue); }
.search button {
  border: 1.5px solid var(--blue); background: var(--blue); color: #fff;
  border-radius: 0 8px 8px 0; padding: 9px 16px; font: inherit; font-size: .95rem; cursor: pointer;
}
.search button:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.search-big { max-width: 480px; margin-top: 20px; }
.nav-toggle { display: none; }

/* binder-divider tabs */
.tabs { background: #fff; }
.tabs-row { display: flex; gap: 6px; overflow-x: auto; padding-top: 6px; }
.tab {
  flex: 0 0 auto;
  padding: 9px 18px 11px;
  background: color-mix(in srgb, var(--tab) 14%, #fff);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--tab) 36%, #fff);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  text-decoration: none;
  font-weight: 600; font-size: .95rem;
  position: relative; top: 1px;
  transition: background .12s ease;
}
.tab:hover { background: color-mix(in srgb, var(--tab) 26%, #fff); color: var(--ink); }
.tab.is-active {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: inset 0 3px 0 var(--tab);
}

/* ---------------- hero ---------------- */
.hero { padding-block: 56px 30px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { max-width: 16ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-note { color: var(--ink-soft); font-size: .92rem; margin-top: 14px; }

/* fanned paper stack */
.hero-stack { position: relative; height: 340px; }
.sheet {
  position: absolute; width: 215px; height: 285px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow-sheet);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
}
.sheet-title { font-weight: 700; font-size: .9rem; }
img.sheet { padding: 0; object-fit: cover; object-position: top center; }
.sheet-cal   { left: 4%;  top: 6%;  transform: rotate(-6deg); z-index: 1; }
.sheet-habit { left: 30%; top: 0;   transform: rotate(2deg);  z-index: 2; }
.sheet-save  { left: 54%; top: 10%; transform: rotate(7deg);  z-index: 3; }
.mini-cal, .mini-grid, .mini-lines { flex: 1; border-radius: 4px; }
.mini-cal {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 27px 33px; border: 1px solid var(--line);
}
.mini-grid {
  background-image: radial-gradient(circle at 7px 7px, color-mix(in srgb, var(--blue) 45%, #fff) 4px, transparent 5px);
  background-size: 24px 24px; border: 1px solid var(--line);
}
.mini-lines {
  background-image: linear-gradient(transparent 22px, var(--line) 23px);
  background-size: 100% 24px; border: 1px solid var(--line);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-weight: 650; font-size: .98rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-soon { background: var(--line); color: var(--ink-soft); cursor: default; }

/* ---------------- sections / cards ---------------- */
.section { padding-block: 34px; }
/* binder-tab category cards: tab sits above the card, staggered left / centre / right */
.cat-heading { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .4rem; }
.cat-intro { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 30px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
.cat-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.cat-tab {
  align-self: flex-start; margin-left: 24px;
  background: var(--tab); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 10px 22px 11px; border-radius: 10px 10px 0 0;
}
.cat-card:nth-child(3n+2) .cat-tab { align-self: center; margin-left: 0; }
.cat-card:nth-child(3n) .cat-tab { align-self: flex-end; margin: 0 24px 0 0; }
.cat-body {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--tab);
  border-radius: 14px; box-shadow: var(--shadow-sheet); transition: box-shadow .15s, transform .15s;
}
.cat-card:hover .cat-body { transform: translateY(-2px); box-shadow: 0 1px 0 #d8d5ca, 0 12px 24px -12px rgba(34,48,74,.35); }
.cat-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-art-blank { background: color-mix(in srgb, var(--tab) 14%, #fff); }
.cat-text { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 24px; }
.cat-tag { color: var(--ink-soft); font-size: 1rem; }
.cat-link { color: var(--tab); font-weight: 650; margin-top: auto; }
.cat-card:hover .cat-link { text-decoration: underline; }

.page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.page-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--tab);
  border-radius: 8px; padding: 16px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sheet);
}
.page-card:hover .page-title { color: var(--blue-dk); text-decoration: underline; }
.page-thumb {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-bottom: 6px;
}
.page-cat { font-size: .8rem; font-weight: 700; color: color-mix(in srgb, var(--tab) 70%, var(--ink)); }
.page-title { font-weight: 700; line-height: 1.3; }
.page-meta { color: var(--ink-soft); font-size: .88rem; }
.page-desc { color: var(--ink-soft); font-size: .9rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-grid p { color: var(--ink-soft); margin: .3rem 0 0; font-size: .97rem; }

/* ---------------- category & page heads ---------------- */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs span { margin-inline: 6px; }
.cat-head, .page-head { border-left: 5px solid var(--tab); padding-left: 18px; margin-bottom: 26px; }
.page-stats { color: var(--ink-soft); font-size: .95rem; }

/* ---------------- designs grid ---------------- */
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.design-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sheet); overflow: hidden;
  display: flex; flex-direction: column;
}
.design-img {
  display: block; width: calc(100% - 24px); height: auto; aspect-ratio: 600 / 849;
  object-fit: contain; margin: 12px 12px 0;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.design-thumb {
  aspect-ratio: 210 / 148; margin: 12px 12px 0; border: 1px solid var(--line); border-radius: 4px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff;
}
.thumb-title { font-size: .72rem; font-weight: 700; color: color-mix(in srgb, var(--tab) 65%, var(--ink)); white-space: nowrap; overflow: hidden; }
.thumb-body { flex: 1; border-radius: 2px; }
.thumb-calendar .thumb-body {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 14.2% 25%;
  border: 1px solid var(--line);
}
.thumb-lined .thumb-body { background-image: linear-gradient(transparent 14px, var(--line) 15px); background-size: 100% 16px; }
.thumb-grid .thumb-body {
  background-image: radial-gradient(circle at 5px 5px, color-mix(in srgb, var(--tab) 50%, #fff) 3px, transparent 4px);
  background-size: 18px 18px; border: 1px solid var(--line);
}
.thumb-chart .thumb-body {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--tab) 12%, #fff) 26%, transparent 26%),
                    linear-gradient(transparent 14px, var(--line) 15px);
  background-size: 100% 16px;
}
.thumb-list .thumb-body {
  background-image: radial-gradient(circle at 7px 8px, var(--line) 4px, transparent 5px),
                    linear-gradient(transparent 14px, var(--line) 15px);
  background-size: 100% 16px;
}
.design-info { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.design-info h3 { font-size: 1rem; }
.design-meta { color: var(--ink-soft); font-size: .85rem; margin: 0; }
.btn-dl { margin-top: auto; align-self: flex-start; padding: 9px 16px; font-size: .92rem; }

/* ---------------- prose / faq / related ---------------- */
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose h2 { margin-top: 2rem; }
.prose-page { max-width: 72ch; }
.intro { margin-bottom: 10px; }
.body { margin-top: 34px; }
mark { background: var(--hi); padding: 0 3px; border-radius: 3px; }

.faq { max-width: 72ch; margin-top: 34px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 650; cursor: pointer; padding-block: 10px; }
.faq p { color: var(--ink-soft); margin: 0 0 14px; }

.related { margin-top: 38px; border-top: 2px dashed var(--line); padding-top: 18px; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; text-decoration: none; font-size: .93rem; font-weight: 600;
}
.related a:hover { border-color: var(--blue); }

.empty { color: var(--ink-soft); background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 22px; max-width: 60ch; }
.notice-ok { background: #e8f6ec; border: 1px solid #bfe3c8; color: #1d5a2e; padding: 14px 18px; border-radius: 8px; max-width: 60ch; }

/* ---------------- contact form ---------------- */
.contact-form { max-width: 520px; display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button { align-self: flex-start; }

/* ---------------- footer ---------------- */
.site-foot { margin-top: 60px; background: var(--ink); color: #cfd6e4; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-block: 42px 26px; }
.foot-logo { font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 0 8px; }
.foot-logo span { color: #8fa0c4; font-weight: 500; font-size: 1rem; }
.foot-brand p { font-size: .93rem; max-width: 42ch; }
.foot-h { font-weight: 700; color: #fff; margin: 0 0 10px; }
.site-foot nav a { display: block; color: #cfd6e4; text-decoration: none; padding-block: 4px; font-size: .95rem; }
.site-foot nav a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid #38455f; padding-block: 16px; font-size: .85rem; color: #8fa0c4; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { display: none; }
  .cat-grid, .design-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cat-card:nth-child(n) .cat-tab { align-self: flex-start; margin: 0 0 0 20px; }
}
@media (max-width: 560px) {
  .head-row { flex-wrap: wrap; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .cat-grid, .design-grid, .page-grid, .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 34px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-head, .site-foot, .related, .search { display: none; }
}
