/* Keep component rules and their responsive overrides together.
 * Rule order within each section is intentional; selectors retain their specificity.
 */

/* Base and theme */
* {
  box-sizing: border-box;
}

:root {
  --terracotta: #c9684a;
  --paper: #fffcfd;
  --paper-deep: #f5eaf0;
  --ink: #54465e;
  --muted: #807188;
  --line: #e7dce2;
  --gold: #cda0b5;
  --gold-dark: #925c77;
  --sage: #d5c4aa;
}

body {
  color: var(--ink);
  margin: 0;
  background: var(--paper);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button, input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #937658;
  outline-offset: 5px;
}

/* Site header */
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}

.site-header__link--active {
  padding: 25px 3px 22px;
  border-bottom: 2px solid var(--gold);
}

@media (max-width: 780px) {
  .site-header__actions {
    gap: 12px;
  }
}

.site-header {
  height: 88px;
  background: #fffcfd;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  margin: auto;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
}

.site-header__brand {
  gap: 12px;
}

.site-header__wordmark {
  color: var(--ink);
  font: 800 clamp(18px, 2.4vw, 25px)/1.4 "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: .07em;
}

.site-header__nav {
  gap: 12px;
}

.site-header__link {
  text-decoration: none;
  padding: 9px 19px;
  border-radius: 99px;
  background: #f7eef2;
  font-weight: 700;
}

.site-header__link:hover {
  background: #eddae3;
}

