/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

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, font, figure, 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 {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
  padding: 15px 15px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible; }
  .hamburger:hover {
    opacity: 0.7; }
  .hamburger.is-active:hover {
    opacity: 0.7; }
  .hamburger.is-active .hamburger-inner,
  .hamburger.is-active .hamburger-inner::before,
  .hamburger.is-active .hamburger-inner::after {
    background-color: #000; }

.hamburger-box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative; }

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px; }
  .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #000;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease; }
  .hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block; }
  .hamburger-inner::before {
    top: -10px; }
  .hamburger-inner::after {
    bottom: -10px; }

/*
 * Squeeze
 */
.hamburger--squeeze .hamburger-inner {
  transition-duration: 0.075s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  .hamburger--squeeze .hamburger-inner::before {
    transition: top 0.075s 0.12s ease, opacity 0.075s ease; }
  .hamburger--squeeze .hamburger-inner::after {
    transition: bottom 0.075s 0.12s ease, transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19); }

.hamburger--squeeze.is-active .hamburger-inner {
  transform: rotate(45deg);
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  .hamburger--squeeze.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.075s ease, opacity 0.075s 0.12s ease; }
  .hamburger--squeeze.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1); }

/*************************
 * Antonis theme styles *
 *************************/
@font-face {font-family: "Neue Haas Unica Pro Medium";
	src: url("../0fbe978229000b7a4e249a22e8756fca.eot"); /* IE9*/
	src: url("../0fbe978229000b7a4e249a22e8756fca.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
	url("../0fbe978229000b7a4e249a22e8756fca.woff2") format("woff2"), /* chrome、firefox */
	url("../0fbe978229000b7a4e249a22e8756fca.woff") format("woff"), /* chrome、firefox */
	url("../0fbe978229000b7a4e249a22e8756fca.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
	url("../0fbe978229000b7a4e249a22e8756fca.svg#Neue Haas Unica Pro Medium") format("svg"); /* iOS 4.1- */
}
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
html {
	max-width: 100vw;
	overflow-x: hidden;
	font-size: 62.5%;
}
body {
	color: #000;
	background: #fff;
	font-family: 'Neue Haas Unica Pro Medium', sans-serif;
	font-weight: 500;
	font-size: 18px;
	font-size: 1.8rem;
	line-height: 100%;
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
	margin: 0 0 1em;
	font-family: 'Neue Haas Unica Pro Medium', sans-serif;
	font-weight: 500;
	line-height: 1.3;
}
p {
	margin: 0 0 1.382em;
	font-size: 1em;
	line-height: 1.3;
}
ul {
	margin-bottom: 2em;
}
a, a:visited {
	outline: transparent solid 0px;
	color: #666;
	text-decoration: none;
}
a:hover {
	color: #000;
	transition: color 0.2s ease;
}
strong {
	font-weight: 700;
}
em {
	font-style: italic;
}
small {
	font-size: 0.875em;
}
sub, sup,
#words p i {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sub {
	bottom: -0.25em;
}
sup,
#words p i {
	top: -0.5em;
}
#words p i {
	margin-left: 4px;
	color: #999;
}
.nowrap {
	white-space: nowrap;
}
:hover, :focus {
    outline: none;
}
input,
textarea {
	border: 0;
	border-radius: 0;
	display: block;
	color: rgba(0, 0, 0, 1);
	background-color: #fff;
	font-family: 'Neue Haas Unica Pro Medium', sans-serif;
	font-size: 1em;
	font-weight: 500;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 1);
}   
input::-moz-placeholder,
textarea::-moz-placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 1);
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 1);
}
input::placeholder,
textarea::placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 1);
}
input:focus::-webkit-input-placeholder,
textarea:focus::-webkit-input-placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 0.2);
}
input:focus::-moz-placeholder,
textarea:focus::-moz-placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 0.2);
}
input:focus:-ms-input-placeholder,
textarea:focus:-ms-input-placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 0.2);
}
input:focus::placeholder,
textarea:focus::placeholder {
	font-weight: 500;
	color: rgba(0, 0, 0, 0.2);
}

