/*
Theme Name: Robert Putt
Theme URI: https://robertputt.co.uk
Author: Robert Putt
Author URI: https://robertputt.co.uk
Description: A personal link-hub and blog theme. Pairs a sticky profile sidebar with a hero banner and grouped card sections on the front page, plus a clean reading experience for the blog.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robertputt
Tags: blog, one-column, two-columns, custom-menu, custom-logo, featured-images, block-styles, translation-ready
*/

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

:root {
	--rp-bg: #fbfbfc;
	--rp-surface: #ffffff;
	--rp-surface-alt: #f5f6f8;
	--rp-border: #e7e8ec;
	--rp-border-strong: #d6d8de;
	--rp-text: #15171c;
	--rp-text-soft: #43474f;
	--rp-muted: #676c76;
	--rp-accent: #2f5bea;
	--rp-accent-dark: #1f43b8;
	--rp-hero-from: #eef2fd;
	--rp-hero-to: #e7edfb;
	--rp-radius-sm: 8px;
	--rp-radius: 12px;
	--rp-radius-lg: 18px;
	--rp-shadow: 0 1px 2px rgba(20, 22, 26, .04);
	--rp-shadow-lift: 0 10px 24px rgba(20, 22, 26, .08);
	--rp-wrap: 1140px;
	--rp-sidebar: 262px;
	--rp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rp-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

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

body {
	margin: 0;
	background: var(--rp-bg);
	color: var(--rp-text);
	font-family: var(--rp-font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--rp-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--rp-accent-dark);
	text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--rp-text);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	padding-left: 1.25em;
}

blockquote {
	margin: 1.5em 0;
	padding: .25em 0 .25em 1.25em;
	border-left: 3px solid var(--rp-accent);
	color: var(--rp-text-soft);
	font-style: italic;
}

code, kbd, pre, samp {
	font-family: var(--rp-font-mono);
	font-size: .9em;
}

code {
	background: var(--rp-surface-alt);
	border: 1px solid var(--rp-border);
	border-radius: 4px;
	padding: .1em .35em;
}

pre {
	background: #15171c;
	color: #e8eaf0;
	padding: 16px 18px;
	border-radius: var(--rp-radius);
	overflow-x: auto;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

th, td {
	border: 1px solid var(--rp-border);
	padding: 8px 10px;
	text-align: left;
}

hr {
	border: 0;
	border-top: 1px solid var(--rp-border);
	margin: 2em 0;
}

/* Accessibility helpers ------------------------------------------------- */

.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;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--rp-surface);
	color: var(--rp-text);
	padding: 10px 16px;
	border-radius: 0 0 var(--rp-radius) 0;
	box-shadow: var(--rp-shadow-lift);
}

.skip-link:focus {
	left: 0;
}

/* -------------------------------------------------------------------------
   3. Site header
   ---------------------------------------------------------------------- */

.site-header {
	background: var(--rp-surface);
	border-bottom: 1px solid var(--rp-border);
	position: sticky;
	top: 0;
	z-index: 30;
}

.site-header__inner {
	max-width: var(--rp-wrap);
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.custom-logo-link img {
	display: block;
	max-height: 34px;
	width: auto;
	border-radius: var(--rp-radius-sm);
}

.site-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.site-title a {
	color: var(--rp-text);
}

.site-title a:hover {
	text-decoration: none;
	color: var(--rp-accent);
}

.site-description {
	margin: 1px 0 0;
	font-size: 12px;
	color: var(--rp-muted);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius-sm);
	color: var(--rp-text);
	font: inherit;
	font-size: 13px;
	padding: 7px 11px;
	cursor: pointer;
}

.menu-toggle__bars {
	display: block;
	width: 14px;
	height: 1.5px;
	background: currentColor;
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 14px;
	height: 1.5px;
	background: currentColor;
}

.menu-toggle__bars::before { top: -4px; }
.menu-toggle__bars::after { top: 4px; }

.primary-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 22px;
}

.primary-navigation a {
	color: var(--rp-text-soft);
	font-size: 14px;
	font-weight: 500;
}

