/*
Theme Name: Frontwards
Theme URI: http://frontwardsdesign.co.uk
Text Domain: frontwards
Description: So barebones it barely exists.
Version: 1.01
Author: Oliver Fisher
Author URI: http://frontwardsdesign.co.uk
*/



/*  ------------------------------

	CONTENTS
	========

	 1. Baseline
	 2. Utility
	 3. Components



/*  ============================================================
 1. BASELINE
    ============================================================  */


	/*  SET DEFAULT BOX SIZING
		------------------------------  */
		*,
		*:before,
		*:after {
			box-sizing: border-box;
		}


	/*  SET ALL ELEMENT DEFAULTS
		------------------------------  */
		* {
			margin: 0;
			font-family: inherit;
			line-height: inherit;
			color: inherit;
		}


	/*  SET DEFAULT FOCUS STYLES
		------------------------------  */

		*:focus {
			outline: 2px dashed;
			outline-offset: 2px;
		}


	/*  SET DEFAULT HTML STYLES
		------------------------------  */

		html {
			height: 100%;
			font-size: 100%;
		}

		html:focus-within {
			scroll-behavior: smooth;
		}

		@media screen and (min-width: 56.25em) {

			html {
				font-size: 112.5%;
			}

		}


	/*  SET DEFAULT BODY STYLES & CUSTOM PROPERTIES
		-------------------------------------------  */

		body {
			display: flex;
			flex-direction: column;
			min-height: 100%;
			overflow-x: hidden;
			padding: 1.125rem;
			font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
			font-weight: 300;
			line-height: 1.5;
			text-align: center;
			text-rendering: optimizeSpeed;
			background-color: #1a1c4a;
			color: #fff;
		}

		@media screen and (min-width: 37.5em) {

			body {
				padding: 1.5rem;
			}

		}

		@media screen and (min-width: 56.25em) {

			body {
				padding: 3rem;
			}

		}


	/*  SET DEFAULT LIST STYLES
		------------------------------  */

		ul,
		ol {
			list-style: none;
			padding: 0;
		}


	/*  SET DEFAULT IMAGE STYLES
		------------------------------  */

		img {
			display: block;
			height: auto;
			max-width: 100%;
		}


	/*  SET DEFAULT VIDEO STYLES
		------------------------------  */

		video {
			max-height: calc(100vh - 12rem);
			max-width: 100%;
			background-color: #000;
		}


	/*  SET DEFAULT LINK STYLES
		------------------------------  */

		a {
			-webkit-transition: color .3s ease, background-color .3s ease;
			-moz-transition: color .3s ease, background-color .3s ease;
			transition: color .3s ease, background-color .3s ease;
		}

		a:hover,
		a:focus {
			background-color: ;
		}

		h1 a,
		h2 a {
			text-decoration: none;
		}

		.page-link {
			text-transform: uppercase;
			letter-spacing: 0.05em;
		}


	/*  SET DEFAULT BUTTON STYLES
		------------------------------  */

		button,
		[type="button"] {
			padding: 0;
			border: 0;
			background: none;
		    -webkit-appearance: none;
		    -moz-appearance: none;
			cursor: pointer;
		}


	/*  SET DEFAULT HEADING STYLES
		------------------------------  */

		h1, h2 {
			font-size: 1.333rem;
			font-weight: 300;
		}

		.site-logo h1,
		.single-haiku-title {
			max-width: 52vw;
			margin-left: auto;
			margin-right: auto;
			text-transform: uppercase;
			letter-spacing: 0.05em;
		}


	/*  SET DEFAULT PARAGRAPH STYLES
		------------------------------  */

		p {
			font-size: 1rem;
		}

		/* @media screen and (min-width: 37.5em) {

			p {
				font-size: 1.125rem;
			}

		} */

		.small-text {
			font-size: .75rem;
		}


	/*  ANIMATIONS / TRANSITIONS
		-----------------------------------  */

		/* Prevent animations/transitions if user prefers reduced motion */

		@media screen and (prefers-reduced-motion: reduce), (update: slow) {

			html:focus-within {
	   			scroll-behavior: auto;
	  		}

			*,
			*:before,
			*:after {
				animation-duration: 0.001ms !important;
				animation-iteration-count: 1 !important;
				transition-duration: 0.001ms !important;
				scroll-behavior: auto !important;
			}

		}



