/*
Theme Name: Newsroom
Theme URI: https://example.com/themes/newsroom/
Author: Pravesh Hidko
Author URI: https://example.com/
Description: A dark-first news website theme with an editorial card grid, live category filtering, a breaking-news ticker and a full-bleed article layout. Design inspired by visuvate.com/blog.
Version: 1.5.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsroom
Tags: news, magazine, blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, dark-mode, translation-ready, accessibility-ready
*/

/*
 * The compiled styles live in assets/css/theme.css.
 * This file only carries the theme header required by WordPress.
 */
/**
 * Newsroom — theme styles.
 *
 * Design tokens and components are modelled on the editorial look of
 * visuvate.com/blog: a near-black canvas, glass cards with a rotating
 * accent border, a mixed display/serif heading and a light/dark scheme.
 */

/* -------------------------------------------------------------------------
 * 1. Tokens
 * ---------------------------------------------------------------------- */

:root {
	--nr-bg: #000;
	--nr-bg-elevated: #111;
	--nr-surface: #141414;
	--nr-surface-2: #181818;
	--nr-surface-strong: #1f1f1f;

	--nr-text: #fff;
	--nr-text-body: #d8d8d8;
	--nr-text-muted: #9a9a9a;
	--nr-text-dim: #757575;
	--nr-text-subtle: #6a6a6a;

	--nr-border: rgba(255, 255, 255, 0.09);
	--nr-border-strong: rgba(255, 255, 255, 0.16);
	--nr-card-border: rgba(255, 255, 255, 0.12);
	--nr-card-bg: rgba(0, 0, 0, 0.3);
	--nr-card-lift: rgba(255, 255, 255, 0.1);
	--nr-nav-bg: rgba(0, 0, 0, 0.72);
	--nr-field: rgba(255, 255, 255, 0.13);
	--nr-hairline: rgba(255, 255, 255, 0.14);
	--nr-icon: rgba(255, 255, 255, 0.55);
	--nr-overlay: rgba(0, 0, 0, 0.6);
	--nr-shadow: 0 44px 90px -24px rgba(0, 0, 0, 0.95), 0 18px 44px -18px rgba(0, 0, 0, 0.8);

	--nr-accent: #0099ff;
	--nr-accent-2: #7acaff;

	--nr-font-display: 'Manrope', system-ui, sans-serif;
	--nr-font-sans: 'Geist', 'Inter', system-ui, sans-serif;
	--nr-font-serif: 'Fraunces', Georgia, serif;

	--nr-shell: 1425px;
	--nr-shell-narrow: 964px;
	--nr-radius: 12px;
	--nr-radius-sm: 8px;
	--nr-radius-pill: 999px;

	--nr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nr-header-h: 76px;
}

[data-theme='light'] {
	--nr-bg: #fff;
	--nr-bg-elevated: #fafafa;
	--nr-surface: #f6f6f6;
	--nr-surface-2: #f1f1f1;
	--nr-surface-strong: #f0f0f0;

	--nr-text: #000;
	--nr-text-body: #333;
	--nr-text-muted: #5a5a5a;
	--nr-text-dim: #898989;
	--nr-text-subtle: #767676;

	--nr-border: rgba(0, 0, 0, 0.1);
	--nr-border-strong: rgba(0, 0, 0, 0.18);
	--nr-card-border: rgba(0, 0, 0, 0.1);
	--nr-card-bg: rgba(255, 255, 255, 0.72);
	--nr-card-lift: rgba(0, 0, 0, 0.06);
	--nr-nav-bg: rgba(255, 255, 255, 0.78);
	--nr-field: rgba(0, 0, 0, 0.05);
	--nr-hairline: rgba(0, 0, 0, 0.14);
	--nr-icon: rgba(0, 0, 0, 0.45);
	--nr-overlay: rgba(0, 0, 0, 0.4);
	--nr-shadow: 0 40px 72px -28px rgba(0, 0, 0, 0.28), 0 14px 32px -18px rgba(0, 0, 0, 0.2);
}

@property --nr-shine-angle {
	syntax: '<angle>';
	inherits: false;
	initial-value: 135deg;
}

@property --nr-shine-w {
	syntax: '<angle>';
	inherits: false;
	initial-value: 24deg;
}

/* -------------------------------------------------------------------------
 * 2. Base
 * ---------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--nr-bg);
	color: var(--nr-text);
	font-family: var(--nr-font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color 0.4s var(--nr-ease), color 0.4s var(--nr-ease);
}

body.nr-locked {
	overflow: hidden;
}

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

/* Class based display rules outrank the user agent [hidden] rule, so the
   hidden attribute has to be reinforced for the filter to hide anything. */
[hidden] {
	display: none !important;
}

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

input,
textarea,
select {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--nr-font-display);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

p {
	margin: 0;
}

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

::selection {
	background: var(--nr-accent);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--nr-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.nr-icon {
	flex: none;
}

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

.nr-skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 500;
	padding: 10px 18px;
	border-radius: var(--nr-radius-pill);
	background: var(--nr-text);
	color: var(--nr-bg);
	font-size: 14px;
	font-weight: 500;
	transition: top 0.2s var(--nr-ease);
}

.nr-skip-link:focus {
	top: 16px;
}

/* -------------------------------------------------------------------------
 * 3. Layout
 * ---------------------------------------------------------------------- */

.nr-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.nr-main {
	flex: 1;
	padding-top: var(--nr-header-h);
}

.nr-shell {
	width: 100%;
	max-width: var(--nr-shell);
	margin-inline: auto;
	padding-inline: 16px;
}

.nr-shell--listing {
	padding-bottom: clamp(72px, 9vw, 130px);
}

@media (min-width: 768px) {
	.nr-shell {
		padding-inline: 32px;
	}
}

.nr-section {
	padding-block: clamp(56px, 7vw, 100px);
}

.nr-section--latest {
	padding-top: clamp(40px, 5vw, 72px);
}

.nr-empty {
	padding-block: clamp(48px, 8vw, 96px);
	text-align: center;
}

.nr-empty__text {
	margin-bottom: 24px;
	color: var(--nr-text-muted);
}

/* -------------------------------------------------------------------------
 * 4. Buttons and fields
 * ---------------------------------------------------------------------- */