/* Disable tap highlight */
button,
textarea,
input,
select,
a {
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Disable transitions on resize */
body.no-animation * {
	-webkit-transition: none !important;
	-moz-transition: none !important;
	-o-transition: none !important;
	transition: none !important;
}

/* Global wrapper default styles */
.wrap {
	width: 100%;
	margin: 0 auto;
	position: relative;
}

/*
 * Global header
 */
header.global {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	transition: top 0.3s ease, opacity 0.3s ease;
	transform: translateZ(0); /* Fix sub-pixel rendering issue */
	backface-visibility: hidden;
}
.scrolled header.global:not(.open) {
	top: -50px;
	opacity: 0;
}
header.global .wrap {
	padding: 0;
}

/* Hamburger */
.hamburger {
	behavior: url(PIE.htc);
	padding: 10px;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 999;
	opacity: 1;
	line-height: 0;
	transition: top 0.2s ease;
}
.hamburger:hover {
	opacity: 1;
}
.hamburger.is-active:hover {
	opacity: 1;
}
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
	background-color: #000;
}
.hamburger-box {
	width: 28px;
	height: 28px;
	line-height: 0;
}
.hamburger-inner {
	margin-top: 0;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
	width: 28px;
	height: 1px;
	background-color: #000;
}
.hamburger-inner::before {
	top: -8px;
}
.hamburger-inner::after {
	bottom: -8px;
}
.site-name {
	padding: 15px 10px;
}
.site-name a {
	color: #000;
}
#menu {
	display: none;
}
#menu ul {
	margin-bottom: 0;
}
#menu ul li {
	border-top: 1px solid #eee;
}
#menu ul li.active {
	background-color: #eee;
}
#menu ul li a,
#menu ul li.search {
	width: 100%;
	padding: 15px 10px;
	display: block;
	color: rgba(0, 0, 0, 1);
}
#menu ul li.search {
	padding: 13px 10px;
}
#menu form input {
	padding: 0;
	background: transparent;
}

/* Main */
main {
	margin-top: 80px;
	padding: 10px 10px 0;
	top: 0;
	left: 0;
}
main::after { /* Fade overlay */
    content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99;
	background-color: #fff;
    opacity: 0;
	transition: opacity 0.3s ease-in-out;
	pointer-events: none;
}
.fade-overlay::after {
	opacity: 1;
}

/* Homepage hero */
.hero {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transition: opacity 1s ease-in-out;
}
.progress-bar-bg,
.progress-bar {
	width: 100vw;
	height: 28px;
	position: absolute;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.15);
	z-index: 999;
}
.progress-bar {
	width: 0%;
	background: #fff;
	opacity: 1;
}
.caption {
    padding: 5px 10px;
    position: absolute;
    bottom: 0;
    left: 0;
	z-index: 999;
	font-size: 14px;
}
.caption i {
    opacity: 0;
}
.caption i.visible {
    opacity: 1;
}

/* Projects */
.projects {
    width: 100%;
    margin-bottom: 1.382em;
    display: flex;
	flex-direction: column;
}
.projects > div,
#pictures > figure {
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
}
.projects.col-4 > div {
	margin-bottom: 10px;
}
#pictures > figure {
    margin-bottom: 15px;
	flex-direction: column;
}
.projects > div.btm {
    align-items: flex-end;
}
.projects > div.dt-only:not(.spacer) {
	display: none;
}
@media screen and (max-width: 599px) {
	.projects > div.spacer {
		height: 100px;
	}
	.projects > div.spacer.dt-only,
	.projects > div.spacer.no-mob {
		display: none;
	}
}
#pictures > figure.btm {
    align-self: flex-end;
}
.projects > div a {
	color: #000;
}
.projects > div a:hover {
	color: #666;
}
.projects > div img,
#pictures > figure img {
	width: 100%;
	height: auto;
	display: block;
}
.projects > div img.lazyload,
.projects > div img.lazyloading {
	opacity: 0;
	visibility: hidden;
}
.projects > div img.lazyloaded {
	opacity: 1;
	visibility: visible;
}
.projects > div h2 {
	margin-bottom: 0;
	display: inline;
}

/* Posts */
.post article .wrap {
    display: flex;
    flex-direction: column;
}
.post article .wrap > div {
    width: 100%;
}
.post .title {
    order: 0;
}
.post #words {
    order: 2;
}
.post #pictures {
    order: 1;
}
section.posts h1,
article h1 {
	margin: 0;
}
section.posts h1 a,
article h1 {
	color: #000;
	text-decoration: underline;
	text-underline-offset: 2px;
}
section.posts h1 a {
	-webkit-user-select: auto;
    -khtml-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
	user-select: auto;
}
#words aside {
	--b: 4px;  /* border thickness */
	--s: 20px; /* size of the dashes */
	--c1: #eee;
	--c2: #ccc;
	margin-bottom: 1.382em;
	padding: 20px;
	position: relative;
}
#words aside::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: var(--b);
	background: 
		repeating-conic-gradient(var(--c1) 0 25%,var(--c2) 0 50%) 
		0 0/var(--s) var(--s) round;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
			mask-composite: exclude;
	pointer-events: none;
}
#words aside p {
	margin: 0;
	font-size: 16px;
}
#words a,
.meta a,
.caption a {
	color: #00f;
	-webkit-user-select: auto;
    -khtml-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
	user-select: auto;
}
#words a:hover,
.meta a:hover,
.caption a:hover {
	color: #000;
}
#words a i {
	margin-left: 1px;
	position: relative;
	top: -0.5em;	
	vertical-align: baseline;
	font-size: 75%;
	line-height: 0;
}
#words ul,
#words ol {
	margin: 1.382em 20px 1.5em 35px;
    padding: 0;
    list-style-type: disc;
}
#words ol {
	list-style-type: decimal;
}
#words li {
	line-height: 1.5;
}
#words ul.loose li {
	margin-bottom: 1em;
}
#words ol.loose li {
	margin-bottom: 1.382em;
}
#words blockquote {
	margin-left: 10px;
}
#words blockquote.line {
	margin-left: 10px;
	border-left: 3px solid #ccc;
	padding-left: 10px;
}
#words blockquote.indent p {
	text-indent: 2em;
}
#words blockquote.indent p:not(:last-of-type) {
	margin: 0;
}
#words blockquote.indent p:last-of-type:has(cite) {
	margin-top: 1.382em;
	font-size: 16px;
	line-height: 1.3;
	text-indent: 0;
}
#words blockquote.indent cite {
	font-style: normal;
}	

