/*!
Theme Name: aåamag
Theme URI: http://alltatalla.se/
Author: Cyberkom
Author URI: http://longdarktunnel._/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: aåamag
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/

:root {
    --bg: #eee;
    --fg-hero: #fff;
    --bg-backissues: #e8e8e8;
    --bg-footer: #c4c4c4;
	--bg-text: #fff;
    --green: #5ac79d;
	--green-hl: #369f76;
    --fg: black;
    --darkgray: #313131;
    --lightgray: #777;

    --sans: "Nexa", Helvetica, Arial, sans-serif;
    --sans-wide: "Nexa", Helvetica, Arial, sans-serif;

    --serif: 'RoslindaleText', Times, Serif;
    --serif-deck: 'RoslindaleDeck', Times, Serif;
    --serif-display: 'RoslindaleDisplay', Times, Serif;
    
    --page-margin: 20rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(0 0% 15%);
        --bg-backissues: hsl(0 0% 20%);
        --bg-footer: hsl(0 0% 25%);
	    --bg-text: hsl(0 0% 10%);
        --fg: hsl(0 0% 86%);
        --fg-hero: #f9f9f9;
        --darkgray: hsl(0 0% 86%);
        --lightgray: hsl(0 0% 70%);
        --green: #e94543;
		--green-hl: #ee7271;
    }
}

@media (max-width: 1100px) { 
    :root { 
        --page-margin: 10rem; 
    } 
}

a {
  color: inherit;
  text-decoration: inherit;
}

/*--------------------------------------------------------------
## Utility
--------------------------------------------------------------*/

.narrow {
    max-width: 900px;
}