.nr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--nr-radius-pill);
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color 0.3s var(--nr-ease), border-color 0.3s var(--nr-ease), color 0.3s var(--nr-ease), transform 0.3s var(--nr-ease);
}

.nr-btn--sm {
	padding: 9px 16px;
}

.nr-btn--solid {
	background: var(--nr-text);
	color: var(--nr-bg);
}

.nr-btn--solid:hover {
	transform: translateY(-2px);
}

.nr-btn--ghost {
	background: var(--nr-text);
	color: var(--nr-bg);
	opacity: 0.92;
}

.nr-btn--outline {
	border-color: var(--nr-border-strong);
	color: var(--nr-text);
}

.nr-btn--outline:hover {
	border-color: var(--nr-text);
}

.nr-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--nr-radius-pill);
	color: var(--nr-text);
	transition: background-color 0.3s var(--nr-ease), color 0.3s var(--nr-ease);
}

.nr-icon-btn:hover {
	background: var(--nr-field);
}

.nr-field {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--nr-border-strong);
	border-radius: var(--nr-radius-sm);
	background: var(--nr-field);
	color: var(--nr-text);
	font-size: 15px;
	transition: border-color 0.3s var(--nr-ease), background-color 0.3s var(--nr-ease);
}

.nr-field::placeholder {
	color: var(--nr-text-subtle);
}

.nr-field:focus {
	outline: none;
	border-color: var(--nr-accent);
}

/* Rolling text used on the call-to-action buttons. */
.nr-roll {
	display: inline-flex;
	align-items: flex-end;
	overflow: hidden;
	height: 1.2em;
}

.nr-roll__char {
	position: relative;
	display: inline-block;
	overflow: hidden;
	height: 1.2em;
}

.nr-roll__char span {
	display: block;
	transition: transform 0.5s var(--nr-ease);
	transition-delay: calc(var(--i) * 18ms);
}

.nr-roll__char span:last-child {
	position: absolute;
	inset: 0;
	transform: translateY(100%);
}

.nr-btn:hover .nr-roll__char span:first-child {
	transform: translateY(-100%);
}

.nr-btn:hover .nr-roll__char span:last-child {
	transform: translateY(0);
}

/* -------------------------------------------------------------------------
 * 5. Header
 * ---------------------------------------------------------------------- */

.nr-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 200;
	border-bottom: 1px solid transparent;
	transition: background-color 0.5s var(--nr-ease), border-color 0.5s var(--nr-ease), backdrop-filter 0.5s var(--nr-ease), padding 0.5s var(--nr-ease);
}

.nr-header.is-stuck {
	background: var(--nr-nav-bg);
	border-bottom-color: var(--nr-border);
	backdrop-filter: blur(16px) saturate(150%);
}

.nr-header__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 20px;
	max-width: 1380px;
	margin-inline: auto;
	padding: 16px;
	transition: max-width 0.5s var(--nr-ease), padding 0.5s var(--nr-ease), background-color 0.5s var(--nr-ease), border-radius 0.5s var(--nr-ease), box-shadow 0.5s var(--nr-ease), backdrop-filter 0.5s var(--nr-ease);
}

@media (min-width: 768px) {
	.nr-header__inner {
		padding-inline: 32px;
	}
}

@media (min-width: 981px) {
	.nr-header__inner {
		grid-template-columns: 1fr auto 1fr;
	}

	/* Once the lead story has been read the bar folds into a narrow float
	   that sits on its own, the way the reference site does. */
	.nr-header.is-condensed {
		padding-top: 12px;
		background: transparent;
		border-bottom-color: transparent;
		backdrop-filter: none;
	}

	.nr-header.is-condensed .nr-header__inner {
		max-width: 920px;
		padding: 8px 12px;
		border-radius: 8px;
		background: var(--nr-nav-bg);
		box-shadow: 0 0 0 1px var(--nr-border-strong);
		backdrop-filter: blur(16px) saturate(150%);
	}
}

.nr-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--nr-font-display);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.nr-logomark {
	color: var(--nr-text);
}

.nr-brand__name {
	white-space: nowrap;
}

/* The brand can carry a separate logo per colour scheme. The wrappers are
   layout transparent so swapping the logo never moves the header around. */
.nr-brand-swap,
.nr-brand-swap__default,
.nr-brand-swap__mode {
	display: contents;
}

.nr-brand-swap__mode {
	display: none;
}

.nr-brand-swap__link {
	display: inline-flex;
	align-items: center;
}

.nr-brand-swap__img {
	display: block;
}

.nr-header .nr-brand-swap__link img {
	max-height: 40px;
	width: auto;
	height: auto;
}

.nr-brand-swap--has-dark .nr-brand-swap__default {
	display: none;
}

.nr-brand-swap--has-dark .nr-brand-swap__mode--dark {
	display: contents;
}

[data-theme='light'] .nr-brand-swap--has-dark .nr-brand-swap__default {
	display: contents;
}

[data-theme='light'] .nr-brand-swap--has-dark .nr-brand-swap__mode--dark {
	display: none;
}

[data-theme='light'] .nr-brand-swap--has-light .nr-brand-swap__default {
	display: none;
}

[data-theme='light'] .nr-brand-swap--has-light .nr-brand-swap__mode--light {
	display: contents;
}

.nr-header .custom-logo {
	max-height: 40px;
	width: auto;
}

.nr-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.nr-nav {
	display: none;
}

@media (min-width: 981px) {
	.nr-nav {
		display: block;
		justify-self: center;
	}

	.nr-header__actions {
		justify-self: end;
	}
}

.nr-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nr-nav__list a {
	position: relative;
	display: block;
	padding: 8px 14px;
	border-radius: var(--nr-radius-pill);
	color: var(--nr-text-muted);
	font-size: 15px;
	transition: color 0.3s var(--nr-ease), background-color 0.3s var(--nr-ease);
}

.nr-nav__list a:hover,
.nr-nav__list .current-menu-item > a,
.nr-nav__list .current-menu-ancestor > a,
.nr-nav__list .is-current > a {
	color: var(--nr-text);
	background: var(--nr-field);
}

/* While a category is being read, the menu item of that category is the
   current one, so the item WordPress marks on the home page steps back. */
.nr-nav.is-filtered .current-menu-item > a,
.nr-nav.is-filtered .current-menu-ancestor > a {
	color: var(--nr-text-muted);
	background: transparent;
}

