/*
Theme Name: Stack on Record
Description: Editorial design and article templates for Stack on Record.
Template: hello-elementor
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: stack-on-record
*/

@font-face {
	font-family: "Noto Serif";
	src: url("assets/noto-serif-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

@font-face {
	font-family: "Noto Sans";
	src: url("assets/noto-sans-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--sor-ink: #192b30;
	--sor-paper: #f9f6ee;
	--sor-pine: #075c54;
	--sor-citron: #e0ed83;
	--sor-muted: #4d5c5e;
	--sor-rule: #c9ccc0;
	--sor-card: #fffdf8;
	--sor-wash: #edf1e7;
	--sor-serif: "Noto Serif", Georgia, serif;
	--sor-sans: "Noto Sans", system-ui, sans-serif;
	--sor-gutter: clamp(1rem, 4.5vw, 3rem);
	--sor-frame: 74rem;
}

html {
	overflow-wrap: break-word;
}

body {
	background-color: var(--sor-paper);
	color: var(--sor-ink);
	font-family: var(--sor-sans);
	font-size: 1rem;
	line-height: 1.68;
}

h1, h2, h3, h4, h5, h6,
.sor-page .elementor .elementor-widget-heading .elementor-heading-title {
	color: var(--sor-ink);
	font-family: var(--sor-serif);
	font-weight: 600;
	line-height: 1.15;
}

h1 {
	font-size: clamp(2.2rem, 5.1vw, 4rem);
	letter-spacing: -0.055em;
}

h2 {
	font-size: clamp(1.6rem, 3.7vw, 2.65rem);
	letter-spacing: -0.035em;
}

h3 {
	font-size: clamp(1.25rem, 2.8vw, 1.6rem);
	letter-spacing: -0.025em;
}

a {
	color: var(--sor-pine);
	text-decoration: underline;
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.17em;
}

a:hover {
	color: var(--sor-ink);
	text-decoration-thickness: 0.12em;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--sor-pine);
	outline-offset: 3px;
}

.sor-footer :focus-visible,
.sor-method :focus-visible {
	outline-color: var(--sor-citron);
}

.sor-visually-hidden,
.sor-skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.sor-skip-link:focus {
	position: fixed;
	z-index: 100000;
	top: 3rem;
	left: 1.5rem;
	padding: 0.7rem 1rem;
	background: var(--sor-citron);
	color: var(--sor-ink);
}

.sor-shell {
	box-sizing: border-box;
	width: min(100% - 2 * var(--sor-gutter), var(--sor-frame));
	margin-inline: auto;
}

.sor-masthead {
	background: var(--sor-paper);
}

.sor-masthead-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: end;
	gap: 1.25rem;
	padding-block: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 2.7vw, 1.7rem);
}

.sor-brand {
	grid-column: 2;
	text-align: center;
}

.sor-wordmark {
	display: inline-flex;
	align-items: center;
	flex-direction: column;
	gap: 0.3rem;
	color: var(--sor-ink);
	font: 650 clamp(2rem, 4.8vw, 3.6rem)/1.04 var(--sor-serif);
	letter-spacing: -0.075em;
	text-decoration: none;
}

.sor-brand-mark {
	display: block;
	width: 1.75rem;
	aspect-ratio: 1;
	background: url("assets/site-icon.png") center / contain no-repeat;
}

.sor-brand p {
	margin: 0.4rem 0 0;
	color: var(--sor-muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.sor-header-search {
	justify-self: end;
	width: min(100%, 15.25rem);
}

.sor-search {
	display: flex;
	align-items: stretch;
	width: min(100%, 26rem);
	padding: 0;
}

.sor-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid #7d8580;
	border-radius: 0.25rem 0 0 0.25rem;
	background: var(--sor-card);
	color: var(--sor-ink);
	font: 400 1rem/1.2 var(--sor-sans);
}

.sor-search button {
	flex: 0 0 auto;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--sor-pine);
	border-radius: 0 0.25rem 0.25rem 0;
	background: var(--sor-pine);
	color: var(--sor-paper);
	cursor: pointer;
	font: 650 0.85rem/1.2 var(--sor-sans);
}

.sor-search button:hover {
	border-color: var(--sor-ink);
	background: var(--sor-ink);
	color: var(--sor-paper);
}

.sor-primary-nav {
	border-block: 1px solid var(--sor-rule);
}