.primary-navigation a:hover {
	color: var(--rp-accent);
	text-decoration: none;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation .current-menu-parent > a {
	color: var(--rp-text);
	font-weight: 600;
}

/* Sub menus */
.primary-navigation li {
	position: relative;
}

.primary-navigation .sub-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 10px;
	min-width: 190px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
	box-shadow: var(--rp-shadow-lift);
	padding: 6px;
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
	display: flex;
}

.primary-navigation .sub-menu a {
	display: block;
	padding: 7px 10px;
	border-radius: var(--rp-radius-sm);
}

.primary-navigation .sub-menu a:hover {
	background: var(--rp-surface-alt);
}

/* -------------------------------------------------------------------------
   4. Layout
   ---------------------------------------------------------------------- */

.site-shell {
	max-width: var(--rp-wrap);
	margin: 0 auto;
	padding: 28px 24px 64px;
	display: grid;
	grid-template-columns: var(--rp-sidebar) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.site-shell--narrow {
	grid-template-columns: minmax(0, 1fr);
	max-width: 780px;
}

.profile-rail {
	position: sticky;
	top: 88px;
}

.site-main > * + * {
	margin-top: 40px;
}

/* Keeps article lines readable when the rail sits alongside. */
.site-main--article > * {
	max-width: 760px;
}

/* -------------------------------------------------------------------------
   5. Profile rail
   ---------------------------------------------------------------------- */

.profile-card__avatar {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--rp-surface-alt);
	border: 1px solid var(--rp-border);
	box-shadow: var(--rp-shadow);
	display: block;
}

.profile-card__name {
	margin: 18px 0 5px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.profile-card__role,
.profile-card__location {
	margin: 0;
	font-size: 13px;
	color: var(--rp-muted);
	line-height: 1.5;
}

.profile-card__location {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin-top: 16px;
	color: var(--rp-text-soft);
}

.profile-card__location svg {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--rp-muted);
}

.social-list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.profile-card__hint {
	margin: 16px 0 0;
	padding: 10px 12px;
	border: 1px dashed var(--rp-border-strong);
	border-radius: var(--rp-radius-sm);
	background: var(--rp-surface);
	font-size: 12px;
	line-height: 1.5;
	color: var(--rp-muted);
}

.social-list a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 5px 8px 5px 0;
	font-size: 13px;
	color: var(--rp-text-soft);
	border-radius: var(--rp-radius-sm);
}

.social-list a:hover {
	color: var(--rp-accent);
	text-decoration: none;
}

.rp-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
}

.rp-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	display: block;
}

.rp-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 5px;
	background: var(--rp-chip-bg, var(--rp-muted));
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}

.profile-rail .widget {
	margin-top: 28px;
	font-size: 13px;
	color: var(--rp-text-soft);
}

.profile-rail .widget-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--rp-muted);
}

.profile-rail .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.profile-rail .widget li + li {
	margin-top: 5px;
}

/* -------------------------------------------------------------------------
   6. Hero
   ---------------------------------------------------------------------- */

.hero {
	background: linear-gradient(135deg, var(--rp-hero-from), var(--rp-hero-to));
	border-radius: var(--rp-radius-lg);
	padding: 38px 40px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}

.hero--has-media {
	grid-template-columns: minmax(0, 1fr) 210px;
}

.hero__eyebrow {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--rp-accent);
}

.hero__title {
	margin: 0 0 12px;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.05;
}

.hero__text {
	max-width: 46em;
	font-size: 15px;
	color: var(--rp-text-soft);
}

.hero__text > :last-child {
	margin-bottom: 0;
}

.hero__media {
	margin: 0;
	justify-self: end;
}

.hero__media img {
	display: block;
	border-radius: var(--rp-radius);
}

/* -------------------------------------------------------------------------
   7. Card sections
   ---------------------------------------------------------------------- */

