/* BASIC TEXT FILE */

/* GOAL: to get up a text-based blogpost asap, with an elegant and traditional look */

:root {
	--step--2: clamp(0.70rem, calc(0.81rem + -0.13vw), 0.78rem);
	--step--1: clamp(0.94rem, calc(0.94rem + 0.00vw), 0.94rem);
	--step-0: clamp(1.13rem, calc(1.08rem + 0.22vw), 1.25rem);
	--step-1: clamp(1.35rem, calc(1.24rem + 0.55vw), 1.67rem);
	--step-2: clamp(1.62rem, calc(1.41rem + 1.05vw), 2.22rem);
	--step-3: clamp(1.94rem, calc(1.59rem + 1.77vw), 2.96rem);
	--step-4: clamp(2.33rem, calc(1.77rem + 2.81vw), 3.95rem);
	--step-5: clamp(2.80rem, calc(1.94rem + 4.28vw), 5.26rem);
  }
  /* source: https://blog.logrocket.com/fluid-vs-responsive-typography-css-clamp/ */




* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 1rem;
  padding-left: 2vw;
  padding-right: 2vw;
  display: flex;
  align-items: center;
  flex-direction: column;
}

article {
  max-width: 80ch;
}

article > * + *{
	margin-block-start:3rem;
}

section {
  padding: 2vw;
  padding-bottom: 2em;
}

section {
  width: 100%;
}

section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 70ch;
}

img, figure {
  max-width:60ch;
  margin-left: auto;
  margin-right: auto;
 
}

footer {
  margin: 20px;
  border: cornsilk 5px double;
}

/* Preferences (universal blisscode)*/

details {
  cursor: pointer;
}

/* Lists */


ul {
  list-style-type: '† ';
  margin-left: 2em;
  margin-right: 2em;
}

li {
  margin-bottom: 8px;
}

dl {
	max-width:60ch;
	margin-left: auto;
	margin-right: auto;
}


/* FANCY QUOTES */

blockquote p, blockquote {
  font-family: 'Libre Baskerville';
}

blockquote cite {
  font-weight: bold;
  text-align: right;
  margin-top: 0.5em;
}

blockquote {
  border:none;
}

blockquote:before{
    content: ""; /* This is necessary for the pseudo element to work. */ 
    display: block; /* This will put the pseudo element on its own line. */
    margin: 0 auto; /* This will center the border. */
    width: 50%; /* Change this to whatever width you want. */
    margin-bottom: 1em;
    border-bottom: 5px double cornsilk; 
}

blockquote:after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 50%; 
    padding-top: 1em;
    border-bottom: 5px double cornsilk; 
}


/* Attractive Quotes */

q::before {
  content: "❛"
}

q::after {
  content: "❜"
}

q {
  font-style: italic;
}


  
q.dbl::before {
  content: "❝"
}

q.dbl::after {
  content: "❞"
}

  /* Dont use the <q> tag for things which aren't actually quotes, use this instead. For example, irony tags */

  n-q::before {
    content: "❛"
  }
  
  n-q::after {
    content: "❜"
  }


  /* Title of a book or film */

cite {
  text-decoration: underline dotted orangered;
  font-variant-caps: small-caps;
}


/* STYLE */

body {
  background-color:#fcf9f0;
  font-family: "Source Serif Pro", serif;
  line-height: 1.5;
  font-size: 1.2em;
}



/* TYPOGRAPHY */

section h1 {
  font-size: var(--step-5); 
  font-family: 'Macondo Swash Caps', Times, serif;
}

h2, h3, h4, h5, h6 {
  font-family: "Headland One", Times, serif;
  font-weight: normal;
}

h2 {
  text-align: center;
  display: block;
  border-bottom: #c70039 dotted 5px;
  margin-bottom: 1.5em;
  font-size: var(--step-2);
}

h3 {
  text-align: center;
  font-variant-caps: small-caps;
  font-weight: bold;
  font-size: var(--step-1)
}

h4 {
  font-size: var(--step-1);
}

p {
  text-indent: 1em;
}

a {
  color: cornsilk;
  text-decoration: underline dotted; 
  font-variant-caps: small-caps;
  font-size: 1.25em;
}

/* TABLE OF CONTENTS */

