:root {
	--dsr-ink: #251b18;
	--dsr-red: #8f2d27;
	--dsr-red-dark: #5f201d;
	--dsr-paper: #f7f1e5;
}

html { scroll-behavior: smooth; }
.dsr-body { margin: 0; background: #fbf8f1; color: var(--dsr-ink); font-family: "Sarabun", sans-serif; }
.dsr-skip { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-180%); border-radius: .75rem; background: var(--dsr-ink); color: #fff; font-size: 1rem; font-weight: 800; padding: .75rem 1rem; }
.dsr-skip:focus { transform: none; }

.dsr-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 20%, rgba(201, 138, 46, .18), transparent 34%), linear-gradient(135deg, #f9f3e8 0%, #f2e6d2 100%); border-bottom: 1px solid rgba(95, 32, 29, .13); }
.dsr-hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: repeating-linear-gradient(0deg, transparent 0 5px, rgba(95, 32, 29, .025) 5px 6px); pointer-events: none; }
.dsr-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; width: min(1120px, calc(100% - 2rem)); min-height: 430px; margin: 0 auto; padding: 4.5rem 0; }
.dsr-hero__copy { min-width: 0; max-width: 760px; }
.dsr-back { display: inline-flex; align-items: center; gap: .55rem; color: #765d50; font-size: 1rem; font-weight: 800; text-decoration: none; }
.dsr-back:hover { color: var(--dsr-red); }
.dsr-eyebrow { margin: 2.5rem 0 .6rem; color: var(--dsr-red); font-size: 1rem; font-weight: 900; letter-spacing: .035em; }
.dsr-hero h1 { margin: 0; font-family: "Thasadith", "Sarabun", sans-serif; font-size: clamp(4rem, 9vw, 7.6rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.dsr-lead { max-width: 680px; margin: 1.8rem 0 0; color: #584943; font-size: 1.25rem; line-height: 1.85; }
.dsr-hero__mark { display: grid; place-content: center; width: 220px; aspect-ratio: 1; border: 1px solid rgba(143, 45, 39, .22); border-radius: 50%; color: rgba(143, 45, 39, .62); font-family: "Thasadith", "Sarabun", sans-serif; transform: rotate(-7deg); }
.dsr-hero__mark span, .dsr-hero__mark strong { display: block; text-align: center; line-height: 1; }
.dsr-hero__mark span { font-size: 3.3rem; }
.dsr-hero__mark strong { margin-top: .3rem; font-size: 2rem; }

.dsr-library { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 6rem; }
.dsr-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.dsr-section-head p { margin: 0 0 .35rem; color: var(--dsr-red); font-size: 1rem; font-weight: 900; }
.dsr-section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.35; }
.dsr-section-head > span { flex: none; border: 1px solid #ddc9ab; border-radius: 999px; background: #fffaf1; color: #735943; font-size: .95rem; font-weight: 800; padding: .55rem .9rem; }
.dsr-grid { display: grid; gap: 2rem; }

.dsr-story { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-width: 0; overflow: hidden; border: 1px solid rgba(95, 32, 29, .13); border-radius: 2rem; background: linear-gradient(135deg, #fffdf8 0%, var(--dsr-paper) 100%); box-shadow: 0 24px 55px -38px rgba(66, 36, 24, .6); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.dsr-story:hover { transform: translateY(-4px); box-shadow: 0 28px 65px -35px rgba(66, 36, 24, .72); }
.dsr-story figure { margin: 0; min-height: 360px; overflow: hidden; background: #c6a879; }
.dsr-story figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dsr-story:hover figure img { transform: scale(1.025); }
.dsr-story__copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 3.5rem); }
.dsr-story__eyebrow { margin: 0; color: var(--dsr-red); font-size: .95rem; font-weight: 900; line-height: 1.65; }
.dsr-story h3 { margin: .7rem 0 0; font-family: "Thasadith", "Sarabun", sans-serif; font-size: clamp(2.5rem, 3.5vw, 3.25rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
.dsr-story__subtitle { margin: 1rem 0 0; color: var(--dsr-red); font-size: 1.25rem; font-weight: 900; line-height: 1.65; }
.dsr-story__deck { margin: .8rem 0 0; color: #62534c; font-size: 1rem; line-height: 1.8; }
.dsr-story__copy > span { display: inline-flex; align-items: center; align-self: flex-start; gap: .6rem; margin-top: 1.6rem; border-radius: .85rem; background: var(--dsr-red); box-shadow: 0 5px 0 var(--dsr-red-dark); color: #fff; font-size: 1rem; font-weight: 900; padding: .8rem 1.2rem; }
.dsr-empty { border: 1px dashed #d8c3a3; border-radius: 1.25rem; background: #fffaf1; font-size: 1rem; line-height: 1.7; padding: 2rem; }

.dsr-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1120px, calc(100% - 2rem)); margin: 0 auto; border-top: 1px solid #eadbc4; color: #7c6b62; font-size: .9rem; padding: 1.5rem 0 2.5rem; }
.dsr-footer a { color: var(--dsr-red); font-weight: 900; text-decoration: none; }
.dsr-footer p { margin: 0; }

@media (max-width: 780px) {
	.dsr-hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 3rem 0 3.5rem; }
	.dsr-hero__mark { display: none; }
	.dsr-eyebrow { margin-top: 2rem; }
	.dsr-lead { font-size: 1.08rem; }
	.dsr-story { grid-template-columns: 1fr; }
	.dsr-story figure { min-height: 0; aspect-ratio: 16 / 9; }
	.dsr-story__copy { padding: 1.6rem; }
	.dsr-story h3 { font-size: clamp(2.55rem, 12vw, 3.6rem); white-space: normal; }
	.dsr-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 960px) and (min-width: 781px) {
	.dsr-story { grid-template-columns: 1fr; }
	.dsr-story figure { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dsr-story, .dsr-story figure img { transition: none; }
}
