/* normalize.css v8.0.1 + Typebase.less v0.1.0 | MIT License | compress csso | add .lead **/
html{line-height:1.15;-webkit-text-size-adjust:100%;font-family:serif;font-size:137.5%;-webkit-font-smoothing:antialiased}body{margin:0}details,main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}table{border-spacing:0;border-collapse:collapse}table td,table th{padding:0;line-height:33px}code{vertical-align:bottom}.hug{margin-top:0}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 115%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #2d3c96;
  background-image: linear-gradient(to bottom right, #2d3c96, #d53392);
  color: #ffd700;
  min-height: 100vh;
  margin: 0;
}

header {
  width: 100%;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem 1rem;
}

header > * {
  flex: 0 0 auto;
  text-align: center;
}

#logo {
  display: block;
  height: auto;
  flex: 0 0 auto;
  align-self: center;
}

#logo img {
  width: 348px;
  max-width: 100%;
  max-height: 60px;
  height: auto;
  object-fit: cover;
}

header a:not(#logo) svg {
  width: 16px;
  height: 16px;
  display: block;
}

header span {
  flex: 1 1 14rem;
  min-width: 0;
}

#connect-wallet {
  margin-left: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
  line-height: 1.7;
}

ol,
ul {
  margin: 0;
  padding-left: 1.4rem;
}

li {
  line-height: 1.6;
  margin-bottom: 0;
}

blockquote {
  margin: 0;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 800;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 3vw + 1.2rem, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.1rem, 2.5vw + 1rem, 2.8rem);
  line-height: 1.2;
}

.article-page h2,
.personalize-page h2,
.mint-page h2 {
  margin-top: 2rem;
}

h3 {
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.35;
}

h5 {
  font-size: 1.05rem;
  line-height: 1.4;
}

h6 {
  font-size: 0.95rem;
  line-height: 1.4;
}

.lead {
  font-size: 1.414rem;
}

.btn {
  background: none;
  border-radius: 0.5rem;
  border: 2px solid #ffd700;
  box-shadow: 4px 6px 4px rgba(255, 255, 255, 0.2);
  color: #ffd700;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  box-shadow: 3px 6px 10px #999;
}

.btn:active {
  position: relative;
  left: 2px;
  top: 2px;
  box-shadow: 1px 4px 10px #555;
}

.btn-lg {
  font-size: 2rem;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

input[type="text"] {
  font-size: 115%;
  width: 100%;
}

input[type="number"],
input[type="url"],
input[type="file"],
textarea,
select {
  font-size: 115%;
  max-width: 100%;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input#square-number,
input#top-left-square-number {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  max-width: 10rem;
}

article {
  margin: 1rem auto;
  width: 100%;
  max-width: 1004px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

footer {
  width: min(90%, 1200px);
  margin: 3rem auto 1rem;
  padding: 2rem;
  text-align: center;
}

hr {
  width: min(100%, 95%);
  border: none;
  border-top: 2rem solid rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#tooltip,
.map-tooltip {
  background: rgba(255, 255, 255, 0.8);
  width: min(220px, calc(100% - 1rem));
  min-width: min(150px, calc(100% - 1rem));
  position: absolute;
  pointer-events: none;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 12px;
  border-radius: 10px;
  padding: 10px;
  color: black;
  z-index: 20;
}

a:link,
a:visited,
a:active {
  color: #ffd700;
}

.map-shell {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.map-container {
  width: 100%;
  display: block;
  text-decoration: none;
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.map-image {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.map-position {
  background: pink;
  opacity: 0.8;
  width: 10px;
  height: 10px;
  position: absolute;
  pointer-events: none;
  display: none;
  z-index: 10;
}

.map-fence {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.newly-feed {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.newly-feed__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.newly-feed__heading {
  font-size: 1.1rem;
}

.newly-feed__items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newly-feed__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  min-width: 0;
}

.newly-feed__thumb {
  display: inline-block;
  width: 10px;
  height: 10px;
  zoom: 5;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-size: 1000px 1000px;
  image-rendering: pixelated;
}

#mint-selected-square,
#pick-a-square,
#receipts {
  width: 100%;
}

.mint-page p,
.personalize-page p {
  margin: 0;
}

.personalize-page article {
  gap: 0.6rem;
}

.personalize-page #receipts,
.mint-page #receipts {
  overflow-wrap: anywhere;
}

#preflight-output {
  min-height: 12rem;
}

#image-preview {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

#mint-selected-square,
#pick-a-square,
#receipts {
  width: 100%;
}

.mint-page p,
.personalize-page p {
  margin: 0;
}

.personalize-page article {
  gap: 0.6rem;
}

.personalize-page #receipts,
.mint-page #receipts {
  overflow-wrap: anywhere;
}

#preflight-output {
  min-height: 12rem;
}

#image-preview {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.square-page {
  align-items: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.square-page--transitioning {
  opacity: 0;
  transform: translateY(0.75rem);
}

.square-page h2 {
  text-align: center;
}

.square-page__heading {
  width: 100%;
  display: flex;
  justify-content: center;
}

.square-page__heading-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.square-page__status {
  margin: 0;
  color: #fff2a8;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.square-nav-help {
  width: 100%;
  max-width: 680px;
  margin: 1rem 0;
  padding: 0;
  font-size: 0.95rem;
}

.square-nav-help summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
}