/* Pictures/videos in posts */
#words figure,
#words .video {
	width: 100%;
	margin: 0 auto 1.382em;
	display: block;
	position: relative;
}
@media screen and (max-width: 991px) {
	#words figure {
		max-width: 800px;
	}
	#words figure.portrait {
		max-width: 400px;
	}
}
#words figure img,
#pictures figure img {
	width: 100%;
	height: auto;
	display: block;
	font-size: 14px;
}
#words figure figcaption,
#pictures figure figcaption {
	width: calc(100% - 10px);
	margin: 3px 0 0 10px;
	position: relative;
	font-size: 14px;
	line-height: 1.3;
}
#words figure figcaption::before,
#pictures figure figcaption::before {
	content: '\f129';
	position: absolute;
	top: 0;
	left: -10px;
	opacity: 0.4;
	font-family: "Font Awesome 5 Free";
	font-size: 12px;
	font-weight: 900;
	line-height: 1.3;
}
#words .video {
	max-width: 800px;
}
.embed-container {
	height: 0;
	padding-bottom: 56.25%;
	position: relative;
	overflow: hidden;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

/* Pagination */
.pagination {
	margin-bottom: 1.382em;
	cursor: default;
}
.pagination > .wrap > div {
	display: inline-block;
}
.pagination > .wrap > div.previous a {
	margin-right: 10px;
}

/* Footer */
footer {
	padding: 0 10px 10px;
}
footer p {
    margin: 0;
}
footer ul {
	margin: 1.382em 0 0;
}
footer ul li {
	line-height: 1.3;
}
footer nav {
    display: none;
}
.posts footer nav {
    display: block;
}

/* @media screen and (min-width: 480px) { } */

@media screen and (min-width: 600px) {
	/* .projects */
	.projects,
	#pictures {
	    display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 10px;
	}
	#pictures {
	    align-self: flex-start;
	}
	.projects > div {
		flex: 0 0 calc((100% - 10px) / 2);
	}
	#pictures > figure,
	#pictures > .video	{
		flex: 0 0 calc(50% - 5px);
	}
	#pictures > .w-50 {
	    margin-right: 50%;
	    flex: 0 0 50%;
	}
	#pictures > .w-60 {
	    margin-right: 40%;
	    flex: 0 0 60%;
	}
	#pictures > .w-70 {
	    margin-right: 30%;
	    flex: 0 0 70%;
	}
	#pictures > .w-80 {
	    margin-right: 20%;
	    flex: 0 0 80%;
	}
	#pictures > .w-90 {
	    margin-right: 10%;
	    flex: 0 0 90%;
	}
	#pictures > .w-100 {
	    flex: 0 0 100%;
	}
	#pictures > .offset-left {
	    margin-left: 50%;
    }
	.projects .w-50 a { width: 50% }
	.projects .w-60 a { width: 60% }
	.projects .w-70 a { width: 70% }
	.projects .w-80 a { width: 80% }
	.projects .w-90 a { width: 90% }
	#words figure img,
	#pictures figure img {
		font-size: 16px;
	}
}

@media (min-width: 600px) and (max-width: 991px),
       (min-width: 1280px) {
    #words figure figcaption,
    #pictures figure figcaption {
    	width: calc(100% - 12px);
    	margin: 3px 0 0 12px;
    	font-size: 16px;
    }
    #words figure figcaption::before,
    #pictures figure figcaption::before {
    	left: -12px;
    	font-size: 14px;
    }
}

@media (min-width: 600px) and (max-width: 1365px) {
	.projects > div.spacer:not(.no-mob) {
	    display: none;
	}
	.projects > div {
		align-items: flex-end !important;
	}
}

