/* AnimeAnime shop: paper and ink, like a small print studio's catalogue (the look the owner approved for the shop on
   2026-11-19: paper #f2eee5, ink #1a1717, a red seal, Shippori Mincho B1 for words, IBM Plex Mono for the small print). */
:root { --paper: #f2eee5; --plate: #fbf9f4; --ink: #1a1717; --soft: #6d6760; --seal: #c23b22; --line: #1a1717; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 "Shippori Mincho B1", Georgia, serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.mono, .label, nav, .crumb, .meta, .price .label, .by, footer { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.name { font-weight: 800; font-size: 24px; text-decoration: none; letter-spacing: .01em; }
nav { display: flex; gap: 26px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
nav a { text-decoration: none; }
nav a.here, nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* intro */
.intro { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 56px 0 46px; border-bottom: 1px solid var(--line); }
.intro h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.12; margin: 0; }
.intro p { font-size: 18px; margin: 4px 0 0; }
.seal { width: 76px; height: 76px; background: var(--seal); color: #f6efe4; display: grid; grid-template-columns: 1fr 1fr; place-items: center;
        font-weight: 800; font-size: 26px; line-height: 1; padding: 8px; margin-top: 22px; border-radius: 3px; transform: rotate(-2deg); }

/* filter tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 26px 0 6px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.tabs button { font: inherit; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 7px 14px; cursor: pointer; letter-spacing: .03em; }
.tabs button.on { background: var(--ink); color: var(--paper); }

/* product grid */
.grid { list-style: none; margin: 0; padding: 26px 0 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 36px; }
.item a { text-decoration: none; display: block; }
.plate { background: var(--plate); border: 1px solid var(--line); padding: 14px; aspect-ratio: 3 / 4; overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.item a:hover .plate img { transform: scale(1.03); }
.item h3 { font-weight: 800; font-size: 21px; line-height: 1.25; margin: 14px 0 2px; }
.item .jp { font-size: 15px; margin: 0; color: var(--soft); }
.meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin: 6px 0 0; border-top: 1px dotted var(--soft); padding-top: 7px; }
.empty { padding: 60px 0; color: var(--soft); }

/* product page */
.crumb { font-size: 13px; padding: 22px 0 0; color: var(--soft); }
.crumb a { text-decoration: none; }
.product { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; padding: 26px 0 56px; border-bottom: 1px solid var(--line); }
.gallery .main { background: var(--plate); border: 1px solid var(--line); padding: 18px; }
.gallery .main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--plate); cursor: pointer; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.buy h1 { font-weight: 800; font-size: 38px; line-height: 1.15; margin: 6px 0 4px; }
.buy .label { font-size: 13px; letter-spacing: .03em; margin: 0; }
.words { margin: 18px 0 8px; }
.words p { margin: 0 0 10px; }
.choose { margin: 22px 0 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label { display: inline-block; min-width: 52px; text-align: center; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer;
              font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; }
.opts input:checked + label { background: var(--ink); color: var(--paper); }
.opts input:focus-visible + label { outline: 2px solid var(--seal); outline-offset: 2px; }
.price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dotted var(--soft); border-bottom: 1px dotted var(--soft);
         padding: 10px 0; margin: 24px 0 16px; }
.price b { font-size: 26px; }
button.cart, a.cart { display: block; width: 100%; text-align: center; background: var(--ink); color: var(--paper); border: 0; padding: 15px 18px;
                      font: 800 17px/1 "Shippori Mincho B1", Georgia, serif; cursor: pointer; text-decoration: none; }
button.cart:disabled { opacity: .5; cursor: default; }
.by { font-size: 12px; color: var(--soft); margin: 10px 0 0; text-align: center; }
.facts { margin: 22px 0 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dotted var(--soft); }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }
.more h2 { font-weight: 800; font-size: 26px; margin: 46px 0 0; }

/* cart */
.cartpage { max-width: 640px; padding: 40px 0 80px; }
.cartpage h1 { font-weight: 800; font-size: 38px; margin: 0 0 20px; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dotted var(--soft); }
.lines img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--plate); border: 1px solid var(--line); }
.lines .qty { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--soft); }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 12px; color: var(--soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .product, .intro { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  nav { gap: 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .item h3 { font-size: 17px; }
  .plate { padding: 8px; }
  .buy h1 { font-size: 30px; }
}

/* the analytics notice: one quiet line at the bottom */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: var(--ink); color: var(--paper);
           display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; font: 13px/1.5 "IBM Plex Mono", ui-monospace, monospace; z-index: 50; }
.consent span { flex: 1 1 240px; }
.consent button { font: inherit; background: var(--paper); color: var(--ink); border: 0; padding: 7px 14px; cursor: pointer; }
.consent button.no { background: transparent; color: var(--paper); border: 1px solid var(--paper); }
