/*
  Simple Neocities project website
  --------------------------------
  This file controls the whole look of the site.
  The design is intentionally plain: no glow, no round corners, no JavaScript.
*/

:root {
  --page-bg: #000;
  --panel-bg: transparent;
  --header-bg: #000;
  --text: #e8e8e8;
  --muted: #b0b0b0;
  --line: #707070;
  --link: #7db2ff;
  --link-visited: #c99cff;
  --note-bg: #151515;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
}

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

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

a:hover,
a:focus {
  color: #fff;
  background: transparent;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2.2rem;
}

.main-title h1 {
  margin: 0;
}

h2 {
  margin-top: 0;
}

h3 {
  margin-bottom: 0.3rem;
}

.wrap {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--header-bg);
  padding: 1rem 0 0.5rem;
}

.tagline {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
}

.main-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-logo {
  width: 72px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.site-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: underline;
}

.site-nav a:visited {
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
  background: transparent;
}

main {
  padding: 1.5rem 0;
}

.panel {
  background: var(--panel-bg);
  padding: 0;
  margin-bottom: 2rem;
}

.link-list {
  padding-left: 1.2rem;
}

.news-item {
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.project-questions {
  padding-left: 1.2rem;
}

.project-questions li {
  margin-bottom: 2.5rem;
}

.project-questions h2 {
  margin-bottom: 0.8rem;
}

.date {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  background: var(--note-bg);
  border: 1px solid var(--line);
  padding: 0.75rem;
}

.download-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.download-platform h3 {
  margin-bottom: 0;
  text-align: center;
  font-size: 1.35rem;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 1rem;
}

.download-table th,
.download-table td {
  border: 1px solid var(--line);
  padding: 0.5rem;
  text-align: center;
  vertical-align: top;
}

.download-table th:nth-child(1),
.download-table td:nth-child(1) {
  width: 18%;
}

.download-table th:nth-child(2),
.download-table td:nth-child(2) {
  width: 57%;
}

.download-table th:nth-child(3),
.download-table td:nth-child(3) {
  width: 25%;
}

.download-table th {
  background: #111;
}

.download-table a,
.download-table a:visited {
  color: var(--link);
}

.download-table .changelog-cell a,
.download-table .changelog-cell a:visited,
.download-table .changelog-cell a:hover,
.download-table .changelog-cell a:focus {
  color: var(--text);
  background: transparent;
  text-decoration: none;
}

.message-form {
  display: grid;
  gap: 0.5rem;
  max-width: 520px;
}

.message-form label {
  font-weight: bold;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.5rem;
  background: #050505;
  color: var(--text);
  font: inherit;
}

.message-form button {
  width: fit-content;
  border: 2px solid var(--line);
  background: #111;
  color: var(--text);
  padding: 0.5rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.message-form button:hover,
.message-form button:focus {
  background: #222;
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .site-nav {
    display: block;
  }

  .site-nav a {
    display: block;
    margin-bottom: 0.35rem;
  }

  .download-tables {
    grid-template-columns: 1fr;
  }
}