.nr-nav__list .menu-item-has-children {
	position: relative;
}

/* A caret tells the reader that the item opens a sub-menu. */
.nr-nav__list .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-left: 8px;
	vertical-align: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.3s var(--nr-ease);
}

.nr-nav__list .menu-item-has-children:hover > a::after,
.nr-nav__list .menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg);
}

.nr-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	padding: 8px;
	border: 1px solid var(--nr-border);
	border-radius: var(--nr-radius);
	background: var(--nr-bg-elevated);
	box-shadow: var(--nr-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.28s var(--nr-ease), transform 0.28s var(--nr-ease), visibility 0s linear 0.28s;
}

/* The gap between the item and the panel would close the menu on the way
   down, so an invisible bridge covers it. */
.nr-nav__list .sub-menu::before {
	content: '';
	position: absolute;
	top: -8px;
	left: 0;
	right: 0;
	height: 8px;
}

/* The sub-menu opens when its parent is pointed at and stays open while the
   reader moves into it. */
.nr-nav__list .menu-item-has-children:hover > .sub-menu,
.nr-nav__list .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}

.nr-nav__list .sub-menu a {
	display: block;
	padding: 9px 12px;
}

.nr-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.nr-header__cta {
	margin-left: 6px;
	max-width: 220px;
	overflow: hidden;
	transition: opacity 0.35s var(--nr-ease), transform 0.35s var(--nr-ease), max-width 0.35s var(--nr-ease), padding 0.35s var(--nr-ease), margin 0.35s var(--nr-ease), visibility 0s;
}

/* Once the reader has started down the page the bar is a way back to the top
   rather than a place to sign up, so the button leaves it. */
.nr-header.is-stuck .nr-header__cta {
	visibility: hidden;
	opacity: 0;
	transform: translateX(12px);
	max-width: 0;
	min-width: 0;
	padding-inline: 0;
	border-inline-width: 0;
	margin-left: 0;
	pointer-events: none;
	transition: opacity 0.35s var(--nr-ease), transform 0.35s var(--nr-ease), max-width 0.35s var(--nr-ease), padding 0.35s var(--nr-ease), margin 0.35s var(--nr-ease), visibility 0s linear 0.35s;
}

.nr-search-toggle {
	display: none;
}

@media (min-width: 981px) {
	.nr-search-toggle {
		display: inline-flex;
	}
}

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

@media (min-width: 981px) {
	.nr-burger {
		display: none;
	}
}

.nr-burger__bars {
	display: grid;
	gap: 5px;
	width: 20px;
}

.nr-burger__bars span {
	display: block;
	height: 1.5px;
	width: 100%;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.3s var(--nr-ease);
}

/* Colour scheme toggle. */
.nr-theme-toggle {
	width: 52px;
	height: 30px;
	padding: 0;
}

.nr-theme-toggle__track {
	position: relative;
	display: block;
	width: 52px;
	height: 30px;
	border-radius: var(--nr-radius-pill);
	background: var(--nr-field);
	transition: background-color 0.3s var(--nr-ease);
}

.nr-theme-toggle__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--nr-text);
	color: var(--nr-bg);
	transition: transform 0.35s var(--nr-ease);
}

.nr-theme-toggle__icon {
	display: grid;
	place-items: center;
}

.nr-theme-toggle__icon--moon {
	display: none;
}

[data-theme='light'] .nr-theme-toggle__knob {
	transform: translateX(22px);
}

[data-theme='light'] .nr-theme-toggle__icon--sun {
	display: none;
}

[data-theme='light'] .nr-theme-toggle__icon--moon {
	display: grid;
}

/* Search panel. */
.nr-search-panel {
	border-top: 1px solid var(--nr-border);
	background: var(--nr-nav-bg);
	backdrop-filter: blur(16px);
}

.nr-search-panel__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 964px;
	margin-inline: auto;
	padding: 16px;
}

.nr-search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 4px 4px 4px 14px;
	border: 1px solid var(--nr-border-strong);
	border-radius: var(--nr-radius-pill);
	background: var(--nr-field);
	transition: border-color 0.3s var(--nr-ease);
}

.nr-search-form:focus-within {
	border-color: var(--nr-accent);
}

.nr-search-form__icon {
	color: var(--nr-icon);
}

.nr-search-form__field {
	flex: 1;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	background: none;
	font-size: 15px;
}

.nr-search-form__field:focus {
	outline: none;
}

.nr-search-form__submit {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--nr-text);
	color: var(--nr-bg);
	transition: transform 0.3s var(--nr-ease);
}

.nr-search-form__submit:hover {
	transform: translateX(2px);
}

/* -------------------------------------------------------------------------
 * 6. Drawer and overlay
 * ---------------------------------------------------------------------- */

.nr-overlay {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: var(--nr-overlay);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.35s var(--nr-ease);
	/* A closed overlay sits over the whole page, so it must not take the
	   clicks meant for the page underneath it. */
	pointer-events: none;
}

.nr-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.nr-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 310;
	display: flex;
	flex-direction: column;
	width: min(360px, 86vw);
	height: 100%;
	padding: 20px 24px 40px;
	background: var(--nr-bg-elevated);
	border-left: 1px solid var(--nr-border);
	transform: translateX(100%);
	transition: transform 0.4s var(--nr-ease);
	overflow-y: auto;
}

.nr-drawer.is-open {
	transform: translateX(0);
}

.nr-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--nr-border);
}

.nr-drawer__brand {
	font-family: var(--nr-font-display);
	font-size: 18px;
	font-weight: 600;
}

.nr-drawer__nav {
	padding-block: 20px;
}

.nr-drawer__list li + li {
	margin-top: 2px;
}

.nr-drawer__list a {
	display: block;
	padding: 12px 0;
	font-family: var(--nr-font-display);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.02em;
	border-bottom: 1px solid var(--nr-border);
	transition: color 0.3s var(--nr-ease), padding-left 0.3s var(--nr-ease);
}

.nr-drawer__list a:hover {
	color: var(--nr-accent-2);
	padding-left: 8px;
}

.nr-drawer__list .is-current > a {
	color: var(--nr-accent-2);
	padding-left: 8px;
}

/* The drawer has no hover to reveal a sub-menu, so the nested items stay
   open under a rule that shows where they belong. */
.nr-drawer__list .sub-menu {
	margin-left: 6px;
	padding-left: 14px;
	border-left: 1px solid var(--nr-border);
}