.sor-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(0.35rem, 3vw, 2rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.sor-primary-nav .sor-menu {
	justify-content: center;
}

.sor-menu a {
	display: inline-grid;
	min-height: 2.75rem;
	align-items: center;
	padding-inline: 0.35rem;
	color: inherit;
	font-size: 0.88rem;
	font-weight: 650;
	text-decoration: none;
}

.sor-menu a:hover,
.sor-menu a[aria-current="page"] {
	text-decoration: underline;
}

.sor-menu a[aria-current="page"] {
	color: var(--sor-pine);
}

.sor-footer {
	background: var(--sor-ink);
	color: var(--sor-paper);
}

.sor-footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: start;
	column-gap: 2rem;
	row-gap: 1rem;
	padding-block: clamp(2rem, 5vw, 4rem);
}

.sor-footer-wordmark {
	color: var(--sor-paper);
	font: 650 1.65rem/1.2 var(--sor-serif);
	letter-spacing: -0.045em;
	text-decoration: none;
}

.sor-footer-wordmark:hover,
.sor-footer .sor-menu a:hover,
.sor-footer .sor-menu a[aria-current="page"] {
	color: var(--sor-citron);
}

.sor-footer p {
	margin-block: 0.6rem 0;
	font-size: 0.9rem;
}

.sor-prose {
	--sor-measure: 46rem;
	min-width: 0;
	font-size: clamp(1rem, 2.2vw, 1.08rem);
}

.sor-native-page,
.sor-article-main,
.sor-listing,
.sor-builder-page > .sor-page-heading {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6.5rem);
}

.sor-native-page,
.sor-article,
.sor-listing {
	max-width: 51rem;
	margin-inline: auto;
}

.sor-builder-page > .sor-page-heading {
	width: min(100% - 2 * var(--sor-gutter), var(--sor-frame));
	margin-inline: auto;
	padding-block-end: 1rem;
}

.sor-prose :is(h2, h3) {
	margin-block: 1.75em 0.6em;
}

.sor-prose .wp-block-group :is(h2, h3):first-child {
	margin-block-start: 0;
}

.sor-prose p,
.sor-prose li {
	max-width: var(--sor-measure);
}

.sor-prose img {
	max-width: 100%;
	height: auto;
}

.sor-prose figcaption {
	color: var(--sor-muted);
	font-size: 0.85rem;
}

.sor-breadcrumbs {
	margin-block-end: 1.1rem;
	color: var(--sor-muted);
	font-size: 0.85rem;
}

.sor-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.62rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sor-breadcrumbs li:not(:first-child)::before {
	content: "/" / "";
	margin-inline-end: 0.62rem;
	color: #64726f;
}

.sor-article-heading {
	margin-bottom: clamp(1.6rem, 4vw, 2.55rem);
}

.sor-article-heading h1 {
	margin-top: 0;
	margin-bottom: 0.8rem;
}

.sor-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	color: var(--sor-muted);
	font-size: 0.88rem;
	font-variant-numeric: tabular-nums;
}

.sor-article-content > :last-child {
	margin-block-end: 0;
}

.sor-verdict,
.sor-price-condition,
.sor-evidence,
.sor-notice {
	margin-block: 1.25rem;
	padding: clamp(1rem, 4vw, 1.8rem);
	border-inline-start: 3px solid var(--sor-pine);
	background: var(--sor-wash);
	color: var(--sor-ink);
}

.sor-price-condition {
	border-color: var(--sor-ink);
	background: var(--sor-citron);
}

.sor-evidence,
.sor-notice {
	border-color: #7d8580;
	background: var(--sor-card);
}

.sor-prose :is(.sor-verdict, .sor-price-condition, .sor-evidence, .sor-notice) > :last-child {
	margin-bottom: 0;
}

.sor-prose :is(.wp-block-table, .sor-table) {
	max-width: 100%;
	overflow-x: auto;
}

.sor-prose :is(.wp-block-table, .sor-table) table {
	margin: 0;
	background: var(--sor-card);
	color: var(--sor-ink);
	font-family: var(--sor-sans);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
}

.sor-prose :is(.wp-block-table, .sor-table) :is(th, td) {
	padding: 0.65rem;
	border: 1px solid var(--sor-rule);
	vertical-align: top;
	text-align: start;
}

.sor-prose :is(.wp-block-table, .sor-table) thead th {
	background: var(--sor-pine);
	color: var(--sor-paper);
}

.sor-page:has(.sor-hero) .sor-native-page {
	width: auto;
	max-width: none;
	padding: 0;
}

.sor-page .sor-hero {
	padding: clamp(3rem, 8vw, 6.7rem) var(--sor-gutter);
	border-bottom: 1px solid var(--sor-rule);
	background: var(--sor-wash);
	text-align: center;
}

.sor-page .sor-hero :is(h1, .elementor-widget-heading h1.elementor-heading-title) {
	max-width: 16ch;
	margin-inline: auto;
	font-size: clamp(2.65rem, 7.1vw, 6.25rem);
	letter-spacing: -0.075em;
}

