@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
	--background: #f5f3ef;
	--foreground: #0a0a0a;
	--card: #ffffff;
	--primary: #e8002d;
	--primary-hover: #b8001f;
	--primary-foreground: #ffffff;
	--secondary: #1a1a1a;
	--secondary-foreground: #f5f3ef;
	--muted: #e8e5df;
	--muted-foreground: #6b6560;
	--border: #d0ccc4;
	--font-display: 'Archivo Black', sans-serif;
	--font-body: 'Source Sans 3', sans-serif;
	--content-width: 1280px;
	--header-height: 68px;
}

html.theme-dark {
	--background: #0a0a0a;
	--foreground: #f0ede8;
	--card: #161616;
	--primary: #e8002d;
	--primary-hover: #ff2f52;
	--primary-foreground: #ffffff;
	--secondary: #252525;
	--secondary-foreground: #f0ede8;
	--muted: #1e1e1e;
	--muted-foreground: #8a8480;
	--border: #2a2a2a;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

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

.container {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 16px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Category badge */

.badge {
	display: inline-block;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 2px 8px;
}

.badge--blue { background-color: #2563eb; }
.badge--purple { background-color: #9333ea; }
.badge--emerald { background-color: #059669; }
.badge--sky { background-color: #0284c7; }
.badge--orange { background-color: #ea580c; }
.badge--pink { background-color: #db2777; }

/* Breaking ticker */

.ticker {
	background-color: var(--primary);
	color: #fff;
	padding: 6px 0;
	overflow: hidden;
}

.ticker__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 16px;
}

.ticker__label {
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid #fff;
	padding: 2px 8px;
}

.ticker__viewport {
	overflow: hidden;
	flex: 1;
}

.ticker__track {
	display: inline-flex;
	gap: 64px;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	animation: ticker 30s linear infinite;
}

@keyframes ticker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Header */

.site-header {
	border-bottom: 4px solid var(--foreground);
	background-color: var(--background);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-logo__mark {
	width: 32px;
	height: 32px;
	background-color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--font-display);
	font-size: 18px;
	flex-shrink: 0;
}

.site-logo__text {
	font-family: var(--font-display);
	font-size: 24px;
	letter-spacing: -0.02em;
}

.site-logo__text span {
	color: var(--primary);
}

.main-nav {
	display: none;
	align-items: center;
}

.main-nav__link {
	padding: 20px 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-bottom: 4px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav__link:hover,
.main-nav__link--active {
	color: var(--primary);
}

.main-nav__link--active {
	border-color: var(--primary);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lang-switch {
	display: flex;
	border: 1px solid var(--border);
	overflow: hidden;
	font-size: 12px;
	font-weight: 900;
}

.lang-switch__option {
	padding: 8px 10px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switch__option:hover {
	background-color: var(--muted);
}

.lang-switch__option--active {
	background-color: var(--foreground);
	color: var(--background);
}

.lang-switch__option + .lang-switch__option {
	border-left: 1px solid var(--border);
}

.icon-button {
	padding: 8px;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease;
}

.icon-button:hover {
	border-color: var(--foreground);
}

.icon-button svg {
	width: 20px;
	height: 20px;
}

.mobile-menu-toggle {
	display: flex;
}

.mobile-nav {
	display: none;
	border-top: 1px solid var(--border);
	padding: 8px 0;
}

.mobile-nav.is-open {
	display: block;
}

.mobile-nav__link {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.mobile-nav__link:hover {
	color: var(--primary);
}

/* Date bar */

.date-bar {
	border-bottom: 1px solid var(--border);
	background-color: var(--muted);
}

.date-bar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--muted-foreground);
}

/* Page layout */

.page {
	padding: 32px 0;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

.category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.category-filter__link {
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: 1px solid var(--border);
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.category-filter__link:hover {
	border-color: var(--foreground);
}

.category-filter__link--active {
	background-color: var(--foreground);
	color: var(--background);
	border-color: var(--foreground);
}

/* Hero article */

.hero-article {
	margin-bottom: 32px;
	position: relative;
	overflow: hidden;
	background-color: var(--muted);
	aspect-ratio: 16 / 9;
	display: block;
}

.hero-article__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hero-article:hover .hero-article__image {
	transform: scale(1.05);
}

.hero-article__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 60%, transparent);
}

.hero-article__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	color: #fff;
}

.hero-article__title {
	font-family: var(--font-display);
	font-size: 26px;
	line-height: 1.15;
	margin: 12px 0 8px;
}

.hero-article__excerpt {
	display: none;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.5;
	max-width: 640px;
}

.hero-article__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Top-3 grid */

.top-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background-color: var(--border);
	margin-bottom: 32px;
}

.top-grid__item {
	background-color: var(--background);
	display: block;
	transition: background-color 0.15s ease;
}

.top-grid__item:hover {
	background-color: var(--muted);
}

.top-grid__image-wrap {
	overflow: hidden;
	background-color: var(--muted);
	aspect-ratio: 3 / 2;
}

.top-grid__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.top-grid__item:hover .top-grid__image {
	transform: scale(1.05);
}

.top-grid__body {
	padding: 16px;
}

.top-grid__title {
	font-family: var(--font-display);
	font-size: 16px;
	line-height: 1.3;
	margin: 8px 0 12px;
	transition: color 0.15s ease;
}

.top-grid__item:hover .top-grid__title {
	color: var(--primary);
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted-foreground);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Section header */

.section-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.section-heading__bar {
	width: 12px;
	height: 24px;
	background-color: var(--primary);
	flex-shrink: 0;
}

.section-heading__title {
	font-family: var(--font-display);
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.section-heading__line {
	flex: 1;
	height: 1px;
	background-color: var(--border);
}

/* List grid (home "most important" + category page) */

.article-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-bottom: 32px;
}

.article-row {
	display: flex;
	gap: 16px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 24px;
}

.article-row__image-wrap {
	overflow: hidden;
	background-color: var(--muted);
	width: 128px;
	height: 96px;
	flex-shrink: 0;
}

.article-row__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.article-row:hover .article-row__image {
	transform: scale(1.1);
}

.article-row__body {
	flex: 1;
	min-width: 0;
}

.article-row__title {
	font-family: var(--font-display);
	font-size: 14px;
	line-height: 1.3;
	margin: 6px 0 8px;
	transition: color 0.15s ease;
}

.article-row:hover .article-row__title {
	color: var(--primary);
}

/* Newsletter */

.newsletter {
	background-color: var(--foreground);
	color: var(--background);
	padding: 32px;
}

.newsletter__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.newsletter__bar {
	width: 4px;
	height: 48px;
	background-color: var(--primary);
	flex-shrink: 0;
	margin-top: 4px;
}

.newsletter__title {
	font-family: var(--font-display);
	font-size: 24px;
	text-transform: uppercase;
	margin: 0 0 4px;
}

.newsletter__desc {
	font-size: 14px;
	opacity: 0.7;
	line-height: 1.5;
	margin: 0;
}

.newsletter__form {
	display: flex;
	gap: 8px;
}

.newsletter__input {
	flex: 1;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 10px 16px;
	font-size: 14px;
	color: inherit;
	outline: none;
}

.newsletter__input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.newsletter__input:focus {
	border-color: #fff;
}

.newsletter__submit {
	background-color: var(--primary);
	color: #fff;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background-color 0.15s ease;
}

.newsletter__submit:hover {
	background-color: var(--primary-hover);
}

.newsletter__success {
	display: none;
	align-items: center;
	gap: 8px;
	color: var(--primary);
	font-weight: 700;
}

.newsletter.is-subscribed .newsletter__form {
	display: none;
}

.newsletter.is-subscribed .newsletter__success {
	display: flex;
}

/* Sidebar widgets */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.widget {
	border: 1px solid var(--border);
}

.widget__head {
	background-color: var(--foreground);
	color: var(--background);
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.widget__head-title {
	font-family: var(--font-display);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.widget__body {
	padding: 16px;
}

.trending-list {
	display: flex;
	flex-direction: column;
}

.trending-list__item {
	display: flex;
	gap: 12px;
	padding: 16px;
	border-top: 1px solid var(--border);
	transition: background-color 0.15s ease;
}

.trending-list__item:first-child {
	border-top: none;
}

.trending-list__item:hover {
	background-color: var(--muted);
}

.trending-list__rank {
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1;
	color: var(--border);
	transition: color 0.15s ease;
}

.trending-list__item:hover .trending-list__rank {
	color: var(--primary);
}

.trending-list__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	margin: 6px 0 0;
	transition: color 0.15s ease;
}

.trending-list__item:hover .trending-list__title {
	color: var(--primary);
}

.widget-plain__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.widget-plain__bar {
	width: 4px;
	height: 20px;
	background-color: var(--primary);
	flex-shrink: 0;
}

.widget-plain__title {
	font-family: var(--font-display);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ad-slot {
	border: 1px dashed var(--border);
	aspect-ratio: 4 / 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--muted);
	color: var(--muted-foreground);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.weather-widget__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.weather-widget__temp {
	font-family: var(--font-display);
	font-size: 48px;
}

.weather-widget__desc {
	font-size: 14px;
	color: var(--muted-foreground);
	margin-top: 4px;
}

.weather-widget__icon {
	width: 64px;
	height: 64px;
	color: var(--muted-foreground);
	opacity: 0.5;
}

.weather-widget__days {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.weather-widget__day {
	text-align: center;
}

.weather-widget__day-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.weather-widget__day-temp {
	font-size: 14px;
	font-weight: 700;
	margin-top: 4px;
}

.rates-widget__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
}

.rates-widget__row + .rates-widget__row {
	margin-top: 12px;
}

.rates-widget__currency {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}

.rates-widget__values {
	display: flex;
	gap: 16px;
	color: var(--muted-foreground);
}

.rates-widget__values strong {
	color: var(--foreground);
}

.rates-widget__trend--up {
	color: #059669;
}

.rates-widget__trend--down {
	color: var(--primary);
}

/* Article page */

.breadcrumb-bar {
	border-bottom: 1px solid var(--border);
	background-color: var(--muted);
}

.breadcrumb-bar__row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--muted-foreground);
}

.breadcrumb-bar__home {
	display: flex;
	align-items: center;
	gap: 4px;
	transition: color 0.15s ease;
}

.breadcrumb-bar__home:hover {
	color: var(--primary);
}

.breadcrumb-bar__home svg {
	width: 14px;
	height: 14px;
}

.article-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}

.article-header {
	margin-bottom: 24px;
}

.article-header__title {
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1.15;
	margin: 16px 0 20px;
}

.article-header__excerpt {
	font-size: 18px;
	color: var(--muted-foreground);
	line-height: 1.55;
	border-left: 4px solid var(--primary);
	padding-left: 16px;
	margin: 0 0 24px;
}

.article-header__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 16px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.article-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.article-author__avatar {
	width: 40px;
	height: 40px;
	background-color: var(--foreground);
	color: var(--background);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 18px;
	flex-shrink: 0;
}

.article-author__name {
	font-weight: 700;
	font-size: 14px;
}

.article-author__role {
	font-size: 12px;
	color: var(--muted-foreground);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.article-header__stats {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
	color: var(--muted-foreground);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.article-header__stats span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.article-header__stats svg {
	width: 14px;
	height: 14px;
}

.article-image {
	position: relative;
	overflow: hidden;
	background-color: var(--muted);
	aspect-ratio: 16 / 9;
	margin-bottom: 32px;
}

.article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-image__credit {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.4);
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	padding: 8px 16px;
}

.article-body {
	margin-bottom: 32px;
}

.article-body p {
	line-height: 1.65;
	font-size: 17px;
	margin: 0 0 20px;
}

.article-body p:first-child {
	font-weight: 600;
	font-size: 18px;
}

.article-body__figure {
	margin: 0 0 24px;
}

.article-body__figure img {
	width: 100%;
	display: block;
	object-fit: cover;
}

.article-body__figure figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted-foreground);
}

.article-body__gallery {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	margin: 0 0 24px;
	padding-bottom: 4px;
}

.article-body__gallery-item {
	flex: 0 0 85%;
	scroll-snap-align: start;
	margin: 0;
}

.article-body__gallery-item img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.article-body__gallery-item figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted-foreground);
}

.article-body__audio {
	width: 100%;
	margin: 0 0 24px;
}

.article-body__document {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	margin: 0 0 24px;
	border: 1px solid var(--border);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.article-body__document svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.article-body__embed {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0 0 24px;
	background-color: var(--muted);
}

.article-body__embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 640px) {
	.article-body__gallery-item {
		flex-basis: 60%;
	}
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 24px 0;
	border-top: 1px solid var(--border);
}

.article-tags__label {
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted-foreground);
	margin-right: 8px;
}

.article-tags__tag {
	display: inline-block;
	border: 1px solid var(--border);
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--foreground);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.article-tags__tag:hover {
	border-color: var(--foreground);
	background-color: var(--muted);
}

.article-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 24px 0;
	border-top: 1px solid var(--border);
}

.article-actions__button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--border);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: all 0.15s ease;
}