.serif-body {
    font: 3.5rem/5rem var(--serif);
    font-style: regular;
    font-weight: 400;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

body,
button,
input,
select,
optgroup,
textarea {
    font-family: var(--sans);
    font-size: 5px;                  /* used to calculate rem */
    font-weight: normal;
    }

h1, h2, h3, h4, h5, h6 {
    clear: both;
    margin: 0;
    padding: 0;
    font-weight: normal;
    letter-spacing: 0rem;
}

h1 {
    font-size: min(12vw, 15rem);
    line-height: min(11vw, 15rem);
	font-family: var(--serif-display);
}

@media (max-width: 900px) { h1 { letter-spacing: 0; } }

h2 {
    font-size: 10rem;
    line-height: 10rem;
	font-family: var(--serif-deck);
}

.post-content-legacy h2 {
	font-family: var(--sans);
	font-weight: 600;

}

h3 {
    font-size: 7rem;
	line-height: 7rem;
	font-family: var(--serif-deck);
	margin: 10rem 0 5rem 0;
}

.post-content-legacy h3 {
	font-family: var(--sans);
	font-weight: 600;
}

/* used for pull-quotes */
h5 {
    margin: 10rem 0;
    font-family: var(--serif-display);
    font-size: 10rem;
    line-height: 10rem;	
}

h5::before {
    content: "“";
    margin-left: -2rem;
} 

h5::after {
    content: "”";
}

strong {
    font-style: bold;
    font-weight: 500;
}

.site-main {
    font-size: 4rem;                  /* default font size */
    line-height: 5rem;
    font-weight: 600;
}

@media (max-width: 900px) {
}

.scroll {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.scroll::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
}

p a {
    text-decoration: underline;
	text-decoration-color: inherit;

}

p a:hover {
	text-decoration-color: inherit;

}

a:visited {
    text-decoration: none;
}

a:hover, a:focus, a:active {
    text-decoration: underline;
    outline: 0;
}

ul li {
    margin: 0;
    padding: 0;
    text-indent: 0;
    list-style-type: none;
}

ul {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
}

/*--------------------------------------------------------------
## Front-page
--------------------------------------------------------------*/

html {
    box-sizing: border-box;
    font-size: 5px;
    margin-top: 0 !important;
}

*,
*:before,
*:after {
    /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
    box-sizing: inherit;
}

body {
    color: var(--fg);
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

main {
    margin: 0;
    padding: 0;
}
#page {
    /* max-width: 1200px; */
    margin: 0 auto;
}

hr {
}

p {
    margin: 0;
    padding: 0;
}

img {
    height: auto;
    /* Make sure images are scaled correctly. */
    max-width: 100%;
    /* Adhere to container width. */
}

/* Wordpress uses figure tags when embedding pictures via the composer, which means we have to override browser defaults */
figure {
    padding: 0;
    margin: 0;
}

::selection {
    color: var(--bg);
    background-color: var(--fg);
}

input {
    font-size: 3rem;
    background: none;
    border: 2px solid var(--bg);
    border-width: 0 0 2px 0;
    color: var(--bg);
    font-weight: 500;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

::placeholder {
    color: var(--bg);
}
@media (max-width: 900px) { .last { letter-spacing: -0.5rem; } }


/* Front-Page Hero */

.hero {
    padding: 45rem var(--page-margin) var(--page-margin) var(--page-margin);

    display: flex;
    flex-direction: column;
    align-content: center;

    background: var(--green);
    color: var(--fg-hero);
}


.hero-img {
    grid-column: span 2;
    width: 100%;
}

.hero-text {
    display: grid;
    grid-gap: 10rem;
    grid-template-columns: repeat(3, 1fr);
}

.hero-tagline {
    font-size: 20rem;
    line-height: 18rem;
    font-weight: 900;
    grid-column: span 2;
	letter-spacing: -4px;
}

.hero-description {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
	font-size: 3.5rem;
    line-height: 4.5rem;
}

.hero a {
    color: var(--fg-hero);
    text-decoration: none;
    font-family: var(--sans-wide);
    padding-bottom: 1rem;
    border: 1px solid var(--fg-hero);
    border-width: 0 0 2px 0;

    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.hero a:visited {
    color: var(--fg-hero);
}

.hero-link {
    margin-top: 1em;
    color: var(--bg);
    font-weight: 700;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}

.hero-link:visited {
    color: var(--fg-hero);
    text-decoration: none;
}

.hero a:hover {
    text-decoration: none;
    border-width: 0 0 5px 0;
}


@media (max-width: 1200px) {
    .hero-tagline {
        font-size: 20rem;
        line-height: 18rem;
        letter-spacing: 0;
		letter-spacing: -4px;
    }
}


@media (max-width: 900px) {
    .hero {
        padding: 50rem 3rem 3rem 3rem;
    }

    .hero-tagline {
        font-size: 10rem;
        line-height: 9rem;
        letter-spacing: -2px;
    }
	
	.hero-description {
		padding: 1em 0;
	}

    .hero-text {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 1rem;
    }
}

/* Issue header */

.issue-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.issue-cover {
    padding: 10rem var(--page-margin) 3rem var(--page-margin);
    margin: 5rem 0 0 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
}

.issue-info {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
	   padding: 0 5rem 5rem 5rem;
	min-width: 300px;
}

.issue-info h2 {
    font-family: var(--sans);
    text-transform: uppercase;
    font-size: 3.5rem;
    line-height: 5rem;
    padding: 0;
    margin: 0;
}

.issue-title {
    font-size: 15rem;
	line-height: 15rem;
    font-family: var(--serif-display);
    font-weight: 800;
    margin-left: 0rem;
	margin-top: 0px;
	hyphens: off;
	-webkit-hyphens: off;
    -moz-hyphens: off;
}

.issue-description {
    font-family: var(--serif);
    font-weight: 400;
    display: flex;
    align-content: flex-start;
    white-space: pre-line; 
    padding: 0 var(--page-margin);
    width: 100%;
	max-width: 1500px;
	
	font-size: 3.5rem;
	line-height: 4.5rem;
}

.issue-description-inner {
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 4.5rem;
	background: var(--bg-text);
    padding: 5rem 10rem 5rem 5rem;
    border: 1px solid var(--bg-backissues);
	margin-left: -20px;
	margin-top: 5rem;
}

#issue-description-read-more {
	font-family: var(--sans);
	font-weight: 600;
	color: var(--green);
	cursor: pointer;
	border-bottom: 2px solid var(--green);
	transition: all 0.2s;
	padding: 3.5rem 0 3px 0;
	margin-top: -3.5rem;
}


#issue-description-read-more:hover {
	border-bottom-width: 5px;
}

summary {
	font-family: var(--sans);
	margin-bottom: -20px;
	cursor: pointer;
}

.mobile-info {
    display: none;
}

@media (max-width: 900px) {
    .issue-cover {
        padding: 3rem 3rem 0rem 3rem;
        flex-direction: column;
    }

    .issue-title {
        font-size: 12rem;
        line-height: 12rem;
        letter-spacing: 0;
        padding-left: 1rem;
    }

    .issue-info h2 {
        color: var(--darkgray);
    }

    .issue-description {
        padding: 3rem;
        font-size: 3rem;
        line-height: 4.5rem;
		padding-right: 0;
    }

    .desktop-info {
        display: none;
    }

    .mobile-info {
        display: flex;
        padding: 0 0 5rem 0;
    }
	.issue-description-inner {
		max-width: 100%;
		padding-right: 5rem;
	}
}



/* Issue articles */

.articles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    margin: var(--page-margin) auto;
    padding: 0 var(--page-margin);
}

