/*
Theme Name: Island Retreat
Theme URI: https://islandretreat.casa
Author: Confessor Santos
Author URI: https://islandretreat.casa
Description: A bento-grid island stay journal. Left rail navigation, lilac accent, light body with a deep footer, horizontal list cards and a full-bleed article header.
Version: 1.0.0
Style ID: ec959c
Text Domain: islandretreat
Tags: blog, custom-menu, featured-images, translation-ready
*/

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
	--bg: #ffffff;
	--bg-alt: #f6f7f9;
	--bg-deep: #eceef2;
	--text: #1a1d21;
	--text-muted: #6b7280;
	--accent: #a98bd8;
	--border: rgba(0, 0, 0, .10);

	--accent-deep: #8a68c2;
	--accent-wash: #f2ecfb;
	--ink-dark: #14171c;
	--ink-dark-2: #1c2027;

	--spacing: 18px;
	--radius: 20px;
	--radius-sm: 12px;
	--rail: 236px;
	--wrap: 1140px;

	--font-head: -apple-system, "Segoe UI", Arial, "Helvetica Neue", sans-serif;
	--font-body: Georgia, "Times New Roman", serif;
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body.ec959c-body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	overflow-x: hidden;
}

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

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

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

p { margin: 0 0 var(--spacing); }

.ec959c-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink-dark);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
	border-radius: 0 0 8px 0;
}
.ec959c-skip:focus { left: 0; color: #fff; }

.ec959c-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 28px;
}

/* ---------------------------------------------------------------
   3. Left rail navigation
   --------------------------------------------------------------- */
.ec959c-rail {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--rail);
	background: var(--bg-alt);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	padding: 26px 20px 20px;
	z-index: 90;
	overflow-y: auto;
}

.ec959c-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 26px;
}

.ec959c-mark {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ec959c-brand-name {
	display: block;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text);
	line-height: 1.2;
}
.ec959c-brand-name em {
	font-style: normal;
	color: var(--accent-deep);
}
.ec959c-brand-tag {
	display: block;
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-top: 3px;
	line-height: 1.4;
}

.ec959c-rail-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-top: 1px solid var(--border);
	padding-top: 16px;
	margin-bottom: 20px;
}

.ec959c-rail-nav a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	font-family: var(--font-head);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text);
	padding: 8px 10px;
	border-radius: 10px;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.ec959c-rail-nav a:hover {
	background: var(--bg-deep);
	color: var(--accent-deep);
	transform: translateX(2px);
}
.ec959c-rail-nav a.ec959c-on {
	background: var(--accent);
	color: #fff;
}
.ec959c-rail-nav a.ec959c-on:hover { color: #fff; }

.ec959c-rail-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-family: var(--font-head);
	font-size: 10.5px;
	letter-spacing: .06em;
	color: var(--text-muted);
	line-height: 1.6;
}

.ec959c-search { display: flex; gap: 6px; margin-bottom: 12px; }
.ec959c-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--font-head);
	font-size: 11px;
	letter-spacing: .06em;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	color: var(--text);
}
.ec959c-search button,
.ec959c-search input[type="submit"] {
	font-family: var(--font-head);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: var(--ink-dark);
	color: #fff;
	cursor: pointer;
	transition: background .18s ease;
}
.ec959c-search button:hover,
.ec959c-search input[type="submit"]:hover { background: var(--accent-deep); }

/* ---------------------------------------------------------------
   4. Shell
   --------------------------------------------------------------- */
.ec959c-shell {
	margin-left: var(--rail);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ec959c-main { flex: 1 1 auto; }

.ec959c-sec { overflow: hidden; padding: 54px 0; }
.ec959c-sec--alt { background: var(--bg-alt); }
.ec959c-sec--tight { padding: 38px 0; }

.ec959c-sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 14px;
}
.ec959c-sec-head h2 {
	font-size: 15px;
	margin: 0;
	letter-spacing: .14em;
}
.ec959c-sec-head p {
	margin: 0;
	font-family: var(--font-head);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.ec959c-sec-head a.ec959c-more {
	font-family: var(--font-head);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-deep);
	white-space: nowrap;
}

/* ---------------------------------------------------------------
   5. Hero
   --------------------------------------------------------------- */
.ec959c-hero {
	position: relative;
	min-height: 62vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--ink-dark);
	isolation: isolate;
}

.ec959c-hero-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--ink-dark-2);
	z-index: 0;
}
.ec959c-hero-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 14, 18, .18) 0%, rgba(12, 14, 18, .52) 48%, rgba(12, 14, 18, .88) 100%);
}

.ec959c-hero-in {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 28px 54px;
	color: #fff;
}

