/* 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;
}

.available-square-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  image-rendering: pixelated;
}

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: max-content;
  max-width: min(28rem, calc(100% - 1rem));
  min-width: min(150px, calc(100% - 1rem));
  position: absolute;
  pointer-events: none;
  display: none;
  white-space: pre-line;
  overflow-wrap: anywhere;
  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;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* A finger on a phone pans and pinches with the browser. A mouse drag still selects. */
@media (pointer: coarse) {
  .map-image {
    touch-action: manipulation;
  }
}

.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;
}

.map-selected-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.map-selected {
  position: absolute;
  width: 1%;
  height: 1%;
  background: #ffd700;
  transform-origin: center;
  animation: selection-pulse 0.9s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0ms);
}

.mint-prompt {
  display: grid;
}

.mint-prompt > * {
  grid-area: 1 / 1;
}

.home-mint-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-self: start;
  align-self: start;
}

.mint-prompt.is-minting #mint-instructions {
  visibility: hidden;
}

.mint-prompt:not(.is-minting) .home-mint-actions {
  visibility: hidden;
}

#mint-selected {
  white-space: nowrap;
}

.mint-prompt.is-minting #mint-selected {
  transform-origin: left center;
  animation: mint-pulse 0.9s ease-in-out infinite;
}

@keyframes selection-pulse {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.72); }
}

@keyframes mint-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .map-selected,
  .mint-prompt.is-minting #mint-selected {
    animation: 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;
}

.personalize-page section,
.personalize-page details {
  min-width: 0;
}

.personalize-page section > *,
.personalize-page details > *:not(summary) {
  margin-bottom: 0.6rem;
}

.personalize-page summary {
  cursor: pointer;
}

.personalize-table-scroll {
  overflow-x: auto;
}

.personalize-table {
  width: 100%;
  font-size: 1rem;
}

.personalize-table th,
.personalize-table td {
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ffd700;
}

.personalize-table input[type="text"] {
  min-width: 9rem;
}

.personalize-table input[type="file"] {
  min-width: 12rem;
}

.personalize-thumbnail,
.personalize-image-preview {
  display: block;
  width: 50px;
  height: 50px;
  max-width: none;
  image-rendering: pixelated;
}

.personalize-thumbnail {
  background-image: url("/build/wholeSquare.webp");
  background-size: 5000px 5000px;
  background-repeat: no-repeat;
}

.personalize-image-preview[hidden] {
  display: none;
}

.batch-squares-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.personalize-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.square-page {
  align-items: center;
}

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

.square-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  gap: 0.6rem;
}

.square-page #image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
}

.square-personalize-cta {
  text-align: center;
  max-width: 22rem;
  margin: 0;
}

.square-personalize-cta[hidden] {
  display: none;
}

.square-owner-disclaimer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.square-owner-disclaimer[hidden] {
  display: none;
}

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

.square-metadata[hidden] {
  display: none;
}

.square-metadata dt[hidden],
.square-metadata dd[hidden] {
  display: none;
}

.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 dt:last-of-type,
.square-metadata dd:last-of-type {
  border-bottom: none;
}

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

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

.square-location-map__arrow {
  position: absolute;
  pointer-events: none;
}

.square-emojified {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  text-align: center;
  line-height: 1.2;
  white-space: pre;
  word-break: keep-all;
  overflow-wrap: normal;
}

.square-emojified-unavailable {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}

#copy-emojified {
  width: 150px;
  margin: 0 auto;
  font-size: 1rem;
}

#emojified-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

#emojified-section[hidden],
.square-mint-cta[hidden] {
  display: none;
}

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

#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;
}

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

.square-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  gap: 0.6rem;
}

.square-page #image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
}

.square-personalize-cta {
  text-align: center;
  max-width: 22rem;
  margin: 0;
}

.square-personalize-cta[hidden] {
  display: none;
}

.square-owner-disclaimer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.square-owner-disclaimer[hidden] {
  display: none;
}

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

.square-metadata[hidden] {
  display: none;
}

.square-metadata dt[hidden],
.square-metadata dd[hidden] {
  display: none;
}

.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 dt:last-of-type,
.square-metadata dd:last-of-type {
  border-bottom: none;
}

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

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

.square-location-map__arrow {
  position: absolute;
  pointer-events: none;
}

.square-emojified {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  text-align: center;
  line-height: 1.2;
  white-space: pre;
  word-break: keep-all;
  overflow-wrap: normal;
}

.square-emojified-unavailable {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}

#copy-emojified {
  width: 150px;
  margin: 0 auto;
  font-size: 1rem;
}

#emojified-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

#emojified-section[hidden],
.square-mint-cta[hidden] {
  display: none;
}

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

.square-location-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1008px) {
  html.square-detail-page .square-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 2rem;
  }

  html.square-detail-page .square-page > *:not(.square-location-section) {
    grid-column: 1;
  }

  html.square-detail-page .square-location-section {
    grid-column: 2;
    grid-row: 1 / span 10; /* span all content rows in the left column */
    align-self: start;
    position: sticky;
    top: 1rem;
  }
}

@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;
  }

  article pre.square-emojified {
    white-space: pre;
    word-break: keep-all;
    overflow-wrap: normal;
    overflow: visible;
    margin: 0;
  }

  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;
  }
}

.mint-page article.lead {
  gap: 0.75rem;
}

.mint-sheet,
#square-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.mint-row {
  display: grid;
  grid-template-columns: minmax(13ch, 3fr) minmax(0, 9fr);
  column-gap: 1rem;
  align-items: start;
}

.mint-row[hidden] {
  display: none;
}

.mint-label {
  font-weight: 700;
  padding-top: 0.45rem;
  white-space: nowrap;
}

.mint-control {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mint-inline,
.mint-image-line,
.mint-advanced-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.mint-page .mint-inline input[type="text"] {
  flex: 1 1 12rem;
  width: auto;
  min-width: 0;
}

.mint-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mint-count.is-over,
.mint-note.is-bad,
.mint-note.is-ok {
  background-color: #2d3c96;
  box-decoration-break: clone;
  padding: 0 0.25rem;
}

.mint-count.is-over,
.mint-note.is-bad {
  color: #ffb0b0;
}

.mint-note.is-bad,
.mint-note.is-ok {
  width: fit-content;
  max-width: 100%;
}

.mint-note.is-ok {
  color: #c8ff9a;
}

.mint-note,
.mint-hint,
.mint-help,
.mint-format {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mint-page #image-preview {
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  background: #fff;
  border: 1px solid #ffd700;
}

.mint-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.mint-personalize-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.mint-after {
  font-size: 0.9rem;
  line-height: 1.35;
}

.mint-page .mint-sheet .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mint-tx {
  margin: 0;
  overflow-wrap: anywhere;
  min-height: 1.2em;
}

.mint-spinner {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.35em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: mint-spin 0.8s linear infinite;
}

@keyframes mint-spin {
  to {
    transform: rotate(360deg);
  }
}

.mint-page textarea#advanced-text {
  min-height: 0;
  height: calc(6 * 1.35em + 0.8rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .mint-row {
    grid-template-columns: 1fr;
    row-gap: 0.3rem;
  }

  .mint-label {
    padding-top: 0.55rem;
  }

  .mint-actions .btn,
  .mint-advanced-line .btn,
  .mint-image-line .btn {
    width: 100%;
  }

  .home-mint-actions .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mint-spinner {
    animation: none;
  }
}
