/* jonescoartdept.com: built on the Jonesco System (system.css, loaded first).
   Fonts, tokens and base come from there; this file holds what is specific to the shop. */
:root {
  --magenta: var(--accent);   /* site names for the system tokens */
  --yellow: var(--highlight);
}
body { font-size: 16px; }   /* shop copy is short and dense; the system default is 17px */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.caps { text-transform: uppercase; letter-spacing: 0.02em; }

/* Header */
/* No bottom border: black-on-black it only made the bar taller and pushed its contents 2px above the visual center */
header { position: sticky; top: 0; background: var(--ink); color: var(--paper); z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; filter: invert(1); }
.brand span { font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; white-space: nowrap; padding-top: 1px; }
nav { display: flex; gap: 28px; }
/* Transparent top border balances the hover underline so the link text stays vertically centered */
nav a { font-weight: 600; font-size: 14px; text-transform: uppercase; text-decoration: none; padding: 5px 0 3px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
nav a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

/* Hero */
.hero { border-bottom: var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.tag { display: inline-block; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 13px; text-transform: uppercase; padding: 6px 12px; margin-bottom: 20px; }
h1 { font-weight: 800; font-size: clamp(48px, 7.4vw, 104px); line-height: 0.92; text-transform: uppercase; margin: 0 0 24px; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--magenta); display: block; }
.lede { font-size: 19px; max-width: 30em; margin: 0 0 32px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 82%; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 14px 28px rgba(0,0,0,.18), 0 36px 64px rgba(0,0,0,.18); }

/* Buttons, styled after the Big Cartel add-to-cart block */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  font-family: inherit; font-weight: 600; font-size: 15px; text-transform: uppercase; text-decoration: none;
  border: var(--thin); cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--magenta); border-color: var(--magenta); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }   /* outline only; fills black on hover */
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .plus { font-size: 28px; font-weight: 400; line-height: 1; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn .stack small { font-size: 13px; font-weight: 600; }
.btn[aria-disabled="true"] { background: var(--gray); color: #777; border-color: var(--gray); cursor: default; }

/* Section headings */
section { border-bottom: var(--rule); scroll-margin-top: 72px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 48px 0 0; margin-bottom: 40px; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1; text-transform: uppercase; margin: 0; }
.sec-head p { margin: 0; font-weight: 600; text-transform: uppercase; font-size: 14px; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.product { display: flex; flex-direction: column; }
/* Scale drawing: one SVG so both books share the same inches-to-pixels scale */
.schematic { margin: 0 0 48px; padding: 32px 24px 24px; border: var(--rule);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 20px 20px; }
.schematic svg { display: block; width: 100%; max-width: 860px; height: auto; margin: 0 auto; overflow: visible; }
.schematic text { font-family: 'Libre Franklin', system-ui, sans-serif; }
.dia { cursor: pointer; }
.dia .book { fill: var(--newsprint, #edebe6); stroke: var(--ink); stroke-width: 4; transition: fill .15s; }
.dia .band { fill: var(--ink); }
.dia .title { fill: var(--yellow); font-weight: 800; text-anchor: middle; }
.dia .safe { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .45; }
.dia .cross { stroke: var(--ink); stroke-width: 2; }
.dia .pp { font-size: 15px; font-weight: 600; text-anchor: end; }
.dia .dim { stroke: var(--ink); stroke-width: 2; }
.dia .ext { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.dia .dimtxt { font-size: 18px; font-weight: 800; text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: var(--paper); stroke-width: 10px; stroke-linejoin: round; }
.dia .lbl { font-size: 26px; font-weight: 800; text-anchor: middle; }
.dia .lbl2 { font-size: 17px; font-weight: 600; text-anchor: middle; transition: fill .15s; }
.dia:hover .book, .dia:focus-visible .book { fill: var(--magenta); }
.dia:hover .safe, .dia:focus-visible .safe { stroke: var(--paper); opacity: .8; }
.dia:hover .cross, .dia:focus-visible .cross { stroke: var(--paper); }
.dia:hover .pp, .dia:focus-visible .pp { fill: var(--paper); }
.dia:hover .lbl2, .dia:focus-visible .lbl2 { fill: var(--magenta); text-decoration: underline; }
.dia:focus { outline: none; }
.dia:focus-visible .book { stroke-width: 8; }
.product h3 { font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.1; margin: 24px 0 0; padding-bottom: 14px; border-bottom: var(--rule); }
.price { font-weight: 800; font-size: 24px; padding: 10px 0; border-bottom: var(--thin); }
.specs { list-style: none; margin: 0 0 20px; padding: 0; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: var(--thin); font-size: 15px; }
.specs li b { font-weight: 600; text-transform: uppercase; font-size: 13px; padding-top: 2px; }
.blurb { margin: 0 0 24px; }
.product .btn { margin-top: auto; width: 100%; }
.phone-only { display: none; }

/* Inside */
/* White section, newsprint "paper": multiply tints the white in the scans newsprint and leaves the black lines alone */
.all30-box { background: var(--newsprint, #edebe6); border: var(--rule); margin-bottom: 40px; }
.all30 { mix-blend-mode: multiply; }
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 56px; }
.page { margin: 0; background: var(--newsprint, #edebe6); border: var(--rule); }
.page img { mix-blend-mode: multiply; width: 100%; aspect-ratio: 5 / 8; object-fit: cover; }

/* About */
/* About + footer read as one black block */
.about { background: var(--ink); color: var(--paper); border-bottom: 1px solid #333; }
.about img { filter: invert(1); }
.about a { text-decoration: none; border-bottom: 3px solid var(--yellow); }
.about a:hover { color: var(--yellow); }
.about .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.about p { font-size: 19px; max-width: 34em; margin: 0 0 12px; }

/* Footer */
footer { background: var(--ink); color: var(--paper); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
footer .links { display: flex; gap: 28px; flex-wrap: wrap; }
footer a { font-weight: 600; font-size: 14px; text-transform: uppercase; text-decoration: none; }
footer a:hover { color: var(--yellow); }
footer small { font-size: 13px; }

@media (max-width: 860px) {
  .hero .wrap, .products, .about .wrap { grid-template-columns: 1fr; }
  .desk-only { display: none; }
  .phone-only { display: inline; }
  .product:not(.active) { display: none; }
  .hero .wrap { gap: 32px; padding-top: 32px; padding-bottom: 40px; }
  .hero-art { order: -1; }
  .pages { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about .wrap { gap: 24px; }
  .about img { width: 140px; }
  .sec-head { flex-direction: column; gap: 8px; padding-top: 36px; }
  .schematic { padding: 20px 8px 12px; margin-bottom: 32px; }
  .hero-art img { width: 72%; }
  /* The drawing shrinks a lot on phones, so enlarge its type; prices are on the cards below */
  .dia .lbl { font-size: 38px; }
  .dia .lbl2 { display: none; }
  .dia .dimtxt { font-size: 28px; stroke-width: 14px; }
  .dia .pp { font-size: 22px; }
  .dia.selected .book { fill: var(--magenta); }
  .dia.selected .safe { stroke: var(--paper); opacity: .8; }
  .dia.selected .cross { stroke: var(--paper); }
  .dia.selected .pp { fill: var(--paper); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bar { height: 68px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 17px; }
  nav { gap: 16px; }
  nav a.opt { display: none; }
  .ctas .btn { flex: 1 1 100%; }
}

/* ---- Trade Gothic type system ---- */
/* Display: Bold Condensed No. 20 for headlines and the wordmark */
h1, h2, h3, .brand span, .product h3, .tile-info h2 {
  font-family: 'Trade Gothic Bold Cond 20', 'Libre Franklin', sans-serif; font-weight: 700; letter-spacing: 0;
}
h1 { font-size: clamp(56px, 8.6vw, 124px); line-height: .9; letter-spacing: -.01em; }
h2 { font-size: clamp(36px, 4.8vw, 58px); letter-spacing: -.01em; }
.brand span { font-size: 32px; }
.product h3, .tile-info h2 { font-size: 32px; }

/* Labels: Bold No. 2 for small uppercase text */
.tag, nav a, .btn, .sec-head p, .price, .specs li b, footer a, .tile-price, .tile-sub b, .tile-flag, .dia text {
  font-family: 'Trade Gothic Bold 2', 'Libre Franklin', sans-serif; font-weight: 700; letter-spacing: .03em;
}
@media (max-width: 560px) {
  .brand span { font-size: 22px; }
}

/* Room for the macron in YŌKAI under the tight headline leading */
.hero .tag { margin-bottom: 30px; }


/* Case rule (Jonesco System 1.1): the page hero stays condensed caps;
   titles read in groups (shop tiles, product cards) are sentence case in Bold No. 2 */
.product h3, .tile-info h2 {
  font-family: 'Trade Gothic Bold 2', 'Libre Franklin', sans-serif; text-transform: none; letter-spacing: 0; font-size: 26px; line-height: 1.15;
}
