:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #f6f1e8;
  --card: #fffdf8;
  --line: #e2d8c8;
  --red: #9e2a2b;
  --red-dark: #711f20;
  --notice: #fff4d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 18px/1.55 "Segoe UI", sans-serif;
}
a { color: var(--red-dark); }
a:hover { color: var(--red); }
.wrap { width: min(980px, calc(100% - 2rem)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #fff;
  padding: .4rem .7rem;
}
.skip:focus { top: .5rem; }

.site-header {
  background: #221e1a;
  color: #f6f1e8;
}
.header-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
  font-size: 1.25rem;
}
.brand span { color: #e7b3b3; font-weight: 500; }
.nav { display: flex; gap: .4rem 1rem; align-items: center; flex-wrap: wrap; }
.nav > a, .nav summary {
  color: #f6f1e8;
  text-decoration: none;
  cursor: pointer;
  padding: .35rem .7rem;
  border-radius: 999px;
}
.nav > a:hover,
.nav > a:focus-visible,
.nav summary:hover,
.nav summary:focus-visible,
.nav details[open] > summary,
.nav > a[aria-current="page"] {
  background: var(--red);
  color: #fff;
}
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav details div {
  position: absolute;
  z-index: 2;
  min-width: 15rem;
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: .4rem;
  display: grid;
}
.nav details a {
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: .4rem;
  color: var(--ink);
}
.nav details a:hover,
.nav details a:focus-visible {
  background: var(--red);
  color: #fff;
}

main { padding: 2rem 0 3rem; }
h1, h2, h3 { line-height: 1.2; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: 2.3rem; margin: 0 0 1rem; }
.lead { font-size: 1.15rem; }
.meta, .more { color: var(--muted); }

.guide-grid, .post-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.guide-grid a, .post-list a {
  display: grid;
  gap: .2rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: .9rem 1rem;
  text-decoration: none;
  color: inherit;
}
.guide-grid a:hover, .post-list a:hover { border-color: var(--red); }
.guide-grid small, .post-list time, .post-list span { color: var(--muted); font-size: .92rem; }
.post-list strong { font-size: 1.15rem; }
.post-list span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice {
  background: var(--notice);
  border: 1px solid #e2c98a;
  padding: .8rem 1rem;
}
.prose { font-size: 1.05rem; }
.prose img { max-width: 100%; height: auto; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-bottom: .35rem; }
.prose .alignleft, .prose .alignright, .prose figure {
  float: none;
  display: block;
  margin: 1.2rem auto;
  max-width: 100%;
}
.prose figure img, .prose .wp-caption img { display: block; margin: 0 auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }

.answer {
  background: var(--card);
  border-left: 4px solid var(--red);
  padding: 1rem 1.15rem;
  margin: 1.2rem 0 1.6rem;
}
.answer p { margin: 0; }
.picks { padding-left: 1.2rem; }
.picks li { margin: .35rem 0; }

.size-chart {
  margin: 1rem 0 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: .7rem .7rem .4rem;
}
.size-chart img { display: block; width: 100%; height: auto; }
.size-chart figcaption { color: var(--muted); font-size: .92rem; padding: .55rem .2rem .2rem; }

.prose figure.system-shot {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: .85rem 1.15rem;
  align-items: center;
  float: none;
  margin: .2rem 0 1.4rem;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: .75rem .9rem;
}
.prose figure.system-shot img {
  width: 200px;
  height: 132px;
  margin: 0;
  object-fit: contain;
  background: #fff;
}
.prose figure.system-shot figcaption {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .98rem;
}

.track-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.track-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.track-grid a:hover { border-color: var(--red); }
.track-grid img, .photo-fallback {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #fff;
}
.photo-fallback {
  display: grid;
  place-items: center;
  background: #221e1a;
  color: #f6f1e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}
.track-grid .tag {
  color: var(--red-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .85rem 1rem 0;
}
.track-grid strong { padding: .15rem 1rem 0; font-size: 1.2rem; }
.track-grid a > span:last-child {
  padding: .35rem 1rem 1rem;
  color: var(--muted);
  font-size: .95rem;
}

.compare { overflow-x: auto; margin: 1rem 0 1.6rem; }
.compare table { display: table; min-width: 760px; background: #fff; }
.compare th { text-align: left; background: #221e1a; color: #f6f1e8; }
.compare tr:nth-child(even) td { background: #faf7f2; }

.criteria {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
}
.criteria li {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1rem .9rem;
}
.criteria svg {
  width: 42px;
  height: 42px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.criteria h3 { margin: .4rem 0 .3rem; font-size: 1.2rem; }
.criteria p { margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}
.split.kinds { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split section {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem;
}
.split h3 { margin-top: 0; }
.split p { margin-bottom: 0; }

.qa { margin: 0 0 1.15rem; }
.qa p { margin-top: 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .45rem; vertical-align: top; background: #fff; }
.catalog-search { margin: .2rem 0 .8rem; }
.catalog-search label { display: grid; gap: .3rem; font-weight: 700; max-width: 18rem; }
.catalog-search input {
  font: inherit;
  font-weight: 400;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  background: #fff;
}
.catalog-wrap {
  max-height: calc(2.7rem * 15 + 2.9rem);
  overflow-y: scroll;
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
}
.prose table.catalog-table { display: table; width: 100%; border-collapse: collapse; font-size: .95rem; table-layout: fixed; overflow: visible; }
.catalog-table th { text-align: left; position: sticky; top: 0; z-index: 1; white-space: normal; height: auto; line-height: 1.2; }
.catalog-table td, .catalog-table th {
  white-space: nowrap;
  height: 2.7rem;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-table th { white-space: normal; height: auto; min-height: 2.7rem; overflow: visible; text-overflow: clip; }
.catalog-stamp { margin: 0 0 .7rem; color: var(--ink); }
.catalog-table th:nth-child(1), .catalog-table td:nth-child(1) { width: 18%; }
.catalog-table th:nth-child(3), .catalog-table td:nth-child(3) { width: 20%; white-space: normal; height: auto; }
.catalog-table th:nth-child(4), .catalog-table td:nth-child(4) { width: 16%; }
.catalog-table th:nth-child(5), .catalog-table td:nth-child(5) { width: 18%; }
.prose a.catalog-buy {
  display: inline-block;
  padding: .32rem .72rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.prose a.catalog-buy.is-in { background: linear-gradient(#63d184, #1c8d42); }
.prose a.catalog-buy.is-out { background: linear-gradient(#ffb44d, #e06d00); }
.prose a.fasc-button {
  display: inline-block;
  margin: .3rem .4rem .3rem 0;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: .55rem .9rem;
}
.button, button {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: .55rem .9rem;
  text-decoration: none;
  display: inline-block;
  font: inherit;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--red-dark); }
button.quiet { background: transparent; color: var(--muted); padding-left: 0; }
.buy { margin: 1.2rem 0; }
.buy .button { margin: 0 .4rem .4rem 0; }
.offer-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.offer-grid a {
  display: grid;
  grid-template-columns: 84px 1fr;
  column-gap: .75rem;
  row-gap: .1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: .55rem .7rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.offer-grid a:hover { border-color: #b9aa96; }
.offer-grid img {
  grid-row: span 3;
  width: 84px;
  height: 64px;
  object-fit: contain;
  background: #fff;
}
.offer-grid strong { font-size: .98rem; line-height: 1.3; }
.offer-grid span { color: var(--muted); font-size: .86rem; }
.offer-grid .button {
  justify-self: start;
  margin-top: .15rem;
  padding: 0;
  background: none;
  color: var(--red-dark);
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.offer-grid a:hover .button { color: var(--red); background: none; }

.lookup {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: end;
  margin: 1rem 0 1.3rem;
}
.lookup label {
  display: grid;
  gap: .3rem;
  font-weight: 700;
  flex: 1 1 16rem;
}
.lookup input {
  font: inherit;
  font-weight: 400;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  background: #fff;
}
.lookup-facts {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: .35rem .8rem;
  margin: 0 0 1.2rem;
  max-width: 40rem;
}
.lookup-facts dt { color: var(--muted); }
.lookup-facts dd { margin: 0; }

.editor { display: grid; gap: .8rem; max-width: 46rem; }
.editor label { display: grid; gap: .25rem; font-weight: 600; }
.editor input, .editor textarea {
  font: inherit;
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 400;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.2rem 0 2rem;
}
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row p { margin: 0; }

@media (max-width: 720px) {
  .nav details div { position: static; border: 0; background: transparent; padding: 0 0 .4rem; }
  .nav details a { color: #f6f1e8; }
  .nav details a:hover,
  .nav details a:focus-visible { background: var(--red); color: #fff; }
  h1 { font-size: 1.8rem; }
  .split { grid-template-columns: 1fr; }
  .prose figure.system-shot { grid-template-columns: 120px 1fr; }
  .prose figure.system-shot img { width: 120px; height: 88px; }
  .offer-grid { grid-template-columns: 1fr; }
  .wrap { width: min(980px, calc(100% - 1.2rem)); }
}
