@font-face {
  font-family: 'riyd';
  src: url('/assets/font/b2.woff2') format('woff2'), url('/assets/font/b2.woff') format('woff');
  font-weight: 400;
}
@font-face {
  font-family: 'riyd';
  src: url('/assets/font/h4.woff2') format('woff2'), url('/assets/font/h4.woff') format('woff');
  font-weight: 700;
  /* font-display: block; *//* show nothing instead of fallback font */
}
@font-face {
  font-family: 'riyd-alt';
  src: url('/assets/font/h2-light.woff2') format('woff2'), url('/assets/font/h2-light.woff') format('woff');
  font-weight: 700;
  /* font-display: block; *//* show nothing instead of fallback font */
}

/* BETA TEMP TAG */
.logo::after {
  content: 'beta';
  vertical-align: top;
}

:root {
  color-scheme: light dark;
  background: var(--bg);
  color: var(--fg);
}

:root[data-dark] {
  color-scheme: light;
  --bg: #fffdfa;
  --gb: #ccc;
  --gf: #666;
  --fg: #333;
  --a1: #dadbd1;
}

:root[data-dark=true] {
  color-scheme: dark;
  --bg: #222;
  --gb: #555;
  --gf: #aaa;
  --fg: #ddd;
}
#theme {
  padding: 12px;
  line-height: 1;
  cursor: default;
  font-size: 20px;
  position: absolute;
  right: 0;
  top: 7px;
}

#theme:hover {
  transform: rotate(180deg)
}

* { box-sizing: border-box; }

button,
input,
select,
textarea {
	font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.release-detail a {
	text-decoration: underline;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
  font-family: riyd, sans-serif;
  text-rendering: geometricPrecision;
}

h1, h2, h3 {
	text-transform: uppercase;
	/* font-family: riyd-alt; */
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem 1rem 1.5rem;
  border-bottom: 1px solid #222;
}

.logo {
  fill: var(--fg);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

header,
footer,
main {
  max-width: 1350px;
  padding: 1.5rem;
  margin: auto;
}

.hidden { display: none !important; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4rem 2rem;
}

.card {
  cursor: pointer;
  line-height: 24px;
  /* margin: 0 0 96px; */
  position: relative; /* For z-index layering */
  /* overflow: hidden; */
}

.card img {
  transition: transform 0.3s;
  transform: translateY(90px);
  position: relative;
  margin: -3rem 5px 0;
}

.card .meta {
  padding: 1rem 0 0 0;
  position: relative;
  z-index: 2;
  background: rgb(from var(--bg) r g b / .86);
  background: linear-gradient(transparent,1%,var(--bg));
  backdrop-filter: blur(3px);
  padding: 7px;
}

.card .artist {
  font-size: 22px;
}

.card .title {
  font-size: 26px;
  margin-bottom: 26px;
}

/* not used yet */
.card .feats {
  margin: -18px 0 18px;
}

.card .year {
  font-size: 0.85rem;
  color: var(--muted);
}

.card:hover img,
.card:focus-within img {
  transform: translateY(9px);
}

img.fade{
  transform:translateY(120px);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
}

.modal-close:hover { opacity: 1; }

/* Release detail inside modal / full view */
.release-detail {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .release-detail {
    grid-template-columns: 280px 1fr;
  }
}

.release-detail img.cover {
  width: 100%;
}

img {
  border-radius: 3px;
}

.release-detail h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.release-detail .by {
  color: var(--muted);
  margin-bottom: 1rem;
}

.tracklist {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tracklist td {
  padding: 0.35rem 0.5rem 0.35rem 0;
  vertical-align: top;
}

.tracklist td:first-child {
  width: 2rem;
  color: var(--muted);
  text-align: right;
  padding-right: 0.75rem;
}

.tracklist .time {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}

.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  color: var(--fg);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
}

.pagination a:hover {
  border-bottom: 2px solid var(--accent);
}

.blog-list,
.blog-content,
.blog-admin {
  max-width: 850px;
  margin: 0 auto;
}
.blog-list ol {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--a1);
}
.blog-list li { border-bottom: 1px solid var(--a1); }
.blog-list li a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.blog-entry-title { font-size: 1.2rem; }
.blog-list time,
.blog-content > time { color: var(--gf); }
.blog-content h1 { margin-bottom: .25rem; }
.blog-body { margin-top: 2rem; }
.blog-body p { max-width: 72ch; }
.blog-back { display: inline-block; margin-bottom: 1rem; text-decoration: underline; }
.blog-album-grid { margin: 2rem 0; }
.missing-album { border-left: 3px solid #b44; padding-left: .75rem; }
.blog-admin form,
.blog-admin label { display: grid; gap: .5rem; }
.blog-admin form { gap: 1rem; }
.blog-admin input,
.blog-admin textarea {
  width: 100%;
  padding: .6rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--gf);
}
.blog-admin textarea { resize: vertical; font-family: monospace; }
.blog-admin button { padding: .5rem .8rem; cursor: pointer; }
.admin-load-row,
.admin-insert-row,
.admin-save-row { display: flex; gap: .6rem; align-items: center; }
.admin-load-row input,
.admin-insert-row input { flex: 1; min-width: 0; }
.admin-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-status { min-height: 1.5em; }
@media (max-width: 560px) {
  .blog-list li a { flex-direction: column; gap: .25rem; }
  .admin-load-row { align-items: stretch; }
}

/* SEARCH */
.search-container {
    position: relative;
}
.search-container input {
	color: inherit;
  border: none;
  border-bottom: 1px solid var(--a1);
  width: 300px;
  background: none;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--a1);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.search-suggestions.active {
    display: block;
}
.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--a1);
}
.suggestion-item:hover, .suggestion-item.selected {
    background: var(--a1);
    color: #222;
}
.suggestion-item.selected .category, .suggestion-item:hover .category {
    /* color: white; */
}
.suggestion-item .category {
    font-size: 12px;
    /* color: var(--fg); */
    opacity: 0.7;
}
.click2load {
	line-height: 46px;
	font-family: sans-serif;
    font-size: 13px;
    background: none;
    border: 0;
	color: currentColor;
	opacity: .6;
}
.play-button {
	border-radius: 2px;
	border: 1px solid currentColor;
	display: inline-block;
	margin-right: 1rem;
	vertical-align: bottom;
}
.play-icon {
	border: 10px solid transparent;
	border-left: 18px solid currentColor;
	border-right: 0;
	margin: 12px 11px 12px 15px;
}
.click2load:hover {
    /* border-color: currentColor; */
	opacity: 1;
}
iframe {
    border: 0;
    height: 300px;
    width: 100%;
    max-width: 700px;
}
