:root {
  color-scheme: light dark;
  /* Links to a spot on a page land below the header, not under it. */
  scroll-padding-top: 8rem;
}
body {
  font:
    15px / 1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  margin: 0;
  padding: 0;
}
/* Text pages keep to a 72 column column, with the header's left edge. */
body:not(.news) > main {
  display: block;
  max-width: 72ch;
  padding: 1rem 2rem 2rem;
}
h1 {
  font-size: inherit;
  font-weight: normal;
  margin: 0 0 1.5rem;
}
h2 {
  font-size: inherit;
  font-weight: normal;
  margin: 1.75rem 0 0.5rem;
}
pre {
  font: inherit;
  margin: 0;
  overflow-x: auto;
}
/* 72 columns at 0.6em each must fit inside the gutters */
.art {
  font-size: min(15px, calc((100vw - 4rem) / 44));
  line-height: 1.2;
  margin-bottom: 2rem;
}
.opera,
.opera3d {
  margin: 4rem 0 0;
}
.opera3d {
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
.opera3d:active {
  cursor: grabbing;
}
.climb {
  margin-bottom: 2rem;
}
.hero {
  display: block;
  touch-action: pan-y;
}
ul {
  padding-left: 2ch;
  margin: 0;
}
form {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 64ch;
}
/* The grid above would otherwise show a form marked hidden. */
form[hidden] {
  display: none;
}
label {
  display: grid;
  gap: 0.25rem;
}
input,
button {
  font: inherit;
  padding: 0.4rem 0.6rem;
}
input {
  width: 100%;
  box-sizing: border-box;
}
button {
  justify-self: start;
}
a {
  color: inherit;
}
textarea {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  min-height: 7rem;
  padding: 0.4rem 0.6rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2ch;
}
legend {
  padding: 0;
  margin-bottom: 0.25rem;
}
.check {
  display: inline-flex;
  gap: 0.5ch;
  align-items: center;
}
.check input {
  width: auto;
}
form.inline {
  display: inline;
  margin: 0;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.meta {
  opacity: 0.6;
  font-size: 13px;
}
.tag {
  font-size: 13px;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 0 0.5ch;
  opacity: 0.75;
}
.stories {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stories li {
  display: grid;
  grid-template-columns: 5ch 1fr;
  margin-bottom: 0.9rem;
}
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
}
.vote {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 0.4;
}
.vote.voted {
  opacity: 1;
}
.title {
  text-decoration: none;
}
.post-body {
  margin: 1rem 0;
}
.comments {
  list-style: none;
  padding-left: 2ch;
  margin: 0;
  border-left: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.comments li {
  margin: 1rem 0;
}
.comments p {
  margin: 0.25rem 0;
}
details form {
  margin: 0.5rem 0;
}
.table {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 0.3rem 1.5ch 0.3rem 0;
  vertical-align: top;
}
/* Rows you can edit in place keep their text level with the boxes. */
tr:has(> td > input) > td {
  vertical-align: middle;
}
code {
  word-break: break-all;
}
.join {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid currentColor;
  text-decoration: none;
  transition: transform 120ms ease;
}
.join:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 currentColor;
}
.join:active {
  transform: none;
  box-shadow: none;
}
/* The header on every page. The site's name with your account across from
   it, then the site's sections on a line of their own underneath. */
.site-header {
  /* Always on screen, over the page as it scrolls by. */
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper, Canvas);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 2.5ch;
  padding: 1.75rem 2rem 1rem;
  font-size: 14px;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 2.5ch;
}
.site-header .account {
  order: 1;
  margin-left: auto;
  align-items: center;
}
.site-header nav:not(.account) {
  order: 2;
  flex-basis: 100%;
  margin-top: 0.75rem;
}
/* "body" outranks the news board's own link colours. */
body .site-header a,
body .site-header .link {
  color: inherit;
  opacity: 0.6;
  text-decoration: none;
}
body .site-header a:hover,
body .site-header .link:hover {
  opacity: 1;
  text-decoration: none;
}
body .site-header a[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
}
/* The notifications bell, with a red count when some are unread. */
body .site-header a.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}
body .site-header a.bell.unread {
  opacity: 1;
}
.site-header .bell .unread-count {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #d93036;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
/* Sets Admin apart from the sections everyone sees. */
.site-header .divider {
  opacity: 0.35;
}
/* My profile, boxed so it reads as a button. */
body .site-header a.button {
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0.15rem 0.75rem;
  opacity: 1;
}
body .site-header a.button:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
body .site-header a.brand {
  display: flex;
  align-items: flex-end;
  gap: 1.5ch;
  margin-right: 2ch;
  opacity: 1;
}
/* A small Harbour Bridge beside the wordmark. Text this small draws
   hairlines, so a stroke thickens it to the weight of the wordmark. */
.site-header .bridge {
  margin: 0;
  font-size: 4.2px;
  line-height: 1.1;
  -webkit-text-stroke: 0.7px currentColor;
}
.site-header .wordmark {
  display: inline-grid;
  font-weight: 400;
  /* Down, so its underline sits on the same line as the bottom of the bridge. */
  transform: translateY(0.43em);
  font-size: 1.15rem;
  line-height: 1.2;
}
/* The wordmark is underlined like the front page's heading. */
.site-header .wordmark::after {
  content: "========================";
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  /* As wide as the words above, even when they wrap on a phone. */
  width: 0;
  min-width: 100%;
}
@media (max-width: 40rem) {
  .site-header {
    padding: 1.25rem 1rem 0.75rem;
    gap: 0.35rem 2ch;
  }
  /* No room beside the name on a phone, so your account shares the
     sections' line instead. */
  body .site-header a.brand {
    width: 100%;
    margin: 0 0 0.25rem;
  }
  .site-header nav:not(.account) {
    order: 1;
    flex-basis: auto;
    margin-top: 0;
  }
  .site-header .account {
    order: 2;
  }
  /* Small enough for the bridge and the name to share a line. Browsers
     won't draw text much under 4px, so the bridge is zoomed out instead. */
  .site-header .bridge {
    zoom: 0.7;
  }
  .site-header .wordmark {
    font-size: 0.85rem;
  }
  body:not(.news) > main {
    padding: 0.5rem 1rem 2rem;
  }
}