.article-actions__button:hover {
	border-color: var(--foreground);
}

.article-actions__button svg {
	width: 16px;
	height: 16px;
}

.article-actions__button--liked {
	background-color: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

.article-actions__socials {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.article-actions__social {
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.article-actions__social:hover {
	border-color: var(--foreground);
	background-color: var(--muted);
}

.article-actions__social svg {
	width: 16px;
	height: 16px;
}

.author-box {
	background-color: var(--muted);
	padding: 24px;
	display: flex;
	gap: 20px;
}

.author-box__avatar {
	width: 56px;
	height: 56px;
	background-color: var(--foreground);
	color: var(--background);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 24px;
	flex-shrink: 0;
}

.author-box__label {
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted-foreground);
	margin-bottom: 4px;
}

.author-box__name {
	font-family: var(--font-display);
	font-size: 18px;
	margin-bottom: 4px;
}

.author-box__role {
	font-size: 14px;
	color: var(--muted-foreground);
}

.back-home-button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 2px solid var(--foreground);
	padding: 12px;
	font-size: 14px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: all 0.15s ease;
}

.back-home-button:hover {
	background-color: var(--foreground);
	color: var(--background);
}

.back-home-button svg {
	width: 16px;
	height: 16px;
}

.reading-progress-widget {
	border: 1px solid var(--border);
	padding: 16px;
	background-color: var(--background);
	position: sticky;
	top: var(--header-height);
	z-index: 10;
}

.reading-progress-widget__label {
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted-foreground);
	margin-bottom: 12px;
}

