/*
@todo Add support for light and dark themes
*/


html {
  font-size: 62.5%;
  line-height: 1.4;
  box-sizing: border-box;
}

*,
*:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.075em;
  background-color: #343434;
}

a {
  color: #ffbe00;
}

a:visited {
  color: #cd9800;
}

a:hover {
  color: #ffce00;
}

p {
  margin: 1.5em 0;
}


input,
select,
textarea {
  appearance: none;
  padding: 1em;
  font-family: monospace, sans-serif;
  font-size: 1.5rem;
  color: #171717;
  letter-spacing: 0.025em;
  border: none;
  border-radius: 0.25em;
  background-color: #fff;
  box-sizing: border-box;
}


select {
  width: auto;
  padding-right: 4em;
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 1.4em) 50%,
    calc(100% - 0.9em) 50%,
    calc(100% - 2.75em) 50%;
  background-size:
    0.5em 0.5em,
    0.5em 0.5em,
    1px 80%;
  background-repeat: no-repeat;
}





/* Page Structure */

.page-header {
  display: block;
  max-width: 95em;
  margin: 0 auto;
  padding: 1rem 3rem;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  max-width: 60em;
  margin: 0 auto;
}

.page-body {
  max-width: 38em;
  padding: 1rem 3rem;
  margin: 2em auto 3em auto;
  font-size: 1.5em;
}

.page-body :first-child {
  margin-top: 0;
}





/* Page content */

.page-nav .home {
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  color: #fff;
  font-weight: 100;
  text-decoration: none;
}

.page-nav .home:hover {
  color: #ffce00;
}

.page-nav .github {
  width: 1.5em;
}

.page-nav .github .svg {
  width: 100%;
  fill: #fff;
}

.page-nav .github:hover .svg {
  fill: #ffce00;
}

.page-heading {
  margin-bottom: 1em;
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-weight: 400;
  color: #f7eac5;
}

.page-description {
  font-size: 0.75em;
}

.btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #ffbe00;
}

.btn-primary:hover {
  background-color: #ffce00;
}

.errors {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.2em;
  list-style: none;
  margin: 0.5em 0;
  padding: 0;
  font-size: 0.8em;
  color: #c51244;
}


.errors .error-item {
  padding: 0.25em 1em 0.25em 0.75em;
  border-radius: 0 0.15em 0.15em 0;
  border-left: 0.25em solid #9c0932;
  background-color: #fad9e2;
}








/* Note */

.field-label {
  display: block;
  margin-bottom: 0.25em;
}

.note-content {
  width: 100%;
  height: 15em;
  max-width: 100%;
  max-height: 45em;
  line-height: 1.4;
}

.note-share-url {
  overflow: hidden;
}

.note-share-url .summary {
  font-size: 0.7em;
  text-transform: uppercase;
  cursor: pointer;
}

.note-share-url .summary::marker,
.note-share-url .summary::-webkit-details-marker {
  color: #ffbe00;
  font-size: 0.75em;
}

.note-share-url .url {
  width: 100%;
}

.field-wrap {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.field-wrap.field-passphrase .field-input {
  width: 100%;
}


.field-wrap.field-passphrase .passphrase-char-count {
  display: block;
  max-height: 0;
  margin-top: 0.35em;
  transition: max-height 0.5s ease-in-out;
  font-size: 0.5em;
  font-family: monospace, sans-serif;
  letter-spacing: 0.035em;
  overflow: hidden;
}

.field-wrap.field-passphrase .passphrase-char-count .sep {
  margin: 0 0.25em;
}


.field-wrap.field-passphrase .note-passphrase.active ~ .passphrase-char-count {
  max-height: 2em;
}



.field-wrap.field-expires {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.field-wrap.field-expires .field-label {
  margin-right: 0.75em;
  margin-bottom: 0;
}

.field-wrap.field-submit {
  margin-top: 3em;
}







