/******************************************************************************
travel_log/2022/co_gap/ — site styles
Dark "project notebook" theme: monospace labels, amber links, grid layout.
******************************************************************************/

/* Basic page style resets */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #333631;
  color: #ffffff;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
}

a:link {
  color: #F8B500;
  background-color: transparent;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.75;
}

a:visited {
  color: pink;
  background-color: transparent;
  text-decoration: none;
}

/* Page structure */
.wrapper {
  min-height: max-content;
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  max-width: calc(1000px - (20px * 2));
  margin-right: auto;
  margin-left: auto;
}

/* Text styles */
.title {
  margin-top: 30px;
  text-align: left;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.75px;
  padding-bottom: 30px;
}

/* Image & video styles */
img,
video {
  max-width: 100%;
  height: auto;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 500px;
}

/* Notebook grid */
.project_grid {
  display: grid;
  grid-template-columns: 1fr;
  border-left: 1px solid #bbbcde;
  border-top: 1px solid #bbbcde;
  text-align: left;
  word-wrap: break-word;
}

.project_grid > div {
  border-bottom: 1px solid #bbbcde;
  border-right: 1px solid #bbbcde;
  padding: 1rem;
  padding-bottom: 0.75rem;
}

.project_label {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
  min-width: 145px;
}

td {
  vertical-align: top;
}

/* Resets so semantic elements match the old table-cell look */
h1 {
  margin: 0;
  font-size: inherit;
  font-weight: bold;
}

dl {
  margin: 0;
}

dt {
  margin: 0;
}

dd {
  margin: 0;
  margin-top: 0.35rem;
}

/* Small screens */
@media (max-width: 480px) {
  .wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .project_grid > div {
    padding: 0.75rem;
  }

  .project_label {
    min-width: 0;
    display: block;
    margin-bottom: 0.25rem;
  }
}

/* Visually hidden but screen-reader/keyboard accessible content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav.project_label {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: bold;
}
