:root {
  color-scheme: dark;
  --page: #080909;
  --panel: #111414;
  --panel-border: #2a3030;
  --text: #d3d3d3;
  --muted: #969d9d;
  --green: #88ee88;
  --pink: #ee81ee;
  --focus: #ff92df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.intro {
  max-width: 710px;
  margin-bottom: 32px;
}
.intro h1,
.selector-panel h2,
.preview-card h2,
.section-heading h2 {
  margin: 0;
  font-family: courier, monospace;
  color: var(--green);
  line-height: 1;
  text-shadow: 3px 3px 0 #3c4343;
}
.intro h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}
.intro p:last-child {
  margin: 16px 0 0;
  color: #b9c1c1;
  font-size: 1.08rem;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font:
    700 0.73rem/1.2 courier,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selector-panel,
.preview-card,
.site-preview-section {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 14px;
}
.selector-panel {
  padding: 24px;
  margin-bottom: 24px;
}
.selector-panel h2,
.preview-card h2,
.section-heading h2 {
  font-size: 1.7rem;
}
.logo-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.candidate-button {
  appearance: none;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #4a5252;
  border-radius: 7px;
  background: #181d1d;
  color: #dce4e4;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}
.candidate-button:hover {
  border-color: var(--pink);
  background: #272026;
}
.candidate-button[aria-pressed="true"] {
  border-color: var(--green);
  background: #17301d;
  color: #c6ffc6;
  box-shadow: inset 0 0 0 1px #335f3d;
}
.candidate-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.selection-status {
  margin: 17px 0 0;
  color: var(--muted);
}
.selection-status strong {
  color: var(--text);
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: stretch;
}
.preview-card {
  padding: 24px;
  overflow: hidden;
}
.card-heading {
  margin-bottom: 20px;
}

.discord-frame {
  position: relative;
  width: min(100%, 370px);
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.discord-mask {
  display: block;
  width: 100%;
  height: auto;
}
.discord-logo {
  position: absolute;
  z-index: 1;
  left: 7%;
  top: 17.3%;
  width: 10.4%;
  aspect-ratio: 1;
  object-fit: contain;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 270px);
  height: 36px;
  padding: 0 10px;
  border: 1px solid #465050;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #202727;
  color: #e3e8e8;
  font-size: 0.78rem;
}
.browser-tab img {
  display: block;
  flex: 0 0 auto;
}
.browser-tab span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-close {
  margin-left: auto;
  color: #b8c0c0;
  font-size: 1.15rem;
}
.favicon-row {
  display: flex;
  align-items: end;
  gap: clamp(12px, 2vw, 25px);
  min-width: min-content;
  padding: 27px 0 10px;
}
.favicon-card {
  overflow-x: auto;
}
.favicon-row figure {
  display: grid;
  grid-template-rows: 138px auto;
  justify-items: center;
  gap: 9px;
  margin: 0;
}
.favicon-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 138px;
  border: 1px solid #3b4444;
  border-radius: 7px;
  background: repeating-conic-gradient(#1c2222 0 25%, #171b1b 0 50%) 50% / 16px
    16px;
}
.favicon-stage img {
  display: block;
  image-rendering: auto;
}
.favicon-row figcaption {
  color: #a9b2b2;
  font:
    0.75rem/1 courier,
    monospace;
  white-space: nowrap;
}
.native-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-preview-section {
  margin-top: 24px;
  padding: 24px;
}
.section-heading {
  margin-bottom: 20px;
}
.site-preview {
  overflow: hidden;
  border: 1px solid #303838;
  border-radius: 8px;
  background: #000;
}
.dao-container {
  width: min(800px, 100%);
  margin: auto;
  padding: 0 0 30px;
  color: #d3d3d3;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
.dao-title-row {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 16px;
  min-height: 140px;
  padding-top: 16px;
  background: #000;
}
.dao-title-pic {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.dao-title-row h3,
.dao-content h4 {
  margin: 0;
  font-family: courier, monospace;
  color: var(--green);
  text-shadow: 4px 4px 0 #444;
}
.dao-title-row h3 {
  font-size: 4.5em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.dao-content h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2em;
  line-height: 1;
}
.dao-content p {
  margin: 20px 0;
}

@media (max-width: 820px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .favicon-row {
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }
  .selector-panel,
  .preview-card,
  .site-preview-section {
    padding: 18px;
  }
  .favicon-card {
    padding-bottom: 12px;
  }
  .favicon-row {
    justify-content: start;
  }
  .dao-container {
    padding: 0 8px 24px;
    font-size: 12px;
    line-height: 1.6;
  }
  .dao-title-row {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    gap: 8px;
    min-height: 110px;
  }
  .dao-title-pic {
    width: 72px;
    height: 72px;
  }
  .dao-title-row h3 {
    font-size: 3.1rem;
  }
  .dao-content h4 {
    margin-top: 36px;
    margin-bottom: 18px;
    font-size: 1.75rem;
    line-height: 1.15;
  }
}

@media (max-width: 400px) {
  .candidate-button {
    width: 100%;
  }
  .dao-container {
    padding: 0 6px 22px;
  }
  .dao-title-row {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    gap: 6px;
  }
  .dao-title-pic {
    width: 58px;
    height: 58px;
  }
  .dao-title-row h3 {
    font-size: 2.25rem;
  }
  .dao-content h4 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidate-button {
    transition: none;
  }
}
