@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@200;300&display=swap');

/* General */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html, body {
  background: #f6eedf;
  position: relative;
  font-family: "Lexend", sans-serif;
  font-size: 16px !important;
}

h1 {
  font-size: 1.5rem;
  font-weight: 200;
  margin: 0;
  color: #333;
}
h2 {
  font-size: 1.25rem;
  font-weight: 200;
  margin-bottom: 0.5rem;
  color: #333;
}
h3 {
  font-size: 1rem;
  margin: 1rem 0;
  color: #333;
}
p {
  margin-bottom: 1rem;
  color: #333;
}
ul {
  margin-bottom: 1rem;
  margin-left: 1rem;
}
a {
  color: #006f98;
  text-decoration: none;
  &:hover {
    text-decoration: underline;
  }
}
hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid #e9e2d3;
}
code {
  background: #e9e2d3;
  font-size: 0.9rem;
}
code.inline {
  padding: 2px;
}
code.block {
  white-space: pre-wrap;
  display: block;
  padding: 1rem;
  background: #e9e2d3;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}
ul li {
  margin-bottom: 0.25rem;
  list-style-type: none;
}
small {
  color: #a09e9e;
}

.header {
  padding: 1rem 2rem;
  background: #e9e2d3;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo, .logo img {
  height: 50px;
  width: 50px;
}
.center {
  flex: 1;
}
.nav {
  display: flex;
  gap: 1rem;
  padding: 1rem 2rem 0;
}
.pill {
  display: inline-block;
  padding: 0.25rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  background: none;
  color: #62757c;
  border: 1px solid #728389;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pill:hover, .pill.active {
  background: #728389;
  color: #fff;
  text-decoration: none;
}
.pill:hover {
  background: #62757c;
}
.banner {
  display: block;
  padding: 0.75rem 1.5rem;
  background: #728389;
  color: #fff;
}
.subheader {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}
.subheader a {
  color: #728389;
}
.github {
  display: flex;
  align-items: center;
  padding: 0;
}
.github img {
  width: 16px;
  height: 16px;
  margin: 0;
  margin-right: 0.25rem;
}
.main {
  padding: 2rem;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.example {
  flex: 0 0 calc(50% - 1rem);
  max-width: calc(50% - 1rem);
}

.fixed-size {
  max-height: 400px;
  width: 100%;
  height: 100%;
}
.square {
  aspect-ratio: 1;
}
.rectangular {
  aspect-ratio: 1.15;
}
.mono .seki-board {
  box-shadow: none;
}
.mono.square .seki-board {
  border: 1px solid #aaa;
}

/* Flexible player sizing based on screen aspect ratio */
.seki-player {
  aspect-ratio: 0.75;
  margin: 0 auto;
  margin-top: 2rem;
}
@media (min-aspect-ratio: 0.8) {
  .seki-player {
    max-width: 960px;
    max-height: 600px;
    aspect-ratio: 1.4;
  }
}
