/**
 * One Bag Review, homepage-only styles
 */

/* Hero featured article */
.obr-hero {
	margin-bottom: 3.5rem;
}

.obr-hero__card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
	background: var(--obr-card-bg);
	border-radius: var(--obr-radius-lg);
	padding: 2rem;
	box-shadow: var(--obr-shadow);
}

.obr-hero__media {
	min-height: 320px;
}

.obr-hero__image,
.obr-hero__placeholder {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	border-radius: var(--obr-radius-md);
}

.obr-hero__placeholder {
	background: linear-gradient(145deg, #d4c4b0 0%, #b8a898 100%);
}

.obr-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0.5rem 0;
}

.obr-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--obr-teal);
}

.obr-hero__title {
	margin: 0 0 1.25rem;
	font-family: var(--obr-font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--obr-text-strong);
}

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

.obr-hero__title a:hover,
.obr-hero__title a:focus {
	color: var(--obr-text);
	opacity: 0.75;
}

.obr-hero__excerpt {
	margin: 0 0 1.75rem;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--obr-text-muted);
}

/* Intro tagline */
.obr-intro {
	position: relative;
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 4rem;
}

.obr-intro__heading {
	margin: 0 0 1.25rem;
	font-family: var(--obr-font-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--obr-text-strong);
}

.obr-intro__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--obr-text-muted);
}

/* Keep the copy above the decorative arrows */
.obr-intro__heading,
.obr-intro__text {
	position: relative;
	z-index: 1;
}

/*
 * Hand-drawn arrow underlay, quiet filler for the blank space
 * around the intro. Sprites have baked-in edge fade; opacity here
 * keeps them whisper-quiet so they never compete with the copy.
 *
 * Direction map (arrows 3, 4, and 6 are reserved for the site-wide
 * gutter accents in global.css; no sprite repeats):
 *   left  = arrow-1, points up-right toward the heading
 *   right = arrow-2, points down-left toward the heading
 *   under = arrow-5, mirrored, points up-left
 */

/* Side arrows extend past the column; never let them cause a scrollbar */
body.obr-site.home {
	overflow-x: clip;
}
.obr-intro__arrows {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.obr-intro__arrow {
	position: absolute;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.obr-intro__arrow--left {
	width: clamp(180px, 22vw, 280px);
	height: 140px;
	left: clamp(-320px, -24vw, -180px);
	top: -0.75rem;
	background-image: url("../images/arrows/arrow-1.png");
	opacity: 0.1;
	transform: rotate(-6deg);
}

.obr-intro__arrow--right {
	width: clamp(180px, 21vw, 260px);
	height: 160px;
	right: clamp(-310px, -23vw, -180px);
	top: 0.5rem;
	background-image: url("../images/arrows/arrow-2.png");
	opacity: 0.09;
	transform: rotate(3deg);
}

.obr-intro__arrow--under {
	width: min(320px, 60%);
	height: 90px;
	left: 50%;
	bottom: -4.25rem;
	transform: translateX(-50%) scaleX(-1);
	background-image: url("../images/arrows/arrow-5.png");
	opacity: 0.08;
}

/* No room to breathe on narrow viewports, remove rather than crowd */
@media (max-width: 1100px) {
	.obr-intro__arrow--left,
	.obr-intro__arrow--right {
		display: none;
	}
}

@media (max-width: 600px) {
	.obr-intro__arrow--under {
		display: none;
	}
}

/* Article grid */
.obr-articles__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.obr-articles__title {
	margin: 0;
	font-family: var(--obr-font-serif);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--obr-text-strong);
}

.obr-articles__more {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--obr-teal);
	text-decoration: none;
}

body.obr-site a.obr-articles__more {
	color: var(--obr-teal);
}

.obr-articles__more:hover,
.obr-articles__more:focus,
body.obr-site a.obr-articles__more:hover,
body.obr-site a.obr-articles__more:focus {
	color: var(--obr-teal-dark);
}

.obr-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
}

.obr-card {
	margin: 0;
}

.obr-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: var(--obr-cream-dark);
	border-radius: var(--obr-radius-md);
	overflow: hidden;
	border: 1px solid var(--obr-border);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.obr-card__link:hover,
.obr-card__link:focus {
	transform: translateY(-3px);
	box-shadow: var(--obr-shadow);
}

.obr-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.obr-card__image,
.obr-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.obr-card__link:hover .obr-card__image,
.obr-card__link:focus .obr-card__image {
	transform: scale(1.04);
}

.obr-card__placeholder {
	background: linear-gradient(145deg, #ddd0c0 0%, #c4b5a5 100%);
}

.obr-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.25rem 1.35rem 1.5rem;
}

.obr-card__title {
	margin: 0 0 0.65rem;
	font-family: var(--obr-font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--obr-text-strong);
}

.obr-card__excerpt {
	margin: 0 0 1rem;
	flex: 1;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--obr-text-muted);
}

.obr-card__read {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--obr-teal);
}

.obr-articles__empty {
	text-align: center;
	padding: 2rem;
	color: var(--obr-text-muted);
	background: var(--obr-cream-dark);
	border-radius: var(--obr-radius-md);
}

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

	.obr-hero__card {
		gap: 2rem;
		padding: 1.75rem;
	}
}

@media (max-width: 860px) {
	.obr-hero__card {
		grid-template-columns: 1fr;
	}

	.obr-hero__media {
		min-height: 240px;
	}

	.obr-hero__image,
	.obr-hero__placeholder {
		min-height: 240px;
	}
}

@media (max-width: 600px) {
	.obr-articles__grid {
		grid-template-columns: 1fr;
	}

	.obr-hero__card {
		padding: 1.25rem;
		border-radius: 22px;
	}

	.obr-articles__header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Newsletter signup styles live in global.css (used on home + posts). */
