:root {
  color-scheme: light dark;
  --a-color: #000;
  --background-highlight-color: rgb(244, 244, 244);
  --background-color: #fff;
  --header-a-color: var(--background-color);
  --header-background-color: var(--tint-color);
  --duration: 0.3s;
  --tag-color: #fff;
  --secondary-text-color: #626262;
  --text-color: #000;
  --timing: ease-in-out;
  --tint-color: #fdd831;
  --fineprint-color: #ccc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-highlight-color: rgb(9, 9, 9);
    --background-color: #222;
    --a-color: #fff;
    --post-meta-color: #b7b7b7;
    --secondary-text-color: #aaa;
    --text-color: #ccc;
    --fineprint-color: #555;
    --header-a-color: var(--tint-color);
    --header-background-color: var(--background-highlight-color);
  }

  p code, li code, h1 code, h2 code, h3 code, h4 code, td code {
    color: #222;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5em;
  font-family: Helvetica, Arial;
  text-align: center;
}

.wrapper {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 1em max(2.5em, env(safe-area-inset-right)) 1em max(2.5em, env(safe-area-inset-left));
  text-align: left;
}

header .wrapper p {
  font-style: italic;
  margin-top: 0.5em;
}

header .wrapper {
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
}

footer .wrapper p {
  margin: 0.5em 0;
  text-align: center;
  font-size: 0.8em;
}

footer .wrapper p .fineprint {
  font-style: italic;
}

.fineprint {
  margin-bottom: 0;
  color: var(--fineprint-color);
}

footer .wrapper {
  padding-top: 0em;
  padding-bottom: 1em;
}

footer {
  margin-bottom: calc(0.5em + env(safe-area-inset-bottom));
}

header a {
  text-decoration: none;
}

header .site-name {
  font-size: 2rem;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
}

header {
  background: var(--header-background-color);
  color: var(--header-a-color);
}

.site-name {
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"
}

.support {
  border-radius: 8px;
  border: 2px solid var(--tint-color);
  padding: 1em;
  margin: 1em 0;
  display: block;
  text-decoration: none;
}

nav {
  margin-top: 1em;
}

nav li {
  display: inline-block;
  margin: 0 7px;
  line-height: 1.5em;
}

nav li a.selected {
  text-decoration: underline;
}

h1 {
  margin-bottom: 0.5em;
  font-size: 2.5em;
  line-height: 1.5em;
}

h2 {
  margin: 1em 0;
}

h3 {
  margin: 0.75em 0;
}

h4 {
  margin-top: 0.75em;
}

p, .content img, .content video, .content ol, .content ul {
  margin-top: 1em;
}

.content .tag-list {
  margin-top: -0.4em;
}

.content li img {
  margin-bottom: 1em;
}

a {
  color: inherit;
}

li article a {
  text-decoration: none;
}

.description {
  margin-bottom: 3em;
}

.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 1rem;
}

.wwdc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.item-list > li {
  display: block;
  margin-bottom: 1em;
}

.item-list h1 {
  margin: 0;
  font-size: 1.3em;
}

.item-list p {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  color: var(--tint-color);
  margin: 0;
}

.tag a {
  text-decoration: none;
  border-radius: 8px;
  padding: 3px 6px;
}

.tag-list * {
  text-decoration: none;
  padding: 0px 0.4em;
  border-radius: 8px;
  margin-right: 0.3em;
  margin-top: 0.4em;
}

.item-page h1 {
  margin-bottom: 0.2em;
}

.content {
  margin-bottom: 1em;
}

.content img, .content video {
  object-fit: cover;
  max-width: 100%;
  min-height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 1em;
}

table {
  padding-top: 1em;
}

.content table img {
  margin-top: 0em;
}

.content table img {
  object-fit: contain;
  min-height: auto;
}

p code, li code, h1 code, h2 code, h3 code, h4 code, td code {
  background-color: #e2e2e2;
  border-radius: 6px;
  padding: 2px 4px;
}

.content ul, .content ol {
  padding-left: 2em;
}

ul.tag-list {
  padding-left: 0px;
}

.content ul.tag-list li {
  margin-top: 0px;
}

.browse-all {
  display: block;
  margin-bottom: 30px;
}

.all-tags li {
  font-size: 1.4em;
  margin-right: 10px;
  padding: 6px 10px;
}

.article-footer a {
  color: var(--tint-color);
  text-decoration: none;
  letter-spacing: -2px;
}

.article-footer {
  padding-top: 0em;
}

blockquote {
  border-left: 0.25em #999999 solid;
  padding: 0.3em 1em;
  margin: 1em 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

blockquote p {
  margin-bottom: 0px;
  margin-top: 0px;
}

dt {
  font-size: 2em;
  font-weight: bold;
  margin: 1em 0;
}

dd {
  display: list-item;
  list-style: circle;
  margin: 0 0 0.25rem 1em;
}

td {
  padding-right: 1em;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

.section-header h1 {
  display: block-inline;
  margin-bottom: 0;
}

.fineprint-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.4em 0 0 0;
  font-size: 0.8em;
}

.videoThumbnail {
  background-size: cover;
  background-position: center;
  margin-bottom: 1em;
}

.playButton {
  text-align: center;
}

.playButton:hover {
  background: rgba(62, 62, 62, 0.3);
}

.playButton {
  transition: background-color var(--duration) var(--timing);
}

a.support {
  display: flex;
  align-items: center
}

.sponsor-container p {
  margin: 0
}

.sponsor-container img {
  max-height: 2.75em;
  margin: 0 1em 0 0;
  display: block;
  max-width: none;
  border-radius: 0em;
}

@media(max-width: 600px) {
  .sponsor-container img {
    max-width: 100%;
  }
  blockquote {
    padding: 0.2em 0.4em;
  }

  .wrapper {
    padding: 1em max(1em, env(safe-area-inset-right)) 1em max(1em, env(safe-area-inset-left));
  }

  header .wrapper, .section-header {
    flex-direction: column;
  }

  .section-header a, .section-header h1 {
    width: 100%
  }

  header .site-name {
    width: 100%
  }

  .item-list {
    grid-template-columns: 1fr;
    grid-gap: 0rem;
  }

  .item-list h1 {
    margin-bottom: 0.2em;
  }

  .fineprint-container {
    flex-direction: column-reverse;
  }

  .fineprint-container span {
    width: 100%
  }

  a.support {
    flex-direction: column;
  }
}

.videoThumbnail {
   background-size: cover; 
   background-position: center; 
   margin-bottom: 1em;
 }

 .playButton {
   text-align: center;
 }

 .playButton:hover {
   background: rgba(62, 62, 62, 0.3);
 }

 .playButton {
   transition: background-color var(--duration) var(--timing);
 }

.sponsor-container img {
  max-height: 2.75em;
  float: left;
  margin-top: 0px !important;
  margin-right: 1em !important;
}

/*a.support {
    align-items: flex-start
}*/

.sponsors-hof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.75em 0;
}

.sponsors-hof li {
  display: block;
}

.sponsors-hof div {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  text-align: center;
  width: 8em;
  gap: 0.2em;
}

.sponsors-hof img {
  height: 5em;
  align-self: center;
}
