:root {
  --bg: #020707;
  --panel: rgba(6, 10, 12, 0.97);
  --panel-border: rgba(226, 241, 239, 0.18);
  --focus: #14b8a6;
  --text: #f3f7f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.artwork-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.artwork-frame {
  position: relative;
  margin: 0;
  width: min(100vw, calc(100svh * 1.5));
  aspect-ratio: 3 / 2;
}

.artwork-picture,
.hero-artwork {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-artwork {
  object-fit: contain;
}

.notify-form {
  position: absolute;
  left: 28.1%;
  top: 88.15%;
  width: 41.2%;
  height: 5.45%;
  display: grid;
  grid-template-columns: 73% 27%;
  border-radius: 10px;
  overflow: hidden;
}

.notify-form input,
.notify-form button {
  min-width: 0;
  appearance: none;
  border: 0;
  font: 600 clamp(11px, 1.1vw, 16px) Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.notify-form input {
  width: 100%;
  padding: 0 1.25em;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-right: 0;
  color: rgba(245, 248, 248, 0.96);
  caret-color: var(--focus);
}

.notify-form input::placeholder {
  color: rgba(245, 248, 248, 0.54);
  font-weight: 400;
}

.notify-form button {
  display: grid;
  place-items: center;
  background: var(--focus);
  color: white;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notify-form input:focus,
.notify-form button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.notify-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.notify-status {
  position: absolute;
  left: 28.1%;
  top: 94.15%;
  width: 41.2%;
  margin: 0;
  color: rgba(245, 248, 248, 0.94);
  font: 600 clamp(10px, 1.05vw, 15px) Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .artwork-page {
    align-items: start;
    padding: 0;
  }

  .artwork-frame {
    width: min(100vw, calc(100svh * 0.858));
    aspect-ratio: 923 / 1076;
  }

  .notify-form {
    left: 19.8%;
    top: 85.4%;
    width: 60.7%;
    height: 4.9%;
    grid-template-columns: 72.5% 27.5%;
    border-radius: 8px;
  }

  .notify-form input,
  .notify-form button {
    font-size: clamp(12px, 1.7vw, 16px);
  }

  .notify-status {
    left: 19.8%;
    top: 90.8%;
    width: 60.7%;
    font-size: clamp(11px, 1.5vw, 15px);
  }
}

@media (max-width: 600px) {
  .artwork-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100svh;
  }

  .artwork-frame {
    width: min(100vw, 408px);
    height: auto;
    aspect-ratio: 408 / 1070;
  }

  .notify-form {
    left: 4.5%;
    top: 89.2%;
    width: 91%;
    height: 6.35%;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    border-radius: 6px;
    overflow: visible;
  }

  .notify-form input,
  .notify-form button {
    width: 100%;
    height: 100%;
    font-size: clamp(11px, 3.1vw, 14px);
    border-radius: 4px;
  }

  .notify-form input {
    border: 1px solid var(--panel-border);
    text-align: left;
  }

  .notify-status {
    left: 4.5%;
    top: 95.7%;
    width: 91%;
    font-size: clamp(10px, 3vw, 13px);
  }
}
