@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@900&family=Inter:wght@200;300;400&display=swap');

@font-face { font-family: 'dylan fat'; src: url('fonts/dylan-fat.woff2') format('woff2'); font-weight: 100 900; font-display: block; }
/* the fat font has no & # % * + / = \ — borrow those from the skinny font */
@font-face { font-family: 'dylan fat'; src: url('fonts/dylan-skinny.woff2') format('woff2'); unicode-range: U+0023, U+0025-0026, U+0040, U+002A-002B, U+002F, U+003D, U+005C; font-weight: 100 900; font-display: block; }
@font-face { font-family: 'dylan skinny'; src: url('fonts/dylan-skinny.woff2') format('woff2'); font-weight: 100 900; font-display: block; }

:root {
  --gap: 32px;
  --bg: #ffffff;
  --text: #111111;
  --muted: #6e6e6e;
  --line: #ececec;
  --fat: 'dylan fat', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --thin: 'dylan skinny', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scrollbar-gutter: stable; }

/* smooth page switching: crossfade between pages (modern browsers), gentle fade-in otherwise */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }
::view-transition-group(site-nav) { animation-duration: 0s; }
nav { view-transition-name: site-nav; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main { animation: page-in .35s ease both; }
@supports (view-transition-name: none) { main { animation: none; } }
.pack img { opacity: 0; transition: opacity .35s, transform .4s; }
.pack img.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
body {
  background: var(--bg); color: var(--text);
  font: 400 25px/1.5 var(--thin);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  min-height: 100vh; display: flex; flex-direction: column;
}
input, textarea { text-transform: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* nav */
nav { padding: var(--gap) 0; }
nav .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--gap); }
.logo { font: 400 clamp(56px, 9vw, 84px)/.9 var(--fat); align-self: center; text-align: center; }
nav ul { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
nav ul a { font-size: 25px; color: var(--muted); transition: color .15s; }
nav ul a:hover, nav ul a[aria-current] { color: var(--text); }
.drop { position: relative; }
.drop-btn { font: inherit; font-size: 25px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-transform: lowercase; transition: color .15s; }
.drop-btn:hover, .drop-btn[aria-current], .drop.open .drop-btn { color: var(--text); }
.caret { display: inline-block; width: 13px; height: auto; margin-left: 5px; vertical-align: middle; opacity: .55; transition: transform .2s, opacity .15s; }
.drop-btn:hover .caret, .drop-btn[aria-current] .caret, .drop.open .caret { opacity: 1; }
.drop.open .caret { transform: rotate(180deg); }
.drop-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 20; min-width: 0; display: none; align-items: center; flex-direction: column; gap: 0; padding: 8px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop.open .drop-menu { display: flex; }
@media (hover: hover) { .drop:hover .drop-menu { display: flex; } .drop:hover .caret { transform: rotate(180deg); } }
.drop-menu a { display: block; padding: 8px 22px; white-space: nowrap; text-align: center; }


/* headings */
h1 { font: 400 clamp(72px, 15vw, 180px)/.9 var(--fat); margin: 56px 0 0; }
h2 { font: 400 54px/1 var(--fat); margin: 72px 0 24px; }
h3 { font: 400 34px/1.1 var(--fat); }
.lede { color: var(--muted); max-width: 520px; font-size: 24px; margin-bottom: 56px; }

/* link rows (music platforms, other stores) */
.rows { background: url(img/rule.png) top left / 100% 6px no-repeat; padding-top: 4px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; background: url(img/rule-light.png) bottom left / 100% 6px no-repeat; transition: padding .2s; }
.row:hover { padding-left: 10px; }
.row .name { font: 400 clamp(40px, 7vw, 66px)/1 var(--fat); }
.row .go { color: var(--muted); font-size: 24px; white-space: nowrap; }
.row:hover .go { color: var(--text); }

.embed { margin-bottom: 56px; border-radius: 12px; overflow: hidden; }
.embed iframe { display: block; width: 100%; border: 0; }

/* home page */
.home-links { display: grid; grid-template-columns: 1fr; gap: 18px; container-type: inline-size; }
.home-links a { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 12px .1em;
  font: 400 calc(20.8cqi - 15px)/.95 var(--thin); text-align: center;
  border: 24px solid transparent; border-image: url(img/btn.png) 16 fill / 24px stretch; }
.home-socials { display: flex; justify-content: center; gap: 12px 28px; margin-top: var(--gap); flex-wrap: wrap; }
.home-socials a { font-size: 28px; color: var(--muted); transition: color .15s; }
.home-socials a:hover { color: var(--text); }
@media (max-width: 760px) { .home-socials { gap: 10px 18px; } .home-socials a { font-size: 23px; } }
.home-links a:hover { border-image-source: url(img/btn-hover.png); }
.home-links a:active { transform: translateY(1px); }
@media (max-width: 760px) { .home-links { gap: 12px; } .home-links a { min-height: 0; padding: .02em 0 .12em; font-size: calc(21cqi - 8px); white-space: nowrap; border-width: 18px; border-image-width: 18px; } }

/* artwork grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 24px; margin-top: 0; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.wide { grid-template-columns: minmax(0, 560px); }
.pack .art { overflow: hidden; border-radius: 6px; background: #f3f3f3; box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .25s, box-shadow .25s; }
.pack img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.grid.wide .pack img { aspect-ratio: 16 / 9; }
.pack:hover .art { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.pack:hover img { transform: scale(1.05); }
.pack h3 { margin-top: 14px; transition: opacity .2s; }
.pack:hover h3 { opacity: .6; }

/* plugin feature */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.feature img { width: 100%; border-radius: 8px; }
.feature h3 { font-size: 60px; line-height: .95; margin-bottom: 18px; }
.feature p + p { margin-top: 14px; }
.feature ul { margin: 18px 0 0 18px; }
.price { font: 400 34px var(--fat); margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: 160px; height: 51px; margin-top: 14px; padding: 0 0 2px; background: url(img/btn.png) center / 100% 100% no-repeat; color: var(--text); border: 0; border-radius: 0; cursor: pointer; font-family: var(--thin); font-size: 25px; text-transform: lowercase; }
.btn:hover { background-image: url(img/btn-hover.png); }
.btn:active { transform: translateY(1px); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 0; }
.about img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.bio { font-size: 38px; line-height: 1.35; }
.contact-head { margin: var(--gap) 0 16px; }

form { display: grid; gap: 14px; max-width: 560px; }
label { font-size: 23px; color: var(--muted); display: grid; gap: 6px; }
input, textarea { font: 400 25px/1.4 var(--thin); color: var(--text); padding: 12px 0 14px; border: 0; background: url(img/rule-light.png) bottom left / 100% 6px no-repeat; outline: none; border-radius: 0; }
input:focus, textarea:focus { background-image: url(img/rule.png); }
textarea { min-height: 120px; resize: vertical; }
.status { font-size: 23px; color: var(--muted); min-height: 1.6em; }

footer { padding: 72px 0 40px; color: var(--muted); font-size: 22px; }
footer .wrap { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; background: url(img/rule-light.png) top left / 100% 6px no-repeat; padding-top: 28px; }
footer a:hover { color: var(--text); }
footer .socials { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .feature, .about { grid-template-columns: 1fr; gap: 32px; }
  .bio { font-size: 30px; }
  nav ul { gap: 18px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .grid.three { gap: 20px 10px; }
  .grid.three .pack h3 { font-size: 19px; }
  .grid.wide { grid-template-columns: 1fr; }
  .pack h3 { font-size: 26px; }
}

/* sample pack covers: big, edge to edge, no titles */
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 0; }
.cover { display: block; overflow: hidden; aspect-ratio: 1; background: #f3f3f3; }
.cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, transform .45s, filter .3s; }
.cover img.loaded { opacity: 1; }
.cover:hover img { transform: scale(1.06); filter: brightness(.88); }
@media (max-width: 760px) { .covers { grid-template-columns: 1fr 1fr; } }
.covers.two { grid-template-columns: 1fr 1fr; }
.label { font: 400 68px/1 var(--fat); margin: 0 0 var(--gap); }

/* gumroad product embed (plugins page) */
.embed-wrap { margin-top: 0; max-width: 760px; }
.embed-wrap iframe { display: block; width: 100%; border: 0; }