.nr-drawer__list .sub-menu a {
	font-size: 17px;
	padding: 9px 0;
}

.nr-drawer__social {
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid var(--nr-border);
}

.nr-drawer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.nr-drawer__social-list a {
	color: var(--nr-text-muted);
	font-size: 14px;
	transition: color 0.3s var(--nr-ease);
}

.nr-drawer__social-list a:hover {
	color: var(--nr-text);
}

/* -------------------------------------------------------------------------
 * 7. Ticker
 * ---------------------------------------------------------------------- */

.nr-ticker {
	border-bottom: 1px solid var(--nr-border);
	background: var(--nr-bg-elevated);
}

.nr-ticker__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 44px;
	overflow: hidden;
}

.nr-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nr-text);
}

.nr-ticker__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff3b30;
	box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
	animation: nr-pulse 2.2s infinite;
}

@keyframes nr-pulse {
	70% {
		box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
	}
}

.nr-ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.nr-ticker__track {
	display: flex;
	width: max-content;
	animation: nr-marquee 48s linear infinite;
}

.nr-ticker__viewport:hover .nr-ticker__track {
	animation-play-state: paused;
}

@keyframes nr-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.nr-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-right: 36px;
	font-size: 14px;
	color: var(--nr-text-muted);
	white-space: nowrap;
	transition: color 0.3s var(--nr-ease);
}

.nr-ticker__item:hover {
	color: var(--nr-text);
}

.nr-ticker__time {
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	color: var(--nr-text-subtle);
}

/* -------------------------------------------------------------------------
 * 8. Lead story
 * ---------------------------------------------------------------------- */

.nr-hero {
	padding-top: clamp(18px, 2.5vw, 30px);
}

.nr-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.nr-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--nr-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.nr-hero__dot {
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: #ff3b30;
	box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
	animation: nr-pulse 2.2s infinite;
}

.nr-hero__date {
	margin: 0;
	color: var(--nr-text-subtle);
	font-size: 13px;
	white-space: nowrap;
}

.nr-hero__grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 981px) {
	.nr-hero__grid {
		grid-template-columns: 1.85fr 1fr;
		align-items: stretch;
	}
}

.nr-lead {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--nr-card-border);
	border-radius: var(--nr-radius);
	background: var(--nr-surface);
	box-shadow: var(--nr-shadow);
	transition: border-color 0.4s var(--nr-ease), transform 0.4s var(--nr-ease);
}

.nr-lead:hover {
	transform: translateY(-3px);
}

.nr-lead__link {
	display: block;
	position: relative;
	min-height: 380px;
	height: 100%;
}

@media (min-width: 981px) {
	.nr-lead__link {
		min-height: 460px;
		max-height: 520px;
	}
}

.nr-lead__media {
	position: absolute;
	inset: 0;
}

.nr-lead__media .nr-thumb {
	position: absolute;
	inset: 0;
}

.nr-lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.8s var(--nr-ease), transform 0.8s var(--nr-ease);
}

.nr-lead__link:hover .nr-lead__media img {
	filter: brightness(0.85);
	transform: scale(1.04);
}

.nr-lead__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.88) 100%);
}

.nr-lead__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: clamp(18px, 3vw, 30px);
	color: #fff;
}

.nr-lead__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.nr-lead__kicker,
.nr-article__kicker {
	display: inline-block;
	color: var(--nr-accent-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nr-lead__kicker {
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--nr-radius-pill);
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px);
	color: #fff;
}

.nr-lead__read {
	padding: 6px 12px;
	border-radius: var(--nr-radius-pill);
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(10px);
	color: rgba(255, 255, 255, 0.9);
	font-size: 12px;
	font-weight: 500;
}

.nr-lead__title {
	max-width: 22ch;
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 550;
	letter-spacing: -0.03em;
	line-height: 1.08;
	text-wrap: balance;
}

.nr-lead__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 10px;
	margin-bottom: 0;
	max-width: 58ch;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	line-height: 1.55;
}

.nr-lead__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 16px;
	margin-bottom: 0;
}

.nr-lead__meta {
	color: rgba(255, 255, 255, 0.65);
	font-size: 13px;
}

.nr-lead__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 9px 16px;
	border-radius: var(--nr-radius-pill);
	background: #fff;
	color: #000;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: transform 0.3s var(--nr-ease), background-color 0.3s var(--nr-ease);
}

.nr-lead__link:hover .nr-lead__cta {
	background: var(--nr-accent-2);
	transform: translateX(3px);
}

.nr-lead__cta .nr-icon {
	transition: transform 0.3s var(--nr-ease);
}

.nr-hero__side {
	display: flex;
	flex-direction: column;
	padding: clamp(16px, 2vw, 22px);
	border: 1px solid var(--nr-card-border);
	border-radius: var(--nr-radius);
	background: var(--nr-card-bg);
	backdrop-filter: blur(14px);
}

.nr-hero__side-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}