@media screen and (min-width: 768px) {
	body {
		font-size: 2em;
	}
	.hamburger {
		padding: 11px 11px;
	}
	#words aside {
		padding: 20px 20px 25px;
	}
	#words aside p {
		font-size: 18px;
	}
	#words blockquote {
		margin-left: 15px;
	}
	#words blockquote.line {
		margin-left: 15px;
		border-left: 5px solid #ccc;
		padding-left: 15px;
	}
	#picture figure figcaption {
    	width: calc(100% - 12px);
    	margin: 3px 0 0 12px;
    }
    #picture figure figcaption::before {
    	left: -12px;
    }
}

@media screen and (min-width: 992px) {
	body {
		font-size: 2.4em;
	}
	.hamburger {
		display: none;
	}
	header.global {
		box-shadow: none;
	}
	.home header.global {
		background: transparent;
		opacity: 1;
	}
	.home header.global.hidden {
		opacity: 0;
		transition: opacity 0.3s ease-in-out;
	}
	header.global > div > div {
		width: 50%;
		display: inline-block;
	}
	.home header.global.white .site-name a,
	.home header.global.white #menu ul li a,
	.home header.global.white #menu ul li.search {
	    color: rgba(255, 255, 255, 1);
	}
    .home header.global.white #menu ul li a:hover {
        color: rgba(255, 255, 255, 0.6);
    }
    .home header.global.white input,
    .home header.global.white textarea {
        color: rgba(255, 255, 255, 1);
        caret-color: white;
    }
    .home header.global.white input::-webkit-input-placeholder,
    .home header.global.white textarea::-webkit-input-placeholder {
	    color: rgba(255, 255, 255, 1)
    }   
    .home header.global.white input::-moz-placeholder,
    .home header.global.white textarea::-moz-placeholder {
	    color: rgba(255, 255, 255, 1)
    }
    .home header.global.white input:-ms-input-placeholder,
    .home header.global.white textarea:-ms-input-placeholder {
	    color: rgba(255, 255, 255, 1)
    }
    .home header.global.white input::placeholder,
    .home header.global.white textarea::placeholder {
	    color: rgba(255, 255, 255, 1)
    }
    .home header.global.white input:focus::-webkit-input-placeholder,
    .home header.global.white textarea:focus::-webkit-input-placeholder {
	    color: rgba(255, 255, 255, 0.3)
    }
    .home header.global.white input:focus::-moz-placeholder,
    .home header.global.white textarea:focus::-moz-placeholder {
	    color: rgba(255, 255, 255, 0.3)
    }
    .home header.global.white input:focus:-ms-input-placeholder,
    .home header.global.white textarea:focus:-ms-input-placeholder {
	    color: rgba(255, 255, 255, 0.3)
    }
    .home header.global.white input:focus::placeholder,
    .home header.global.white textarea:focus::placeholder {
	    color: rgba(255, 255, 255, 0.3)
    }
    .home header.global.white input:focus::placeholder,
    .home header.global.white textarea:focus::placeholder {
	    color: rgba(255, 255, 255, 0.3);
    }
	#menu {
		display: block !important;
	}
	#menu ul li {
		border: 0;
		display: inline-block;
	}
	#menu ul li.active {
		background: transparent;
	}
	#menu ul li.search {
		width: auto;
		padding: 0 10px;
		display: inline-block;
	}
	#menu ul li a,
	#menu ul li form {
		opacity: 1 !important;
	}
	#menu ul li:first-of-type a {
		padding-left: 5px;
	}
	#menu ul li.active a {
		color: rgba(0, 0, 0, 0.6);
	}
	#menu ul li a:hover {
        color: rgba(0, 0, 0, 0.6);
	}
	#menu form input {
		width: 160px;
	}
	main::after {
    	z-index: 999;
	}
	.hero {
		top: 0 !important;
	}
	.progress-bar-bg,
	.progress-bar {
	    height: 34px;
	}
    .caption {
        font-size: 16px;
    }
	.post article .wrap {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 10px;
    }
    .post #words,
    .post #pictures {
        width: calc(50% - 5px) !important;
    }
    .post #words {
        order: 1;
    }
    .post #pictures {
        order: 2;
    }
	.post #pictures > figure,
	.post #pictures > .video {
		margin-bottom: 10px;
	}
	.post #pictures > .bottom {
		margin-top: auto;
	}
	.post #pictures > figure > figcaption {
		margin-bottom: 5px;
	}
	#words aside {
		--b: 5px;
		--s: 30px;
	}
	#words aside p {
		font-size: 20px;
	}
	#words blockquote.indent p:last-of-type:has(cite) {
		font-size: 18px;
	}
}
@media screen and (min-width: 1366px) {
	.projects.col-4 > div {
		flex: 0 0 calc((100% - 30px) / 4);
	}
	.projects > div.dt-only {
	    display: flex !important;
	}
	.projects > div.mob-only {
		display: none;
	}
}