/* The Prompt - Stylesheet
 * Author: a2@dev-nul.org
 * Copyright: dev-nul.org
 */

:root {
  --black: #111111;
  --white: #f8f8f0;
  --accent: #8b1a1a;
  --grey: #666666;
  --light-grey: #dddddd;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --max-width: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

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

/* Header */
header {
  border-bottom: 3px solid var(--black);
  padding: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.masthead h1, .masthead a {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: bold;
  color: var(--black);
  letter-spacing: 1px;
}

.tagline {
  color: #444444;
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-top: 0.25rem;
}

nav { margin-top: 0.75rem; }
nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--black);
  margin: 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Article list (index page) */
.article-list article {
  border-bottom: 1px solid var(--light-grey);
  padding: 1.5rem 0;
}

.article-list h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.article-list .meta {
  font-size: 0.85rem;
  color: var(--grey);
  font-family: var(--font-sans);
  margin-bottom: 0.5rem;
}
.article-list p { font-size: 0.9rem; color: var(--grey); text-align: justify; }
.read-more { font-family: var(--font-sans); font-size: 0.8rem; color: var(--accent); white-space: nowrap; }

/* Article page */
.article-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-grey);
  padding-bottom: 1rem;
}
.article-header h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 0.5rem; }
.byline { font-size: 0.85rem; color: var(--grey); font-family: var(--font-sans); }

.article-body p  { margin-bottom: 1.1rem; text-align: justify; }
.article-body h2 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
.article-body h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }

.article-body strong { font-weight: bold; }
.article-body em     { font-style: italic; }

.article-body hr {
  border: none;
  border-top: 1px solid var(--light-grey);
  margin: 2rem 0;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  color: var(--grey);
  font-style: italic;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #ededea;
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

.article-body pre {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #ededea;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.4;
}

.article-body pre code {
  background: none;
  padding: 0;
}

/* Boilerplate / press release footer */
.boilerplate {
  font-size: 0.8rem;
  color: var(--grey);
  font-family: var(--font-sans);
}

.boilerplate p { margin-bottom: 0.6rem; text-align: left; }

/* Footer */
footer {
  border-top: 1px solid var(--light-grey);
  margin-top: 3rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey);
  font-family: var(--font-sans);
}

.legal-notice a {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--light-grey);
}

.legal-notice a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}