.nr-hero__side-title {
	margin: 0;
	flex: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.nr-hero__side-rule {
	flex: 1;
	height: 1px;
	background: var(--nr-hairline);
}

.nr-picks {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nr-pick + .nr-pick {
	border-top: 1px solid var(--nr-hairline);
}

.nr-pick__link {
	position: relative;
	display: grid;
	grid-template-columns: auto 96px 1fr;
	align-items: center;
	gap: 14px;
	padding-block: 14px;
	border-radius: var(--nr-radius-sm);
	overflow: hidden;
	transition: transform 0.4s var(--nr-ease);
}

.nr-pick__link:hover {
	transform: translateY(-2px);
}

.nr-pick__num {
	font-family: var(--nr-font-serif);
	font-style: italic;
	font-weight: 300;
	font-size: 26px;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px var(--nr-text-subtle);
	transition: color 0.3s var(--nr-ease);
}

.nr-pick__link:hover .nr-pick__num {
	color: var(--nr-accent-2);
	-webkit-text-stroke-color: var(--nr-accent-2);
}

.nr-pick__thumb {
	width: 96px;
	height: 72px;
	overflow: hidden;
	border-radius: var(--nr-radius-sm);
	background: var(--nr-surface);
	flex: none;
}

.nr-pick__thumb .nr-thumb,
.nr-pick__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nr-pick__thumb img {
	transition: filter 0.5s var(--nr-ease), transform 0.8s var(--nr-ease);
}

.nr-pick__link:hover .nr-pick__thumb img {
	filter: blur(4px) brightness(0.72);
	transform: scale(1.04);
}

.nr-pick__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.nr-pick__kicker {
	color: var(--nr-accent-2);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nr-pick__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--nr-text);
	font-size: 15px;
	font-weight: 550;
	letter-spacing: -0.01em;
	line-height: 1.35;
	transition: color 0.3s var(--nr-ease);
}

.nr-pick__link:hover .nr-pick__title {
	color: var(--nr-accent-2);
}

.nr-pick__meta {
	color: var(--nr-text-subtle);
	font-size: 12px;
}

@media (max-width: 980px) {
	.nr-lead__link {
		min-height: 420px;
	}

	.nr-hero__date {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * 9. Listing heading and category filter
 * ---------------------------------------------------------------------- */

.nr-listing__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	margin-bottom: clamp(32px, 4vw, 52px);
	text-align: center;
}

.nr-listing__title {
	font-size: clamp(40px, 6vw, 76px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
}

.nr-listing__prefix {
	display: block;
}

.nr-listing__accent {
	display: block;
	font-family: var(--nr-font-serif);
	font-style: italic;
	font-weight: 300;
	font-variation-settings: 'opsz' 120, 'wght' 300, 'SOFT' 20, 'WONK' 0;
	letter-spacing: -0.04em;
	background: linear-gradient(100deg, var(--nr-accent-2), var(--nr-accent) 70%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nr-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: -6px;
}

.nr-categories__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding-inline: 18px;
	border: 1px solid var(--nr-card-border);
	border-radius: var(--nr-radius-pill);
	background: var(--nr-card-bg);
	backdrop-filter: blur(12px);
	color: var(--nr-text-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	transition: border-color 0.3s var(--nr-ease), background-color 0.3s var(--nr-ease), color 0.3s var(--nr-ease);
}

.nr-categories__btn:hover {
	border-color: var(--nr-border-strong);
	color: var(--nr-text);
}

.nr-categories__btn.is-active {
	border-color: var(--nr-text);
	background: var(--nr-text);
	color: var(--nr-bg);
}

.nr-categories__name {
	white-space: nowrap;
}

.nr-categories__count {
	color: var(--nr-text-subtle);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.nr-categories__btn.is-active .nr-categories__count {
	color: var(--nr-bg);
	opacity: 0.65;
}

/* The grid dims while a category is being loaded. */
.nr-grid.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s var(--nr-ease);
}

/* -------------------------------------------------------------------------
 * 10. Grid and cards
 * ---------------------------------------------------------------------- */

.nr-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 1023px) {
	.nr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.nr-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

.nr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--nr-card-border);
	border-radius: var(--nr-radius);
	background: var(--nr-card-bg);
	backdrop-filter: blur(14px);
	overflow: hidden;
	transition: border-color 0.4s var(--nr-ease), transform 0.4s var(--nr-ease);
}

.nr-card:hover {
	transform: translateY(-3px);
}

.nr-card__link {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	padding: 10px 10px 16px;
}

@media (min-width: 640px) {
	.nr-card__link {
		gap: 24px;
	}
}

.nr-card__media {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	background: var(--nr-surface);
	aspect-ratio: 16 / 9;
}

.nr-thumb {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

.nr-thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.5s var(--nr-ease), transform 0.8s var(--nr-ease);
}

.nr-thumb--empty {
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 100% at 20% 0%, rgba(0, 153, 255, 0.24), transparent 60%),
		linear-gradient(150deg, var(--nr-surface-2), var(--nr-surface));
}

.nr-thumb__label {
	padding: 8px 16px;
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--nr-font-display);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-align: center;
}

[data-theme='light'] .nr-thumb__label {
	color: rgba(0, 0, 0, 0.6);
}

.nr-card:hover .nr-thumb__img {
	filter: blur(7px) brightness(0.62);
	transform: scale(1.04);
}

.nr-card__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity 0.4s var(--nr-ease);
}

.nr-card:hover .nr-card__overlay {
	opacity: 1;
}