.ec959c-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(169, 139, 216, .92);
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.ec959c-hero h1 {
	color: #fff;
	font-size: 46px;
	line-height: 1.16;
	letter-spacing: .06em;
	max-width: 20ch;
	margin-bottom: 16px;
	text-transform: uppercase;
}
.ec959c-hero p {
	color: rgba(255, 255, 255, .84);
	font-size: 18px;
	max-width: 56ch;
	margin-bottom: 24px;
}
.ec959c-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	background: #fff;
	color: var(--ink-dark);
	padding: 12px 20px;
	border-radius: 999px;
	transition: transform .18s ease, background .18s ease, color .18s ease;
}
.ec959c-hero-cta:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.ec959c-hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}
.ec959c-hero-facts span {
	font-family: var(--font-head);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .88);
	border: 1px solid rgba(255, 255, 255, .32);
	border-radius: 999px;
	padding: 5px 11px;
}

/* ---------------------------------------------------------------
   6. Card B — horizontal list card
   --------------------------------------------------------------- */
.ec959c-card {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ec959c-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -18px rgba(26, 29, 33, .38);
	border-color: rgba(169, 139, 216, .55);
}

.ec959c-thumb {
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-deep);
	aspect-ratio: 4 / 3;
}
.ec959c-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.ec959c-card:hover .ec959c-thumb img { transform: scale(1.05); }
.ec959c-thumb-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--bg-deep), var(--accent-wash));
}

.ec959c-card-body { min-width: 0; }

.ec959c-card-cat {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 9px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: var(--accent-wash);
	border-radius: 999px;
	padding: 4px 9px;
	margin-bottom: 8px;
}
.ec959c-card h3,
.ec959c-card h2 {
	font-size: 13.5px;
	letter-spacing: .06em;
	text-transform: none;
	line-height: 1.35;
	margin: 0 0 6px;
}
.ec959c-card h3 a,
.ec959c-card h2 a { color: var(--text); }
.ec959c-card h3 a:hover,
.ec959c-card h2 a:hover { color: var(--accent-deep); }

.ec959c-card p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ec959c-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	flex-wrap: wrap;
}
.ec959c-meta i {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--border);
	display: inline-block;
}
.ec959c-rt { display: inline-flex; align-items: center; gap: 5px; }
.ec959c-rt::before {
	content: "";
	width: 11px;
	height: 11px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	border-top-color: transparent;
	display: inline-block;
}

/* ---------------------------------------------------------------
   7. Bento grids
   --------------------------------------------------------------- */
.ec959c-bento {
	display: grid;
	gap: 16px;
}

.ec959c-bento--pick {
	grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
	grid-template-areas:
		"f1 f2"
		"f1 f3";
}
.ec959c-bento--pick > :nth-child(1) { grid-area: f1; }
.ec959c-bento--pick > :nth-child(2) { grid-area: f2; }
.ec959c-bento--pick > :nth-child(3) { grid-area: f3; }

.ec959c-card--lead {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	gap: 14px;
	background: var(--bg-alt);
}
.ec959c-card--lead .ec959c-thumb { aspect-ratio: 16 / 10; }
.ec959c-card--lead h2 {
	font-size: 22px;
	letter-spacing: .03em;
	line-height: 1.24;
	text-transform: none;
}
.ec959c-card--lead p {
	font-size: 15.5px;
	-webkit-line-clamp: 4;
}
.ec959c-card--lead .ec959c-card-body { padding: 0 6px 6px; }

.ec959c-bento--wall {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-areas:
		"w1 w1 w2 w3"
		"w4 w5 w5 w6";
}
.ec959c-bento--wall > :nth-child(1) { grid-area: w1; }
.ec959c-bento--wall > :nth-child(2) { grid-area: w2; }
.ec959c-bento--wall > :nth-child(3) { grid-area: w3; }
.ec959c-bento--wall > :nth-child(4) { grid-area: w4; }
.ec959c-bento--wall > :nth-child(5) { grid-area: w5; }
.ec959c-bento--wall > :nth-child(6) { grid-area: w6; }

.ec959c-wall-item {
	position: relative;
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-deep);
	aspect-ratio: 4 / 3;
}
.ec959c-wall-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.ec959c-wall-item:hover img { transform: scale(1.06); }
.ec959c-wall-item span {
	position: absolute;
	inset: auto 10px 10px 10px;
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(20, 23, 28, .64);
	backdrop-filter: blur(4px);
	border-radius: 999px;
	padding: 5px 10px;
	line-height: 1.3;
}

.ec959c-bento--coll {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"c1 c1 c2"
		"c3 c4 c2"
		"c5 c6 c6";
}
.ec959c-bento--coll > :nth-child(1) { grid-area: c1; }
.ec959c-bento--coll > :nth-child(2) { grid-area: c2; }
.ec959c-bento--coll > :nth-child(3) { grid-area: c3; }
.ec959c-bento--coll > :nth-child(4) { grid-area: c4; }
.ec959c-bento--coll > :nth-child(5) { grid-area: c5; }
.ec959c-bento--coll > :nth-child(6) { grid-area: c6; }

