/* Typography */

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

body {
  font-family: "Reddit Sans", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

p  {
  color: #A1A1A1;
  font-weight: 400; 
}

/* Layout */

:root {
  --text: #ffffff;
  --bg: #171717;
  --accent: #ff7a00;
  --gray: #666666;
}

.wrapper{
  display: grid;
  grid-template-columns: clamp(320px, 28vw, 480px) 1fr;
  column-gap: 10rem;
  max-width: min(90vw, 1300px);
  margin-inline: auto;
}

.sidebar{
  flex: 0 0 280px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar footer{
  margin-top: auto;
  padding-bottom: 1.5rem;
  user-select: none;
  caret-color: transparent;
}

main {
  flex: 1;
  padding: 4rem 2rem;
  padding-top: 0;
  margin-top: 0;
}

.content {
  flex: 1;
  padding: 4rem 2rem;
  min-width: 0;
}

/* Sidebar/header Text */

.name{
  font-size: 3.75rem;
  line-height: .85;
  font-weight: 800;
  margin: 5rem 0 0;
  white-space: nowrap;
  word-break: break-word;
}

.name::after {
  content: ".";
  color: var(--accent);
}

.tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0.1rem 0 0.5rem;
  white-space: nowrap;
}

.catchphrase {
  color: #A1A1A1;
  line-height: 1.25rem;
  margin-bottom: 1rem;
}

/* Section Text */

.footnote {
  font-size: 0.6rem;
  vertical-align: super;
  color: #666666;
}

.description .footnote {
  color: #A1A1A1
}

.date {
  color:#666666;
  font-weight: 700;
  font-size: 0.95rem;
}

.job {
  color: white;
  font-weight: 550;
}

.job-title {
  align-items: baseline;
  display: contents;
  flex-wrap: wrap;
  margin: 0;
  line-height: 0;
}

.job-title p {
  margin: 0.25rem;
}

.past-job {
  font-weight: 500;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: 0.15s ease;
}

a:hover {
  color: #ffaf64;
}

h1 a:hover {
  text-decoration: none;
  color: var(--text);
}

.description {
  grid-column: 1 / -1;
}

.end {
  font-weight: 500;
  font-size: 0.95rem;
  color: #646464

}

.end a {
  color: #999999
}

.end a:hover {
  color: #ffaf64;
}

/* Sections */

.box {
  width: 100%;
  max-width: 35rem;
  box-sizing: border-box;
  border: 1px solid #535353;
  border-radius: 20px;
  padding: 20px;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2rem;  
}

.box.with-image {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  row-gap: 1rem;
}

.box.with-image .spectrogram {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}

.box.with-image .job-title {
  grid-column: 1;
  grid-row: 2;
  display: block;
  margin-top: .25rem;
}

.box.with-image .job-title > .date {
  display: block;
  margin: 0 0 .35rem 0;
}

.box.with-image .description {
  grid-column: 1;
  grid-row: 3;
}

.job-title .date,
.job-title .job {
  margin: 0;
  line-height: 1.35;
}

.job-title > p:not(.date) {
  grid-column: 2;
  margin: 0;
  line-height: 1.35;
  margin-top: 0;
}

.small-only {
  display: none;
}

.large-only { 
  display: inline;
}


/* Navigation */

.site-nav {
  padding: 0.75rem 0rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  color: #666666;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li{
  margin: 0.5rem 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  color: #666666;
  transition: color .35s ease;
}

.nav-link::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  margin-right: 0.5rem;
  transition: width 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color:#cccccc;
  text-decoration: none;
}

.nav-link:hover::before,
.nav-link:focus::before,
.nav-link.active::before {
  width:4.5rem;
  background:#cccccc;
}

/* Images */

.socials a.social-image {
  display: inline-block;
  margin-right: 0.75rem;
  user-select: none;
  caret-color: transparent;
}

.socials a.social-image img {
  width: 30px;
  aspect-ratio: 1;
  filter:grayscale(1) contrast(0) brightness(.75);
  transition: filter 0.2s ease;
}

.socials a.social-image:hover img,
.socials a.social-image:focus img {
  filter: grayscale(0) contrast(0) brightness(1.5);
}

.spectrogram {
  border-radius: 20px;
  height: 150px;
}

/* Other */

html {
  scroll-behavior: smooth;
}