* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  /* Color scheme */
  color: #000;
}

body {
  padding: 30px;
  font-family: serif;
  font-size: 16px;
}

body > *,
body > * > *,
main figure > *,
main figure > div > *,
main p {
  margin-bottom: 30px;
}

/* Header  */

header {
  padding: 5vw 5vw 0 5vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* children are aligned vertically */
  gap: 2rem;
  width: 100%;
}

header h1 {
  margin-bottom: 0;
  font-size: 2.5em;
  color: #d36f64;
}

header h2 {
  display: block;
  margin-bottom: 0;
  flex-grow: 2; /* take twice more space than the other elements */
  color: #056d7a;
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
  align-items: baseline;
  white-space: nowrap;
}

nav {
  margin: 0;
}

nav ul {
  display: flex;
  justify-content: flex-end; /* aligns children to the right (in left to right mode) */
  gap: 2rem;
  list-style-type: "";
}

/* General */

main article {
  border-left: 5px solid #056d7a;
  padding-left: 25px;
  width: 80%;
  max-width: 800px;
  margin: auto;
}

main h1,
main h2,
main h3,
main h4,
main h5 {
  max-width: 400px;
}

main ul,
main ol {
  margin: 0 30px 30px 30px;
}

main ul {
  margin-bottom: 0;
}

main ul li,
main ol li {
  line-height: 25px;
  padding: 0px 5px;
}

main p {
  max-width: 100ch; /* Limit line-length to 100 characters */
  line-height: 160%;
}

main p:last-child {
  margin-bottom: 0;
}
main q {
  font-family: serif;
  font-size: 18px;
  font-style: italic;
  display: block;
  max-width: 400px;
}

main hr {
  clear: both;
}

main b,
strong {
  font-weight: 600;
}

main small {
  font-size: 0.85em;
}

main abbr {
  text-decoration: none;
}

main abbr[title]:hover {
  opacity: 0.7;
  cursor: help;
}

main blockquote {
  padding-left: 2ch;
  opacity: 0.7;
  margin-bottom: 0.6em;
  position: relative;
}

main blockquote:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  background: currentColor;
  width: 1px;
  opacity: 0.2;
}

main img,
svg,
video,
audio {
  display: block;
  max-width: 100%;
  height: auto;
  fill: currentColor;
}

main code,
textarea {
  font-family: ui-monospace, SF Mono, Menlo, Monaco, Andale Mono, monospace;
  font-size: 1em;
  opacity: 0.7;
}

main a code {
  opacity: 1;
}

main pre,
textarea {
  /* for code samples */
  font-size: 0.9em;
  color: inherit;
  line-height: inherit;
  padding: 0.6em 0.9em;
  margin: 0.8em 0 1em 0;
  position: relative;
  display: block;
  width: 100%;
  white-space: pre;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 100, 0.075);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.2),
    inset -1px -1px 0 rgba(0, 0, 0, 0.04);
}


/* Sections */
section#home { /* Show #home by default */
  display: block;
}

section#about { /* Show #about */
  display: block;
}

.intro {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.intro .content {
  grid-row: 1/2;
}

.intro .map {
  grid-row: 1/3;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
.intro iframe {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.intro .centrehack {
  grid-row: 2/3
}


@media (max-width: 1024px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro .content,
  .intro .map,
  .intro .centrehack {
    grid-row: initial;
  }
}


.centrehack {
  padding: 2em;
  width: 110%;
  max-width: 800px;
  margin: auto;
  position: relative;
}

/* External links */

a[href*="/"] {
  font-style: italic;
  text-decoration: underline #64cbd3;
  font-weight: 300;
  font-size: 1em;
}

a[href*="/"]::after {
  content: "\2197"; /* top right arrow: ↗ */
}

a[href*="//"]:hover:after
{
  color: var(--highlight);
  opacity: 1;
}

/* visited link */
a:visited {
  color: #d36f64;
}

/* mouse over link */
a:hover {
  color: rgb(192, 5, 99);
}

/* File links */

a:before {
  font-size: 0.7em;
  margin-right: 0.4em;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-top: 1.5px solid;
  padding: 30px 0 0 0;
  line-height: 30px;
}

footer p {
  margin: 0;
}

footer img {
  display: block;
  width: 60px;
}

footer a,
footer img {
  padding-inline: 2px; /* same as padding-right and padding-left*/
  margin-bottom: 0;
}

/* ------- Smaller screens ------- */

@media only screen and (max-width: 680px) {
  body { font-size: 16px; }
}

@media only screen and (max-width: 540px) {
  nav { width: 100%; } /* Fix for older webkit versions */
}
