/*
 * RESET
 *
 *
 */
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;
}

/*
* RESET
*
*
*/
@viewport {
  width: device-width;
}
:root {
  --serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --sans-serif: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;

  --f-sm: 0.8rem;
  --f-m: .915rem;
  --f-l: 1.25rem;
  --f-xl: 1.563rem;
  --f-xxl: 1.953rem;

  --c-main-50: rgb(249, 249, 249);
  --c-main-100: rgb(242, 242, 243);
  --c-main-200: rgb(224, 224, 226);
  --c-main-300: rgb(201, 201, 204);
  --c-main-400: rgb(164, 164, 169);
  --c-main-500: rgb(141, 141, 147);
  --c-main-600: rgb(99, 99, 105);
  --c-main-700: rgb(99, 99, 105);
  --c-main-800: rgb(75, 75, 79);
  --c-main-900: rgb(57, 57, 60);

  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
  font-size: 0.9rem;
}

body {
  font-family: var(--serif);
  line-height: 1.5;
  background-color: var(--c-main-50);
  color: var(--c-main-900);
}

/**
********************
********************
* UTILITIES
********************
********************
*/

p {
  margin: 1em 0;
}

b, strong {
  font-weight: bold;
}

i, em {
  font-style: italic;
}

blockquote {
  font-style: italic;
  padding-inline-start: 1rem;
  margin-left: 0;
  border-left: 3px solid var(--c-main-100);
}

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

blockquote p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  font-family: var(--mono);
  font-size: .9rem;
}

td, th {
  padding: .4em .8em;
}

th {
  font-weight: bold;
  text-align: left;
  background-color: #fff;
}

tr:nth-child(odd) {
  background-color: var(--c-main-50);
}

ul.inline li {
  display: inline;
}

.sans {
  font-family: var(--sans-serif);
}

.serif {
  font-family: var(--serif);
}

.font-small {
  font-size: var(--f-sm);
}

.align-right {
  text-align: right;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/**
 ********************
 ********************
 * PAGE LAYOUT
 ********************
 ********************
 */

.page > header {
  font-style: italic;
}

.page > header #header_link_home:any-link {
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-main-900);
  font-family: var(--sans-serif);
  font-style: normal;
}

.page {
  background-color: #fff;
  max-width: 30rem;
  padding: 2rem;
  margin: 0 auto;
}

aside {
  font-size: var(--f-sm);
  font-family: var(--sans-serif);
  border-top: 1px dashed var(--c-main-400);
}

/**
 ********************
 ********************
 * POSTS
 ********************
 ********************
 */

.date-header {
  font-size: var(--f-sm);
  font-family: var(--sans-serif);
  text-transform: uppercase;
  margin: 5rem 0 1rem 3rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--c-main-600);
}

article {
  margin: 3rem 0;
}

.date-header + article {
  margin-top: 1rem;
}

a.permalink {
  margin-left: 3rem;
  color: var(--c-main-600);
  text-transform: lowercase;
  font-family: var(--sans-serif);
  font-size: var(--f-sm);
  font-weight: bold;
  text-decoration: none;
}

.post-label {
  font-family: var(--sans-serif);
  font-size: var(--f-sm);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-main-600);
  letter-spacing: 1px;
  margin-left: 3rem;
}

.p-name {
  margin-left: 3rem;
  font-family: var(--sans-serif);
  font-weight: bold;
}

.p-name a:any-link {
  text-decoration: none;
  color: var(--c-main-900);
}

.p-name a:hover {
  text-decoration: underline;
}

.header-list {
  margin-top: 3rem;
  margin-left: 0;
  text-transform: uppercase;
}

.author {
  font-weight: normal;
  font-weight: 500;
}

.rating {
  margin-left: 3rem;
  font-weight: normal;
  --percent: calc(var(--rating) / 5 * 100%);
  font-family: Times; /* make sure ★ appears correctly *//
}

.rating::before {
  content: '★★★★★';
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--c-main-800) var(--percent), var(--c-main-100) var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

img.cover {
  border: 5px solid var(--c-main-100);
  width: 7rem;
  box-sizing: border-box;
  margin-bottom: 1rem;
  margin-left: 1rem;
  float: right;
}

article ul, article ol {
  margin: 1rem 0;
}

article li + li {
  margin-top: .2rem;
}

article ul {
  list-style: square;
  margin-left: 2rem;
}