.ec959c-tile {
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ec959c-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px -22px rgba(26, 29, 33, .4);
	border-color: rgba(169, 139, 216, .55);
}
.ec959c-tile h3 {
	font-size: 12px;
	letter-spacing: .12em;
	margin-bottom: 4px;
}
.ec959c-tile h3 a { color: var(--text); }
.ec959c-tile h3 a:hover { color: var(--accent-deep); }
.ec959c-tile .ec959c-tile-count {
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent-deep);
	margin-bottom: 10px;
}
.ec959c-tile p {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.62;
	margin: 0 0 12px;
}
.ec959c-tile ul {
	list-style: none;
	margin: auto 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ec959c-tile li {
	font-size: 13px;
	color: var(--text);
	padding-left: 15px;
	position: relative;
	line-height: 1.5;
}
.ec959c-tile li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
}

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

/* Three-up grids use a narrower thumbnail so the text column stays readable */
.ec959c-grid-3 .ec959c-card {
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 12px;
	padding: 12px;
}
.ec959c-grid-3 .ec959c-card h3,
.ec959c-grid-3 .ec959c-card h2 { font-size: 12.5px; }
.ec959c-grid-3 .ec959c-card p {
	font-size: 13px;
	margin-bottom: 6px;
	-webkit-line-clamp: 2;
}

/* ---------------------------------------------------------------
   8. Newsletter
   --------------------------------------------------------------- */
.ec959c-sub {
	background: var(--bg-deep);
	border-radius: var(--radius);
	padding: 40px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	border: 1px solid var(--border);
}
.ec959c-sub h2 {
	font-size: 20px;
	margin-bottom: 10px;
}
.ec959c-sub p {
	font-size: 15.5px;
	color: var(--text-muted);
	margin: 0;
}
.ec959c-sub-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.ec959c-sub-form input[type="email"] {
	flex: 1 1 200px;
	min-width: 0;
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: .06em;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	color: var(--text);
}
.ec959c-sub-form button {
	font-family: var(--font-head);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}
.ec959c-sub-form button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.ec959c-sub-note {
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-top: 10px;
}

/* ---------------------------------------------------------------
   9. Footer — deep
   --------------------------------------------------------------- */
.ec959c-foot {
	background: var(--ink-dark);
	color: rgba(255, 255, 255, .72);
	padding: 54px 0 26px;
	font-size: 14.5px;
}
.ec959c-foot h3 {
	color: #fff;
	font-size: 11px;
	letter-spacing: .14em;
	margin-bottom: 14px;
}
.ec959c-foot-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
}
.ec959c-foot p { color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.7; }
.ec959c-foot a { color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.ec959c-foot a:hover { color: var(--accent); }
.ec959c-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ec959c-foot-brand {
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 10px;
}
.ec959c-foot-brand em { font-style: normal; color: var(--accent); }
.ec959c-foot-bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}

/* ---------------------------------------------------------------
   10. Archive / index
   --------------------------------------------------------------- */
.ec959c-head {
	padding: 46px 0 26px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 34px;
}
.ec959c-head h1 {
	font-size: 30px;
	letter-spacing: .1em;
	margin-bottom: 8px;
}
.ec959c-head p {
	color: var(--text-muted);
	font-size: 16px;
	max-width: 68ch;
	margin: 0;
}

.ec959c-list { display: flex; flex-direction: column; gap: 16px; }

.ec959c-pagepad { padding: 0 0 60px; }

.ec959c-pager {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 40px 0 0;
	font-family: var(--font-head);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ec959c-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	background: var(--bg);
}
.ec959c-pager .page-numbers.current,
.ec959c-pager .page-numbers:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ---------------------------------------------------------------
   11. Single — full-bleed feature header
   --------------------------------------------------------------- */
.ec959c-art-head {
	position: relative;
	min-height: 58vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--ink-dark);
	isolation: isolate;
}
.ec959c-art-head .ec959c-hero-img::after {
	background: linear-gradient(180deg, rgba(12, 14, 18, .12) 0%, rgba(12, 14, 18, .46) 42%, rgba(12, 14, 18, .9) 100%);
}
.ec959c-art-head-in {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 28px 46px;
	color: #fff;
}
.ec959c-art-head h1 {
	color: #fff;
	font-size: 38px;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: none;
	max-width: 26ch;
	margin-bottom: 14px;
}
.ec959c-art-head .ec959c-meta { color: rgba(255, 255, 255, .82); }
.ec959c-art-head .ec959c-card-cat {
	background: rgba(169, 139, 216, .92);
	color: #fff;
	margin-bottom: 14px;
}