.nr-card__overlay-text {
	font-family: var(--nr-font-serif);
	font-style: italic;
	font-weight: 300;
	font-variation-settings: 'opsz' 120, 'wght' 300, 'SOFT' 20, 'WONK' 0;
	letter-spacing: -0.04em;
	font-size: clamp(22px, 2.2vw, 32px);
	line-height: 1;
	background: linear-gradient(100deg, var(--nr-accent-2), var(--nr-accent) 70%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nr-card__body {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding-left: 8px;
}

.nr-card__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.nr-card__kicker {
	color: var(--nr-accent-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nr-card__title {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.25;
	transition: color 0.3s var(--nr-ease);
}

@media (min-width: 1024px) {
	.nr-card__title {
		font-size: 19px;
	}
}

.nr-card:hover .nr-card__title {
	color: var(--nr-accent-2);
}

.nr-card__meta {
	color: var(--nr-text-muted);
	font-size: 13px;
	line-height: 1.3;
}

@media (min-width: 1024px) {
	.nr-card__meta {
		font-size: 14px;
	}
}

.nr-card__excerpt {
	margin-top: 4px;
	color: var(--nr-text-muted);
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nr-card__cta {
	display: none;
	align-items: center;
	gap: 6px;
	flex: none;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--nr-field);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.3s var(--nr-ease), color 0.3s var(--nr-ease);
}

@media (min-width: 1024px) {
	.nr-card__cta {
		display: inline-flex;
	}
}

.nr-card:hover .nr-card__cta {
	background: var(--nr-text);
	color: var(--nr-bg);
}

.nr-card__cta .nr-icon {
	transition: transform 0.3s var(--nr-ease);
}

.nr-card:hover .nr-card__cta .nr-icon {
	transform: translateX(3px);
}

.nr-grid__empty {
	padding-block: 48px;
	text-align: center;
	color: var(--nr-text-muted);
}

/* Rotating accent border. Two trails leave the same corner and travel around
   the border in opposite directions until they meet at the opposite corner. */
.nr-shine {
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: 1px;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	background-image: conic-gradient(
		from calc(var(--nr-shine-angle) - var(--nr-shine-w)),
		transparent 0deg,
		var(--nr-accent) calc(var(--nr-shine-w) / 2),
		var(--nr-accent-2) var(--nr-shine-w),
		transparent calc(var(--nr-shine-w) * 2),
		transparent 360deg
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	transition: opacity 60ms linear;
}

/* The trails stay still until the story is pointed at. */
.nr-card:hover .nr-shine,
.nr-card:focus-within .nr-shine,
.nr-lead:hover .nr-shine,
.nr-lead:focus-within .nr-shine,
.nr-pick__link:hover .nr-shine,
.nr-pick__link:focus-within .nr-shine,
.nr-article__frame:hover .nr-shine {
	opacity: 1;
}

.nr-card:hover .nr-shine--a,
.nr-card:focus-within .nr-shine--a,
.nr-lead:hover .nr-shine--a,
.nr-lead:focus-within .nr-shine--a,
.nr-pick__link:hover .nr-shine--a,
.nr-pick__link:focus-within .nr-shine--a,
.nr-article__frame:hover .nr-shine--a {
	animation: nr-shine-a 2.6s var(--nr-ease) infinite;
}

.nr-card:hover .nr-shine--b,
.nr-card:focus-within .nr-shine--b,
.nr-lead:hover .nr-shine--b,
.nr-lead:focus-within .nr-shine--b,
.nr-pick__link:hover .nr-shine--b,
.nr-pick__link:focus-within .nr-shine--b,
.nr-article__frame:hover .nr-shine--b {
	animation: nr-shine-b 2.6s var(--nr-ease) infinite;
}

@keyframes nr-shine-a {
	0% {
		--nr-shine-angle: 135deg;
		--nr-shine-w: 0deg;
	}
	14% {
		--nr-shine-w: 26deg;
	}
	86% {
		--nr-shine-angle: 315deg;
		--nr-shine-w: 26deg;
	}
	100% {
		--nr-shine-angle: 315deg;
		--nr-shine-w: 0deg;
	}
}

@keyframes nr-shine-b {
	0% {
		--nr-shine-angle: 135deg;
		--nr-shine-w: 0deg;
	}
	14% {
		--nr-shine-w: 26deg;
	}
	86% {
		--nr-shine-angle: -45deg;
		--nr-shine-w: 26deg;
	}
	100% {
		--nr-shine-angle: -45deg;
		--nr-shine-w: 0deg;
	}
}

/* -------------------------------------------------------------------------
 * 11. Rails
 * ---------------------------------------------------------------------- */

.nr-rail__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--nr-border);
}

.nr-rail__title {
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 500;
	letter-spacing: -0.04em;
}

.nr-rail__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nr-text-muted);
	font-size: 14px;
	transition: color 0.3s var(--nr-ease), gap 0.3s var(--nr-ease);
}

.nr-rail__link:hover {
	color: var(--nr-text);
	gap: 10px;
}

/* -------------------------------------------------------------------------
 * 12. Pagination
 * ---------------------------------------------------------------------- */

.nr-pagination {
	margin-top: clamp(40px, 5vw, 64px);
}

.nr-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.nr-pagination a,
.nr-pagination span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--nr-border);
	border-radius: var(--nr-radius-pill);
	font-size: 14px;
	color: var(--nr-text-muted);
	transition: border-color 0.3s var(--nr-ease), color 0.3s var(--nr-ease), background-color 0.3s var(--nr-ease);
}

.nr-pagination a:hover {
	border-color: var(--nr-text);
	color: var(--nr-text);
}

.nr-pagination .current {
	background: var(--nr-text);
	border-color: var(--nr-text);
	color: var(--nr-bg);
	font-weight: 500;
}

.nr-pagination .dots {
	border-color: transparent;
}

/* -------------------------------------------------------------------------
 * 13. Article
 * ---------------------------------------------------------------------- */

.nr-article__head-inner {
	max-width: var(--nr-shell-narrow);
	margin-inline: auto;
	padding: clamp(48px, 6vw, 96px) 16px 0;
	text-align: center;
}

@media (min-width: 768px) {
	.nr-article__head-inner {
		padding-inline: 32px;
	}
}

.nr-article__title {
	font-size: clamp(34px, 5vw, 64px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1.02;
}

.nr-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	color: var(--nr-text-subtle);
	font-size: 14px;
}

.nr-article__author {
	color: var(--nr-text-muted);
}

.nr-article__dot {
	color: var(--nr-text-subtle);
}

.nr-article__figure {
	margin-top: 32px;
	padding-inline: 16px;
}

@media (min-width: 768px) {
	.nr-article__figure {
		padding-inline: 32px;
	}
}

.nr-article__frame {
	position: relative;
	max-width: 880px;
	margin-inline: auto;
	padding: 8px;
	border-radius: 20px;
	background: color-mix(in srgb, var(--nr-bg) 80%, transparent);
	backdrop-filter: blur(10px);
	overflow: hidden;
}

.nr-article__frame::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 600px;
	max-width: 100%;
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--nr-hairline) 50%, transparent);
}

.nr-article__image {
	width: 100%;
	max-height: 460px;
	border-radius: 12px;
	aspect-ratio: 21 / 10;
	object-fit: cover;
}

.nr-article__body-wrap {
	padding: clamp(36px, 5vw, 64px) 16px 0;
}

@media (min-width: 768px) {
	.nr-article__body-wrap {
		padding-inline: 32px;
	}
}

.nr-article__body {
	max-width: 740px;
	margin-inline: auto;
	color: var(--nr-text-body);
	font-size: 16px;
	line-height: 1.65;
}

.nr-article__body > * + * {
	margin-top: 1.4em;
}

.nr-article__body h2 {
	margin-top: 2.2em;
	font-size: 26px;
	font-weight: 500;
	letter-spacing: -0.035em;
	color: var(--nr-text);
}

.nr-article__body h3 {
	margin-top: 1.9em;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: var(--nr-text);
}

.nr-article__body h4 {
	margin-top: 1.6em;
	font-size: 17px;
	font-weight: 600;
	color: var(--nr-text);
}

.nr-article__body a {
	color: var(--nr-text);
	text-decoration: underline;
	text-decoration-color: var(--nr-accent);
	text-underline-offset: 3px;
	transition: color 0.3s var(--nr-ease);
}

.nr-article__body a:hover {
	color: var(--nr-accent-2);
}

.nr-article__body ul,
.nr-article__body ol {
	padding-left: 1.3em;
}

