.pub-header {
  flex-wrap: wrap;
  padding-block: 20px;
}

.landing-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.watchfaces-intro {
  max-width: none;
}

.pub-main .landing-headline {
  max-width: none;
}

.watchfaces-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.watchface-card {
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
}

.watchface-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 32px;
}

.watchface-visuals,
.watchface-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.watchface-content {
  align-self: stretch;
}

.watchface-card--coming-soon {
  position: relative;
  overflow: hidden;
}

.watchface-ribbon {
  position: absolute;
  z-index: 1;
  top: 54px;
  left: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  padding: 8px 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: #925123;
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

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

.watchface-heading h2 {
  margin-top: 8px;
  font-size: 2rem;
}

.watchface-logo {
  display: block;
  flex-shrink: 0;
  width: 104px;
  max-width: 28%;
  height: 30px;
  object-fit: contain;
  object-position: right center;
}

.watchface-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 290px;
  margin: 0;
  padding: 24px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--forest-soft), var(--paper));
}

.watchface-device {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.watchface-device img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 210px;
}

.watchface-device figcaption {
  color: var(--muted);
  font-size: 0.75rem;
}

.watchface-device .watchface-round {
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
}

.watchface-preview > img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.watchface-preview--pending {
  flex-direction: column;
  gap: 12px;
}

.watchface-preview-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
}

.watchface-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watchface-features li {
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
}

.watchface-metrics h3 {
  font-size: 0.88rem;
  letter-spacing: normal;
}

.watchface-metrics ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.watchface-metrics li + li {
  margin-top: 4px;
}

.watchface-metrics li::marker {
  color: var(--copper);
}

.watchface-themes {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.watchface-themes h3 {
  margin: 0;
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: normal;
}

.theme-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
}

.theme-gallery figure {
  min-width: 0;
  margin: 0;
}

.theme-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.theme-gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}

.watchface-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: auto;
}

.watchface-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border: 1px solid var(--forest);
  border-radius: 9px;
  background: var(--forest);
  color: var(--surface);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.watchface-button:hover {
  background: var(--ink);
  color: var(--surface);
}

.watchface-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

@media (min-width: 960px) {
  .landing-headline em {
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .landing-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .watchface-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .pub-header nav {
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .pub-main {
    padding-top: 40px;
  }

  .watchface-preview {
    min-height: 240px;
  }

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