@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;700&display=swap');

:root {
  --bg-page: #000000;
  --bg-header: #000000;
  --text-primary: #dddddd;
  --text-accent: #ff4444;
  --link-default: #dddddd;
  --link-hover: #ff6666;
  --box-border: #852424;
  --button-bg: #111111;
  --button-hover: #222222;
  --gutter-bg: var(--box-border);
  --content-bg: var(--bg-page);
}

body {
  margin-left: 160px;
  margin-right: 160px;
  background: var(--content-bg);
  color: var(--text-primary);
  font-family: serif, 'Domine', Georgia, 'Times New Roman', Times;
  font-size: 22px;
  line-height: 1.6;
}

input, button, select, textarea {
  font-family: inherit;
}

a, a:visited {
  color: var(--link-default);
  text-decoration: none;
  margin: 0 4px;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.header {
  border-bottom: 2px solid var(--gutter-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-header);
  padding: 12px 24px;
  border: 2px solid var(--box-border);
  margin: 16px;
}

footer {
  margin: 24px 0;
  text-align: center;
  align-items: center;
}

a.logo {
  color: var(--text-accent);
  font-size: 30px;
  font-weight: bold;
}

a.logo:hover {
  color: var(--text-primary);
}

.nav {
  flex: 1;
  text-align: center;
  font-size: 22px;
}

.nav a {
  color: var(--link-default);
  font-size: 22px;
}

.nav span {
  color: var(--text-accent);
  margin: 0 8px;
  font-size: 22px;
}

.nav a:hover {
  color: var(--link-hover);
}

.menu-icon {
  color: var(--link-default);
  font-size: 26px;
  cursor: pointer;
}

.menu-icon:hover {
  color: var(--link-hover);
}

.page-content {
  display: flex;
  flex-direction: column;
  background: var(--content-bg);
  min-height: calc(100vh - 32px);
}

fieldset.box {
  border: 2px solid var(--gutter-bg);
  padding: 16px;
  margin: 16px;
  align-items: center;
}

fieldset.box.main {
  flex: 1;
}

fieldset.box.main > p:first-of-type {
  margin-top: 0;
}

fieldset.box.main.post {
  text-align: center;
}

fieldset.box legend {
  color: var(--text-accent);
  font-size: 32px;
  margin-bottom: 0;
  padding-bottom: 0;
  text-align: center;
}

ul.list {
  font-size: 16px;
  margin-left: 20px;
}

ul.list li {
  margin: 6px 0;
}

ul.list li a {
  font-size: 18px;
}

.main p {
  color: var(--text-primary);
  font-size: 19px;
}

.subscribe {
  font-size: 16px;
  align-items: center;
}

h3 {
  text-align: center;
}

code {
  background-color: #363636;  /* light gray */
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

.subscribe table {
  margin: 0 auto;
}

.subscribe td {
  text-align: center;
  vertical-align: middle;
}

.subscribe input,
.subscribe button {
  background: var(--button-bg);
  color: var(--text-primary);
  border: 1px solid var(--box-border);
  border-radius: 4px;
  font-size: 16px;
  padding: 6px 8px;
  margin: 0 6px;
}

.subscribe button {
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe button:hover {
  background: var(--button-hover);
}

fieldset.box.subscribe {
  display: inline-block;
  padding: 8px 12px;
  width: fit-content;
  margin: 0 auto 16px;
}

img {
  display: block;
  margin: 16px 0;
  max-width: 100%;
}

img.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.centered-iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 560px;
  height: 315px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.centered-figcaption {
  text-align: center;
  font-size: 16px;
}

.back-button {
  background: black;
  color: var(--text-accent);
  border: 2px solid var(--box-border);
  border-radius: 4px;
  padding: 6px 12px;
  margin: 8px;
  font-family: serif, 'Domine', Georgia, 'Times New Roman', Times;
  font-size: 18px;
  cursor: pointer;
}