.nr-article__body ul {
	list-style: disc;
}

.nr-article__body ol {
	list-style: decimal;
}

.nr-article__body li + li {
	margin-top: 0.5em;
}

.nr-article__body li::marker {
	color: var(--nr-text-subtle);
}

.nr-article__body blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--nr-accent);
	font-family: var(--nr-font-serif);
	font-style: italic;
	font-size: 20px;
	line-height: 1.5;
	color: var(--nr-text);
}

.nr-article__body img {
	border-radius: var(--nr-radius);
}

.nr-article__body figure {
	margin-inline: 0;
}

.nr-article__body figcaption {
	margin-top: 10px;
	color: var(--nr-text-subtle);
	font-size: 14px;
}

.nr-article__body hr {
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--nr-border);
}

.nr-article__body code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--nr-surface-2);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.88em;
}

.nr-article__body pre {
	padding: 18px;
	border-radius: var(--nr-radius);
	background: var(--nr-surface);
	overflow-x: auto;
}

.nr-article__body pre code {
	padding: 0;
	background: none;
}

.nr-article__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.nr-article__body th,
.nr-article__body td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--nr-border);
	text-align: left;
}

.nr-article__footer {
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: 28px;
	border-top: 1px solid var(--nr-border);
}

.nr-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.nr-tag {
	padding: 6px 14px;
	border: 1px solid var(--nr-border);
	border-radius: var(--nr-radius-pill);
	color: var(--nr-text-muted);
	font-size: 13px;
	transition: border-color 0.3s var(--nr-ease), color 0.3s var(--nr-ease);
}

.nr-tag:hover {
	border-color: var(--nr-text);
	color: var(--nr-text);
}

.nr-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}

.nr-page-links .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 12px;
	border: 1px solid var(--nr-border);
	border-radius: var(--nr-radius-pill);
	font-size: 14px;
}

.nr-page-links .current {
	background: var(--nr-text);
	border-color: var(--nr-text);
	color: var(--nr-bg);
}

/* Share. */
.nr-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.nr-share__label {
	color: var(--nr-text-subtle);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nr-share__links {
	display: flex;
	gap: 8px;
}

.nr-share__link {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--nr-border);
	border-radius: 50%;
	color: var(--nr-text-muted);
	transition: border-color 0.3s var(--nr-ease), color 0.3s var(--nr-ease), transform 0.3s var(--nr-ease);
}

.nr-share__link:hover {
	border-color: var(--nr-text);
	color: var(--nr-text);
	transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
 * 14. Comments
 * ---------------------------------------------------------------------- */

.nr-comments {
	max-width: 740px;
	margin-inline: auto;
	padding: clamp(48px, 6vw, 80px) 16px clamp(64px, 8vw, 110px);
}

@media (min-width: 768px) {
	.nr-comments {
		padding-inline: 32px;
	}
}

.nr-comments__title {
	margin-bottom: 28px;
	font-size: 24px;
}

.nr-comments__list {
	display: grid;
	gap: 24px;
}

.nr-comments__list .children {
	margin-top: 24px;
	padding-left: 24px;
	border-left: 1px solid var(--nr-border);
}

.nr-comments__list .comment-body {
	color: var(--nr-text-body);
	font-size: 15px;
	line-height: 1.6;
}

.nr-comments__list .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 14px;
}

.nr-comments__list .comment-author img {
	border-radius: 50%;
}

.nr-comments__list .comment-meta {
	margin-bottom: 8px;
	color: var(--nr-text-subtle);
	font-size: 13px;
}

.nr-comments__list .reply {
	margin-top: 8px;
	font-size: 13px;
	color: var(--nr-text-muted);
}

.nr-comments__list .reply a:hover {
	color: var(--nr-text);
}

.nr-comments__closed {
	color: var(--nr-text-subtle);
	font-size: 14px;
}

.comment-respond {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--nr-border);
}

.comment-reply-title {
	margin-bottom: 20px;
	font-size: 20px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--nr-text-muted);
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--nr-border-strong);
	border-radius: var(--nr-radius-sm);
	background: var(--nr-field);
	font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--nr-accent);
}

.comment-form .submit {
	padding: 11px 22px;
	border-radius: var(--nr-radius-pill);
	background: var(--nr-text);
	color: var(--nr-bg);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

/* -------------------------------------------------------------------------
 * 15. Footer
 * ---------------------------------------------------------------------- */

.nr-footer {
	position: relative;
	margin-top: auto;
	overflow-x: clip;
	background: var(--nr-bg);
}

/* The call to action sits over a large faded mark, the way the reference
   site places its footer mark behind the closing line. */
.nr-footer__cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(64px, 9vw, 120px);
	text-align: center;
	background:
		radial-gradient(70% 100% at 50% 0%, var(--nr-card-lift), transparent 70%),
		linear-gradient(158deg, var(--nr-surface), var(--nr-bg) 60%);
	border-top: 1px solid var(--nr-border);
}

.nr-footer__mark {
	position: absolute;
	left: 50%;
	bottom: -40px;
	width: clamp(180px, 26vw, 320px);
	transform: translateX(-50%);
	opacity: 0.05;
	pointer-events: none;
}

.nr-footer__mark svg {
	width: 100%;
	height: auto;
}

.nr-footer__mark img {
	display: block;
	width: 100%;
	height: auto;
}

/* The name stands in for the mark, so it is centred on the page rather than
   inside the narrow box the mark sits in. */
.nr-footer__mark--word {
	top: 50%;
	bottom: auto;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	opacity: 0.08;
	text-align: center;
}

.nr-footer__wordmark {
	display: block;
	font-family: var(--nr-font-display);
	font-size: clamp(48px, 13vw, 190px);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.045em;
	word-break: break-word;
}

.nr-footer__cta-heading {
	font-size: clamp(38px, 5.2vw, 72px);
	font-weight: 500;
	letter-spacing: -0.055em;
	line-height: 1;
}

.nr-footer__cta-sub {
	max-width: 52ch;
	margin: 18px auto 0;
	color: var(--nr-text-muted);
	font-size: 16px;
	line-height: 1.6;
}

.nr-footer__cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

/* The panel holds the social strip and the link columns behind a single
   translucent sheet with a rule that runs the whole width of the screen. */