.card-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.card-section__title,
.section-heading {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.card-section__description {
	margin: -6px 0 14px;
	font-size: 13px;
	color: var(--rp-muted);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.card {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
	padding: 18px;
	box-shadow: var(--rp-shadow);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card--no-icon {
	grid-template-columns: minmax(0, 1fr);
}

.card:hover,
.card:focus-within {
	transform: translateY(-2px);
	border-color: var(--rp-border-strong);
	box-shadow: var(--rp-shadow-lift);
}

.card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: var(--rp-card-icon-bg, var(--rp-surface-alt));
	color: var(--rp-card-icon-color, var(--rp-text));
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	overflow: hidden;
}

.card__body {
	min-width: 0;
	padding-top: 1px;
}

.card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.card__title {
	margin: 0 0 5px;
	font-size: 15px;
	font-weight: 700;
}

.card__title a {
	color: var(--rp-text);
}

.card__title a:hover {
	color: var(--rp-accent);
	text-decoration: none;
}

/* Whole-card click target without nesting interactive elements. */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.card__text {
	margin: 0;
	font-size: 13px;
	color: var(--rp-muted);
	line-height: 1.55;
}

.card__badge {
	display: inline-block;
	margin-top: 12px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #e8eefc;
	color: var(--rp-accent-dark);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
   8. Post lists
   ---------------------------------------------------------------------- */

.page-header {
	margin-bottom: 28px;
}

.page-title {
	margin: 0 0 6px;
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 800;
	letter-spacing: -.025em;
}

.page-subtitle,
.archive-description {
	margin: 0;
	color: var(--rp-muted);
	font-size: 14px;
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.post-summary {
	padding: 18px 0;
	border-bottom: 1px solid var(--rp-border);
}

.post-summary:first-child {
	padding-top: 0;
}

.post-summary__meta,
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--rp-muted);
}

.entry-meta a {
	color: var(--rp-muted);
}

.entry-meta a:hover {
	color: var(--rp-accent);
}

.post-summary__title {
	margin: 6px 0 6px;
	font-size: 19px;
	font-weight: 700;
}

.post-summary__title a {
	color: var(--rp-text);
}

.post-summary__title a:hover {
	color: var(--rp-accent);
	text-decoration: none;
}

.post-summary__excerpt {
	margin: 0;
	color: var(--rp-text-soft);
	font-size: 14px;
}

.post-summary__thumb {
	display: block;
	margin: 0 0 14px;
}

.post-summary__thumb img {
	border-radius: var(--rp-radius);
	width: 100%;
}

.more-link {
	font-size: 13px;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   9. Single post / page
   ---------------------------------------------------------------------- */

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

.entry-title {
	margin: 8px 0 10px;
	font-size: clamp(28px, 4.5vw, 40px);
	font-weight: 800;
	letter-spacing: -.03em;
}

.entry-thumbnail {
	margin: 0 0 26px;
}

.entry-thumbnail img {
	border-radius: var(--rp-radius-lg);
	width: 100%;
}

.entry-content {
	font-size: 16px;
	line-height: 1.75;
	color: var(--rp-text-soft);
}

.entry-content > h2 { font-size: 24px; margin-top: 1.8em; color: var(--rp-text); }
.entry-content > h3 { font-size: 20px; margin-top: 1.6em; color: var(--rp-text); }
.entry-content > h4 { font-size: 17px; margin-top: 1.5em; color: var(--rp-text); }

.entry-content img,
.entry-content iframe {
	border-radius: var(--rp-radius);
}

.entry-content .alignwide {
	margin-left: -40px;
	margin-right: -40px;
	max-width: calc(100% + 80px);
}

.entry-content .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

.entry-content .alignleft {
	float: left;
	margin: .3em 1.5em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: .3em 0 1em 1.5em;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.entry-content figcaption {
	font-size: 12.5px;
	color: var(--rp-muted);
	text-align: center;
	margin-top: 8px;
}

.entry-footer {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--rp-border);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: var(--rp-muted);
}

.tag-links a,
.cat-links a {
	display: inline-block;
	margin-right: 6px;
	padding: 3px 9px;
	border: 1px solid var(--rp-border);
	border-radius: 999px;
	background: var(--rp-surface);
	font-size: 12px;
	color: var(--rp-text-soft);
}

.tag-links a:hover,
.cat-links a:hover {
	border-color: var(--rp-accent);
	color: var(--rp-accent);
	text-decoration: none;
}

.author-box {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-top: 36px;
	padding: 18px;
	background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
}

.author-box img {
	border-radius: 50%;
	flex: 0 0 auto;
}

.author-box__name {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
}

.author-box__bio {
	margin: 0;
	font-size: 13px;
	color: var(--rp-muted);
}

/* -------------------------------------------------------------------------
   10. Pagination & comments
   ---------------------------------------------------------------------- */

.rp-pagination {
	margin-top: 32px;
}

.rp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius-sm);
	background: var(--rp-surface);
	color: var(--rp-text-soft);
	font-size: 13px;
	font-weight: 500;
}

.rp-pagination .page-numbers:hover {
	border-color: var(--rp-border-strong);
	color: var(--rp-text);
	text-decoration: none;
}

.rp-pagination .page-numbers.current {
	background: var(--rp-text);
	border-color: var(--rp-text);
	color: #fff;
}

.post-navigation {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--rp-border);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	font-size: 14px;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--rp-muted);
	margin-bottom: 3px;
}