article .aside {
  font-size: var(--f-sm);
  font-family: var(--sans-serif);
}

article.post-trav {
  padding-bottom: 1rem;
  padding-top: .5rem;
}

article.post-trav main {
  background-image: url("/static/blog/travelling.215ed4d28f7a.svg");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 18px 18px;
}

div.travel {
  margin-left: calc(3rem + 2px);
  /* margin-top: calc(1rem + 40px); */
  border-left: 2px solid var(--c-main-100);
  padding-top: 10px;
  padding-bottom: 1px;
  font-family: var(--sans-serif);
}

div.travel > div {
  margin-left: -6px;
  line-height: 1em;
}

div.travel > .from {
  margin-top: -15px;
  margin-bottom: .5rem;
  font-weight: 600;
}

div.travel > .to {
  margin-bottom: -12px;
  font-weight: 600;
  margin-top: .5rem;
}

div.travel > .via + .via {
  margin-top: .25rem;
}

div.travel > .from::before,
div.travel > .to::before,
div.travel > .via::before {
  content: '⦁';
  margin-right: 0.5rem;
  color: transparent;
  background-color: var(--c-main-200);
  width: 6px;
  height: 6px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  border: 2px solid #fff;
}

.review-inline {
  margin: 2rem 0;
  font-size: var(--f-sm);
  background-color: var(--c-main-50);
  padding: .5rem 0;
  font-family: var(--sans-serif);
  border-radius: 3px;
}

.review-inline h2 {
  text-transform: uppercase;
  color: var(--c-main-700);
  font-weight: 500;
  letter-spacing: 1px;
  margin: .2rem 1rem .5rem;
}

ul.recent-reviews li {
  display: flex;
  padding: .5rem 1rem;
}

ul.recent-reviews li:nth-child(odd) {
  background-color: var(--c-main-100);
}

ul.recent-reviews li .rating {
  margin-left: auto;
}

ul.recent-reviews li a:any-link {
  color: var(--c-main-900);
}

.aux {
  font-size: var(--f-sm);
  font-style: italic;
  margin-top: 3rem;
}

/**
 ********************
 ********************
 * MEDIA
 ********************
 ********************
 */

 img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

figure {
  margin: calc(1rem) 0;
  overflow-x: auto;
}

figure.widescreen {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}

[data-youtube] {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  margin: 1rem 0;
}

[data-youtube]:hover,
[data-youtube] button:hover {
  cursor: pointer;
}

[data-youtube] button {
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 200;
  border-radius: 50px;
  border: 2px solid #fff;
  background-color: rgba(75, 75, 79, .7);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
  padding: 0;
}

[data-youtube] img {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0px;
  object-fit: cover;
}

[data-youtube] iframe,
figure.widescreen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

figure.pull-right {
  float: right;
  margin: 0 0 1rem 1rem;
}

figure.pull-left {
  float: left;
  margin: 0 1rem 1rem 0;
}

figure.bleed {
  margin-left: 0;
}

figcaption {
  text-align: right;
  font-style: italic;
  font-family: var(--serif);
  color: var(--c-main-600);
  margin-top: .5rem;
}

/**
 ********************
 ********************
 * PAGES
 ********************
 ********************
 */

main.single-page {
  margin-bottom: 3rem;
}

main.single-page h1 {
  font-family: var(--sans-serif);
  font-weight: bold;
  margin-top: 3rem;
  text-transform: uppercase;
}


main.single-page h2 {
  font-family: var(--sans-serif);
  font-weight: bold;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/**
 ********************
 ********************
 * ARCHIVE
 ********************
 ********************
 */

table.calendar td,
table.calendar th {
  padding: .4em .2em;
  background-color: transparent;
}

table.calendar td {
  color: var(--c-main-500);
}

/**
 ********************
 ********************
 * ADMIN
 ********************
 ********************
 */

div#admin {
  width: 30rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  background-color: #fef3c7;
  font-family: var(--sans-serif);
  font-size: var(--f-sm);
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--c-main-600);
  display: flex;
  align-items: center;
}

div#admin h2 {
  flex: 1;
  display: none;
}

div#admin ul {
  display: flex;
  gap: .5rem;
  font-size: var(--f-l);
}

div#admin a:any-link {
  text-decoration: none;
  color: var(--c-main-600);
}

div#admin a:hover {
  color: var(--c-main-900);
}