@media (max-width: 780px) {
  .site-header {
    height: auto;
  }

  .site-header__inner {
    width: calc(100% - 32px);
    padding: 16px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .site-header__nav {
    display: flex;
    justify-content: center;
    font-size: 12px;
  }

  .site-header__link {
    padding: 6px 16px;
  }
}

.site-header__link.site-header__link--cream {
  background: #f2ecdf;
  color: #79664c;
}

.site-header__nav {
  flex-wrap: wrap;
}

.site-header__account form {
  margin: 0;
}

.account-logout {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

@media (min-width: 781px) {
  .site-header {
    height: auto;
    min-height: 88px;
  }

  .site-header__inner {
    min-height: 88px;
    gap: 20px;
    padding-block: 14px;
  }
}

.site-header__menus {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__account {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.site-header__account-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.site-header__account-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 780px) {
  .site-header__menus {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .site-header__account {
    border-left: 0;
    padding-left: 0;
    justify-content: center;
    gap: 20px;
  }

  .site-header__account-link {
    font-size: 11px;
  }
}

/* Site footer */
.site-footer {
  color: var(--muted);
}

.site-footer__link {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--ink);
}

.site-footer {
  text-align: center;
  font-size: 12px;
  border-top: 1px solid #e5d5df;
  background: #f5edf1;
  padding: 30px 20px;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 12px 24px;
}

.site-footer p {
  line-height: 1.9;
}

/* Home */
.home-page {
  min-height: calc(100vh - 126px);
}

.home-shell {
  margin: 0 auto;
  padding: 34px 0 54px;
}

.home-hero-card {
  display: grid;
}

.home-kicker {
  margin: 0 0 10px;
}

.home-hero-card h1 {
  margin: 0 0 15px;
  font: 500 clamp(27px, 3.1vw, 43px)/1.35 Georgia, "Yu Mincho", serif;
}

.home-hero-card p:not(.home-kicker) {
  margin: 0;
  font: 13px/1.8 "Yu Mincho", serif;
}

.home-primary-button {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
}

.home-hero-card__art {
  position: relative;
  min-height: 268px;
}

.home-section__heading {
  display: flex;
  align-items: baseline;
}

.home-section h2 {
  margin: 0;
  font: 500 20px Georgia, "Yu Mincho", serif;
}

.home-section__heading a {
  color: var(--gold-dark);
}

@media (max-width: 780px) {
  .home-shell {
    padding-bottom: 24px;
  }

  .home-hero-card {
    min-height: 0;
  }
}

.home-page {
  background: var(--paper);
}

.home-shell {
  width: min(1180px, calc(100% - 48px));
  padding-top: 28px;
  padding-bottom: 72px;
}

.home-hero-card {
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  position: relative;
  min-height: 410px;
  margin-top: 0;
  border-radius: 36px;
  border: 1px solid #e8dbe2;
  background: #f5edf1;
}

.home-hero-card__copy {
  align-self: center;
  padding: 46px;
  z-index: 1;
}

.home-kicker {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 20px;
  border-radius: 99px;
  background: #ffffff;
  color: #925c77;
  font-size: 12px;
  letter-spacing: .06em;
}

.home-hero-card h1 {
  font-family: inherit;
  font-size: clamp(24px, 2.7vw, 35px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .06em;
}

.home-hero-card p:not(.home-kicker) {
  font-family: inherit;
  font-size: 14px;
  line-height: 2;
  color: #79657d;
}

.home-primary-button {
  margin-top: 26px;
  padding: 13px 26px;
  background: #a56c85;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .18s;
}

.home-primary-button:hover {
  background: #925c77;
}

.home-hero-card__art {
  display: grid;
  place-items: center;
  min-width: 0;
  background: transparent;
}

.home-cat {
  display: block;
  width: 112%;
  max-width: 560px;
  height: auto;
}

.home-section {
  margin-top: 56px;
}

.home-section__heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.home-section h2 {
  font-family: inherit;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .04em;
}

.home-section h2::before {
  content: "\273F";
  margin-right: 10px;
  color: #bd8ca4;
}

.home-section__heading a {
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 780px) {
  .home-shell {
    width: calc(100% - 32px);
    padding-top: 22px;
  }

  .home-hero-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .home-hero-card__copy {
    padding: 30px 26px 8px;
  }

  .home-hero-card h1 {
    font-size: clamp(23px, 5.8vw, 30px);
  }

  .home-hero-card p:not(.home-kicker) {
    font-size: 13px;
  }

  .home-hero-card__art {
    min-height: 0;
  }

  .home-cat {
    width: 86%;
    max-width: 360px;
  }

  .home-section {
    margin-top: 38px;
  }

  .home-section h2 {
    font-size: 18px;
  }

  .home-section__heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-primary-button {
    transition: none;
  }
}

.home-hero-card h1 {
  color: #755284;
}

.home-hero-card h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 7px;
  margin-top: 15px;
  border-radius: 99px;
  background: linear-gradient(90deg, #cfa4b9 33%, #ffe4a0 33% 66%, #d9c9ae 66%);
}

.home-poll-title {
  display: block;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.6;
}

.home-poll-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.home-discovery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.home-discovery > .home-section, .home-discovery__column {
  min-width: 0;
}

.home-discovery .poll-list {
  grid-template-columns: 1fr;
}

.home-museum__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f1e7;
  overflow-wrap: anywhere;
}

.home-museum__card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.home-museum__link {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-underline-offset: 4px;
}

@media (max-width: 780px) {
  .home-discovery {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Artworks and bookmarks */
.artwork-show {
  min-height: calc(100vh - 70px);
  padding: 30px max(28px, 5vw) 76px;
}

.artwork-show__topbar {
  width: min(1240px, 100%);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.artwork-show__back {
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
}

.artwork-show__back:hover {
  color: var(--gold-dark);
}

.artwork-show__topbar p {
  margin: 0;
  color: #a4927e;
  font: 10px/1.4 Georgia, serif;
  letter-spacing: .18em;
}

.artwork-show__topbar p span {
  margin: 0 5px;
  color: var(--gold);
}

.artwork-show__layout {
  width: min(1240px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  border: 1px solid #e0d5c5;
}

.artwork-show__heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 16px;
  min-width: 0;
  padding: 32px clamp(27px, 4vw, 62px);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  overflow-wrap: anywhere;
}

.artwork-show__heading h1, .artwork-show__heading .artwork-details__original {
  grid-column: 1;
}

.artwork-show__heading .bookmark-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
}

.artwork-gallery {
  position: relative;
  min-width: 0;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  border-right: 1px solid #dfd3c2;
}

.artwork-gallery__light {
  position: absolute;
  top: -90px;
  left: 50%;
  width: 72%;
  height: 330px;
  background: radial-gradient(ellipse, rgba(255, 253, 243, .85), transparent 68%);
  pointer-events: none;
}

.artwork-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.artwork-frame::before {
  border: 1px solid rgba(83, 53, 19, .72);
}

.artwork-frame__inner {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-frame__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(520px, 62vh);
  object-fit: contain;
}

.artwork-frame__empty {
  width: 590px;
  max-width: 100%;
  height: min(520px, 62vh);
  min-height: 380px;
  display: grid;
  place-content: center;
  gap: 12px;
}

.artwork-frame__empty span {
  font: 38px/1 Georgia, serif;
}

.artwork-frame__empty p {
  margin: 0;
  font: 13px "Yu Mincho", serif;
  letter-spacing: .08em;
}

.artwork-details {
  min-width: 0;
  padding: 20px clamp(32px, 4vw, 62px) 24px;
  overflow-wrap: anywhere;
}

.artwork-show__heading h1 {
  margin: 0;
  font: 500 clamp(24px, 2.5vw, 36px)/1.45 Georgia, "Yu Mincho", serif;
  letter-spacing: .035em;
}

.artwork-details__original {
  margin: 8px 0 0;
  color: #786f65;
  font: 400 13px/1.7 Georgia, "Yu Mincho", serif;
  overflow-wrap: anywhere;
}

.artwork-facts {
  margin: 0;
}

.artwork-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(215, 199, 175, .58);
}

.artwork-facts > div:last-child {
  border-bottom: 0;
}

.artwork-facts dt {
  font-size: 11px;
  letter-spacing: .1em;
}

.artwork-facts dd {
  margin: 0;
  font: 14px/1.65 "Yu Mincho", serif;
}

.artwork-facts__artist {
  display: block;
  overflow-wrap: anywhere;
}

.artwork-facts__artist + .artwork-facts__artist {
  margin-top: 8px;
}

.artwork-facts__original-name, .artwork-facts__source-note {
  display: block;
  margin-top: 3px;
  font: 400 12px/1.7 Georgia, "Yu Mincho", serif;
  overflow-wrap: anywhere;
}

.artwork-index {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 80px;
}

.artwork-index__heading {
  margin: 0 0 28px;
  font: 500 clamp(24px, 2.5vw, 30px)/1.4 Georgia, "Yu Mincho", serif;
}

.artwork-search {
  margin-bottom: 32px;
  padding: 22px;
  border: 1px solid var(--line);
}

.artwork-search__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.artwork-search__field {
  min-width: 0;
}

.artwork-search__field label, .artwork-search__years legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  color: var(--ink);
}

.artwork-search__years {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: span 2;
}

.artwork-search input:not([type="submit"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.artwork-search select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.artwork-search__range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.artwork-search__help {
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.artwork-search__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

.artwork-search__tags--fixed {
  margin-top: 24px;
}

.artwork-search__tags-label {
  width: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

.artwork-search__tag {
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.artwork-search__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.artwork-search__actions input {
  border: 1px solid var(--gold-dark);
  background: var(--gold-dark);
  color: white;
  font: inherit;
}

.artwork-search__actions a {
  color: var(--muted);
  text-underline-offset: 4px;
}

.artwork-search__count {
  margin-left: auto;
  color: var(--muted);
}

.artwork-search :is(input, select, a):focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .artwork-search {
    padding: 16px;
  }

  .artwork-search__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .artwork-search__years {
    grid-column: auto;
  }
}

.artwork-index__list.likes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 0;
  list-style: none;
}

.artwork-index__item {
  min-width: 0;
}

.artwork-index__link {
  display: flex;
  gap: 12px;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  font: 15px/1.6 "Yu Mincho", serif;
}

.artwork-index__link:hover {
  color: var(--gold-dark);
}

.artwork-index__link:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.artwork-index__thumbnail {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  background: rgba(215, 199, 175, .15);
}

.artwork-index__thumbnail.likes-grid__item {
  width: 100%;
  height: auto;
}

.artwork-index__placeholder {
  color: var(--muted);
  font-size: 26px;
}

.artwork-index__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.artwork-index__artist {
  flex-grow: 1;
  min-width: 0;
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.artwork-index__year {
  min-width: 0;
  margin-top: -10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.artwork-index__title:has(+ .artwork-index__year) {
  flex-grow: 1;
}

.artwork-index__title + .artwork-index__year {
  margin-top: -6px;
}

@media (max-width: 900px) {
  .artwork-index__list.likes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .artwork-index__list.likes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
}
@media (max-width: 540px) {
  .artwork-index__link {
    gap: 8px;
    font-size: 13px;
  }

  .artwork-index__year {
    margin-top: -6px;
  }
}
@media (max-width: 360px) {
  .artwork-index__list.likes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container artwork-page (width < 850px) {
  .artwork-show__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .artwork-gallery {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 780px) {
  .artwork-show {
    padding: 16px 14px 44px;
  }

  .artwork-show__topbar {
    margin-bottom: 14px;
  }

  .artwork-show__topbar p {
    display: none;
  }

  .artwork-show__layout {
    grid-template-columns: 1fr;
  }

  .artwork-gallery {
    padding: 20px 16px;
    border-right: 0;
    border-bottom: 1px solid #dfd3c2;
  }

  .artwork-frame {
    padding: 10px;
  }

  .artwork-frame__inner {
    padding: 12px;
  }

  .artwork-frame__image {
    max-height: 55vh;
  }

  .artwork-frame__empty {
    height: min(420px, 55vh);
    min-height: 280px;
  }

  .artwork-details {
    padding: 16px 24px 20px;
  }

  .artwork-show__heading h1 {
    font-size: 26px;
  }
}

.likes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 4px;
}

.likes-grid__item {
  width: 154px;
  height: 154px;
  overflow: hidden;
  border-radius: 10px;
}

.likes-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.8rem;
}

.artwork-keyword {
  text-decoration: underline;
}

.artwork-keyword:hover {
  color: var(--gold-dark);
  text-decoration-color: currentColor;
}

.artwork-keyword:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.artwork-search {
  border-radius: 24px;
  background: #ffffff;
}

.artwork-search input:not([type="submit"]) {
  border-radius: 12px;
  background: #fffcfd;
}

.artwork-search select {
  box-sizing: border-box;
  border-radius: 12px;
  background: #fffcfd;
}

.artwork-search__tag {
  background: #f5edf1;
  border-color: transparent;
  color: #955176;
}

.artwork-search__tag:hover {
  background: #ecdae3;
}

.artwork-search__actions input {
  cursor: pointer;
  border-radius: 99px;
  padding: 11px 26px;
}

.artwork-index__heading {
  letter-spacing: .035em;
  font-family: inherit;
  font-weight: 800;
}

.artwork-index__link {
  flex-direction: column;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  font-family: inherit;
}

.artwork-index__link:hover {
  border-color: #cba0b7;
}

.artwork-index__thumbnail.likes-grid__item {
  aspect-ratio: 1;
  border-radius: 14px;
}

.artwork-show__layout {
  border-radius: 28px;
}

.artwork-show__heading h1 {
  font-family: inherit;
  font-weight: 800;
}

.artwork-gallery {
  background: #f5f0e7;
}

.artwork-details {
  background: #ffffff;
}

@media (max-width: 780px) {
  .artwork-index__list.likes-grid {
    gap: 18px 12px;
  }

  .artwork-index__link {
    padding: 9px 9px 14px;
    border-radius: 17px;
  }
}

.artwork-facts div {
  border-color: #e7dde3;
}

.artwork-facts dt {
  color: #926b82;
}

.artwork-facts dd {
  font-family: inherit;
}

.artwork-keyword {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  color: #925c77;
  text-decoration-color: #d4bac9;
}

.artwork-search__tag:nth-of-type(3n + 2) {
  background: #f3eddf;
  color: #7d684d;
}

.artwork-search__tag:nth-of-type(3n) {
  background: #fff6d9;
  color: #80632c;
}

.artwork-frame {
  z-index: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.artwork-frame::before {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  content: none;
}

.artwork-frame__inner {
  padding: 8px;
  border: 0;
  background: #ffffff;
}

.artwork-gallery__light {
  transform: translateX(-50%);
  display: none;
}

.artwork-show__topbar {
  color: var(--muted);
}

.artwork-show__layout {
  overflow: hidden;
  border-color: var(--line);
  background: #ffffff;
}

.artwork-gallery {
  border-color: var(--line);
}

.artwork-details__original {
  font-family: inherit;
}

.artwork-show__back {
  color: var(--muted);
  font-family: inherit;
}

.artwork-frame__empty {
  text-align: center;
  background: #f3eddf;
  color: #856f58;
  border-radius: 8px;
}

.artwork-show {
  container: artwork-page / inline-size;
  background: var(--paper);
}

.artwork-facts__original-name, .artwork-facts__source-note {
  color: var(--muted);
  font-family: inherit;
}

.bookmark-actions {
  margin-top: 22px;
}

.bookmark-button {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 16px;
  background: #f3eddf;
  color: #826f55;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.bookmark-button:hover, .bookmark-button--saved {
  background: #e9dfcd;
}

.bookmark-button:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.bookmarks-page .button_to {
  margin: 14px 0 0;
}

.bookmarks-navigation {
  margin-top: 32px;
}

.bookmark-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.bookmark-icon--remove {
  font-size: 17px;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1;
}

.pagination > span {
  display: inline-flex;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 99px;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none;
}

.pagination .current > span {
  border: 1px solid transparent;
}

.pagination a {
  color: var(--ink);
  background: #f3eddf;
}

.pagination a:hover {
  color: var(--gold-dark);
  border-color: var(--line);
  background: var(--paper-deep);
}

.pagination a:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.pagination .current > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 99px;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none;
  color: #ffffff;
  border-color: #a56c85;
  background: #a56c85;
  font-weight: 700;
}

.pagination .gap {
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 40px;
  color: var(--muted);
}

@media (max-width: 540px) {
  .pagination {
    gap: 4px;
    margin-top: 32px;
    font-size: 12px;
  }

  .pagination a, .pagination .current > span {
    min-width: 36px;
    padding: 10px;
  }
}

/* Artists */
.artist-index {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 80px;
}

.artist-index__heading {
  margin: 0 0 28px;
  font: 500 clamp(24px, 2.5vw, 30px)/1.4 Georgia, "Yu Mincho", serif;
  letter-spacing: .035em;
}

.artist-index__list {
  margin: 0;
  padding: 0;
}

.artist-index__link {
  display: block;
  color: var(--ink);
  font: 15px/1.6 "Yu Mincho", serif;
}

.artist-index__link:hover {
  color: var(--gold-dark);
}

.artist-show {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 80px;
}

.artist-show__header {
  margin-bottom: 32px;
}

.artist-show__name {
  margin: 0;
  font: 500 clamp(26px, 3vw, 34px)/1.4 Georgia, "Yu Mincho", serif;
  letter-spacing: .035em;
}

.artist-show__original-name {
  margin: 8px 0 0;
  font: italic 15px/1.6 Georgia, serif;
}

.artist-show__facts {
  display: flex;
  margin: 18px 0 0;
}

.artist-show__facts div {
  display: flex;
  gap: 8px;
}

.artist-show__facts dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: .1em;
}

.artist-show__facts dd {
  margin: 0;
  font-size: 13px;
}

.artist-show__bio {
  margin: 20px 0 0;
  color: var(--ink);
  font: 14px/1.9 "Yu Mincho", serif;
}

.artist-show__artworks-heading {
  font: 500 20px Georgia, "Yu Mincho", serif;
}

.artist-index__heading, .artist-show__name {
  font-family: inherit;
  font-weight: 800;
}

.artist-index__list {
  list-style: none;
  border: 0;
  display: grid;
  gap: 12px;
}

.artist-index__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.artist-index__link {
  text-decoration: none;
  padding: 17px 22px;
  font-family: inherit;
}

.artist-index__link::after {
  content: "\2197";
  float: right;
  color: #99627e;
}

.artist-show__facts dt {
  color: #926b82;
}

.artist-show__bio {
  white-space: pre-wrap;
  font-family: inherit;
}

.artist-index__item:nth-child(even) {
  background: #faf6ee;
}

.artist-show__original-name {
  color: var(--muted);
  font-family: inherit;
}

.artist-show__artworks-heading {
  margin: 0 0 18px;
  letter-spacing: .03em;
  font-weight: 800;
  font-family: inherit;
}

.artist-show__header {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
}

.artist-show__facts {
  flex-wrap: wrap;
  gap: 12px 28px;
}

/* User accounts and forms */
.account-page {
  width: min(560px, calc(100% - 32px));
  margin: 48px auto 72px;
}

.account-card {
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.account-card h1 {
  margin: 12px 0 20px;
  font-size: clamp(23px, 4vw, 29px);
  line-height: 1.6;
}

.account-card p {
  font-size: 14px;
  line-height: 1.9;
}

.account-eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
}

.account-google {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border: 0;
  border-radius: 99px;
  background: #a56c85;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.account-google:hover {
  background: #925c77;
}

.account-help {
  color: var(--muted);
  font-size: 10px;
}

.account-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold-dark);
  text-underline-offset: 4px;
}

.account-email {
  margin: 24px 0;
  padding: 16px;
  border-radius: 14px;
  background: #f3eddf;
  font-size: 13px;
}

.account-email dt {
  color: var(--muted);
}

.account-email dd {
  margin: 6px 0 0;
}

.account-form label {
  display: block;
  margin: 24px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.account-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.account-errors {
  margin: 16px 0;
  color: #9a3658;
}

.account-avatar {
  display: block;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

.account-form input[type="file"] {
  display: block;
  max-width: 100%;
  font: inherit;
  font-size: 13px;
}

.account-form input[type="file"]::file-selector-button {
  padding: 8px 14px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #f3eddf;
  color: var(--ink);
  cursor: pointer;
}

.account-nyan {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  background: #f3eddf;
  font-size: 13px;
}

.account-nyan strong {
  font-size: 20px;
}

.account-nyan a {
  color: var(--gold-dark);
}

.account-form input[type="email"], .account-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.account-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}

.inquiry-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Polls */
.poll-page {
  width: min(1120px, calc(100% - 40px));
  margin: 44px auto 72px;
}

.poll-page h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.poll-eyebrow, .poll-back {
  color: var(--gold-dark);
  font-size: 13px;
}

.poll-description {
  overflow-wrap: anywhere;
}

.poll-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.poll-list-card, .home-notes__list {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.home-notes__list {
  display: grid;
  gap: 20px;
}

.home-note-card {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.home-note-card + .home-note-card {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.poll-list-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.poll-list-card span {
  color: var(--gold-dark);
  font-size: 13px;
}

.poll-message, .poll-empty {
  padding: 18px 22px;
  border-radius: 16px;
  background: #f3eddf;
}

.poll-choices {
  padding: 0;
  margin: 28px 0;
  border: 0;
  min-width: 0;
}

.poll-choices legend {
  margin-bottom: 18px;
  font-weight: 700;
}

.poll-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.poll-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
}

.poll-tile:has(input:checked) {
  border-color: #a56c85;
  background: #f5edf1;
}

.poll-tile:has(input:focus-visible) {
  outline: 3px solid #937658;
  outline-offset: 4px;
}

.poll-tile input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #a56c85;
}

.poll-tile__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  background: #f3eddf;
  border-radius: 12px;
  overflow: hidden;
}

.poll-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poll-placeholder {
  font-size: 32px;
  color: #9b856b;
}

.poll-tile__title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.poll-tile__artist {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.poll-choices:disabled .poll-tile {
  cursor: default;
}

.poll-reason {
  max-width: 640px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.poll-reason label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 700;
}

.poll-reason label:first-child {
  margin-top: 0;
}

.poll-reason select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.poll-reason textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  resize: vertical;
}

.poll-reason p {
  color: var(--muted);
  font-size: 12px;
}

.poll-submit {
  border: 0;
  border-radius: 99px;
  padding: 12px 24px;
  background: #a56c85;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.poll-submit:hover {
  background: #925c77;
}

.poll-errors {
  padding: 16px;
  border: 1px solid #e2b8c9;
  border-radius: 16px;
  color: #9a3658;
  background: #fff5f8;
}

.poll-errors ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 780px) {
  .poll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .poll-list {
    grid-template-columns: 1fr;
  }

  .poll-tile {
    padding: 10px;
    border-radius: 16px;
  }

  .poll-tile__title {
    font-size: 13px;
  }

  .poll-reason {
    padding: 20px;
  }
}
@media (max-width: 360px) {
  .poll-grid {
    grid-template-columns: 1fr;
  }
}

/* Nyan wallet, gacha and collection */
.gacha-page {
  width: min(1000px, calc(100% - 40px));
  margin: 44px auto 72px;
}

.gacha-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gacha-page h1 {
  margin: 8px 0 20px;
  font-size: clamp(25px, 4vw, 34px);
}

.gacha-page h2 {
  font-size: 21px;
}

.gacha-eyebrow, .gacha-text-link {
  color: var(--gold-dark);
}

.gacha-eyebrow {
  font-size: 13px;
}

.nyan-balance {
  margin: 0;
  padding: 10px 22px;
  border-radius: 99px;
  background: #f3eddf;
  font-size: 14px;
}

.nyan-balance strong {
  font-size: 25px;
}

.gacha-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 20px;
}

.gacha-card {
  padding: 30px;
  border: 1px solid #ead2d1;
  border-radius: 24px;
  background: #faf0ef;
  color: #744d50;
}

.gacha-card--daily {
  background: #fcf4f1;
}

.gacha-card .gacha-icon, .gacha-card .gacha-price {
  color: #a4656d;
}

.gacha-card .gacha-help {
  color: #8c6b70;
}

.gacha-card .gacha-button:not(:disabled) {
  background: #a76770;
}

.gacha-card .gacha-button:not(:disabled):hover {
  background: #93565e;
}

.gacha-icon {
  font-size: 30px;
  color: #b58e6e;
}

.gacha-price {
  font-size: 23px;
  font-weight: 700;
}

.gacha-button {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 99px;
  background: #a56c85;
  color: #ffffff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.gacha-button:hover {
  background: #925c77;
}

.gacha-button:disabled {
  background: #e3dce0;
  color: #70666d;
  cursor: default;
}

.gacha-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.gacha-message {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f3eddf;
}

.nyan-history {
  margin-top: 42px;
}

.nyan-history ul {
  padding: 0;
  list-style: none;
}

.nyan-history li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.nyan-history small {
  display: block;
  color: var(--muted);
}

.nyan-history strong {
  white-space: nowrap;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.collection-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.collection-card h2 {
  font-size: 16px;
}

.collection-card h2 a {
  text-decoration: none;
}

.collection-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f3eddf;
  overflow: hidden;
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-image span {
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

.gacha-secondary {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--gold-dark);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.gacha-secondary:hover {
  background: #f5edf1;
}

.gacha-result {
  max-width: 620px;
  text-align: center;
}

.gacha-result .collection-card {
  max-width: 420px;
  margin: 28px auto;
}

.gacha-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 780px) {
  .gacha-menu {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gacha-card {
    padding: 24px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .collection-card {
    padding: 12px;
  }
}
@media (max-width: 360px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }
}

.gacha-ticket {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #dbc1cf;
  border-radius: 24px;
  background: #f5edf1;
}

.gacha-ticket h2 {
  margin: 8px 0 14px;
}

.gacha-ticket .gacha-eyebrow {
  margin: 0;
}

@media (max-width: 780px) {
  .gacha-ticket {
    padding: 22px;
  }
}

.collection-card .gacha-secondary {
  padding: 6px 10px;
  font-size: 11px;
}

.collection-card .bookmark-button {
  padding: 6px 10px;
  font-size: 11px;
  gap: 4px;
}

.collection-card .bookmark-icon--remove {
  font-size: 14px;
}

.collection-artwork-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.collection-artwork-link:hover {
  color: var(--gold-dark);
}

.collection-artwork-link:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 4px;
  border-radius: 12px;
}

.collection-grid > .collection-card {
  display: flex;
  flex-direction: column;
}

.collection-grid > .collection-card > .button_to {
  margin: auto 0 0;
  padding-top: 14px;
}

.collection-grid > .collection-card > .button_to > .gacha-secondary {
  margin-top: 0;
}

/* Status messages */
.flash {
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.flash--account {
  width: min(560px, calc(100% - 32px));
}

@media (max-width: 780px) {
  .flash {
    width: calc(100% - 32px);
  }

  .flash--account {
    width: min(560px, calc(100% - 32px));
  }
}

/* Legal pages */
.legal-page {
  width: min(800px, calc(100% - 40px));
  margin: 48px auto 72px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.9;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
}

.legal-page .legal-date {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.legal-page section {
  margin-top: 32px;
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.7;
}

.legal-page p {
  margin: 12px 0;
}

.letter-page p + p {
  margin-top: 32px;
}

.legal-page ul {
  padding-left: 1.5em;
}

.legal-page li {
  margin: 8px 0;
}

.legal-page a {
  color: var(--gold-dark);
  text-underline-offset: 3px;
}

/* Getting started guide */
.guide-page {
  width: min(1000px, calc(100% - 40px));
  margin: 48px auto 72px;
  overflow-wrap: anywhere;
}

.guide-intro {
  text-align: center;
}

.guide-intro h1 {
  font-size: clamp(25px, 4vw, 34px);
}

.guide-intro p {
  line-height: 1.9;
}

.guide-section {
  margin-top: 120px;
}

.guide-section h2 {
  margin-top: 0;
  font-size: 23px;
}

.guide-section h3 {
  margin: 10px 0 16px;
  font-size: 20px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.guide-steps .account-card {
  padding: 24px;
}

.guide-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-questions dt {
  margin: 24px 0 10px;
  color: var(--gold-dark);
  font-size: 17px;
  font-weight: 700;
}

.guide-questions dd {
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
}

.guide-questions dd:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guide-questions a {
  color: var(--gold-dark);
  text-underline-offset: 3px;
}

@media (max-width: 780px) {
  .guide-page {
    width: calc(100% - 32px);
    margin-top: 32px;
  }

  .guide-steps, .guide-more {
    grid-template-columns: 1fr;
  }

  .guide-section h2 {
    font-size: 21px;
  }
}

/* Museum collections */
.museum-heading {
  margin-bottom: 36px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #faf0ef;
  overflow-wrap: anywhere;
}

.museum-heading .artwork-index__heading {
  margin: 8px 0 18px;
  font-size: clamp(25px, 4vw, 34px);
}

.museum-list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.museum-list-heading h2 {
  margin: 0;
}

.museum-list-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.museum-artwork-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.museum-artwork-source a {
  text-underline-offset: 3px;
}

.museum-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.museum-areas a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #f3eddf;
  font-size: 12px;
  text-decoration: none;
}

.museum-areas a[aria-current="page"] {
  color: #ffffff;
  background: #a56c85;
  border-color: #a56c85;
}

.museum-areas a:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.museum-unlinked {
  margin-top: 40px;
}

.museum-unlinked__list {
  padding: 0;
  list-style: none;
}

.museum-unlinked__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.museum-unlinked__artist {
  color: var(--muted);
}

.museum-unlinked__list a {
  color: var(--gold-dark);
  text-underline-offset: 3px;
}

/* Gifts */
.gift-page .gift-choices {
  min-width: 0;
  margin: 20px 0;
  padding: 0;
  border: 0;
}

.gift-page .gift-choices legend {
  margin-bottom: 12px;
}

.gift-page .gift-collection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gift-page .gift-choice {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.gift-page .gift-choice > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.gift-choice__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.gift-choice__title input {
  flex-shrink: 0;
  margin: 0;
  accent-color: #a56c85;
}

.gift-choice__title strong {
  min-width: 0;
}

.gift-page .gift-choice:has(input:checked) {
  border-color: #a56c85;
  background: #faf0ef;
}

.gift-page .gift-choice:has(input:focus-visible) {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.gift-page .gift-selected {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.gift-page .gift-selected img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.gift-page .gift-selected figcaption {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gift-selected__details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.gift-selected__details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.gift-selected__details dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .gift-page .gift-selected {
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
    gap: 12px;
  }
}
@media (max-width: 360px) {
  .gift-page .gift-collection {
    grid-template-columns: 1fr;
  }
}

.gift-page .gift-receipts {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  list-style: none;
}

.gift-receipts .gift-card {
  min-width: 0;
}

.gift-receipts .gift-card > a {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
}

.gift-receipts .gift-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.gift-receipt__details {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gift-receipt__details small {
  color: var(--muted);
}

.gift-receipts .gift-card > a:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .gift-receipts .gift-card > a {
    grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
    gap: 12px;
  }
}

.artwork-notes {
  --artwork-notes-color: #8c838f;
  box-sizing: border-box;
  width: min(1240px, 100%);
  min-width: 0;
  margin: 64px auto 0;
  padding-inline: clamp(20px, 4vw, 32px);
  color: var(--artwork-notes-color);
  overflow-wrap: anywhere;
}

.artwork-notes summary {
  width: fit-content;
  margin-inline: 0;
  color: inherit;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.artwork-notes summary::-webkit-details-marker {
  display: none;
}

.artwork-notes__arrow {
  display: inline-block;
  font-size: .75em;
}

.artwork-notes[open] .artwork-notes__arrow {
  transform: rotate(180deg);
}

.artwork-notes__note {
  margin-top: 20px;
  color: inherit;
  line-height: 1.9;
}

.artwork-notes__source {
  color: inherit;
  font-size: .75rem;
  line-height: 1.6;
}

.artwork-notes__source a {
  color: inherit;
}

.poll-history {
  margin-top: 40px;
}

.poll-history__scroll {
  overflow-x: auto;
}

.poll-history table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.poll-history th, .poll-history td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.poll-history time {
  white-space: nowrap;
}

.poll-history__comment {
  min-width: 160px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.artwork-notes__note h2 a {
  color: inherit;
}

.notes-index__heading h1 {
  margin-bottom: 12px;
}

.notes-index__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.notes-index__list {
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.notes-index__list li + li {
  border-top: 1px solid var(--line);
}

.notes-index__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.notes-index__flower {
  flex-shrink: 0;
  color: #b7a1ad;
  font-size: 18px;
}

.notes-index__link:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.note-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.note-related h2 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 400;
}

.note-related__artworks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 150px));
  gap: 24px 16px;
  padding: 0;
  list-style: none;
}

.note-related__artwork {
  display: grid;
  gap: 8px;
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.note-related__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 8px;
  background: #f5f0e7;
  border-radius: 8px;
}

.note-related__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.note-related__placeholder {
  font-size: 12px;
}

.note-related__artists {
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.9;
}

.note-related__artists li + li {
  margin-top: 6px;
}

.note-related__artists a {
  color: inherit;
  text-underline-offset: 4px;
}

.note-heading h1 {
  margin-bottom: 8px;
}

.note-heading__date {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}