.post-navigation .nav-title {
	font-weight: 600;
	color: var(--rp-text);
}

.comments-area {
	margin-top: 44px;
	padding-top: 26px;
	border-top: 1px solid var(--rp-border);
}

.comments-title,
.comment-reply-title {
	font-size: 18px;
}

.comment-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	padding-left: 22px;
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--rp-border);
	font-size: 14px;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-author .fn {
	font-weight: 600;
	font-style: normal;
	color: var(--rp-text);
}

.comment-metadata {
	font-size: 12px;
	color: var(--rp-muted);
}

.reply {
	font-size: 12.5px;
	font-weight: 600;
}

.comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
}

.comment-form p {
	margin-bottom: 14px;
}

/* -------------------------------------------------------------------------
   11. Forms
   ---------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--rp-border-strong);
	border-radius: var(--rp-radius-sm);
	background: var(--rp-surface);
	color: var(--rp-text);
	font: inherit;
	font-size: 14px;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--rp-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(47, 91, 234, .15);
}

button,
input[type="submit"],
.wp-block-button__link,
.rp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--rp-accent);
	border-radius: var(--rp-radius-sm);
	background: var(--rp-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

button:hover,
input[type="submit"]:hover,
.rp-button:hover {
	background: var(--rp-accent-dark);
	border-color: var(--rp-accent-dark);
	color: #fff;
	text-decoration: none;
}

.search-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

/* -------------------------------------------------------------------------
   12. Footer
   ---------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--rp-border);
	background: var(--rp-surface);
}

.site-footer__inner {
	max-width: var(--rp-wrap);
	margin: 0 auto;
	padding: 22px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: var(--rp-muted);
}

.site-footer__inner p {
	margin: 0;
}

.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.footer-navigation a {
	color: var(--rp-muted);
}

.footer-navigation a:hover {
	color: var(--rp-accent);
}

/* -------------------------------------------------------------------------
   13. Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 960px) {
	.hero--has-media {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__media {
		justify-self: start;
		max-width: 170px;
	}
}

@media (max-width: 860px) {
	.site-shell {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding-top: 24px;
	}

	.profile-rail {
		position: static;
	}

	.social-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px 16px;
	}

	.entry-content .alignwide {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

@media (max-width: 700px) {
	.menu-toggle {
		display: inline-flex;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.primary-navigation {
		display: none;
		flex-basis: 100%;
		order: 3;
	}

	.primary-navigation.is-open {
		display: block;
		padding-bottom: 8px;
	}

	.primary-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.primary-navigation a {
		display: block;
		padding: 8px 0;
		border-bottom: 1px solid var(--rp-border);
	}

	.primary-navigation .sub-menu {
		display: flex;
		position: static;
		border: 0;
		box-shadow: none;
		margin: 0 0 0 12px;
		padding: 0;
		min-width: 0;
	}

	.hero {
		padding: 26px 22px;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