.article {
    grid-column: span 3;
    padding: 5rem;

    background: var(--bg);
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
}

.article:nth-of-type(3n) {
    grid-column: span 6;
}

.article:nth-of-type(3n) > a {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5rem;
}

.article:nth-of-type(3n) > a > img {
    grid-column: span 2;
}

.article:nth-of-type(3n) > a > .article-meta {
    display: flex;
    flex-direction: column;
}

.article:nth-of-type(3n) > a > .article-meta > .article-author {
    margin-top: 0;
}

.article:nth-of-type(3n) > a > .article-meta > .article-excerpt {
    margin-top: auto;
}

.article:hover {
    background: var(--bg-text);
}

.article a:hover {
    text-decoration: none;
}

.article-img {
    display: block;
    width: 100%;
}

.article-author {
    font-family: var(--sans-wide);
    color: var(--darkgray);
    text-transform: uppercase;
    margin-top: 3rem;
    font-weight: 400;
	font-size: 3rem;
}

.article-title {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 10rem;
    line-height: 10rem;
    padding: 2rem 0;
}

.article-excerpt {
    margin-top: 2rem;
    font-family: var(--serif-deck);
}


@media (max-width: 900px) {
    .articles {
        padding: 5rem 3rem 3rem 3rem;
        margin-top: 5rem;
        grid-template-columns: 1fr;
        grid-gap: 10rem;
    }

    .article {
        padding: 0;
    }

	.article:hover {
		background: transparent;
	}

    .article:nth-of-type(3n) {
        grid-column: span 1;
    }

    .article:nth-of-type(3n) > a {
        display: block;
    }

    .article:nth-of-type(3n) > a > .article-meta > .article-author {
        margin-top: 3rem;
    }

    .article:nth-of-type(3n) > a > .article-meta > .article-excerpt {
        margin-top: 3rem;
    }

    .article-author {
        font-size: 3rem;
        line-height: 4.5rem;
    }

    .article-title {
        font-size: 9rem;
        line-height: 9rem;
    }

    .article-excerpt {
        font-size: 3rem;
        line-height: 4.5rem;
		font-family: var(--serif);
    }

}

@media (max-width: 1200px) {

    .articles {
        grid-gap: 5rem;
    }


    .article:nth-of-type(3n) > a > img {
        grid-column: span 3;
    }

    .article:nth-of-type(3n) > a > .article-meta {
        grid-column: span 3;
    }
}


/* SITE INFO  */

.site-info-container {
    background: var(--fg);
    color: var(--bg);
    margin-left: -10rem;
    margin-right: -10rem;
}

.site-info {
    margin: 0 auto;
    background: var(--fg);
    color: var(--bg);
    padding: 5rem 0;

    display: flex;
    align-items: center;
    justify-content: center;

    object-fit: cover;
}

.site-info p {
    padding: 5rem;
}

#logo-info {
    padding: 3rem;
    max-height: 40rem;
}


/* Backissues */

.backissues-container {
    background: var(--bg-backissues);

    padding: 5rem var(--page-margin)
             10rem var(--page-margin);
}

.backissues-label {
    text-align: center;
    font-family: var(--sans-wide);
    font-size: 5rem;
    text-transform: uppercase;
    marign-bottom: 10rem;
}

.backissues {
    margin-top: 10rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15rem;
	line-height: 7rem;
}

