:root {
	--lpwm-story-ink: #10211d;
	--lpwm-story-muted: #52625d;
	--lpwm-story-line: rgba(16, 33, 29, 0.16);
	--lpwm-story-accent: #b99143;
	--lpwm-story-paper: #fbfaf5;
}

.lpwm-story-shell {
	box-sizing: border-box;
	width: min(100%, 1120px);
	margin: 0 auto;
	padding: clamp(20px, 5vw, 64px) max(16px, env(safe-area-inset-left)) 80px;
	color: var(--lpwm-story-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lpwm-story-shell *, .lpwm-story-shell *::before, .lpwm-story-shell *::after { box-sizing: border-box; }
.lpwm-story-hero { max-width: 760px; margin-bottom: clamp(30px, 7vw, 72px); }
.lpwm-story-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: inherit; font-weight: 800; letter-spacing: .1em; text-decoration: none; }
.lpwm-story-eyebrow { margin: 18px 0 6px; color: #6d5528; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lpwm-story-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 8vw, 5.4rem); line-height: .98; }
.lpwm-story-hero > p:last-child { max-width: 68ch; color: var(--lpwm-story-muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.7; }

.lpwm-story-create, .lpwm-story-feed, .lpwm-public-story-list {
	margin-bottom: 32px;
	padding: clamp(20px, 4vw, 42px);
	border: 1px solid var(--lpwm-story-line);
	border-radius: 24px;
	background: var(--lpwm-story-paper);
	box-shadow: 0 18px 70px rgba(16, 33, 29, .07);
}

.lpwm-story-create h2, .lpwm-story-feed h2, .lpwm-public-story-list h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.lpwm-story-create form { display: grid; gap: 8px; }
.lpwm-story-create label { margin-top: 10px; font-weight: 750; }
.lpwm-story-create input, .lpwm-story-create select, .lpwm-story-create textarea, .lpwm-story-feed select {
	width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #9aa6a2; border-radius: 10px; background: #fff; color: inherit; font: inherit;
}
.lpwm-story-create textarea { min-height: 190px; resize: vertical; line-height: 1.55; }
.lpwm-story-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lpwm-story-form-row label { display: grid; gap: 8px; }
.lpwm-story-guidance { margin: 0; color: var(--lpwm-story-muted); font-size: .92rem; line-height: 1.55; }
.lpwm-story-field-error { min-height: 1.2em; margin: 0; color: #9b2323; font-weight: 650; }
.lpwm-story-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.lpwm-story-button, a.lpwm-story-button {
	display: inline-flex; width: fit-content; min-height: 44px; align-items: center; justify-content: center; margin-top: 14px; padding: 11px 20px; border: 1px solid var(--lpwm-story-ink); border-radius: 999px; background: var(--lpwm-story-ink); color: #fff; font: inherit; font-weight: 780; text-decoration: none; cursor: pointer;
}
.lpwm-story-button--secondary { background: transparent; color: var(--lpwm-story-ink); }
.lpwm-story-button:disabled { opacity: .55; cursor: wait; }
.lpwm-story-shell :focus-visible, .lpwm-story-preview :focus-visible, .lpwm-public-story-list :focus-visible { outline: 3px solid #0c73c9; outline-offset: 3px; }

.lpwm-story-form-status, .lpwm-story-feed-status { margin: 12px 0; padding: 12px 14px; border-left: 4px solid var(--lpwm-story-accent); background: rgba(185, 145, 67, .1); }
.lpwm-story-feed-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.lpwm-story-feed-header label { display: grid; min-width: min(100%, 280px); gap: 7px; font-weight: 700; }
.lpwm-story-list, .lpwm-story-preview__list, .lpwm-public-story-list > div { display: grid; gap: 18px; }
.lpwm-story-card, .lpwm-story-preview__card, .lpwm-public-story-list article { overflow-wrap: anywhere; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--lpwm-story-line); border-radius: 18px; background: #fff; }
.lpwm-story-card h3, .lpwm-story-preview__card h4, .lpwm-public-story-list h3 { margin: 12px 0 8px; font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.lpwm-story-card__body, .lpwm-story-preview__card > p, .lpwm-public-story-list article > p { max-width: 72ch; white-space: pre-line; line-height: 1.65; }
.lpwm-story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; color: var(--lpwm-story-muted); font-size: .9rem; }
.lpwm-story-meta a { color: inherit; font-weight: 760; }
.lpwm-story-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 3px 10px; border: 1px solid #317856; border-radius: 999px; color: #1d6545; font-size: .82rem; font-weight: 800; }
.lpwm-story-card__actions, .lpwm-story-preview__actions, .lpwm-story-owner-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lpwm-story-card__actions button, .lpwm-story-preview__actions a { min-height: 44px; padding: 9px 13px; border: 0; background: transparent; color: #274f44; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.lpwm-story-official { margin-top: 18px; padding: 18px; border-left: 4px solid var(--lpwm-story-accent); background: rgba(185, 145, 67, .09); }
.lpwm-story-official strong { display: block; margin-bottom: 7px; }
.lpwm-story-response-form { display: grid; gap: 8px; margin-top: 14px; }
.lpwm-story-response-form textarea { width: 100%; min-height: 100px; padding: 10px; }
.lpwm-account-stories ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lpwm-account-stories li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--lpwm-story-line); }
.lpwm-account-stories li small { display: block; color: var(--lpwm-story-muted); }
.lpwm-story-owner-actions form { margin: 0; }

@media (max-width: 680px) {
	.lpwm-story-form-row { grid-template-columns: 1fr; }
	.lpwm-story-feed-header, .lpwm-account-stories li { align-items: stretch; flex-direction: column; }
	.lpwm-story-feed-header label { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.lpwm-story-shell *, .lpwm-story-preview * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
	.lpwm-story-button, .lpwm-story-badge, .lpwm-story-create, .lpwm-story-feed, .lpwm-story-card { border: 1px solid ButtonText; }
}