.reading-progress-widget__track {
	height: 6px;
	background-color: var(--border);
}

.reading-progress-widget__fill {
	height: 100%;
	width: 0%;
	background-color: var(--primary);
	transition: width 0.1s linear;
}

.reading-progress-widget__foot {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--muted-foreground);
	margin-top: 8px;
}

.related-list {
	display: flex;
	flex-direction: column;
}

.related-list__item {
	border-top: 1px solid var(--border);
	transition: background-color 0.15s ease;
}

.related-list__item:first-child {
	border-top: none;
}

.related-list__item:hover {
	background-color: var(--muted);
}

.related-list__image-wrap {
	overflow: hidden;
	background-color: var(--muted);
	aspect-ratio: 16 / 9;
}

.related-list__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.related-list__item:hover .related-list__image {
	transform: scale(1.05);
}

.related-list__body {
	padding: 16px;
}

.related-list__title {
	font-family: var(--font-display);
	font-size: 14px;
	line-height: 1.3;
	margin: 8px 0;
	transition: color 0.15s ease;
}

.related-list__item:hover .related-list__title {
	color: var(--primary);
}

/* Footer */

.site-footer {
	border-top: 4px solid var(--foreground);
	background-color: var(--secondary);
	color: var(--secondary-foreground);
	margin-top: 32px;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	padding: 40px 0 32px;
}

