/* 
	I use custom html elements as a replacement for the lowly div element. An effort to make the sites html easier to read. 

	To Verify Element Names: use this regex: <[^ !>]*?-
*/

content-wrapper,
logo-container,
music-section,
video-section,
storyteller-section {
  display: block;
}

/* Note: inline is the default behavior for custom elements, placed here as a reference only */
rj-sig {
  display: inline;
}
  /* Modern css reset:
  By Andy bell: https://github.com/hankchizljaw/modern-css-reset 
  Also uses a modification by Christopher Kirk-Nielsen: 
  https://github.com/chriskirknielsen/2020/blob/main/src/_includes/assets/scss/generic/_modern-reset.scss
  Added @view-transition
  Last modified: 2025-01-28
*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
body,
h1,
h2,
h3,
h4,
p,
ul:where([class]),
ol:where([class]),
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* Remove defaults */
ul:where([class]),
ol:where([class]) {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  min-height: 100svh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

@view-transition {
  navigation: auto;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}
  /* 
	Styles here: Last modified: 2023-11-16
*/

:root {

  --bg-color:oklch(20.44% 0 102.07);
  --wrapper-width: 90rem;
  
  --flow-space: 1.75rem;
}

/* @font-face {
  font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
} */

@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  src: local(''),
    url('/assets/fonts/audiowide-v9-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: local(''), url('/assets/fonts/raleway-v18-latin-500.woff2') format('woff2');
  font-display: swap;
}

html { background-color: #171717}

content-wrapper {
  max-width: var(--wrapper-width);
  margin-inline: auto;
  padding-inline: 20px;
}

page-grid {
  display: grid;
  
  min-height: inherit;
}

.skip-link {
  display: inline-block;
  padding: 0.7rem 1rem 0.5rem 1rem;
  background: oklch(100% 0 0);
  color: oklch(0% 0 0);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.skip-link:hover {
  background: oklch(0% 0 0);
  color: oklch(100% 0 0);
}

.skip-link:not(:focus) {
  border: 0;
  clip: rect(0 0 0 0);
  height: auto;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* header {
  grid-area: header;
} */

logo-container {
  width: min(90%, 88.875rem);
  /* max-width: 59.375rem; */
  height: auto;
  margin-block-start: 15px;
  margin-inline: auto;
}

main {
  margin-block-start: 5rem;
  max-width: 72ch;
  margin-inline: auto;
}

:focus {
  outline: 2px dashed;
  outline-offset: 0.25rem;
}

main:focus {
  outline: none;
}

article, update-block {
  color: oklch(100% 0 102.07 / 60%);
  font-family: Raleway, system-ui, sans-serif;
}

/* aside {
  margin-block-start: 2rem;
} */

/* Utility classes: */
.lede {
  font-size: 1.25rem;
  font-style: italic;
  max-width: 50ch;
  text-wrap: balance;
}

.lede + * {
  --flow-space: 2em;
}

.catTime {
  font-size: 1rem;
  color: oklch(52.08% 0 0); 
}

/* Post Images */
.fit {
  max-width: min(37.5rem, 100%);
  object-fit: contain;
}

/* Natural flow and rhythm utility */
.flow > * + * {
  margin-block-start: var(--flow-space, 1em);
}

.flow-1 > * + * {
  margin-block-start: 0.2em;
}

/* *********************** */

h1,
h2,
p.intro,
p.category,
p.tagline,
.bookTitle,
h3,
.sig {
  color: oklch(73.59% 0.071 87.36);
  font-family: 'Audiowide', serif;
  text-wrap: balance;
}

h1, .sig {
  font-size: 2.5rem;
  text-align: right;
}

span.sig {
  color: oklch(63.18% 0.205 25.25);
}

h2 {
  font-size: 2rem;
}

h3,
.bookTitle {
  font-size: 1.8rem;
}
h4 {
  font-size: 2rem;
}

p.category {
  font-size: 5.25rem;
  max-width: 72ch;
  color: lch(100% 0 0 / 10%);
  margin-top: -113px;
  margin-left: -10px;
}

cat-links {
  display: flex;
  padding-block: var(--flow-space);
  padding-inline: var(--flow-space);
  border-radius: 8px;
  border-block-start: 1px solid oklch(37.05% 0 102.07);
  border-block-end: 1px solid oklch(37.05% 0 102.07);
  background-color: oklch(79.54% 0.003 17.22 / 2%);
}
update-block {
  display: block;
  width: min(100%, 72ch);
  margin-inline: auto;
  padding-block: var(--flow-space);
  border-radius: 8px;
  border-block-start: 1px solid oklch(37.05% 0 102.07);
  border-block-end: 1px solid oklch(37.05% 0 102.07);
  background-color: oklch(79.54% 0.003 17.22 / 2%));
}

update-block h4 {
  padding-inline: var(--flow-space);
}
update-block p {
  padding-inline: var(--flow-space);
  padding-block: 10px;
  tex-wrap: balance;
}

.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
}

.brands__item {
  background: #eee;
}

.brands__item img {
  width: 130px;
  height: 75px;
  object-fit: contain;
}


h1.intro {
  font-size: 3.5rem;
  text-align: left;
  margin-top: 5.2rem;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

p,
next-prev {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04rem;
  text-wrap: balance;
}

a:not([class]) {
  color: currentColor;
  text-decoration-color: #ec4444;
  text-underline-offset: 1px;
}

[href]:hover,
.forwards {
  color: #ec4444;
  text-decoration-color: hsla(0, 0%, 100%, 0.6);
  text-underline-offset: 2px;
}

::selection {
  color: rgb(0, 0, 0);
  background: rgba(255, 255, 255, 0.99);
}

aside {
  grid-area: aside;
  max-width: 70ch;
  margin-top: 0.5rem;
}

next-prev {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
  border: 1px solid hsla(0, 0%, 25%, 1);
  border-radius: 8px;
  background-color: hsla(0, 2%, 74%, 0.016);
} 

.forwards {
  color: inherit;
  text-decoration-color: #ec4444;
  text-underline-offset: 1px;
  margin-inline-start: auto;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid hsla(0, 0%, 25%, 1);
  padding: 0.625rem 0;
  color: hsla(0, 0%, 100%, 0.5);
  text-align: center;
  background-color: hsl(0, 0%, 11%);
}

footer p {
  font-size: 1rem;
}