html {
  font-size: 15px;
}

body {
  line-height: 1.5;
}

.site-header {
  gap: 0.85rem;
  padding: 0.75rem clamp(0.9rem, 3vw, 2.25rem);
}

.brand-logo {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  border-radius: 0.8rem;
}

.brand small {
  font-size: 0.72rem;
}

.nav {
  gap: 0.65rem;
}

.nav a {
  font-size: 0.86rem;
}

.section {
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(0.9rem, 3vw, 2.25rem);
}

.section-head {
  margin-bottom: 1.35rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
}

h3 {
  font-size: 1.05rem;
}

.actions {
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.button {
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.card,
.contact-card,
.support-card,
.link-card {
  border-radius: 1rem;
}

.card {
  padding: 1rem;
}

.support-hero {
  gap: 1.25rem;
  min-height: auto;
}

.support-card {
  padding: 1rem;
}

.support-checklist {
  gap: 0.35rem;
}

.share-grid {
  gap: 0.65rem;
}

.share-card {
  min-height: 6.2rem;
  padding: 0.85rem;
}

.copy-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.links-page {
  width: min(100% - 1rem, 560px);
  padding: 2rem 0;
}

.links-avatar {
  width: 120px;
  height: 120px;
  border-radius: 1.25rem;
}

.links-bio {
  margin: 0 auto 1.2rem;
  font-size: 0.98rem;
}

.links-stack {
  gap: 0.55rem;
}

.link-card {
  gap: 0.2rem;
  min-height: 0;
  padding: 0.8rem 0.95rem;
}

.link-card span {
  font-size: 0.85rem;
}

.footer {
  padding: 1.25rem clamp(0.9rem, 3vw, 2.25rem);
  font-size: 0.9rem;
}

.compact-home header {
  padding: 34px 16px 26px;
}

.compact-home h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.35rem);
  letter-spacing: 0.055em;
}

.compact-home h2 {
  margin-top: 6px;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.compact-home nav {
  margin-top: 16px;
  gap: 8px;
}

.compact-home nav a {
  padding: 5px 10px;
  font-size: 0.7rem;
}

.compact-home main {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 14px 36px;
}

.compact-home section {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #232129;
  border-radius: 12px;
  background: rgba(13, 8, 16, 0.78);
}

.compact-home section:last-of-type {
  border-bottom: 1px solid #232129;
}

.compact-home h3 {
  margin-bottom: 8px;
  letter-spacing: 0.045em;
}

.compact-home h4 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.compact-home p,
.compact-home li {
  color: #efe8ed;
  font-size: 0.94rem;
}

.compact-home ul {
  margin: 8px 0 0;
}

.compact-home footer {
  padding: 16px 14px 20px;
}

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.proposal-card {
  border: 1px solid #2d2230;
  border-radius: 10px;
  background: #0d0910;
  padding: 0.75rem 0.8rem;
}

.proposal-card ul {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
}

.proposal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.proposal-gallery figure {
  margin: 0;
  border: 1px solid #302634;
  border-radius: 10px;
  overflow: hidden;
  background: #08060b;
}

.proposal-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proposal-gallery figcaption {
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  color: #cbbcc6;
}

.proposal-gallery--full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proposal-gallery--full img {
  object-fit: contain;
  background: #050509;
}

.proposal-gallery--compact {
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.35rem;
  max-width: 640px;
}

.proposal-gallery--compact figure {
  border-radius: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.proposal-gallery--compact figure:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #ff4b8b);
}

.proposal-gallery--compact img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #050509;
}

.proposal-gallery--compact figcaption {
  padding: 0.2rem 0.25rem;
  font-size: 0.6rem;
  text-align: center;
  color: #cbbcc6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proposal-note {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: #c2b4c1;
}

@media (max-width: 900px) {
  .proposal-grid,
  .proposal-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proposal-gallery--full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proposal-gallery--compact {
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 0.85rem;
  }

  .compact-home section {
    padding: 12px 13px;
  }

  .proposal-grid,
  .proposal-gallery {
    grid-template-columns: 1fr;
  }

  .proposal-gallery--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proposal-gallery--compact {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  }
}

/* Keep artwork proportional and compact, including images with HTML height attributes. */
img {
  max-width: 100%;
  height: auto;
}
.proposal-gallery--compact,
.proposal-gallery--full {
  grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
}
.proposal-gallery--compact img,
.proposal-gallery--full img {
  height: auto;
  max-height: 180px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.proposal-gallery--compact figcaption {
  padding: 0.4rem;
  font-size: 0.75rem;
  white-space: normal;
}
.feature-art,
.cosmic-banner img {
  width: min(100%, 480px);
  max-height: 280px;
  object-fit: contain;
  margin-inline: auto;
}
.support-logo {
  width: min(100%, 220px);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .proposal-gallery--compact img,
  .proposal-gallery--full img {
    max-height: 160px;
  }
}

.links-avatar { height: 120px; }