.footer-columns__brand p {
	font-size: 14px;
	opacity: 0.6;
	line-height: 1.5;
	margin-top: 16px;
}

.footer-columns__title {
	font-family: var(--font-display);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--primary);
	margin-bottom: 12px;
}

.footer-columns__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-columns__list a {
	font-size: 14px;
	opacity: 0.6;
	transition: opacity 0.15s ease;
}

.footer-columns__list a:hover {
	opacity: 1;
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 24px 0;
	font-size: 12px;
	opacity: 0.4;
}

/* 404 / error page */

.error-page {
	padding: 96px 0;
	text-align: center;
}

.error-page__code {
	font-family: var(--font-display);
	font-size: 96px;
	color: var(--primary);
	line-height: 1;
}

.error-page__title {
	font-family: var(--font-display);
	font-size: 24px;
	text-transform: uppercase;
	margin: 16px 0 24px;
}

.error-page__detail {
	color: var(--muted-foreground);
	margin-bottom: 24px;
}

/* Legal pages */

.legal-page__heading {
	font-family: var(--font-display);
	font-size: 28px;
	margin-bottom: 4px;
}

.legal-page__updated {
	color: var(--muted-foreground);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 32px;
}

.legal-page__body p {
	line-height: 1.65;
	font-size: 16px;
	margin: 0 0 18px;
	max-width: 720px;
}

/* Cookie banner */

.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 480px;
	margin: 0 auto;
	background-color: var(--foreground);
	color: var(--background);
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	z-index: 100;
}

.cookie-banner[hidden] {
	display: none;
}

.cookie-banner p {
	margin: 0;
	font-size: 13px;
	flex: 1;
}

.cookie-banner button {
	background-color: var(--primary);
	color: #fff;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	flex-shrink: 0;
}

/* Responsive */

@media (min-width: 768px) {
	.main-nav {
		display: flex;
	}

	.mobile-menu-toggle {
		display: none;
	}

	.hero-article__title {
		font-size: 40px;
	}

	.hero-article__excerpt {
		display: block;
	}

	.top-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.article-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-columns {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1024px) {
	.layout-with-sidebar {
		grid-template-columns: 1fr 320px;
	}

	.article-layout {
		grid-template-columns: 1fr 320px;
	}
}
