/* General: Alata-Regular.ttf does not have web font equivalents */
@font-face {
  font-family: 'Alata';
  font-display: swap;
  src: url('Alata-Regular.ttf') format('truetype');
}

/* Whitepaper: SpecialElite-Regular.ttf does not have web font equivalents */
@font-face {
  font-family: 'Special Elite';
  font-display: swap;
  src: url('SpecialElite-Regular.ttf') format('truetype');
}

/* Logo: share-tech-mono-regular - latin */
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('share-tech-mono-v15-latin-regular.eot');
  src: url('share-tech-mono-v15-latin-regular.eot') format('embedded-opentype'),
  url('share-tech-mono-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
  url('share-tech-mono-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
  url('share-tech-mono-v15-latin-regular.ttf') format('truetype'); /* Safari, Android, iOS */
}


/* MVP based reset */

:root {
  color-scheme: light dark;
  --active-brightness: 0.85;
  --border-radius: 5px;
  --hover-brightness: 1.2;
  --line-height: 1.5;
  --width-content: 1080px;
  --endb-yellow: #B0A974;
  --endb-green: #32382E;
}

body {
  line-height: var(--line-height);
  margin: 0;
  overflow-x: hidden;
  padding: 0;
}

nav {
    align-items: center;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 0.5rem;
    position: relative;
    text-align: left;
}

nav ul li img {
  vertical-align: sub;
}

a {
    display: inline-block;
    text-decoration: none;
}

a:active {
    filter: brightness(var(--active-brightness));
    text-decoration: underline;
}

a:hover {
    filter: brightness(var(--hover-brightness));
    text-decoration: underline;
}

a b,
a em,
a i,
a strong,
button,
input[type="submit"] {
    border-radius: var(--border-radius);
    display: inline-block;
    font-size: medium;
    font-weight: bold;
    line-height: var(--line-height);
    margin: 0.5rem 0;
    padding: 1rem 2rem;
}

/* Styles */

html {
    height: 100%;
}

body {
  font-family: Alata, Arial, Helvetica, sans-serif;
  color: var(--color);
  background-color: var(--background-color);
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--background-color);
  background-image: url('/resources/images/background19-reverse.jpg');
  /* filter: saturate(50%) contrast(150%) sepia(50%); */
  /* filter: saturate(50%) contrast(250%) blur(1px); */
  opacity: 0.6;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

header {
    display: flex;
    background-color: var(--endb-green);
    color: var(--endb-yellow);
    padding: 0 3rem;
    margin-bottom: 4rem;
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
}

.logo {
  margin-top: 0;
  font-size: 5rem;
  margin-bottom: 0;
  font-weight: normal;
  font-family: 'Share Tech Mono', Courier, monospace;
}

.logo a {
    color: var(--endb-yellow);
}

.logo a:hover {
    filter: none;
    text-decoration: none;
}

.logo .letter-box {
    background-color: var(--endb-yellow);
    color: var(--endb-green);
    margin-left: -0.05em;
    border: 0;
    border-left: 0.05em;
    border-style: solid;
    border-color: var(--endb-green);
}

.invisible {
  background: transparent;
}

.profile {
  display: flex;
  padding: 1.2rem;
}

.profile > .photo {
  padding-right: 1.2rem;
}

.profile > .description {
  min-width: 17rem;
}

.social ul {
  list-style: none;
  padding: 0;
}

.social ul li {
  display: inline-block;
  margin: 0 0.5rem;
  position: relative;
  text-align: left;
  margin-left: 2rem;
}

.social ul li img {
  vertical-align: sub;
  filter: drop-shadow(3px 3px 3px var(--endb-green));
}

body > .social {
  font-size: 2rem;
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
}

body > footer {
  color: var(--color);
  top: 100vh;
  position: sticky;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}

main {
    padding: 0 3rem;
}

main > h2 {
  /* hide h2 on homepage unless printed */
  display: block; /* none */
}

main > article > section > h3 {
  /* hide h3 on homepage unless printed */
  display: none;
}

main h2 {
  padding: 1rem;
  color: var(--color);
  background-color: var(--background-color);
  font-size: 3rem;
  margin: 0;
  line-height: 1;
}

main article section .intro-blurb > p {
  padding: 0.4rem 0.4rem 0.4rem 1.0rem;
  color: var(--color);
  background-color: var(--background-color);
  font-size: 1.25rem;
}

main section {
  text-align: center;
  color: var(--color);
  background-color: var(--background-color);
  padding: 1rem;
  font-size: 1.25rem;
}

section {
    margin-top: 2rem;
    justify-content: left;
    page-break-inside: avoid;
}

main a b {
    margin-top: 2rem;
    border-radius: 0.5rem;
    border: 3px solid var(--endb-green);
    background-color: var(--endb-yellow);
    color: var(--endb-green);
    font-size: 2rem;
}

nav {
  margin-left: auto;
  font-size: 2rem;
}

ul {
    margin-top: 2rem;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    color: var(--endb-yellow);
}

nav a b {
    border-radius: 0.25rem;
    border: 1px solid black;
    background-color: var(--endb-yellow);
    color: var(--endb-green);
    padding: 0.5rem;
    font-size: 1rem;
}

nav > a {
    font-weight: bold;
    font-size: 3rem;
    display: none;
}

nav .desktop-menu-text {
  display: inline-block;
}

nav ul li a:hover {
  text-decoration: none;
}

nav .mobile-menu-text {
  display: none;
}

article {
  margin-top: 4rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-content: space-evenly;
  gap: 2rem;
}

article section {
  flex: 0 1 40%;
}

.snippet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

blockquote {
  padding: 1rem;
  text-align: justify;
  font-size: 1.5rem;
  max-width: 48rem;
  margin: 0;
  font-family: 'Special Elite', Courier, monospace;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote pre {
  margin-left: 2rem;
  font-family: 'Special Elite', Courier, monospace;
}

blockquote + footer {
  padding: 1rem;
  max-width: 48rem;
  margin: 0;
  text-align: right;
  font-family: Alata, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin: 0;
}

blockquote + footer em {
  font-weight: normal;
  font-style: normal;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  display: block;
}

blockquote + footer a {
  color: inherit;
}

.intro {
  display: flex;
  flex-direction: column;
}

.sql-wrapper {
  overflow: auto;
}

.sql {
  overflow: scroll;
  padding: 1rem;
  text-align: left;
  font-size: clamp(0.7rem, 0.9rem + 0.4cqi, 1.3rem);
  max-width: 48rem;
  margin: 0;
  font-family: Courier, monospace;
  font-weight: normal;
}

.kw {
  color: var(--sql-yellow);
}

.lit {
  color: var(--sql-green);
}

.cta-buffer {
  flex-grow: 1;
}

.cta-group {
  display: flex;
  justify-content: space-around;
  flex-flow: row wrap;
}

.cta {
  border-radius: .7rem;
  padding: 1.2rem;
  margin: 1.2rem;
  font-size: 1.2rem;
  text-align: center;
  text-transform: lowercase;
  font-weight: normal;
  /* font-family: 'Share Tech Mono', Courier, monospace; */
  font-family: 'Special Elite', Courier, monospace;
  flex: 1;
}

.cta:hover {
  text-decoration: none;
}

.cta-on {
  background-color: var(--cta-btn-on);
  color: var(--cta-txt-on);
}

.cta-off {
  background-color: var(--cta-btn-off);
  color: var(--cta-txt-off);
}

@media screen and (max-width:915px) {
    nav ul li {
        margin-left: 0;
    }
}

@media screen and (max-width:851px) {
  main {
    padding: 0;
  }

  article section {
    flex: 0 1 80%;
  }

  header, section {
    margin: 2rem 0;
  }

    header {
        padding: 0 0.5rem;
        margin-top: 0;
    }

    nav ul  {
        display: none;
    }

    nav ul li  {
        text-align: center;
        display: block;
    }

    /* show the hamburger menu */
    nav:focus-within > ul  {
        text-align: center;
        position: absolute;
        left: 0;
        top: 3.5rem;
        display: block;
        width: 100%;
        background-color: var(--endb-green);
        font-size: 2rem;
    }

  nav:focus-within .desktop-menu-text {
    display: none;
  }

  nav:focus-within .mobile-menu-text {
    display: inline-block;
  }

    .logo {
        font-size: 4rem;
    }

    nav > a {
        display: flex;
        height: 100%;
        align-items: center;
        font-size: 2.5rem;
    }

    nav > a:hover {
        text-decoration: none;
    }

    main {
        text-align: center;
    }

  .profile {
    padding: 1rem;
    flex-flow: row wrap;
  }

  .profile > .photo {
    flex: 0 1 80%;
  }

  .profile > .description {
    flex: 0 1 80%;
  }
}

@media screen and (max-width:360px) {
  header, section {
    margin: 0.5rem 0;
  }

  header {
    margin-top: 0;
  }

  .logo {
    font-size: 3rem;
  }

  nav > a:hover + ul  {
    top: 2.5rem;
  }

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

}

@media print {
  @page {
    margin: 0;
  }

  body {
    padding-top: 1.0rem;
  }

  body > header > nav {
    display: none;
  }

  main > h2 {
    /* hidden on homepage unless printed */
    display: block;
  }

  main h2 {
    color: #ffffff;
    height: 25rem;
    padding: 1.0rem;
    margin: 1.0rem;
    line-height: 1.2;
    background-image: url('/resources/images/background19-reverse.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-filter: opacity(0.6);
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }

  article {
    margin: 1rem;
    padding: 0rem;
    display: block;
  }

  main article section > p {
    padding: 0.2rem 0;
    font-size: 0.8rem;
    text-align: justify;
  }

  blockquote {
    padding: 0 3rem;
    font-size: 1rem;
  }

  section {
    margin: 0;
  }

  main > article > section > h3 {
    /* hidden on homepage unless printed */
    display: block;
  }

  h3 {
    border-bottom: 1px solid #CCC;
  }

  body > footer {
    display: none;
    position: fixed;
    bottom: 0;
  }
}
