/* Registry list — matches scanned.page / ogregistrylist layout */
:root {
  --brown: #43270f;
  --title: #131d29;
  --link-text: #3f523c;
  --arrow: #3f523c;
  --card-shadow: 0 4px 6px rgba(19, 29, 41, 0.04), 0 12px 40px rgba(19, 29, 41, 0.1);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  /* Hard split: top 30% brown, bottom 70% white */
  background: linear-gradient(180deg, var(--brown) 0%, var(--brown) 30%, #ffffff 30%, #ffffff 100%);
  background-attachment: fixed;
}

.registry-page {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: clamp(1.5rem, 5vh, 2.5rem) 16px 2rem;
}

.registry-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  margin: 0;
  padding: 0 16px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.registry-card__avatar {
  display: block;
  width: 120px;
  height: 120px;
  margin: -90px auto 0;
  object-fit: cover;
  border: 14px solid #fff;
  border-radius: 50%;
  background: #fff;
}

@media (min-width: 480px) {
  .registry-card__avatar {
    margin-bottom: 33px;
  }
}

.registry-card__header {
  margin: 0;
  padding: 0 0 7px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 480px) {
  .registry-card__header {
    padding-bottom: 14px;
  }
}

.registry-card__header h1 {
  margin: 0 0 5px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--title);
}

@media (min-width: 480px) {
  .registry-card__header h1 {
    margin-bottom: 9px;
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .registry-card__header h1 {
    font-size: 1.5rem;
  }
}

.registry-card__header h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--title);
  text-wrap: balance;
}

@media (min-width: 480px) {
  .registry-card__header h2 {
    font-size: 1rem;
  }
}

.registry-card__list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 480px) {
  .registry-card__list {
    margin-top: 25px;
    gap: 15px;
  }
}

.registry-card__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.registry-card__link:hover {
  opacity: 0.8;
}

.registry-card__link:focus-visible {
  outline: 2px solid var(--link-text);
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .registry-card__link {
    padding: 10px;
  }
}

.registry-card__link-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-align: left;
}

@media (min-width: 480px) {
  .registry-card__link-inner {
    gap: 15px;
  }
}

@media (min-width: 640px) {
  .registry-card__link-inner {
    gap: 22px;
  }
}

.registry-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.registry-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--link-text);
  overflow-wrap: anywhere;
}

@media (min-width: 480px) {
  .registry-card__label {
    font-size: 1rem;
  }
}

@media (min-width: 640px) {
  .registry-card__label {
    font-size: 1.25rem;
  }
}

.registry-card__chevron {
  flex-shrink: 0;
  width: 24px;
  height: 25px;
  margin-left: 8px;
  margin-right: 2px;
}

@media (min-width: 480px) {
  .registry-card__chevron {
    margin-right: 5px;
  }
}

.registry-card__back {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.875rem;
}

.registry-card__back a {
  color: var(--title);
  text-decoration: none;
  opacity: 0.65;
  border-bottom: 1px solid rgba(19, 29, 41, 0.2);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}

.registry-card__back a:hover {
  opacity: 1;
}

.registry-card__back a:focus-visible {
  outline: 2px solid var(--link-text);
  outline-offset: 4px;
  border-radius: 2px;
}
