:root {
  --paper: #ece4cf;
  --ink: #191917;
  --red: #a42b21;
  --line: rgba(25, 25, 23, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  min-height: 100svh;
  padding: 0 clamp(18px, 3vw, 52px);
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.brand,
h1 {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 900;
}

.brand {
  position: relative;
  font-size: 25px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand span {
  position: absolute;
  top: -2px;
  right: -12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: 0;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav a:not(.brand) {
  padding: 12px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--red);
}

.nav a[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.45;
}

main {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding-top: clamp(14px, 2.4vh, 30px);
}

h1 {
  margin: 0 0 clamp(12px, 2.5vh, 30px);
  font-size: clamp(100px, 20.6vw, 394px);
  letter-spacing: -0.045em;
  line-height: 0.73;
  text-align: center;
  transform: scaleX(0.96);
}

.feature {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(280px, 1.5fr) minmax(100px, 1fr);
  align-items: center;
  flex: 1;
  min-height: 0;
  gap: clamp(20px, 4vw, 70px);
  padding-bottom: clamp(18px, 3vh, 36px);
}

.tagline {
  max-width: 310px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 2.75vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.tagline em {
  display: block;
  color: var(--red);
  font-weight: 400;
}

.artwork {
  width: auto;
  max-width: 100%;
  height: min(47vh, 560px);
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  background: var(--red);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.25deg);
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticker {
  justify-self: end;
  color: var(--red);
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(62px, 7.2vw, 132px);
  letter-spacing: -0.035em;
  line-height: 0.8;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.contract {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.contract-label {
  margin-right: 22px;
  color: var(--red);
  font-weight: 700;
}

.contract-button {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.contract-button [data-contract-address] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-label {
  flex: none;
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.contract-button:hover .copy-label,
.contract-button:focus-visible .copy-label {
  color: var(--ink);
}

.contract-pending {
  font-size: 10px;
  letter-spacing: 0.08em;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.paper-noise {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .site-shell {
    min-height: 100svh;
    overflow: visible;
  }

  .nav {
    min-height: 60px;
  }

  .nav nav {
    gap: 20px;
    font-size: 10px;
  }

  main {
    padding-top: 24px;
  }

  h1 {
    margin-bottom: 28px;
    font-size: 25.4vw;
  }

  .feature {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 32px;
  }

  .tagline {
    max-width: 330px;
    align-self: flex-start;
    font-size: clamp(29px, 8vw, 42px);
  }

  .tagline em {
    display: inline;
  }

  .artwork {
    width: calc(100% - 8px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  .ticker {
    display: none;
  }

  .contract {
    min-height: 54px;
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  .nav {
    min-height: 56px;
  }

  main {
    padding-top: 12px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: min(19vw, 26vh);
  }

  .artwork {
    height: 45vh;
  }

  .feature {
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .artwork {
    transition: transform 180ms ease;
  }

  .artwork:hover {
    transform: rotate(0deg);
  }
}