.sor-page .sor-hero p,
.sor-page .sor-hero .elementor-widget-text-editor {
	max-width: 42rem;
	margin-inline: auto;
	font-size: clamp(1.04rem, 2.25vw, 1.28rem);
}

.sor-page .sor-hero p:last-child,
.sor-page .sor-section p:last-child {
	margin-block-end: 0;
}

.sor-page .sor-section {
	padding: clamp(2.7rem, 7vw, 5.2rem) var(--sor-gutter);
}

.sor-page .elementor .sor-section.e-con > .elementor-element {
	width: min(100%, var(--sor-frame));
	margin-inline: auto;
}

.sor-page .sor-native-page :where(.sor-section:not(.sor-method)) {
	width: min(100%, calc(var(--sor-frame) + 2 * var(--sor-gutter)));
	margin-inline: auto;
}

.sor-page .sor-task-grid,
.sor-page .elementor .sor-task-grid.e-con {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: clamp(0.75rem, 2vw, 1.2rem);
}

.sor-page .elementor .sor-task-grid.e-con > .sor-task-card {
	width: 100%;
}

.sor-page :is(.sor-task, .sor-task-card) {
	min-width: 0;
	padding: clamp(1.15rem, 3.5vw, 2rem);
	border: 1px solid var(--sor-rule);
	border-radius: 0.24rem;
	background: var(--sor-card);
}

.sor-page :is(.sor-task, .sor-task-card) h3 {
	margin-block-start: 0;
	font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.sor-page .sor-recent {
	border-block-start: 1px solid var(--sor-rule);
}

.sor-recent-list {
	display: grid;
	padding: 0;
	margin: 0;
	list-style: none;
}

.sor-recent-list li {
	display: grid;
	max-width: none;
	grid-template-columns: 10rem minmax(0, 1fr);
	gap: 0.4rem 1.2rem;
	padding-block: 1.05rem;
	border-bottom: 1px solid var(--sor-rule);
}

.sor-recent-list li:first-child {
	border-top: 1px solid var(--sor-rule);
}

.sor-recent-list li > time,
.sor-result time {
	color: var(--sor-muted);
	font-size: 0.88rem;
	font-variant-numeric: tabular-nums;
}

.sor-page .sor-recent-list h3,
.sor-recent-list p {
	margin: 0;
}

.sor-recent-list p {
	grid-column: 2;
}

.sor-recent-empty {
	color: var(--sor-muted);
}

.sor-page .sor-method {
	background: var(--sor-pine);
	color: var(--sor-paper);
}

.sor-page .sor-method :is(h2, h3, .elementor-widget-heading .elementor-heading-title),
.sor-page .sor-method a {
	color: var(--sor-paper);
}

.sor-page .sor-method a:hover {
	color: var(--sor-citron);
}

.sor-page .sor-native-page .sor-method > * {
	max-width: var(--sor-frame);
	margin-inline: auto;
}

.sor-page .sor-eyebrow {
	color: var(--sor-pine);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.085em;
	text-transform: uppercase;
}

.sor-page .sor-method .sor-eyebrow {
	color: var(--sor-citron);
}

.sor-page .elementor-widget-text-editor {
	font-family: var(--sor-sans);
}

.sor-page :is(.elementor-button, .wp-block-button__link) {
	border-radius: 0.25rem;
	background: var(--sor-pine);
	color: var(--sor-paper);
	font: 650 0.94rem/1.3 var(--sor-sans);
}

.sor-page .sor-method :is(.elementor-button, .wp-block-button__link) {
	background: var(--sor-citron);
	color: var(--sor-ink);
}

.sor-page :is(.elementor-button, .wp-block-button__link):hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.sor-listing > h1 {
	margin-top: 0;
}

.sor-listing > .sor-search {
	margin: 0 0 2rem;
}

.sor-results {
	margin-block: 2rem;
}

.sor-result {
	padding-block: 1.4rem;
	border-top: 1px solid var(--sor-rule);
}

.sor-result h2 {
	margin: 0 0 0.25rem;
	font-size: clamp(1.36rem, 3vw, 1.85rem);
}

.sor-result p {
	margin: 0.5rem 0 0;
}

@media (max-width: 52rem) {
	.sor-masthead-top {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.sor-brand {
		grid-column: 1;
	}

	.sor-header-search {
		justify-self: center;
		width: min(100%, 25rem);
	}

	.sor-footer-inner {
		flex-direction: column;
	}
}

@media (max-width: 34rem) {
	.sor-recent-list li {
		grid-template-columns: minmax(0, 1fr);
	}

	.sor-recent-list p {
		grid-column: auto;
	}
}