/*  ============================================================
 2. UTILITY
    ============================================================  */


	/*  VISIBILITY
	    ------------------------------  */

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


	/*  LAZYLOADING
		------------------------------  */

		.lazyload,
		.lazyloading {
		    opacity: 0;
		}

		.lazyloaded {
		    opacity: 1;
			-webkit-transition: opacity .3s ease;
			-moz-transition: opacity .3s ease;
			transition: opacity .3s ease;
		}


	/*  EMBED CONTAINER
		------------------------------  */

		.embed-container {
			position: relative;
			padding-bottom: 56.25%;
			height: 0;
			overflow: hidden;
			max-width: 100%;
		}

		.embed-container iframe {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}


	/*  WRAPPERS
		------------------------------  */

		[class*="wrapper"] {
			margin-left: auto;
			margin-right: auto;
		}

		.wrapper-small {
			max-width: 23rem;
		}

		.wrapper-small-medium {
			max-width: 36rem;
		}

		.wrapper-medium {
			max-width: 40.5rem;
		}

		.wrapper-large {
			max-width: 48rem;
		}




	/*  VERTCIAL SPACING (STACKS)
	    ------------------------------  */

		.stack-x-x-small > * + * {
			margin-top: .1875rem;
		}

		.stack-x-small > * + * {
			margin-top: .375rem;
		}

		.stack-small > * + * {
			margin-top: .75rem;
		}

		.stack-small-medium > * + * {
			margin-top: 1.125rem;
		}

		.stack-base > * + * {
			margin-top: 1.5rem;
		}

		.stack-medium-large > * + * {
			margin-top: 2.25rem;
		}

		.stack-large > * + * {
			margin-top: 3rem;
		}

		.stack-x-large > * + * {
			margin-top: 4.5rem;
		}

		.stack-x-x-large > * + * {
			margin-top: 6rem;
		}


	/*  HORIZONTAL SPACING (RACKS)
	    ------------------------------  */

		.rack-x-x-small > * + * {
			margin-left: .1875rem;
		}

		.rack-x-small > * + * {
			margin-left: .375rem;
		}

		.rack-small > * + * {
			margin-left: .75rem;
		}

		.rack-small-medium > * + * {
			margin-left: 1.125rem;
		}

		.rack-base > * + * {
			margin-left: 1.5rem;
		}

		.rack-medium-large > * + * {
			margin-left: 2.25rem;
		}

		.rack-large > * + * {
			margin-left: 3rem;
		}

		.rack-x-large > * + * {
			margin-left: 4.5rem;
		}

		.rack-x-x-large > * + * {
			margin-left: 6rem;
		}



	/*  DISPLAY
	    ------------------------------  */

		.block {
			display: block;
		}

		.inline-block {
			display: inline-block;
		}

		.inline {
			display: inline;
		}


	/*  POSITIONING
	    ------------------------------  */

		.relative {
			position: relative;
		}

		.absolute {
			position: absolute;
		}

		.fixed {
			position: fixed;
		}


	/*  FLEX
	    ------------------------------  */

		.flex {
			display: flex;
		}

		.inline-flex {
			display: inline-flex;
		}

		.flex-wrap {
			flex-wrap: wrap;
		}

		.flex-column {
			flex-direction: column;
		}

		.justify-center {
			justify-content: center;
		}

		.justify-space-between {
			justify-content: space-between;
		}

		.align-items-start {
			align-items: flex-start;
		}

		.align-items-baseline {
			align-items: baseline;
		}

		.align-items-center {
			align-items: center;
		}



/*  ============================================================
 3. COMPONENTS
    ============================================================  */

	/*  SITE FOOTER
	    ------------------------------  */

	footer {
		margin-left: -1.125rem;
		margin-right: -1.125rem;
		padding-bottom: 1.5rem;
		border-bottom: 8px double;
	}

	@media screen and (min-width: 37.5em) {

		footer {
			margin-left: -1.5rem;
			margin-right: -1.5rem;
		}

	}

	@media screen and (min-width: 56.25em) {

		footer {
			margin-left: -3rem;
			margin-right: -3rem;
		}

	}



	/*  GRID
	    ------------------------------  */

	.grid {
		columns: 300px 3;
		column-gap: 3rem;
		text-align: left;
	}

	.grid > * {
		padding: 4px;
		break-inside: avoid;
  		page-break-inside: avoid;
	}

	.grid > * + * {
		margin-top: 1.5rem;
	}


	/*  BACK/HOME LINKS
		------------------------------  */

	.back-link,
	.home-link {
		position: absolute;
		top: .25rem;
	}

	.back-link {
		left: 0;
	}

	.home-link {
		right: 0;
	}

	.back-link a,
	.home-link a {
		text-decoration: none;
	}

	.back-link-text,
	.home-link-text {
		font-size: .75rem;
		text-transform: uppercase;
		letter-spacing: .05em;
	}