.backissue-covers {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.backissue-container {
    text-decoration: none;
}

.backissue-container:hover {
    text-decoration: none;
}

.backissue {
    display: flex;
    flex-direction: column;

    height: 40rem;
    width: 100%;
    border: 2px solid var(--fg);
    background-color: var(--bg);

    -webkit-transition: 0.3s;
    transition: 0.3s;
	cursor: pointer;
}


.backissue-active {
    background-color: var(--green);
}

.backissue:hover {
    text-decoration: none;
    background: var(--green-hl);

}

.backissue-title {
    font-family: var(--serif-deck);
    font-weight: 600;
    font-size: 6rem;
	line-height: 7rem;
    margin: auto 4rem 4rem 4rem;
    padding: 0;
	hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

.backissue-numeral {
    font-family: var(--sans-wide);
    font-size: 7rem;
    margin: 5rem 4rem 4rem 4rem;
    padding: 0;
}

.backissue-title:hover {
    text-decoration: none;
}

.backissue-articles {
	grid-column: span 2;
    display: flex;
    flex-direction: column;
	max-width: 700px;
}

.backissue-article {
    margin-bottom: 2rem;
    padding: 2rem 2rem 1.5rem 2rem;

    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.backissue-article:hover {
    text-decoration: none;
    background: var(--bg-text);
}

.backissue-article-author {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 2.5rem;
    line-height: 3.5rem;
	font-weight: 300;
}

.backissue-article-title {
    margin: 1rem 0;
    font-family: var(--serif-deck);
    font-weight: normal;
    font-size: 8rem;
    line-height: 8rem;
    font-style: regular;
    font-weight: 400;
}

.backissue-article-excerpt {
    margin-top: 2rem;
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 4rem;
	font-weight: 300;
}

.read-more {
    max-width: 1000px;
    grid-gap: 10rem;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
}

.read-more img {
    margin-bottom: 2.5rem;
}

.next-post {
    grid-column: 2;
}

@media (max-width: 900px) {
    .backissues-container {
        padding: 0;
    }

	.backissues-label {
		padding: 5rem 3rem 3rem 3rem;
	}
	
    .backissues {
        display: flex;
		flex-direction: column;
		gap: 5rem;
    }

	.backissue {
		min-width: 38rem;
		height: 38rem;
    }
	
	.backissue::after {
		content: "";
		padding-right: 3rem;
		margin-right: 3rem;
	}
	.backissue-articles {
		padding: 0rem 3rem 3rem 3rem;

	}
	
    .next-post {
        grid-column: 1;
    }
	
	.backissue-covers {
		flex-direction: row;
		gap: 4rem;
		overflow: scroll;
		padding-left: 3rem;
	}
	
	.backissue-title {
		font-size: 4rem;
		line-height: 4rem;
	}

	.backissue-article-title {
		font-size: 6rem;
		line-height: 6rem;
	}

	.backissue-article-author {
		color: var(--lightgray);
	}

}

/*--------------------------------------------------------------
# Post
--------------------------------------------------------------*/

.post {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.post-content h2 {
    margin: 1em 0;
    font-family: var(--serif-deck);
    font-weight: 300;
	max-width: 600px;
	width: 100%;
}

.post-header {
	padding: 40rem var(--page-margin) 10rem var(--page-margin);
}

.post-header-legacy {
    margin: 40rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
	width: 100%;
    Padding: 3rem
}


.post-cover {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10rem;
}

.post-title {
    font: 10rem/10rem var(--serif-display);
    font-weight: 600;
    margin: 2rem 0 5rem 0;
}

.post-header-legacy > .post-meta > .post-title {
    font-family: var(--sans);
    font-size: 12rem;
    line-height: 11rem;
}

.post-content-legacy > .post-thumbnail > img {
    margin: 10rem 0;
}

.post-content-legacy  {
	font-size: 3.5rem;
	line-height: 1.5;
	font-weight: 300;
	
	max-width: 900px;
}

.post-content-legacy > p {
    margin: 5rem 0;
}

.post-thumbnail {
    grid-column: span 3;
    align-self: end;
}

.post-meta {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.post-author {
    font-family: var(--sans);
    color: var(--darkgray);
    text-transform: uppercase;
    font-size: 3.5rem;
    font-weight: 400;
}

.post-description {
    font-family: var(--serif-deck);
    font-weight: 400;
    font-size: 4rem;
    line-height: 5rem;
}

.post-content  {
	background-color: var(--bg-text);
	width: 100%;
	padding: 10rem var(--page-margin) var(--page-margin) var(--page-margin);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.post-content-legacy {
    max-width: 800px;
}


.post-content p {
	margin: auto 0;
	max-width: 600px;
    margin-bottom: 5rem;
	width: 100%;
}

.post-content ul, .post-content li {
	margin: auto 0;
	max-width: 600px;
    margin-bottom: 1em;
    list-style-type: square;
	margin-left: 5rem;
}

.post-content-legacy p {
    margin-bottom: 5rem;
}

blockquote {
    font: 4rem/5rem var(--serif-deck);
	margin: 0 0 5rem 2rem;
	padding: 5rem 5rem 0 3rem;
	border-left: 1px solid var(--lightgray);
	hyphens: auto;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
}

.post-content-legacy blockquote {
	font-family: var(--sans);
}

blockquote p {
    margin-bottom: 5rem;
}

.post-issue {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40rem var(--page-margin) var(--page-margin) var(--page-margin);
    background: var(--bg-backissues);
    font-family: var(--sans-wide);
    width: 100%;
}

@media (max-width: 1200px) {
    .post-cover {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 5rem;
    }
}


@media (max-width: 900px) {
	.post-header {
		padding: 40rem 3rem 5rem 3rem;
	}

    .post-cover {
        display: flex;
		flex-direction: column;
        gap: 5rem;
    }

    .post-meta {
        width: 100%;
    }

    .post-thumbnail {
        grid-column: span 1;
		transform: scale(1.1);
    }

    .post-title {
        font-size: 9rem;
        line-height: 9rem;
        font-weight: 600;
        margin: 3rem 0;
    }

    .post-description {
        font-size: 4rem;
        line-height: 5rem;
    }
	
	.post-content {
		padding: 5rem 3rem 5rem 3rem;
	}

	.post-content h2 {
		font-size: 7rem;
		line-height: 7rem;
	}

	.post-content h5 {
		font-size: 5rem;
		line-height: 5rem;
		font-family: var(--serif-deck);
		margin: 3rem 0 3rem 2rem;
	}

	.post-author {
		font-size: 3rem;
		line-height: 4.5rem;
	}

	.post-content-legacy {
        padding: 0 3rem;
		max-width: 100%;
    }

}
.mobile-info {
    display: none;
}

@media (max-width: 900px) {
    .post-cover {
        padding: 3rem 3rem 0rem 3rem;
        flex-direction: column;
    }

    .post-header-legacy {
        font-size: 12rem;
        line-height: 12rem;
        letter-spacing: 0;
        padding-left: 1rem;
    }

    .post-info h2 {
        color: var(--darkgray);
    }

    .post-description {
        padding: 3rem;
        font-size: 3rem;
        line-height: 4.5rem;
		padding-right: 0;
    }

    .desktop-info {
        display: none;
    }

    .mobile-info {
        display: flex;
        padding: 0 0 5rem 0;
    }
	.post-description-inner {
		max-width: 100%;
		padding-right: 5rem;
	}
}

/*--------------------------------------------------------------
# Legacy Posts
--------------------------------------------------------------*/



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


.main-navigation {
    padding: 5rem var(--page-margin);
    width: 100%;
	position: absolute;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-container {
    width: 100%;
    display: flex;
}
.main-navigation > .nav-container > * {
    flex: 1; display: flex; align-items: center; justify-content: space-around; 
}

.menu {
    padding: 0;
    margin: 0;
}

#menu-nav li {
    margin-left: 2rem;
}

#menu-item-4104, #menu-item-4814 {
    margin-right: 2rem;
}

#menu-item-4080::before {
    content: "|";
    margin-right: 2rem;
}

#menu-item-124 {
    margin-left: 0rem;
}

#menu-item-125 {
    margin-left: 0rem;
}


#menu-mag * {
    margin-right: 2rem;
}

#menu-nav {
    justify-content: flex-end;
}