.ec959c-art-body {
	max-width: 760px;
	margin: 0 auto;
	padding: 46px 28px 0;
}

.ec959c-prose { font-size: 17.5px; line-height: 1.78; }
.ec959c-prose p { margin: 0 0 var(--spacing); }
.ec959c-prose h2 {
	font-size: 18px;
	letter-spacing: .1em;
	margin: 40px 0 14px;
	text-transform: uppercase;
}
.ec959c-prose h3 {
	font-size: 14px;
	letter-spacing: .08em;
	margin: 28px 0 10px;
	text-transform: none;
}
.ec959c-prose ul, .ec959c-prose ol { margin: 0 0 var(--spacing); padding-left: 22px; }
.ec959c-prose li { margin-bottom: 8px; }
.ec959c-prose img { border-radius: var(--radius-sm); margin: 24px 0; }
.ec959c-prose blockquote {
	margin: 26px 0;
	padding: 18px 22px;
	background: var(--accent-wash);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic;
	color: var(--text);
}
.ec959c-prose blockquote p:last-child { margin: 0; }
.ec959c-prose a { text-decoration: underline; text-underline-offset: 2px; }

.ec959c-credit {
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-top: 26px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.ec959c-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
}
.ec959c-tags a {
	font-family: var(--font-head);
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 5px 11px;
}
.ec959c-tags a:hover { color: var(--accent-deep); border-color: var(--accent); }

.ec959c-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--bg-alt);
	border-radius: var(--radius);
	padding: 22px;
	margin: 34px 0 0;
}
.ec959c-author-box img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 58px;
}
.ec959c-author-box h4 {
	font-size: 11px;
	letter-spacing: .12em;
	margin: 0 0 6px;
}
.ec959c-author-box p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.ec959c-rel { padding: 46px 0 60px; }

/* ---------------------------------------------------------------
   12. Page / 404 / forms
   --------------------------------------------------------------- */
.ec959c-pagepad .ec959c-prose { max-width: 760px; margin: 0 auto; }

.ec959c-404 {
	text-align: center;
	padding: 90px 28px 100px;
	overflow: hidden;
}
.ec959c-404 .ec959c-404-code {
	font-family: var(--font-head);
	font-size: 90px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--accent);
	line-height: 1;
	margin-bottom: 14px;
}
.ec959c-404 h1 { font-size: 20px; margin-bottom: 12px; }
.ec959c-404 p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 24px; }

input, textarea, select, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------
   13. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
	:root { --rail: 200px; }
	.ec959c-card { grid-template-columns: 120px minmax(0, 1fr); }
	.ec959c-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ec959c-hero h1 { font-size: 38px; }
	.ec959c-art-head h1 { font-size: 30px; }
}

@media (max-width: 900px) {
	.ec959c-rail {
		position: static;
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid var(--border);
		padding: 16px 16px 10px;
	}
	.ec959c-rail-nav {
		flex-direction: row;
		overflow-x: auto;
		gap: 6px;
		padding-bottom: 8px;
		margin-bottom: 10px;
		scrollbar-width: none;
	}
	.ec959c-rail-nav::-webkit-scrollbar { display: none; }
	.ec959c-rail-nav a {
		white-space: nowrap;
		background: var(--bg-deep);
		font-size: 10px;
		padding: 7px 12px;
	}
	.ec959c-rail-foot { display: none; }
	.ec959c-shell { margin-left: 0; }
	.ec959c-hero { min-height: 52vh; }
	.ec959c-bento--pick,
	.ec959c-bento--coll {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: none;
	}
	.ec959c-bento--pick > *,
	.ec959c-bento--coll > * { grid-area: auto; }
	.ec959c-bento--wall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas: none;
	}
	.ec959c-bento--wall > * { grid-area: auto; }
	.ec959c-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.ec959c-sub { grid-template-columns: minmax(0, 1fr); padding: 26px; gap: 20px; }
	.ec959c-wrap, .ec959c-hero-in, .ec959c-art-head-in { padding-left: 18px; padding-right: 18px; }
	.ec959c-sec { padding: 38px 0; }
	.ec959c-hero h1 { font-size: 30px; }
	.ec959c-hero p { font-size: 16px; }
	.ec959c-art-head h1 { font-size: 24px; }
	.ec959c-art-body { padding: 30px 18px 0; }
	.ec959c-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.ec959c-head h1 { font-size: 24px; }
}

@media (max-width: 520px) {
	.ec959c-card { grid-template-columns: minmax(0, 1fr); }
	.ec959c-grid-3 .ec959c-card { grid-template-columns: minmax(0, 1fr); }
	.ec959c-card .ec959c-thumb { aspect-ratio: 16 / 9; }
	.ec959c-bento--wall { grid-template-columns: minmax(0, 1fr); }
	.ec959c-404 .ec959c-404-code { font-size: 64px; }
}
