/*
Theme Name: Property Week
Author: Alex Suche
Description: A custom Property Week theme
Version: 1.0
Text Domain: propertyweek
*/

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=PT+Serif:wght@400;700&display=swap');

:root {
	--type-news-color: #4e596e;
	
	--c-anchor: #3eaffa;
	--c-brand-red: #c71c22;
	--c-blue: #3d5f97;
	--c-dark-blue: #04203c;
	--c-grey: #444;
	--c-border: #859ba6;
    --c-card-bg: #f0f2f2;

	--c-black: #000000;
	--c-white: #ffffff;

	--font-serif: 'PT Serif', Georgia, serif;
	--font-sans: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--container-width: 1100px;
	--content-max-width: 1200px;

	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-2xl: 48px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-sans);
	color: var(--c-black);
	
	line-height: 1;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

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

button {
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}


.grey-bg {
	background-color: var(--c-card-bg);
}

.anchor-colour {
	color: var(--c-anchor);
}



/**
Login modal
**/
.modal {
	display: none;
	position: fixed;
	padding: 2rem;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	font-family: var(--secondaryFont);
}

.modal-content input {
	border: 1px solid #c71c22;
	padding: 1rem !important;
	border-radius: 8px;
}

.modal-content {
	background: #fff;
	padding: 20px;
	width: 400px;
	margin: 10% auto;
	border-radius: 8px;
	position: relative;
}

.close {
	position: absolute;
	right: 10px;
	top: 10px;
	cursor: pointer;
	font-size: 20px;
}

.modal-content input {
	width: 100%;
	padding: 8px;
	margin: 8px 0 16px;
	box-sizing: border-box;
}

.modal-content button {
	width: 100%;
	padding: 1rem !important;
	background: #c71c22;
	color: white !important;
	border: none;
	cursor: pointer;
	border-radius: 4px;
}

.modal-content button:hover {
	background: rgb(83, 19, 19)
}

#login-btn {
	cursor: pointer;
}

/* Paywalls */

.article-paywall {
	grid-column: 1;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	padding: 1.5rem;
	font-family: var(--secondaryFont);
	z-index: 10;
}

.article__content {
	position: relative;
	font-family: "open-sans", sans-serif;
}

.subscribe-btn {
	padding: 1rem !important;
	background: #c71c22;
	color: white !important;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	text-decoration: none !important;
	margin-top: 2rem;
	display: block;
	text-align: center;
}