/* Buttons, nav, menu, form fields, record sleeve */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.875rem;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 500;
  font-stretch: var(--semi);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform 90ms var(--ease);
}
.btn:hover { background: var(--accent-ink); color: var(--on-dark); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.5rem; padding: 0 var(--s-4); font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.on-dark .btn { background: var(--on-dark); color: var(--ink); }
.on-dark .btn:hover { background: #fff; color: var(--ink); }

/* a quiet text action with a leading icon */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 2.75rem;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}
.link-action span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: currentColor; }
.link-action:hover { color: inherit; }
.link-action:hover span { text-decoration-thickness: 2px; }
.link-action svg { flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
}
.nav__links { display: flex; gap: var(--s-6); }
.nav__links a,
.menu a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav__links a { padding-block: var(--s-3); }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.nav__name {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  font-stretch: var(--wide);
  letter-spacing: -0.01em;
  padding-block: var(--s-2);
}
.nav__name:hover { color: var(--ink); }
.nav__cta { justify-self: end; }
.nav__toggle {
  display: none;
  justify-self: end;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: 0 var(--s-3);
  margin-right: calc(-1 * var(--s-3));
  border: 0;
  background: none;
  font-weight: 500;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-6) var(--gutter);
  background: var(--bg);
}
.menu a:not(.btn) {
  display: block;
  padding-block: var(--s-3);
  font-size: 1.75rem;
  font-weight: 400;
  font-stretch: var(--wide);
}
.menu .btn { margin-top: var(--s-5); min-height: 3.25rem; }
.menu.is-open { display: flex; }

@media (max-width: 899px) {
  .nav__bar { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__name { justify-self: start; }
  .nav__toggle { display: inline-flex; }
}
@media (min-width: 900px) {
  .menu { display: none !important; }
}

/* ---------- form fields ---------- */
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.field .opt { color: var(--ink-2); font-weight: 400; }
.input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 3rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgb(10 10 10 / 0.38);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.input::placeholder { color: #66625b; }
.input:hover { border-color: var(--ink); }
.input:focus-visible {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-ink);
}
input.input { height: 3.25rem; } /* date inputs run 2px taller natively */
textarea.input { min-height: 8rem; resize: vertical; }
.field__error {
  min-height: 0;
  color: var(--error);
  font-size: var(--fs-small);
}
.field.is-invalid .input { border-color: var(--error); }
.field.is-invalid .input:focus-visible { box-shadow: 0 0 0 1px var(--error); }

/* ---------- record sleeve: drawn until the covers arrive ---------- */
.sleeve {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--ink);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.sleeve img { width: 100%; height: 100%; object-fit: cover; }
.sleeve__label {
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgb(222 218 211 / 0.08), 0 0 0 7px rgb(222 218 211 / 0.12);
}
/* the release title and the artist, printed above the spindle like a promo label */
.sleeve__text {
  display: grid;
  gap: 0.2em;
  align-self: start;
  padding-top: 20%;
  text-align: center;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}
.sleeve__text b { font-size: 5.4cqi; font-weight: 600; font-stretch: var(--wide); letter-spacing: -0.01em; }
.sleeve__text span { font-size: 3.9cqi; }
@container (max-width: 199px) {
  .sleeve__text { display: none; }
}
.sleeve__label::after {
  content: "";
  position: absolute;
  width: 3.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
}
