* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eeeae2;
  color: #1d2832;
  font:
    16px/1.55 system-ui,
    sans-serif;
}
main {
  max-width: 1250px;
  margin: auto;
  padding: 28px 20px;
}
header {
  max-width: 710px;
  margin-bottom: 32px;
}
h1 {
  font:
    500 clamp(2.5rem, 9vw, 5rem) / 1.02 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 16px 0 24px;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 16px 0 8px;
}
.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.notice {
  font-size: 0.9rem;
  padding-left: 14px;
  border-left: 2px solid #6b736d;
}
.screen-picker {
  display: grid;
  gap: 8px;
  max-width: 430px;
}
select {
  font: inherit;
  padding: 12px;
  border: 1px solid #68716f;
  background: #faf8f3;
  min-height: 44px;
  max-width: 100%;
}
.gallery {
  display: grid;
  gap: 28px;
}
.style-card {
  padding-bottom: 28px;
  border-bottom: 1px solid #b4b5ad;
  min-width: 0;
}
.preview {
  background: #dadbd3;
  aspect-ratio: 390/844;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #b4b5ad;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}
.preview p {
  max-width: 230px;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}
.style-card p {
  margin: 8px 0;
}
.style-card .status {
  font-size: 0.85rem;
  color: #46554f;
}
.open-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 0;
  color: inherit;
  font-weight: 650;
  text-underline-offset: 4px;
}
.screen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.8rem;
}
.screen-links a {
  color: inherit;
  padding: 10px 0;
  min-height: 44px;
}
.load-error {
  color: #8d2c24;
}
.retry {
  font: inherit;
  min-height: 44px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}
footer {
  margin: 40px 0;
  font-size: 0.85rem;
}
footer a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid #9a3d22;
  outline-offset: 4px;
}
@media (min-width: 650px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
