/* Inkin website. Paper and ink, like the e-ink screen. No scripts. */
:root {
  --paper: #efece4;
  --ink: #1a1a18;
  --faded: #5b5a55;
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

main {
  flex: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

header { text-align: center; margin-bottom: 2.5rem; }

/* Sprites are black on white; multiply lets the paper show through the white. */
img { image-rendering: pixelated; image-rendering: crisp-edges; mix-blend-mode: multiply; }

.altar { display: block; margin: 0 auto 1.5rem; }

h1 {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  padding-left: 0.5em; /* balance the trailing letter-spacing */
}

h2 {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.tagline { margin: 0.75rem 0 0; color: var(--faded); font-style: italic; }

section { margin: 0 0 2rem; }

.kin {
  list-style: none;
  padding: 1.5rem 0;
  margin: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.status { text-align: center; }
.center { text-align: center; }

a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--faded);
  font-size: 0.95rem;
}
footer span { margin: 0 0.5rem; font-size: 0.6rem; vertical-align: middle; }
footer .small { font-size: 0.8rem; margin: 0.25rem 0 0; }

/* Band of stepped pyramids, drawn with an inline SVG tile. */
.fret {
  height: 16px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' shape-rendering='crispEdges'%3E%3Cpath fill='%231a1a18' d='M2 12V9h3V6h3V3h3V0h2v3h3v3h3v3h3v3zM0 13h24v3H0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* Bottom band points the other way. */
.fret:last-child { transform: scaleY(-1); }

@media (max-width: 560px) {
  .kin { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-around; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  .kin img { width: 64px; height: 64px; }
}