.menu-front {
    color: var(--fg-hero);
    fill: var(--fg-hero);
}

.menu-post {
    color: var(--fg);
    fill: var(--fg);
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: uppercase;
    color: inherit;
    height: 25rem;
}

.logo-wrapper:hover {
    text-decoration: none;
}

#logo-header {
    height: 15rem;
    fill: inherit;
}


/* front-logotype fg */
.st0 {
    fill: var(--fg-hero);
}

/* front-logotype bg */
.st1 {
    fill: var(--green);
}

.st2 {
    fill: none;
}
/* post-logotype fg */
.st3 {
    fill: var(--fg);
}

/* post-logotype bg */
.st4 {
    fill: var(--bg);
}

#main-navigation-container {
    display: flex;
    margin-right: 18rem;
    flex: 1;
    justify-items: space-between;
    align-self: flex-start;  
}

.main-navigation ul {
    display: flex;
    list-style: none;
    width: 100%;
}

.menu-item a {
    color: inherit;
    margin-left: 0;
}

.menu-item a:hover { 
    color: inherit;
}

.main-navigation:nth-child(2) {
    margin-left: auto;
}

#menu-mobile {
    display: none;
    visbility: none;
}


@media (max-width: 900px) {
    .main-navigation {
        padding: 3rem;
        flex-direction: column;
    }

    .logo-wrapper {
        padding-bottom: 5rem;
    }

    #menu-mag {
        display: none;
    }

    #menu-nav {
        display: none;
    }

    #menu-mobile {
        display: flex;
    }

    #menu-mobile > .menu-item:last-of-type {
        margin-left: auto;
    }

    .menu-item {
        font-size: 2.5rem;
        line-height: 3rem;
        padding-right: 3rem;
    }

}

