/* Andrew Reyan site: forms, embeds and small behaviours. Layout and type live in Cornerstone. */

:root {
  --ar-ink: #0b0b0c;
  --ar-paper: #f5f5f5;
  --ar-bronze: #a67d62;
  --ar-line: rgba(245, 245, 245, 0.28);
}

html { background: var(--ar-ink); }
::selection { background: var(--ar-bronze); color: var(--ar-paper); }
:focus-visible { outline: 2px solid var(--ar-bronze); outline-offset: 3px; }

/* Forms */
.ar-form { width: 100%; text-align: left; font-family: Inter, Helvetica, Arial, sans-serif; color: inherit; }
.ar-form__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ar-form__field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.ar-form__row .ar-form__field { margin: 0; }
.ar-form__field--grow { flex: 1 1 240px; }
.ar-form__label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.75; }
.ar-form__label em { font-style: normal; letter-spacing: 0.1em; text-transform: none; }
.ar-form input[type=email], .ar-form input[type=text], .ar-form select, .ar-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ar-line); border-radius: 0;
  background: rgba(11, 11, 12, 0.35); color: inherit; font: inherit; font-size: 1rem; box-shadow: none;
}
.ar-form select option { color: #111; }
.ar-form input:focus, .ar-form select:focus, .ar-form textarea:focus { border-color: var(--ar-paper); outline: none; }
.ar-form__button, .ar-shop button {
  min-height: 48px; padding: 0 28px; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit;
  font: 500 0.75rem/1 Inter, Helvetica, Arial, sans-serif; letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.ar-form__button:hover { background: var(--ar-paper); color: var(--ar-ink); }
.ar-form__small { margin: 12px 0 0; font-size: 0.8rem; opacity: 0.65; }
.ar-form__small a { color: inherit; text-decoration: underline; }
.ar-form__msg { margin: 8px 0 0; font-size: 0.95rem; color: var(--ar-bronze); min-height: 1.2em; }
.ar-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ar-form--light input, .ar-form--light select, .ar-form--light textarea { background: #fff; color: #111; border-color: rgba(11, 11, 12, 0.25); }

/* Tracklist rows (from the release string looper) */
.ar-track { display: grid; grid-template-columns: 2.5em 1fr auto; gap: 12px; align-items: baseline; }
.ar-track__n { opacity: 0.5; font-variant-numeric: tabular-nums; }
.ar-track__d { opacity: 0.6; font-variant-numeric: tabular-nums; }

/* Click-to-load players */
.ar-embed iframe { display: block; width: 100%; border: 0; }
.ar-embed--spotify iframe { height: 352px; border-radius: 12px; }
.ar-embed--apple iframe { height: 450px; border-radius: 12px; }
.ar-embed--video iframe { aspect-ratio: 16 / 9; height: auto; }
.ar-embed.is-loaded > :not(iframe) { display: none !important; }

/* Music filter */
[data-ar-filter].is-active { background: var(--ar-paper) !important; color: var(--ar-ink) !important; }
.ar-is-hidden { display: none !important; }

/* Shop */
.ar-shop__gate { max-width: 640px; margin: 0 auto; text-align: center; }
.ar-shop__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.ar-shop.is-loaded .ar-shop__gate { display: none; }
.ar-shop__frame { min-height: 0; }
.ar-shop.is-loaded .ar-shop__frame { min-height: 80vh; background: #fff; }
.ar-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Long-form text from posts and release notes */
.ar-prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ar-prose p { margin: 0 0 1.2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
