/*
 * Obiklip website.
 *
 * One stylesheet for the whole site. Plain CSS, system fonts only, no
 * JavaScript anywhere. Keep it that way: the pages must work with scripts
 * off, on an old browser, and when printed.
 */

:root {
  --ink: #1b1b1b;
  --muted: #5a6470;
  --link: #0b4f9c;
  --link-visited: #5d3f8e;
  --rule: #c2ccd6;
  --panel: #f3f5f8;
  --panel-head: #dde5ee;
  --bar: linear-gradient(135deg, #ffffff 0%, #e7eaee 62%, #cfd5dc 100%);
  --bar-ink: #17202a;
  --bar-sub: #46515d;
}

html {
  background: #dfe4e9;
}

body {
  margin: 0;
  font-family: Verdana, Geneva, "DejaVu Sans", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  color: #1671cc;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 11px;
}

ol,
ul {
  margin: 0 0 11px;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
}

code {
  font-family: "DejaVu Sans Mono", Consolas, Menlo, monospace;
  font-size: 11px;
  background: var(--panel);
  padding: 1px 3px;
  border: 1px solid var(--rule);
}

/* ---------------------------------------------------------------- shell -- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bar);
  color: var(--bar-ink);
}

.masthead img {
  display: block;
  width: 52px;
  height: 52px;
}

/* The masthead is one big link home; it should not look like body text. */
.masthead a,
.masthead a:visited {
  color: inherit;
  text-decoration: none;
}

.masthead h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: 0.5px;
}

.masthead p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--bar-sub);
}

.masthead .release {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  color: var(--bar-sub);
}

.masthead .release strong {
  display: block;
  font-size: 13px;
  color: var(--bar-ink);
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  background: var(--panel-head);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul li {
  margin: 0;
}

.nav a {
  display: block;
  padding: 7px 13px;
  border-right: 1px solid #c6d1dd;
  color: #12386b;
  font-size: 12px;
  text-decoration: none;
}

.nav a:hover {
  background: #fff;
  text-decoration: underline;
}

.nav a[aria-current="page"] {
  background: #fff;
  font-weight: bold;
}

/* --------------------------------------------------------------- layout -- */

.layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px;
}

.content {
  flex: 1 1 620px;
  min-width: 0;
}

.sidebar {
  flex: 0 0 262px;
}

/* The manual reads better with its contents on the left, but the content is
   still what comes first in the markup. */
.layout--aside-left .sidebar {
  order: -1;
}

@media (max-width: 840px) {
  .layout {
    flex-wrap: wrap;
  }

  .sidebar {
    flex: 1 1 100%;
  }

  .layout--aside-left .sidebar {
    order: 0;
  }
}

/* ------------------------------------------------------------- headings -- */

h2 {
  margin: 26px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.content > h2:first-child {
  margin-top: 0;
}

h3 {
  margin: 18px 0 6px;
  font-size: 13px;
}

.lead {
  font-size: 13px;
}

.note {
  color: var(--muted);
  font-size: 11px;
}

/* --------------------------------------------------------------- blocks -- */

figure {
  margin: 0 0 14px;
}

figure img {
  display: block;
  padding: 4px;
  /* border: 1px solid var(--rule); */
  background: #fff;
}

figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 18px;
}

.screenshot-card h3 {
  margin: 0 0 6px;
}

.screenshot-card figure {
  margin: 0;
}

.screenshot-card a {
  display: block;
}

.screenshot-card img {
  box-sizing: border-box;
  width: 100%;
}

.screenshot-card a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.shots li {
  flex: 1 1 0;
}

.shots a {
  display: block;
  padding: 3px;
  /* border: 1px solid var(--rule); */
  background: #fff;
}

.shots img {
  display: block;
  width: 100%;
}

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.grid th,
.grid td {
  padding: 5px 8px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.grid th {
  background: var(--panel-head);
}

.grid tbody tr:nth-child(even) {
  background: #f8fafc;
}

.grid td.num {
  width: 1%;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

ul.cols {
  columns: 2;
  column-gap: 26px;
  margin: 0 0 11px;
  padding-left: 18px;
}

ul.cols li {
  margin-bottom: 6px;
  break-inside: avoid;
}

@media (max-width: 640px) {
  ul.cols {
    columns: 1;
  }
}

.callout {
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid #cddcee;
  background: #eef4fb;
  font-size: 12px;
}

/* -------------------------------------------------------------- sidebar -- */

.box {
  margin-bottom: 16px;
  border: 1px solid var(--rule);
  background: var(--panel);
}

.box h3 {
  margin: 0;
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-head);
  font-size: 12px;
}

.box .body {
  padding: 10px;
}

.box .body p:last-child,
.box .body ul:last-child {
  margin-bottom: 0;
}

.box ul {
  margin: 0;
  padding-left: 17px;
}

.box ul li {
  margin-bottom: 5px;
}

.download {
  display: block;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid #1d4e8c;
  background: #2f6ebd;
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.download:visited {
  color: #fff;
}

.download:hover {
  background: #3b80d8;
  color: #fff;
}

.download small {
  display: block;
  color: #dbe8f8;
  font-size: 10px;
  font-weight: normal;
}

.news dt {
  font-size: 11px;
  color: var(--muted);
}

.news dd {
  margin: 0 0 9px;
}

/* --------------------------------------------------------------- footer -- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-credit {
  flex: 1 0 100%;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
