:root {
    --primary: #5d00de;
    --sans: "Zalando Sans", sans-serif;
    --serif: serif;
    --text-small: .8rem;
    --border-color: #ddd;
}

html, body {
    margin: 0;
    font-optical-sizing: auto;
    font-family: var(--sans);
    font-family: 1rem;
}

p, li {
    max-width: 600px;
}

p, p a, li {
    font-family: var(--serif);
}

a {
    text-decoration: none;
    color: blue;

    &:hover {
	text-decoration: underline;
    }
}

.container {
    width: 1024px;
    margin: 0 auto;
    max-width: 100%;
}

.container--standalone {
    width: fit-content;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 15px;
}

header, footer {
    .header-right {
	display: flex;
	justify-content: space-between;
	align-items: center;

	a:not(:last-child) {
	    margin-right: 15px;
	}
    }

    .container {
	padding: 10px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
    }

    .title {
	color: black;
	display: block;
	font-size: 1.9rem;
	font-family: "Castoro Titling";
	margin-top: 5px;
	cursor: pointer;
	cursor: hand;
	text-decoration: none !important;
    }

    .subtitle {
	font-size: var(--text-small);
    }
}

header, footer {
    font-size: var(--text-small);
}

header {
    border-bottom: 1px solid var(--border-color);

    .container.categories {
	justify-content: flex-start;
    }

    .container > a {
	padding-right: 30px;
    }
}

footer {
    padding-bottom: 15px;
    border-top: 1px solid var(--border-color);

    .footer-link-category {
	text-transform: uppercase;
    }

    .container:last-of-type {
	justify-content: initial;
	align-items: baseline;
    }

    section {
	margin-right: 50px;

	a {
	    display: block;
	}

	a:not(:first-of-type) {
	    margin-top: 10px;
	}

	.card-title {
	    font-size: var(--text-small);
	    margin-top: 0;
	    margin-bottom: 10px;
	    text-transform: uppercase;
	}
    }
}

main {
    background: #fcfcfc;
    padding: 15px 0;

    .card-title {
	font-weight: normal;
	margin-top: 0;
	margin-bottom: 7px;
	text-transform: uppercase;
	font-size: 18px;
    }

    .posts .post {
	width: 100%;
    }

    .posts.featured .post:first-of-type:not(:only-child) {
	background: var(--primary);
	color: white;
	border: 0;
	padding: 30px;

	a:not(.post-tag) {
	    color: white;
	}
    }

    .posts .post:first-of-type {
	.post-title {
	    margin-top: 0;
	    font-size: 2.5rem;
	}
    }

    .posts .post {
	padding-bottom: 15px;
    }

    .posts .post:only-child {
	padding: 30px;
    }

    section {
	margin-bottom: 15px;

	h3 {
	    margin: 0;
	    font-weight: normal;
	}
    }

    article {
	.post-title a {
	    color: inherit;
	}

	.post-date, .post-tag {
	    font-size: var(--text-small);
	}

	.post-date {
	    padding: 5px 0;
	}

	.post-tag {
	    padding: 2px;
	    text-transform: uppercase;
	    font-size: var(--text-small);
	    display: inline;
	    color: red;
	    border-radius: 2px;
	}
    }

    article:not(:last-child) {
    	margin-bottom: 15px;
    }

    .sidebar {
	width: 250px;
	margin-left: 15px;

	.card-title {
	    text-align: center;
	    padding: 15px;
	    margin: 0;
	    font-size: var(--text-small);
	}

	article {
	    padding: 0 15px 10px 15px;
	    margin: 0;
	}

	.card {
	    width: inherit;
	    padding: 0;

	    img {
		text-align: center;
	    }
	}

	.events, .jobs {
	    font-size: var(--text-small);
	}
    }

    .container {
	display: flex;
	justify-content: space-between;
    }
}

form {
    .form-entry {
	input, select {
	    width: 100%;
	    outline: none;
	    padding: 5px;
	}

	label {
	    display: block;
	    font-size: smaller;
	    padding-bottom: 2px;
	}
    }

    .form-entry {
	padding: 10px 0;
    }

    .form-entry:last-of-type {
	padding-bottom: 0;
    }

    .form-entry:has(.form-submit) {
	text-align: center;
    }
}

.button {
    cursor: pointer;
    cursor: hand;
    color: var(--primary) !important;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    border-radius: 2px;
    padding: 5px;
    font-size: var(--text-small);
    text-decoration: none;
}

.button.button--primary {
    background: var(--primary);
    color: white !important;
}

.button:hover {
    text-decoration: none;
}

.button[disabled] {
    cursor: not-allowed;
}

.button:not([disabled]):hover {
    background: var(--primary);
    color: white !important;
}

.button.button--primary:not([disabled]):hover {
    background: white;
    color: var(--primary) !important;
}

.spotlight {
    p {
	margin: 0;
	margin-top: 5px;
    }

    p:not(:last-child) {
	margin-bottom: 5px;
    }

    .spotlight-img {
	padding: 0 50px 10px 50px;
    }
}

.subscribe-option {
    width: calc(50% - 15px);
    height: min-content;

    .subscribe-benefits {
    }

    .subscribe-name, .subscribe-price {
	text-align: center;
    }

    .subscribe-action {
	padding: 15px;
	display: block;
	margin-top: 15px;
	text-align: center;
    }
}


.subscribe-option:not(.subscribe-option--featured) {
    .button.subscribe-action[disabled] {
	border-color: gray;
	color: gray !important;
    }
}

@media only screen and (max-width : 830px) {
    .container, main .container, header .container, footer .container {
	display: block;
    }

    header .categories {
	display: none;
    }

    header, footer {
	.header-right {
	    display: block;
	    padding: 10px 0;
	}
	
	.container {
	    padding: 10px 20px;
	}
    }

    main {
	section {
	    margin-bottom: 0;
	}

	.posts .post:only-child {
	    padding: 15px;
	}

	.sidebar {
	    width: 100%;
	    margin-left: 0;

	    .events .event-url, .jobs .job-url {
		font-size: initial;
	    }
	}

	.card, .sidebar .card {
	    width: calc(100% - 20px);
	    margin: 10px;
	}
    }

    .subscribe-option {
	width: 100%;
    }

    .subscribe-option:last-of-type {
	margin-top: 15px;
    }
    
    footer {
	section {
	    margin-right: 0;
	}

	.footer-links:not(:first-of-type) {
	    margin-top: 10px;
	}
    }
}

.categories {
    display: none !important;
}