.square-nav-help summary::-webkit-details-marker {
  display: none;
}

.square-nav-help__more {
  display: inline;
  margin-left: 0.35rem;
  text-decoration: underline;
}

.square-nav-help__details {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 215, 0, 0.65);
  background: rgba(0, 0, 0, 0.18);
  text-align: left;
}

.square-nav-help__details p {
  margin: 0;
}

.square-nav-help__details p + p {
  margin-top: 0.6rem;
}

.square-nav-help kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.08rem 0.35rem;
  border: 1px solid rgba(255, 215, 0, 0.65);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.2);
  color: #fff2a8;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.square-page__hero-image {
  width: 10px;
  height: 10px;
  display: inline-block;
  image-rendering: pixelated;
  zoom: 20;
}

.square-metadata {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid #ffd700;
}

.square-metadata dt,
.square-metadata dd {
  margin: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ffd700;
}

.square-metadata dt {
  border-right: 1px solid #ffd700;
  font-weight: 700;
}

.square-metadata dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.square-metadata__link-text--blocked {
  color: #fff2a8;
}

.square-metadata dt:last-of-type,
.square-metadata dd:last-of-type {
  border-bottom: none;
}

.square-panel {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
  border: 1px solid #ffd700;
  background: rgba(0, 0, 0, 0.14);
  text-align: center;
  margin-bottom: 2rem;
}

.square-panel__title,
.square-panel__message,
.square-panel__disclaimer,
.square-panel__warning,
.square-panel__cta-copy {
  margin: 0;
}

.square-panel__square-number {
  margin: 0;
  color: #fff2a8;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.square-panel__title {
  line-height: 1.2;
}

.square-panel__field {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px dashed rgba(255, 215, 0, 0.65);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.square-panel__field--actionable {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.square-panel__field--actionable:hover {
  background: rgba(0, 0, 0, 0.28);
}

.square-panel__field--disabled {
  cursor: default;
}

.square-panel__field--disabled:hover {
  background: rgba(0, 0, 0, 0.18);
}

.square-panel__disclaimer {
  color: #fff2a8;
}

.square-panel__warning {
  color: #ffb2b2;
  font-weight: 700;
}

.square-panel__cta-copy {
  font-style: italic;
}

.square-panel__field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #fff2a8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.square-panel__field-value {
  display: block;
  width: 100%;
}

.square-panel__uri-text {
  font-weight: 600;
}

.square-panel__uri-text--blocked {
  color: #fff2a8;
}

.square-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.square-panel__actions > * {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 300px;
}

.square-panel__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.square-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.square-panel__button[hidden],
.square-panel__cta[hidden],
.square-panel__field[hidden] {
  display: none !important;
}

.square-panel__button--primary {
  background: #ffd700;
  border-color: #ffd700;
  color: #2d3c96;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
  font-weight: bold;
}

.square-panel__button--primary:hover {
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.35);
}

.square-panel__button--copied {
  border-color: #7dff96;
  color: #7dff96;
}

.square-panel__button--failed {
  border-color: #ff7b7b;
  color: #ff7b7b;
}

.square-copy {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.square-copy[hidden] {
  display: none !important;
}

.square-copy__output {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  text-align: center;
  line-height: calc(1em + 0.25rem);
}

.square-copy__button {
  min-width: 10rem;
}

.square-location-map {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.square-location-map__image {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.square-location-map__arrow {
  position: absolute;
}

@media (min-width: 900px) {
  .newly-feed__items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 1007px) {
  html,
  body {
    overflow-x: hidden;
  }

  article {
    gap: 1.75rem;
  }

  article * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  article table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  article pre,
  article code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }

  h1 {
    font-size: 2.8rem;
    line-height: 3.1rem;
  }

  h2 {
    font-size: 2.3rem;
    line-height: 2.6rem;
  }

  h3,
  .lead {
    font-size: 1.3rem;
  }
}

@media (max-width: 760px) {
  header {
    justify-content: center;
  }

  header span {
    flex-basis: 100%;
  }

  h1 {
    font-size: 2.6rem;
    line-height: 2.9rem;
  }

  h2 {
    font-size: 2.1rem;
    line-height: 2.4rem;
  }
}

@media (max-width: 520px) {
  html.article-page,
  html.personalize-page,
  html.mint-page {
    font-size: 100%;
  }

  article {
    gap: 2rem;
    padding: 0 0.875rem;
  }

  header {
    padding: 0.875rem;
  }

  #connect-wallet {
    margin-left: 0;
  }

  #logo {
    display: block;
    margin: 0 auto;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
  }

  h2 {
    font-size: 1.8rem;
    line-height: 2.1rem;
  }

  h3,
  .lead {
    font-size: 1.2rem;
  }

  .btn-lg {
    font-size: 1.5rem;
  }

  .square-metadata dt,
  .square-metadata dd {
    padding: 0.85rem 1rem;
  }

  footer {
    width: min(100%, 1004px);
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 450px) {
  .newly-feed {
    grid-template-columns: 1fr;
  }

  .map-tooltip {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.2rem;
    line-height: 2.5rem;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.9rem;
  }
}
