@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

body {
  margin: 0;
}

html {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  background: linear-gradient(to bottom, #f6f2e8, #ece5d5);
}

h1 {
    font-weight: 700;
}

em {
    font-style: italic;
}

strong {
    font-weight: 700;
}

strong em {
    font-weight: 700;
    font-style: italic;
}

li {
  list-style-type: none;
}

input, textarea {
  font: inherit;
}

#logo {
  font-size: 2rem;
}

.content {
  background-color: white;
  margin: auto;
  width: 600px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  box-shadow: 0 4px 30px rgba(0,0,0,.08);
}

.letter {
  background-color: white;
  margin: 0px auto 24px auto;
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  box-shadow: 0 4px 30px rgba(0,0,0,.08);
  line-height: 1.6;
}

.letter-body {
  white-space: pre-wrap;
}

.signature {
  text-align: right;
  margin-right: 4rem;
  font-size: 1.3rem;
  margin-top: 2rem;
  font-style: italic;
}

.signature > p:first-child {
  margin-right: 4rem;
}

.big-break {
  height: 30vh;
}

.small-break {
  height: 10vh;
}

.centered-text {
  text-align: center;
}

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.button {
  color: black;
  padding: 10px;
  border: 1px solid black;
  width: 50%;
  transition: background-color .5s ease, color .5s ease;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: white;
  background-color: #222;
  cursor: pointer;
}

.centered-items-row {
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  margin: 0 auto;
  width: 80%;
  gap: 32px;
}

.centered-items-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

#nav {
  display: flex;
  flex-direction: row;
  padding: 12px;
  width: 600px;
  background-color: white;
  padding: 20px 40px;
  margin: 0 auto;
}

#nav-ul {
  display: flex;
  flex-direction: row;
  margin-left: auto;
  align-items: end;
  justify-content: space-evenly;
  width: 50%;
}

.standard-a {
  text-decoration: none;
  color: black;
  text-align: center;
}

.left-side {
  width: 40%;
}

.letter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.letter-card {
    width: 80%;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px;

    border: 1px solid #222;

    color: inherit;
    text-decoration: none;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.letter-card:hover {
    background: #f8f6ef;
    transform: translateY(-1px);
}

.letter-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.letter-date {
    white-space: nowrap;
    opacity: .7;
}

.standard-form {
    gap: 1.5rem;
}

.standard-form label {
    font-size: 1.1rem;
    margin-bottom: -1rem;
}

.standard-form input[type="text"],
.standard-form input[type="password"],
.standard-form input[type="email"] {
    font: inherit;
    font-size: 1.15rem;
    padding: .5rem 0;
    border: none;
    border-bottom: 1px solid #bbb;
    background: transparent;
    outline: none;
    transition: border-color .2s ease;
}

.standard-form input[type="text"]:focus,
.standard-form input[type="password"]:focus,
.standard-form input[type="email"]:focus {
    border-bottom-color: #222;
}

.standard-form textarea {
    font: inherit;
    font-size: 1.25rem;
    line-height: 1.7;

    min-height: 24rem;

    padding: 1rem;

    border: 1px solid #ddd;
    background: #fffefc;

    resize: vertical;
    outline: none;

    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.standard-form textarea:focus {
    border-color: #888;
    box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

.standard-form input[type="submit"] {
    font: inherit;
    font-size: 1rem;
    background: white;
    border: 1px solid black;
    padding: .8rem 1.4rem;
    cursor: pointer;
    transition: background-color .5s ease,
                color .5s ease;
}

.standard-form input[type="submit"]:hover {
    background: #222;
    color: white;
}

.standard-form input[type="text"],
.standard-form input[type="email"],
.standard-form input[type="password"],
.standard-form textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
}

.faq {
  margin-bottom: 0px;
}

.faq ~ p {
  margin-top: 0px;
}

.session-card {
  background: white;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem;
  margin-bottom: 2rem;

  border: 1px solid #e7e2d6;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);

  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.session-card h2 {
  margin: 0;
  font-size: 2rem;
}

.session-card p {
  margin: 0;
  color: #555;
}

.session-card .button {
  align-self: flex-start;
  margin-top: 1rem;
}

.session-card {
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,.10);
}

.session-actions {
    margin-top: 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.secondary-actions {
    display: flex;
    gap: 1.5rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .content,
  .letter {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 1rem;
  }

  #nav {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
  }

  #logo {
    display: none;
  }
}
