:root {
  --paper: #fff9fa;
  --ink: #381d2a;
  --muted: #745460;
  --berry: #a21956;
  --rule: #d8b8c4;
  --rose: #fbd7e2;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
::selection { background: var(--rose); }
[hidden] { display: none !important; }
main, footer, header { width: min(1160px, 92%); margin-inline: auto; }
header { border-top: 6px solid var(--ink); margin-top: 18px; }
.masthead { display: grid; grid-template-columns: 1fr 42%; align-items: stretch; background: var(--rose); border-bottom: 2px solid var(--ink); }
.masthead > div { align-self: center; padding: 20px clamp(14px, 4vw, 50px); }
.masthead h1, .wordmark { font: 900 clamp(40px, 7vw, 96px)/1.1 var(--serif); letter-spacing: -.035em; margin: 0; }
.masthead p { margin: 8px 0 0; font-size: 15px; }
.masthead img { width: 100%; height: clamp(146px, 15vw, 200px); object-fit: cover; object-position: 50% 40%; }
.compact { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.wordmark { font-size: 28px; }
.cataloghead, footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.cataloghead { margin-top: 28px; }
h2 { font: 800 29px/1.3 var(--serif); margin: 0; }
.cataloghead small { margin-left: 6px; color: var(--muted); font: 500 14px sans-serif; font-variant-numeric: tabular-nums; }
.search input { width: 260px; min-height: 44px; border: 1px solid var(--rule); border-radius: 2px; padding: 8px 13px; background: white; caret-color: var(--berry); }
.search input::placeholder { color: var(--muted); font-size: 14px; }
.filters { display: flex; border-bottom: 1px solid var(--rule); margin: 6px 0 18px; gap: 14px; }
.filters button { border: 0; border-bottom: 3px solid transparent; background: none; font-size: 14px; min-height: 44px; padding: 6px 5px; cursor: pointer; }
.filters button[aria-pressed=true] { border-bottom-color: var(--berry); color: var(--berry); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 26px 19px; }
.card { min-width: 0; display: block; }
.cover { aspect-ratio: 1; background: #f2e6eb; display: grid; place-items: center; width: 100%; }
.cover img { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; }
.card h3 { font: 700 17px/1.45 var(--serif); margin: 9px 0 3px; overflow-wrap: anywhere; }
.card:hover h3, .back:hover { text-decoration: underline; text-underline-offset: .18em; color: var(--berry); }
.cardtext p { display: inline; font-size: 13px; color: var(--muted); }
.cardtext small { font-size: 12px; color: var(--berry); white-space: nowrap; }
.cardtext small::before { content: ' / '; color: var(--rule); }
.placeholder { color: var(--muted); font: 700 18px var(--serif); }
.back { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: var(--berry); margin: 8px 0; }
.detail { display: grid; grid-template-columns: minmax(150px, 30%) minmax(0,1fr); align-items: center; gap: clamp(18px,4vw,56px); }
.detail h1 { font: 800 clamp(25px,3.5vw,46px)/1.35 var(--serif); margin: 0; overflow-wrap: anywhere; }
.byline { color: var(--muted); font-size: 15px; margin: 8px 0; }
.summary { max-width: 44em; margin: 14px 0; }
.cta { display: inline-block; background: var(--berry); color: white; font-weight: 700; border-radius: 2px; padding: 12px 18px; }
.cta:hover { background: #861247; }
.gallery { border-top: 2px solid var(--ink); margin-top: 28px; padding-top: 16px; }
.samples { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin-top: 14px; }
.samples a { display: block; cursor: zoom-in; }
.samples img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.gallery > p { color: var(--muted); font-size: 14px; }
.ad { text-align: center; margin-block: 25px; }
.ad small { display: block; }
footer { border-top: 1px solid var(--rule); margin-block: 36px 0; padding-block: 22px; font-size: 12px; color: var(--muted); }
footer b { font: 700 18px var(--serif); white-space: nowrap; }
@media (max-width: 620px) {
  header { margin-top: 8px; }
  .masthead { grid-template-columns: 57% 43%; }
  .masthead > div { padding: 12px; }
  .masthead h1 { font-size: clamp(32px,10vw,58px); }
  .masthead img { height: 110px; }
  .masthead p { font-size: 12px; }
  .cataloghead { display: grid; gap: 12px; margin-top: 20px; }
  .search input { width: 100%; }
  .samples { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  .card h3 { font-size: 16px; }
  .detail { grid-template-columns: minmax(80px,32%) 1fr; align-items: start; gap: 14px; }
  .detail h1 { font-size: 22px; }
  .summary { font-size: 14px; }
  .cta { font-size: 14px; }
}
footer { flex-wrap: wrap; }
footer a { color: var(--berry); text-decoration: underline; }
.circle-link { text-decoration: underline; text-underline-offset: .2em; }
.circle-link:hover { color: var(--berry); }

.related { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 16px; }
.related a { text-decoration: underline; text-underline-offset: .2em; }
.synopsis { margin: 16px 0; max-width: 44em; }
.synopsis p { margin: 0 0 .35em; font-weight: 400; }
.synopsis strong { font-weight: 700; }

/* Manga magazine masthead and compact cover racks. */
:root { --ink: #241529; --paper: #fff5f1; --rule: #ab7a91; --rose: #ffaacb; }
header { margin-top: 8px; }
.masthead {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border: 3px solid var(--ink);
  background: radial-gradient(#c44c85 1px, transparent 1.2px) 0 0 / 6px 6px, var(--rose);
  box-shadow: 4px 4px 0 var(--ink);
}
.masthead > div { padding: 15px clamp(10px, 2.8vw, 35px); min-width: 0; }
.masthead h1, .wordmark, footer b {
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-weight: 1000;
  letter-spacing: -.065em;
}
.masthead h1 { font-size: clamp(24px, 6.8vw, 85px); transform: rotate(-2deg); line-height: 1.15; }
.masthead h1 span, .wordmark span { color: #fff3a6; -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px var(--ink); }
.masthead p { display: inline-block; margin: 9px 0 0; padding: 2px 7px; color: white; background: var(--ink); font-weight: 700; }
.masthead img { height: clamp(135px, 14vw, 180px); clip-path: polygon(7% 0,100% 0,100% 100%,0 100%); }
.compact { background: var(--rose); border-block: 3px solid var(--ink); padding: 7px 13px; }
.cataloghead { margin-top: 22px; }
.cataloghead h2 { padding: 4px 12px; background: #ffe669; box-shadow: 3px 3px var(--ink); border: 2px solid var(--ink); transform: rotate(-1deg); }
.filters { margin-bottom: 10px; border-bottom: 3px solid var(--ink); gap: 3px; }
.filters button { padding-inline: 15px; font-weight: 700; }
.filters button[aria-pressed=true] { background: var(--ink); color: white; border-color: #ff578c; }
.grid { grid-template-columns: repeat(auto-fill,minmax(158px,1fr)); gap: 14px 9px; }
.card { border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.card .cover { border: 1px solid var(--ink); }
.card h3 { font: 800 16px/1.35 "Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif; margin: 6px 0 1px; }
.cta { border: 2px solid var(--ink); box-shadow: 3px 3px var(--ink); }
@media (max-width: 620px) {
  .masthead { grid-template-columns: 60% 40%; }
  .masthead h1 { font-size: 8vw; }
  .masthead img { height: 98px; }
  .masthead p { font-size: 11px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; }
}