.nr-footer__panel {
	position: relative;
	margin-top: clamp(56px, 9vw, 150px);
	border-inline: 1px solid var(--nr-border);
	background: var(--nr-card-bg);
	backdrop-filter: blur(20px) saturate(140%);
}

.nr-footer__panel::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	border-top: 1px solid var(--nr-border);
}

.nr-footer__socials {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nr-footer__social {
	border-bottom: 1px solid var(--nr-border);
}

.nr-footer__social:nth-child(even) {
	border-left: 1px solid var(--nr-border);
}

.nr-footer__social a {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 16px;
	color: var(--nr-text-body);
	font-size: 13px;
	transition: color 0.3s var(--nr-ease);
}

.nr-footer__social a:hover {
	color: var(--nr-text);
}

.nr-footer__social .nr-icon {
	color: var(--nr-text-muted);
}

.nr-footer__social-arrow {
	display: inline-flex;
	margin-left: auto;
	color: var(--nr-text-muted);
	transition: transform 0.3s var(--nr-ease);
}

.nr-footer__social a:hover .nr-footer__social-arrow {
	transform: translateX(4px);
}

.nr-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--nr-border);
}

.nr-footer__col {
	padding: 24px 16px;
	border-left: 1px solid var(--nr-border);
}

.nr-footer__col:nth-child(odd) {
	border-left: 0;
}

.nr-footer__col:nth-child(n + 3) {
	border-top: 1px solid var(--nr-border);
}

.nr-footer__col-title {
	margin-bottom: 15px;
	font-size: 12px;
	font-weight: 400;
	color: var(--nr-text-dim);
}

.nr-footer__list {
	display: grid;
	gap: 6px;
}

.nr-footer__list a {
	display: block;
	padding: 4px 0;
	color: var(--nr-text-body);
	font-size: 13px;
	line-height: 1.3;
	transition: color 0.3s var(--nr-ease);
}

.nr-footer__list a:hover {
	color: var(--nr-text);
}

.nr-footer__newsletter-text {
	margin-bottom: 12px;
	color: var(--nr-text-muted);
	font-size: 13px;
	line-height: 1.5;
}

.nr-footer__newsletter-form {
	display: grid;
	gap: 8px;
}

.nr-footer__newsletter-form .nr-field {
	width: 100%;
}

.nr-footer__bottom {
	position: relative;
	padding-block: 22px;
	text-align: center;
}

.nr-footer__bottom::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	border-top: 1px solid var(--nr-border);
}

.nr-footer__copy {
	color: var(--nr-text-dim);
	font-size: 13px;
}

@media (min-width: 981px) {
	.nr-footer__socials {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		border-bottom: 0;
	}

	.nr-footer__social {
		border-bottom: 0;
	}

	.nr-footer__social:not(:first-child) {
		border-left: 1px solid var(--nr-border);
	}

	.nr-footer__social a {
		height: 62px;
		padding: 0 24px;
		font-size: 15px;
	}

	.nr-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.nr-footer__col {
		padding: 48px 24px 40px;
	}

	.nr-footer__col:nth-child(odd) {
		border-left: 1px solid var(--nr-border);
	}

	.nr-footer__col:first-child {
		border-left: 0;
	}

	.nr-footer__col:nth-child(n + 3) {
		border-top: 0;
	}

	.nr-footer__col-title {
		margin-bottom: 12px;
		font-size: 15px;
	}

	.nr-footer__list {
		gap: 8px;
	}

	.nr-footer__list a {
		padding: 4px 0;
		font-size: 15px;
	}

	.nr-footer__newsletter-text {
		font-size: 15px;
	}
}

/* -------------------------------------------------------------------------
 * 16. Widgets
 * ---------------------------------------------------------------------- */

.nr-widget {
	padding: 22px;
	border: 1px solid var(--nr-card-border);
	border-radius: var(--nr-radius);
	background: var(--nr-card-bg);
}

.nr-widget__title {
	margin-bottom: 16px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.nr-widget ul {
	display: grid;
	gap: 10px;
}

.nr-widget a {
	color: var(--nr-text-muted);
	font-size: 15px;
	transition: color 0.3s var(--nr-ease);
}

.nr-widget a:hover {
	color: var(--nr-text);
}

.nr-popular {
	counter-reset: nr-popular;
	display: grid;
	gap: 16px;
}

.nr-popular__item {
	counter-increment: nr-popular;
	display: grid;
	gap: 4px;
	padding-left: 34px;
	position: relative;
}

.nr-popular__item::before {
	content: counter(nr-popular, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 1px;
	color: var(--nr-accent-2);
	font-family: var(--nr-font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.nr-popular__link {
	color: var(--nr-text) !important;
	font-family: var(--nr-font-display);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.nr-popular__meta {
	color: var(--nr-text-subtle);
	font-size: 12px;
}

.nr-newsletter__text {
	margin-bottom: 14px;
	color: var(--nr-text-muted);
	font-size: 14px;
}

.nr-newsletter__form {
	display: grid;
	gap: 8px;
}

.nr-page {
	display: grid;
	gap: 40px;
	padding-block: 40px clamp(64px, 8vw, 110px);
}

@media (min-width: 1024px) {
	.nr-page {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}
}

.nr-page__aside {
	display: grid;
	gap: 20px;
	position: sticky;
	top: calc(var(--nr-header-h) + 20px);
}

/* -------------------------------------------------------------------------
 * 17. 404
 * ---------------------------------------------------------------------- */

.nr-404 {
	padding-block: clamp(64px, 10vw, 140px);
	text-align: center;
}

.nr-404__code {
	color: var(--nr-text-subtle);
	font-family: var(--nr-font-display);
	font-size: clamp(80px, 14vw, 180px);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 0.9;
}

.nr-404__title {
	margin-top: 12px;
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 500;
	letter-spacing: -0.045em;
}

.nr-404__accent {
	font-family: var(--nr-font-serif);
	font-style: italic;
	font-weight: 300;
	background: linear-gradient(100deg, var(--nr-accent-2), var(--nr-accent) 70%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nr-404__text {
	max-width: 46ch;
	margin: 18px auto 0;
	color: var(--nr-text-muted);
}

.nr-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
}

.nr-404__actions .nr-search-form {
	max-width: 340px;
}

/* -------------------------------------------------------------------------
 * 18. Motion preferences
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.nr-ticker__track {
		animation: none;
	}
}
