/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* global custom styles */

body {
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, "Segoe UI",
    sans-serif;
  font-size: 1.25rem;
  line-height: 2rem;
  color: #2c251d;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #faf9f5;
}

footer,
main,
header {
  max-width: 45rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

h1,
h2,
h3 {
  font-family: "Oswald", "Arial Narrow", Arial, "Helvetica Neue", Helvetica,
    "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1d1d1f;
  text-wrap: balance;
}

/* Site title in header */
.site-title {
  font-family: "Oswald", "Arial Narrow", Arial, "Helvetica Neue", Helvetica,
    "Segoe UI", sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #901714;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 {
  font-size: 1.6em;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

h2 {
  font-size: 1.4em;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.25em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: #242424;
}

cite {
  font-size: 0.875rem;
  font-style: italic;
}

strong {
  font-weight: 700;
  color: #242424;
}

dfn {
  font-style: italic;
  font-weight: 600;
}

em {
  font-style: italic;
}

/* paragraph spacing */
p + p {
  margin-top: 1.5em;
}

/* Remove extra space after headings for better visual hierarchy */
h1 + p,
h2 + p,
h3 + p {
  margin-top: 0;
}

/* navigation */
nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

nav a {
  font-weight: 500;
  text-decoration: none;
  font-size: 1.5rem;
  font-family: "Oswald", "Arial Narrow", Arial, "Helvetica Neue", Helvetica,
    "Segoe UI", sans-serif;
}

nav a:hover {
  color: #751612;
}

/* footer */
footer {
  border-top: 4px solid #751612;
  margin-top: 4rem;
  padding-top: 3rem;
}

footer h2 {
  margin-top: 0;
}

/* References in footer for author page */
footer h2 + ol {
  margin-top: 0.5rem;
}

footer h3:last-of-type {
  font-size: 1.2em;
  color: #55514a;
  margin-top: 2rem;
}

footer ol {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #3b352d;
}

footer ol li + li {
  margin-top: 0.5rem;
}
