:root {
  --paper: #fbf8f3;
  --ink: #181519;
  --plum: #35142f;
  --orange: #eb4814;
  --line: #c8c0bb;
  --soft: #665d62;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.5 'Helvetica Neue',
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.wrap {
  width: min(91%, 1320px);
  margin: auto;
}
a {
  color: inherit;
}
.top {
  border-bottom: 1px solid #e8e1da;
}
.bar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -2px;
  line-height: 1;
  text-decoration: none;
}
.brand i {
  width: 24px;
  height: 24px;
  background: url('/art/icon.svg') center/contain;
}
.by {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  font-weight: 550;
  font-size: 15px;
}
.bar nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.bar nav a {
  font-size: 14px;
  text-decoration: none;
  font-weight: 650;
  color: var(--plum);
  padding: 7px 0;
  border-bottom: 3px solid transparent;
}
.bar nav a[aria-current],
.bar nav a:hover {
  border-color: var(--orange);
}
.hero {
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: center;
  overflow: hidden;
  padding: 35px 0 26px;
  border-bottom: 3px solid var(--plum);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.06;
}
h1 {
  font-size: clamp(44px, 6.25vw, 96px);
  font-weight: 800;
  letter-spacing: -0.067em;
  line-height: 0.94;
}
h1 span,
.arrow {
  color: var(--orange);
}
.hero p,
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.35;
}
.hero p {
  max-width: 490px;
  margin-top: 18px;
}
.hero img {
  width: 100%;
  height: clamp(170px, 19vw, 300px);
  object-fit: cover;
  object-position: right center;
  mix-blend-mode: multiply;
}
.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 7px;
}
h2 {
  font-size: clamp(28px, 2.7vw, 42px);
  letter-spacing: -0.055em;
  color: var(--plum);
}
.filters {
  display: flex;
  gap: 12px;
}
.filters input,
.filters select {
  height: 42px;
}
.filters select {
  min-width: 170px;
}
.search {
  position: relative;
}
.search:before,
.search:after {
  position: absolute;
  content: '';
  pointer-events: none;
}
.search:before {
  width: 11px;
  height: 11px;
  border: 2px solid var(--plum);
  border-radius: 50%;
  left: 14px;
  top: 12px;
}
.search:after {
  width: 8px;
  height: 2px;
  background: var(--plum);
  transform: rotate(48deg);
  left: 25px;
  top: 26px;
}
.search input {
  padding-left: 40px;
  width: clamp(170px, 21vw, 300px);
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: 1px solid #897d84;
  border-radius: 6px;
  padding: 9px 12px;
  background: #fffdf9;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #c44820;
  outline-offset: 3px;
}
.result,
.hint,
small,
.tags {
  font-size: 13px;
  color: var(--soft);
}
.result {
  margin: 0 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #574350;
  border-radius: 7px;
  padding: 7px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.card:hover {
  border-color: var(--orange);
  box-shadow: 0 3px 0 #dacdc3;
}
.cover {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.card .cover {
  aspect-ratio: 2.78;
}
.card-text {
  position: relative;
  padding: 11px 10px 13px;
  flex: 1;
}
.card h3 {
  font-size: clamp(22px, 2vw, 31px);
  letter-spacing: -0.052em;
}
.category {
  font-size: 14px;
  font-weight: 700;
  color: var(--plum);
}
.card p {
  font-size: 15px;
  line-height: 1.35;
  margin-top: 5px;
  padding-right: 25px;
}
.arrow {
  position: absolute;
  bottom: 10px;
  right: 7px;
  font-size: 25px;
  line-height: 1;
}
.lab .card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lab strong {
  align-self: flex-end;
  color: #aa3210;
  font-size: 15px;
  margin-top: 10px;
}
.empty {
  grid-column: 1/-1;
  padding: 20px 0;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  background: white;
  z-index: 10;
  padding: 12px;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px !important;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--soft);
}
footer b {
  color: var(--orange);
  margin: 0 7px;
}
.back,
.textlink {
  color: var(--plum);
  font-weight: 650;
  text-underline-offset: 4px;
}
.back {
  display: inline-block;
  margin: 30px 0;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
  margin-bottom: 40px;
}
.detail-art {
  min-width: 0;
}
.detail-art img {
  border: 1px solid var(--line);
}
.detail h1,
.narrow h1,
.owner h1 {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
}
.detail h1 {
  margin: 8px 0 16px;
}
.detail-content {
  overflow-wrap: anywhere;
}
.detail-content p {
  margin: 12px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}
button,
.button {
  appearance: none;
  background: var(--plum);
  color: #fff;
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid var(--plum);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #542248;
}
button:disabled {
  opacity: 0.6;
}
.secondary {
  background: transparent;
  color: var(--plum);
}
.secondary:hover {
  background: #efe8e3;
}
.narrow,
.owner {
  margin: 40px auto;
  max-width: 840px;
}
.owner {
  max-width: 1000px;
}
.narrow .lede,
.owner > p {
  margin: 16px 0 24px;
}
.panel {
  border-top: 1px solid var(--line);
  margin: 24px 0;
  padding: 23px 0;
}
.panel > p,
.panel > h3,
.panel > label {
  margin: 12px 0;
}
.panel h2,
.panel summary {
  font-size: 28px;
  color: var(--plum);
  font-weight: 750;
  letter-spacing: -0.04em;
}
.panel summary {
  cursor: pointer;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fields label,
.panel > label,
#issued label {
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 6px;
}
.wide {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
}
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 9px !important;
}
.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.hint,
small {
  font-weight: 400;
}
.row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.row span {
  overflow-wrap: anywhere;
}
#issued {
  margin-top: 16px;
}
#issued button {
  margin: 8px 0;
}
#review h3 {
  margin: 24px 0 14px;
}
#review .detail {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 6px;
  gap: 16px;
}
#review .detail h1 {
  font-size: 32px;
}
#review form {
  margin: 20px 0;
}
pre {
  font:
    14px/1.65 ui-monospace,
    monospace;
  background: #eee9e3;
  padding: 15px;
  border-radius: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
p[role='status']:not(:empty) {
  margin: 12px 0;
}
.result[role='status'] {
  margin: 0 0 16px;
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 48% 52%;
  }
  .filters select {
    min-width: 135px;
  }
  .tools {
    gap: 10px;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .detail-art {
    max-width: 700px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: 91%;
  }
  .bar {
    min-height: 62px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 26px;
  }
  .brand i {
    width: 18px;
    height: 18px;
  }
  .by {
    display: none;
  }
  .bar nav {
    gap: 14px;
  }
  .bar nav a {
    font-size: 12px;
  }
  .hero {
    display: block;
    position: relative;
    padding: 30px 0 23px;
  }
  .hero > div {
    position: relative;
    z-index: 1;
  }
  .hero h1 {
    font-size: clamp(44px, 12vw, 65px);
  }
  .hero p {
    max-width: 91%;
    font-size: 16px;
    margin-top: 16px;
  }
  .hero img {
    position: absolute;
    right: -6%;
    top: 15px;
    width: 45%;
    height: 89px;
    object-fit: cover;
    object-position: right;
  }
  .tools {
    display: block;
    margin: 22px 0 9px;
  }
  .filters {
    margin-top: 15px;
    gap: 8px;
  }
  .filters label {
    min-width: 0;
    flex: 1;
  }
  .filters .search {
    flex: 1.25;
  }
  .filters input,
  .filters select {
    font-size: 14px;
    min-width: 0;
    width: 100%;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card h3 {
    font-size: 26px;
  }
  .card .cover {
    aspect-ratio: 2.78;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .row {
    align-items: flex-start;
  }
  .detail {
    gap: 22px;
  }
  .narrow,
  .owner {
    margin: 28px auto;
  }
  .narrow h1,
  .owner h1 {
    font-size: 43px;
  }
  .result {
    font-size: 12px;
  }
}
.hero img {
  filter: brightness(1.07);
}
@media (min-width: 851px) {
  .hero {
    padding: 22px 0;
  }
  .hero img {
    height: clamp(170px, 17vw, 265px);
  }
}
@media (max-width: 600px) {
  .hero img {
    width: 37%;
    right: -3%;
    top: 25px;
    height: 78px;
  }
  .hero h1 {
    font-size: clamp(36px, 10.8vw, 60px);
  }
}