#contents{position:fixed;left:-292px;top:10px;background:#42474a;border:1px solid rgba(0,0,0,0.1);padding:20px;width:292px;border-radius:0 6px 6px 0;}

#contents:hover{left:0;box-shadow:1px 1px 3px 0 rgba(0,0,0,0.2);}

#contents:after{content:'';display:block;position:absolute;top:8px;left:290px;width:40px;height:40px;text-align:center;background:#42474a url(https://i.imgur.com/YH2wF13.png)center no-repeat;background-size:20px;border:1px solid rgba(0,0,0,0.1);border-left:none;border-radius:0 6px 6px 0;box-shadow:2px 1px 3px 0 rgba(0,0,0,0.2);}

#contents img{max-width:100%;}
#contents h2{font-size:14px;letter-spacing:1px;}
#contents a{font-size: 16px;display:block;padding:7px;border-bottom:1px solid rgba(0,0,0,0.1);}
#contents a:last-of-type{border:none;padding-bottom:0;}


/* FONTS */

/* headland-one-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Headland One';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/headland-one-v15-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/headland-one-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/headland-one-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/headland-one-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/headland-one-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/headland-one-v15-latin-regular.svg#HeadlandOne') format('svg'); /* Legacy iOS */
}

/* source-serif-pro-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif Pro';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/source-serif-pro-v15-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/source-serif-pro-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/source-serif-pro-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/source-serif-pro-v15-latin-regular.svg#SourceSerifPro') format('svg'); /* Legacy iOS */
}

/* source-serif-pro-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif Pro';
  font-style: italic;
  font-weight: 400;
  src: url('../../fonts/source-serif-pro-v15-latin-italic.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/source-serif-pro-v15-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/source-serif-pro-v15-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/source-serif-pro-v15-latin-italic.svg#SourceSerifPro') format('svg'); /* Legacy iOS */
}

/* source-serif-pro-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif Pro';
  font-style: normal;
  font-weight: 700;
  src: url('../../fonts/source-serif-pro-v15-latin-700.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/source-serif-pro-v15-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/source-serif-pro-v15-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/source-serif-pro-v15-latin-700.svg#SourceSerifPro') format('svg'); /* Legacy iOS */
}

/* source-serif-pro-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif Pro';
  font-style: normal;
  font-weight: 900;
  src: url('../../fonts/source-serif-pro-v15-latin-900.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/source-serif-pro-v15-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/source-serif-pro-v15-latin-900.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-900.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/source-serif-pro-v15-latin-900.svg#SourceSerifPro') format('svg'); /* Legacy iOS */
}

/* source-serif-pro-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif Pro';
  font-style: italic;
  font-weight: 900;
  src: url('../../fonts/source-serif-pro-v15-latin-900italic.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/source-serif-pro-v15-latin-900italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/source-serif-pro-v15-latin-900italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-900italic.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/source-serif-pro-v15-latin-900italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/source-serif-pro-v15-latin-900italic.svg#SourceSerifPro') format('svg'); /* Legacy iOS */
}

/* libre-baskerville-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/libre-baskerville-v14-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/libre-baskerville-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/libre-baskerville-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/libre-baskerville-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/libre-baskerville-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/libre-baskerville-v14-latin-regular.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* libre-baskerville-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  src: url('../../fonts/libre-baskerville-v14-latin-italic.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/libre-baskerville-v14-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/libre-baskerville-v14-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/libre-baskerville-v14-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/libre-baskerville-v14-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/libre-baskerville-v14-latin-italic.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* libre-baskerville-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  src: url('../../fonts/libre-baskerville-v14-latin-700.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/libre-baskerville-v14-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/libre-baskerville-v14-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/libre-baskerville-v14-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/libre-baskerville-v14-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/libre-baskerville-v14-latin-700.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* macondo-swash-caps-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Macondo Swash Caps';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/macondo-swash-caps-v20-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../../fonts/macondo-swash-caps-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../../fonts/macondo-swash-caps-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../../fonts/macondo-swash-caps-v20-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../../fonts/macondo-swash-caps-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../../fonts/macondo-swash-caps-v20-latin-regular.svg#MacondoSwashCaps') format('svg'); /* Legacy iOS */
}
