/* davidbogle.com
 *
 * Inherited from the 2022 Jekyll theme. Originally four SCSS partials
 * (_reset, _layout, _typography, main); flattened to plain CSS because the
 * only Sass in them was three @imports, // comments and one nested rule.
 * See agent-workspace/vision.md decision #7.
 *
 * Fonts: Rasa (body) and Bagnard (headings), both SIL OFL.
 * Licences in /assets/fonts/OFL-Rasa.txt and OFL-Bagnard.txt.
 */

/* ===== reset - http://meyerweb.com/eric/tools/css/reset/ v2.0, public domain  */

/* 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;
}
body {
	line-height: 1;
}
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;
}

/* ===== layout ====================================================== */

.header {
	padding: 1em;
}

.page-content {
    max-width: 700px;
    padding-bottom: 2em;
}

.page-content,
.header {
    padding-left: 2em;
    padding-right: 1em;
}

@media (min-width: 768px) {
    .page-content,
    .header {
        padding-left: 4em;
        padding-right: 2em;
    }
}

img {
    max-width: calc(100% - 3em);
}

/* ===== typography ================================================== */

body {
  /* I don't remember where I got this */
  font-size: calc(.35842vw + .95296em);
  color: #202020;
  font-family: Rasa, serif;
  font-weight: 300;
}

@font-face {
  font-family: Bagnard;
  src: url("/assets/fonts/Bagnard.woff2") format("woff2");
}

@font-face {
  font-family: 'Rasa';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/Rasa-Light.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rasa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Rasa-Regular.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rasa';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/Rasa-Semibold.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Bagnard;
  margin: 1em 0 0.3em 0;
}

h1 {
  font-size: 2.4em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.6em;
}

h4 {
  font-size: 1.4em;
}

h5 {
  font-size: 1.2em;
}

h6 {
  font-size: 1em;
}

hr {
  border: none;
  margin: 1em 0;
  border-bottom: 1px solid #404040;
}

p {
  margin-top: 0.8em;
  line-height: calc(1.3em + .2vw);
  word-break: break-word;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

li {
  line-height: 1.6em;
  margin-left: 1em;
}

ul {
  margin-left: 0.2em;
  list-style-type: disc;
}

ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}

ol {
  margin-left: 1em;
  list-style-type: decimal;
}

ol ol {
  list-style-type: lower-alpha;
}

ol ol ol {
  list-style-type: lower-roman;
}

a {
  color: #ff9a60;
  text-decoration: none;
  position: relative;
  font-weight: 300;
}

a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #ff9a60;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
  transform-origin: 0% 50%;
  -webkit-transform-origin: 0% 50%;
}

a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

code, pre {
  font-family: monospace;
}

code {
  font-weight: 400;
  color: #606060;
  border-radius: 0.25em;
  border: 1px solid #dfdfdf;
  background: #efefef;
  /* I don't remember where I got this */
  font-size: 0.67em;
}

blockquote {
  font-size: 1em;
  font-style: italic;
  color: #404040;
  padding-left: 1em;
  border-left: 2px solid #dfdfdf;
  border-left: 2px solid #ff9a60;
}

sub, sup {
  /* Specified in % so that the sup/sup is the
     right size relative to the surrounding text */
  font-size: 75%;

  /* Zero out the line-height so that it doesn't
     interfere with the positioning that follows */
  line-height: 0;

  /* Where the magic happens: makes all browsers position
     the sup/sup properly, relative to the surrounding text */
  position: relative;

  /* Note that if you're using Eric Meyer's reset.css, this
     is already set and you can remove this rule */
  vertical-align: baseline;

  font-weight: 600;
}

sup {
  /* Move the superscripted text up */
  top: -0.5em;
}

sub {
  /* Move the subscripted text down, but only
     half as far down as the superscript moved up */
  bottom: -0.25em;
}

/* plugin-generated table of contents */
#markdown-toc {
  list-style-type: none;
  padding-top: 1em;
}

#markdown-toc li {
  margin-left: 0;
}

/* ===== tables, header, navigation, post page ======================= */


/* --- Tables ------------------------------------------ */

table {
	margin-top: 0.5em;
}

th {
	background: #404040;
	color: #dfdfdf;
	font-weight: 600;
}

th, td {
	padding: 0.4em;
}

td {
	border-bottom: 1px solid #dfdfdf;
}

/* --- Header ------------------------------------------- */

.header h1 {
	font-size: 1em;
	margin: 1em 0 0 0;
}

.navigation ul {
	margin: 0;	
	list-style-type: none;
}

.navigation li {
	display: inline-block;
	padding: 0;
	margin: 0;
	text-transform: lowercase;
}

.navigation li ~ li {
	margin-left: 2em;
}

/* --- Post Page ------------------------------------ */

.date-post {
	color: #808080;
}

.meta-post {
	margin-bottom: 2em;
}

.header-post {
}


/* ===== post list ========================================================== */
/* Recovered from the 2022 theme's home.html, which carried these in an inline
 * <style> block rather than in the stylesheet. `.wrapper { margin-top: 2em }`
 * lived there too, but it was home-page-only and is deliberately not brought
 * across as a global rule - revisit when the gallery homepage lands. */

.posts,
.posts li {
	padding: 0;
	margin: 0;
}

.posts {
	list-style-type: none;
	margin-top: 1em;
}

.posts a {
	color: #404040;
}

.posts .post-date {
	color: #a0a0a0;
	display: inline-block;
	text-indent: 0.67em;
}