/*--------------------------------------------------------------
## Page
--------------------------------------------------------------*/

.type-page {
    padding: 50rem  var(--page-margin) var(--page-margin) var(--page-margin);
    background: var(--green);
    color: var(--fg-hero);
    width: 100%;
    margin: 0;
}

.page-content {
    display: flex;
    flex-direction: column;
}

.page-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: var(--page-margin);
    grid-row-gap: 40rem;
    margin: 0 auto;

    white-space: pre-wrap;
}

.page-content p {
    margin-bottom: 5rem;
    grid-column: span 3;
}

.about-block {
    display: flex;
    flex-direction: column;
    grid-column: span 3;
}

.about-first {
    grid-column: span 6;
    max-width: 800px;
    margin: 0 auto;
    font-size: 6rem;
    line-height: 8rem;
}

.about-img {
    grid-column: span 3;
}

.about-block h2 {
    font-family: var(--sans-wide);
    text-transform: uppercase;
    font-size: 10rem;
    padding-bottom: 10rem;
    text-align: center;
}

.about-headline {
    margin-bottom: auto;
}

.about-social {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10rem;
}

.about-social a {
    font-family: var(--sans-wide);
    font-size: 2.5rem;
    text-transform: uppercase;
    padding: 0;
    color: var(--fg-hero);
}

.about-social a:hover {
    cursor: pointer;
}

.about-social a:visited {
    color: var(--bg);
}

.about-charter-name {
    margin: 0;
}


@media (max-width: 1200px) {
    .page-content {
        grid-gap: 10rem;
    }

    #about-platform {
        grid-column: span 6;
    }

    .about-block h2 {
        font-size: 6rem;
        padding-bottom: 5rem;
    }

    .page-content p {
        grid-column: span 6;
    }
}


@media (max-width: 900px) {
    .type-page {
        padding: 50rem 0rem 10rem 0rem;
    }
    
    #about-platform {
        grid-column: span 1;
    }

    .page-content {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 10rem;
    }

    .page-content p {
        grid-column: span 1;
    }
    
    .about-first {
        font-size: 4rem;
        line-height: 6rem;
        grid-column: span 1;
        padding: 0 3rem;
    }

    .about-img {
        grid-column: span 1;
        width: 100%;
    }

    .about-block h2 {
        font-size: 5rem;
        padding-bottom: 5rem;
    }

    .about-charter-img {
        grid-column: span 1;
        width: 100%;
    }

    .about-block {
        grid-column: span 1;
        padding: 0 3rem;
    }

    .about-social {
        padding-bottom: 5rem;
        justify-content: start;
        justify-items: start;
        flex-direction: column;
    }
}



/*--------------------------------------------------------------
## Footer
--------------------------------------------------------------*/

#colophon {
    font-size: 3rem;
    line-height: 4rem;
    color: var(--fg);

    width: 100%;
    margin: 0 auto;
    padding: 10rem var(--page-margin);
    position: relative;

    background: var(--bg-footer);
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 10rem;
}

