:root {
  --background-color: #fff7e0;
  --border-color: #97791c;
  --text-color: #373131;
  --black-100: #757474;
  --black-200: #5e5e5e;
  --black-300: #444;
  --font-main: monospace;
  --font-secondary: monospace;
  --width: 720px;
  --link-color: #175ccc;
  --english-violet: #574d68ff;
  --cool-gray: #9fa2b2ff;
  --bittersweet-shimmer: #cc444bff;
  --dark-spring-green: #0c7c59ff;
  --peach-yellow: #f7dba7ff;
  --font-large: 2rem;
  --font-medium: 1.75rem;
  --font-small: 1.5rem;
}

* {
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  padding: 1rem;
  background: var(--background-color);
  margin: auto;
  max-width: var(--width);
  color: var(--text-color);
}

header {
  margin-top: 3rem;
  margin-bottom: 5rem;
}

h1, h1 > a {
  font-size: var(--font-large);
}

h2 {
  font-size: var(--font-medium);
}

h3 {
  font-size: var(--font-small);
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1;
  color: var(--black-200);
}

p {
  margin-top: 0;
  line-height: 1.5;
  font-size: 1.25rem;
}

input, label, select {
  display: block;
  margin-bottom: .5rem;
}

button {
  margin-top: 2.5rem;
  border: 1px solid #c9d2d7;
  border-radius: .5rem;
  padding: .25rem 1rem;
  background: transparent;
  color: var(--black-200);
}

textarea {
  width: 50%;
  min-height: 100px;
}

blockquote {
  margin-top: 0;
  margin-left: 1.5rem;
}

blockquote p {
  font-style: italic;
}

.button-link:hover {
  background: #ffca2899;
  transition: background .15s ease-in;
}

.button-delete {
  border: 1px solid #97791c;
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: #eee;
  color: var(--black-200);
  text-decoration: none;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
}

.button-link {
  border: 1px solid #97791c;
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: #ffca2899;
  color: var(--black-200);
  text-decoration: none;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
}

.button-next, .button-prev {
  border-radius: 50%;
  padding: 0 1rem;
  background: transparent;
  color: var(--black-200);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.button-next::after {
  content: url("/static/res/images/chevron-right.svg");
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.button-prev::after {
  content: url("/static/res/images/chevron-left.svg");
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.button-edit::after {
  content: url("/static/res/images/edit.svg");
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 1rem;
  color: #c9d2d7;
}

.button-add::after {
  content: url("/static/res/images/plus-circle.svg");
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin-left: 1rem;
}

.button-add-lg {
  background: #f4f4f4;
  border: 1px solid #97791c;
  border-radius: .5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .5rem .75rem;
  text-decoration: none;
  color: #626262;
}

.button-add-lg:hover {
  background: #ececec;
  transition: background .15s ease-in;
}

.button-add-lg::after {
  content: url("/static/res/images/plus-circle.svg");
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin-left: .5rem;
}

button.copy::after {
  content: url("/static/res/images/document-duplicate.svg");
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

button.copy:hover {
  background: #ffca28;
}

.button-delete::after {
  content: url("/static/res/images/trash.svg");
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: .25rem;
  color: #c9d2d7;
}

nav {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h2 > a, h3 > a, nav > a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 1.25rem;
}

nav > a {
  font-size: 1.125rem;
}

h2 > a:hover, h3 > a:hover nav > a:hover {
  text-decoration: underline;
}

a {
  color: var(--link-color);
  font-size: 1.25rem;
}

#logo {
  font-size: 2rem;
  margin-right: 1rem;
}

button {
  margin-top: 0;
}

form > * + * {
  margin-bottom: 1rem;
}

form > *:last-of-type {
  margin-bottom: 2rem;
}

form button {
  margin-bottom: 0;
}

.radio input {
  display: inline-block;
}

.calendar {
  padding: .5rem;
  display: inline-grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  text-align: center;
  background: #fffaea;
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  justify-items: center;
}

.calendar > * {
  padding: .25rem;
  font-size: 1.25rem;
  margin: .5rem;
  color: var(--black-300);
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  justify-content: center;
  align-items: center;
}

.calendar > .active {
  background: #ffca2899;
  border-radius: 50%;
}

.calendar a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--black-300);
}

.day {
  font-size: 1.25rem;
  color: var(--black-100);
}

.calendar .month-other {
  color: #b9b9b9;
}


.calendar > div > div:first-of-type,
.calendar > .active > div:first-of-type {
  font-size: .75rem;
  margin-bottom: .25rem;
  font-weight: normal;
}

#calendar-container {
  display: flex;
  flex-direction: column;
  color: var(--black-200);
}

#calendar-container > div:last-of-type {
  margin-top: 2rem;
  margin-left: auto;
}

#months {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

#months a {
  text-decoration: none;
}

.session a:not(.button-link) {
  font-size: 1.125rem;
}

.session > * + * {
  margin-top: 2rem;
}

.session-header, .exercise-header {
  display: flex;
  justify-content: space-between;
}

.session-header h2 {
  font-size: 1.5rem;
}

.session-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.session-header-actions form button {
  margin-bottom: 0;
}

.exercise a {
  font-size: .875rem;
}

.exercise {
  background: #fffaea;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: .5rem;
}

.exercise-header {
  margin-bottom: 3rem;
}

.exercise-header h4 {
  font-size: 1.25rem;
}

.exercise-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

#login-form {
  margin-top: 8rem;
  display: inline-block;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login-form h1 {
  font-size: 2.5rem;
}

#login-form input {
  margin-top: .5rem;
}

#login-form label {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

@media (min-width: 520px) {
  body {
    padding: 2.5rem;
  }

  nav > * + * {
    margin-left: 2rem;
  }

  #months {
    display: flex;
  }

  .session > * + * {
    margin-top: 5rem;
  }

  #logo {
    margin-right: 2rem;
  }

  nav > a:last-of-type {
    margin-left: auto;
  }

  nav > a {
    font-size: 1.25rem;
  }

  .button-delete {
    padding: .5rem 1rem;
  }

  .button-delete::after {
    margin-left: 1rem;
  }

  .button-add-lg::after {
    width: 2rem;
    height: 2rem;
    margin-left: 1rem;
  }

  .session-header h2 {
    font-size: 2rem;
  }

  .exercise-header h3 {
    font-size: 1.5rem;
  }
}

.sets {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.sets > * + * {
  margin-top: 3rem;
}

.set-data {
  display: flex;
}

.set-data > * + * {
  margin-left: 1rem;
}

.set {
  display: flex;
  justify-content: space-between;
}

.set-info p {
  margin-bottom: 0;
}

.set-info blockquote {
  margin-top: 1rem;
}

button.copy {
  margin-bottom: 0;
  display: flex;
  padding: 0;
  border: 0;
  border-radius: 50%;
  padding: .5rem;
  background: #ffca2899;
  border: 1px solid #97791c;
}

button.copy::after {
  content: url("/static/res/images/document-duplicate.svg");
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

button.copy:hover {
  background: #ffca28;
  transition: background .15s ease-in;
}
