/* 
  Colors
*/

:root {

  /* Spring */
  --background-body: #e0ff4f;
  --text-main:       #00272b;
  --text-bright:     #00272b;
  --links:           #00272b;
  --border:          #00272b;

}

:root[data-theme="night"] {

  /* Spring */
  --background-body: #00272b;
  --text-main:       #e0ff4f;
  --text-bright:     #e0ff4f;
  --links:           #e0ff4f;
  --border:          #e0ff4f;

}

@media (prefers-color-scheme: dark) {

}


/* typography */
body {
	font: 20px/1.6 'Georgia', 'Garamond', serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; 
  -webkit-text-size-adjust: none;
}

h1, h2, h3, h4 {
	/* font-weight: normal; */
}

h1 {
	font-size: 3.15em;
	line-height: 1.02em;
	padding-top: 0.175em;
	margin-bottom: 0.333em;
}

h2 {
	font-size: 2.35em;
	line-height: 1.36em;
	padding-top: 0.340em;
	margin-bottom: 0.340em;
}

h3 {
	font-size: 1.80em;
	line-height: 1.78em;
	padding-top: 0.556em;
	margin-bottom: 0.333em;
}

h4 {
	font-size: 1.35em;
	line-height: 1.19em;
	padding-top: 0.259em;
	margin-bottom: 0.926em;
}

p, ul, ol {
	font-size: 1.00em;
	line-height: 1.60em;
	padding-top: 0.450em;
	margin-bottom: 1.15em;
}
footer p {
  padding: 0;
  font-size: .8em;
  color: var(--text-main);
}
footer p.byline {
  display: flex;
  gap: .5em;
  align-items: center;
}
footer p.byline a.img {
  line-height: 0;
}
footer p.byline img {
  height: 20px;
}
footer p.byline a.img.enlarge-slightly img {
  height: 26px;
}
main ul {
  padding-left: 0;
}
main ul li {
  list-style-type: none;
}
main ul li:before {
  content: "—";
  padding-right: 0.5em;
}
main ul li p {
  display: inline;
}
main ul li ul {
  padding-left: 2em;
}
col {
  width: auto !important;
}

a {
  padding-left: 0;
  text-decoration: underline 1px !important;
  transition: padding .25s ease;
}
a:hover {
  font-style: italic;
  text-decoration: underline 1px !important;
}
@media (min-width: 768px) {
  a:hover {
    padding: 0 .5em;
  }
}

/*
  various stylings 
*/
::selection {
  color: var(--background-body);
  background-color: var(--text-main);
  text-decoration: none;
}

* {
  opacity: 1;
  transition: opacity .25s ease;
  box-sizing: border-box;
}

*.loading {
  opacity: 0;
}

nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .5em;
  padding: 0;
}
nav li {
  list-style-type: none;
  word-break: keep-all;
}

button {
  color: var(--background-body);
  background-color: var(--text-main);
  box-shadow: 0 0 0 2px var(--background-body);
}
button:hover {
  color: var(--text-main);
  background-color: var(--background-body);
  box-shadow: 0 0 0 2px var(--text-main);
}

#footnotes ol {
  margin: 0;
  font-size: .8em;
  font-style: italic;
  font-weight: 300;
}
#footnotes p {
  padding: 0;
  margin: 0;
}

p.gallery {
  columns: 2;
  column-gap: .5em;
  line-height: 0;
}
p.gallery img {
  margin-bottom: .5em;
  border-radius: 2px;
}

@media (max-width: 768px) {
  p.gallery {
    columns: 1;
  }
}

figure {
  margin: 0;
  padding: 1.25em;
  background: var(--background-alt);
  border-radius: 2px;
}

@media (max-width: 768px) {
  figure {
    padding: .75em;
  }
}

figcaption {
  font-size: .8em;
  font-style: italic;
  font-weight: 300;
}

blockquote  {
  padding-top: 0;
  padding-bottom: 0;
  border-color: var(--border);
}

blockquote p:first-child {
  padding-top: 0;
}

/* options */
html:not([data-theme]) .night,
[data-theme="day"] .night {
  display: none;
}

[data-theme="night"] .day {
  display: none;
}

.day-night {
  padding: 0.5em;
  line-height: 1em;
  border-radius: 50%;
  box-shadow: none;
}
.day-night:focus,
.day-night:hover {
  box-shadow: none;
}

[data-theme="night"] .day-night {
  background-color: var(--background-body);
}
[data-theme="night"] .day-night:hover {
  background-color: var(--text-main);
}

/*
  layout
*/

body {
  margin: 0;
  padding: 2em;
  max-width: 40em;
}

@media (max-width: 768px) {
  body {
    padding: 1em;
  }
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5em;
}

.spacer { }