#logo-footer {
    padding: 5rem 0 10rem 0;
    width: 20rem;
}

.site-footer > div > .menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    flex-wrap: wrap;
}

#footer-contact {
    grid-column: span 1;
}

#footer-about {
    grid-column: span 1;
}

#footer-description {
    grid-column: 5/7;
}

.link-footer:first-child {
    margin-bottom: 3rem;
}

.link-footer {
    color: var(--fg);
}

.link-footer:visited {
    color: var(--fg);
}


.site-info-link {
    text-decoration: none;
}

.site-info-link:first-child {
    padding-right: 0;
    font-weight: 800;
}

.site-info-link:last-child {
    padding-right: 0;
}

#copyleft {
    font-family: sans-serif;
}

@media (max-width: 900px) {
    #colophon {
        padding: 10rem 5rem 10rem 5rem;
        font: 3rem/4rem var(--sans);
    }

    .site-footer {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 2rem;
    }

    .site-footer > div > .menu > .menu-item {
        font: 3rem/4rem var(--sans);
    }

    #footer-description {
        padding: 10rem 0 0 0;
        grid-column: span 3;
    }
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
    outline: 0;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

#content {
    background: var(--bg);
    color: var(--fg);
}

/*--------------------------------------------------------------
# 404
--------------------------------------------------------------*/

.error-404 {
    margin: 0 auto;
    padding: 50rem 3rem 20rem 3rem;
    max-width: 1500px;
    min-height: 800px;
}

.error-404 h1{
    padding-bottom: 5rem;
}


/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

sup {
	color: var(--green);
	cursor: pointer;
	line-height: 0;
}


sup {
	color: var(--green);
}

sup:hover {
	color: var(--green-hl);
	cursor: pointer;
}

sup a {
	text-decoration: none;
}

.footnote-container {
	text-decoration: none;
    margin-right: 5px;
	line-height: 0;
}

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

.hide {
	display: none;
}

/* Non-"förbundet" pages, added by ID because I'm absurdly lazy
 * I know full well that I'll have to go back and re-do it. Yeeesh. */
.post-4681 > div, .post-4687 > div {
	max-width: 700px;
	margin: 0 auto;
}

.post-4681 p, .post-4687 p {
	margin-bottom: 1em;
}


.post-4681 h1, .post-4687 h1 {
	margin-bottom: 0.5em;
}


.post-4681 h2, .post-4687 h2 {
	margin-bottom: 0.5em;
	margin-top: 1em;
}


.post-4681 a, .post-4687 a {
	color: var(--bg);
	text-decoration-color: var(--bg);
}

@media (prefers-color-scheme: dark) {
	.post-4681 a, .post-4687 a {
		color: var(--fg);
		text-decoration-color: var(--fg);
	}
}


page a {
	color: var(--bg);
	text-decoration-color: var(--bg);
}

.post-4681 .entry-content, .post-4687 .entry-content {
	padding: 0 3rem;
}

video {
	margin-top: 5rem;
	width: 100%;
	height: auto;
}

@media (max-width: 900px) { video { max-width: 80vh; } }

/* Center and set max width of all elements on the page */
.hero-text, .site-footer {
	margin: 0 auto;
	max-width: 1300px;
	width: 100%;
}

.issue-cover, .issue-description, .articles {
	max-width: 1500px;
	width: 100%;
}

.backissues-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.backissues-container > * {
	max-width: 1500px;
	width: 100%;
}

.main-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.nav-container {
	max-width: 1300px;
	width: 100%;
}

/*--------------------------------------------------------------
## Button
--------------------------------------------------------------*/
button {
	transition: all .5s ease;
	color: #5ac79d;
	border: 3px solid #5ac79d;
	font-family: var(--sans);
	text-transform: uppercase;
	font-weight: bold;
	text-align: center;
	line-height: 1;
	font-size: 17px;
	background-color : transparent;
	padding: 10px;
	outline: none;
	border-radius: 4px;
}
button:hover {
	color: #f9f9f9;
	background-color: #5ac79d;
}


/*--------------------------------------------------------------
## Hashlink hide / show text
--------------------------------------------------------------*/


#hashLink {
  display: none;
}

#hashLink:target {
  display: block;
}
