/* ==========================================================================
   Savore Media — site.css
   Design A, "Ticket rail": warm paper, ink, one brick-red accent.
   The accent has one job: actions (buttons). Links stay ink.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root:root {
	--svm-paper: #F5EFE3;
	--svm-ticket: #FFFDF8;
	--svm-ink: #1F1B16;
	--svm-ink-soft: #4A4239;   /* 8.6:1 on paper */
	--svm-rule: #8A7F70;       /* borders and dashes only, never text */
	--svm-rule-soft: #D9CFBE;
	--svm-brick: #A63D24;      /* actions only. 6.2:1 with ticket-colored text */
	--svm-brick-dark: #8A3019;
	--svm-ok-bg: #E4EDDA;
	--svm-ok-ink: #24401A;
	--svm-err-bg: #F6DED8;
	--svm-err-ink: #7A2A17;

	--svm-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--svm-display: "Fraunces", Georgia, "Times New Roman", serif;
	--svm-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--svm-wrap: 1120px;
	--svm-measure: 68ch;
	--svm-gutter: 16px;

	/* Blocksy hooks: keep the parent theme in the same palette */
	--theme-palette-color-1: #A63D24;
	--theme-palette-color-2: #8A3019;
	--theme-palette-color-3: #4A4239;
	--theme-palette-color-4: #1F1B16;
	--theme-palette-color-5: #D9CFBE;
	--theme-palette-color-6: #EDE5D6;
	--theme-palette-color-7: #F5EFE3;
	--theme-palette-color-8: #FFFDF8;
	--theme-text-color: #1F1B16;
	--theme-headings-color: #1F1B16;
	--theme-link-initial-color: #1F1B16;
	--theme-link-hover-color: #1F1B16;
	--theme-font-family: var(--svm-serif);
	--theme-button-background-initial-color: #A63D24;
	--theme-button-background-hover-color: #8A3019;
	--theme-button-text-initial-color: #FFFDF8;
	--theme-button-text-hover-color: #FFFDF8;
}
@media (min-width: 700px) {
	:root:root { --svm-gutter: 28px; }
}

/* 2. Base ------------------------------------------------------------------ */
body {
	background: var(--svm-paper);
	color: var(--svm-ink);
	font-family: var(--svm-serif);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--svm-display);
	font-weight: 500;
	color: var(--svm-ink);
	letter-spacing: -0.01em;
	text-align: left;
}
h1, .entry-content h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); line-height: 1.08; margin: 0 0 0.5em; }
h2, .entry-content h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; margin: 0 0 0.5em; }
h3, .entry-content h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.25; margin: 0 0 0.4em; }

.entry-content p,
.entry-content li { max-width: var(--svm-measure); }
.entry-content p { margin: 0 0 1em; }

a { color: var(--svm-ink); text-decoration: underline; text-decoration-color: var(--svm-rule); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--svm-ink); text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.svm-btn:focus-visible {
	outline: 3px solid var(--svm-ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--svm-paper);
}

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

/* Blocksy page chrome */
.site-title, .site-title a, [data-id="logo"] .site-title a {
	font-family: var(--svm-display);
	font-weight: 600;
	font-size: 1.35rem;
	color: var(--svm-ink);
	text-decoration: none;
}
.ct-header [data-id="menu"] .menu > li > a,
.ct-header .menu > li > a {
	font-family: var(--svm-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ct-footer, footer.ct-footer {
	font-family: var(--svm-mono);
	font-size: 13px;
	border-top: 1px solid var(--svm-ink);
}

/* 3. Layout ---------------------------------------------------------------- */
/* Every page is a stack of full-width bands, each with one .svm-wrap inside. */
.entry-content > .svm-band,
.svm-band {
	padding: clamp(40px, 6vw, 88px) 0;
	margin: 0;
	max-width: none;
}
.svm-band + .svm-band { border-top: 1px solid var(--svm-rule-soft); }
.svm-band--ticket { background: var(--svm-ticket); }
.svm-band--tight { padding-top: clamp(24px, 3vw, 40px); }

.svm-wrap {
	max-width: var(--svm-wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--svm-gutter);
	padding-right: var(--svm-gutter);
	box-sizing: border-box;
}
.svm-wrap > * { margin-left: 0; margin-right: 0; }

/* Two columns that stack on phones */
.svm-cols.wp-block-columns { gap: clamp(24px, 4vw, 56px); margin: 0; align-items: flex-start; }
.svm-cols--center.wp-block-columns { align-items: center; }

/* 4. Type helpers ---------------------------------------------------------- */
.svm-eyebrow {
	font-family: var(--svm-mono);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--svm-ink-soft);
	margin: 0 0 14px;
}
.svm-lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--svm-ink-soft); }
.svm-small { font-size: 15px; color: var(--svm-ink-soft); }

/* 5. Buttons (the only place the accent shows up) --------------------------- */
.svm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.svm-btn,
.entry-content .svm-btn,
body .svm-form button[type="submit"] {
	display: inline-block;
	background: var(--svm-brick);
	color: var(--svm-ticket);
	font-family: var(--svm-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.2;
	padding: 14px 20px;
	min-height: 44px;
	box-sizing: border-box;
	border: 0;
	border-radius: 2px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.svm-btn:hover,
body .svm-form button[type="submit"]:hover { background: var(--svm-brick-dark); color: var(--svm-ticket); text-decoration: none; }
.svm-btn--quiet,
.entry-content .svm-btn--quiet {
	background: transparent;
	color: var(--svm-ink);
	box-shadow: inset 0 0 0 1px var(--svm-ink);
}
.svm-btn--quiet:hover { background: var(--svm-ink); color: var(--svm-paper); }

/* 6. Signature: the ticket rail ------------------------------------------- */
/* A 3px ink rail with order tickets clipped under it. */
.svm-rail {
	position: relative;
	border-top: 3px solid var(--svm-ink);
	padding-top: 28px;
	margin-top: 8px;
}
/* Some setups wrap group contents in an inner container; grid whichever holds the tickets. */
.svm-rail,
.svm-rail > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}
.svm-rail:has(> .wp-block-group__inner-container) { display: block; }
.svm-rail .svm-ticket { margin: 0; }
.svm-ticket {
	position: relative;
	background: var(--svm-ticket);
	border: 1px dashed var(--svm-rule);
	padding: 26px 24px 24px;
	box-sizing: border-box;
}
/* the clip that holds each ticket on the rail */
.svm-rail .svm-ticket::before {
	content: "";
	position: absolute;
	top: -29px;
	left: 28px;
	width: 26px;
	height: 18px;
	background: var(--svm-ink);
	border-radius: 0 0 3px 3px;
}
.svm-ticket .svm-ticket-meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--svm-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--svm-ink-soft);
	border-bottom: 1px dashed var(--svm-rule);
	padding-bottom: 10px;
	margin: 0 0 16px;
	max-width: none;
}
.svm-ticket h3 { margin-top: 0; }
.svm-ticket p:last-child { margin-bottom: 0; }
.svm-ticket .svm-brand-link {
	font-family: var(--svm-mono);
	font-size: 14px;
}

/* A single ticket used outside the rail (brand sections, CTA) */
.svm-ticket--wide { max-width: 760px; }
.svm-rail + p { margin-top: 20px; }
/* When tickets stack on phones, only the top one hangs from the rail. */
@media (max-width: 680px) {
	.svm-rail .svm-ticket:not(:first-child)::before { display: none; }
}

/* 7. Ruled lists and steps ------------------------------------------------- */
.svm-ruled,
.entry-content ul.svm-ruled {
	list-style: none;
	padding: 0;
	margin: 0 0 1.2em;
	border-top: 1px solid var(--svm-ink);
	max-width: 760px;
}
.svm-ruled li {
	padding: 14px 0;
	border-bottom: 1px dashed var(--svm-rule);
	margin: 0;
	max-width: none;
}
.svm-ruled li strong {
	display: block;
	font-family: var(--svm-display);
	font-weight: 500;
	font-size: 1.15rem;
	margin-bottom: 2px;
}

.svm-steps,
.entry-content ol.svm-steps {
	list-style: none;
	counter-reset: svm-step;
	padding: 0;
	margin: 0 0 1.2em;
	max-width: 760px;
}
.svm-steps li {
	counter-increment: svm-step;
	position: relative;
	padding: 0 0 18px 56px;
	margin: 0;
	max-width: none;
}
.svm-steps li::before {
	content: counter(svm-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 2px;
	font-family: var(--svm-mono);
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--svm-ink);
	padding: 2px 6px;
}

/* 8. Founder note ---------------------------------------------------------- */
.svm-note {
	border-left: 3px solid var(--svm-ink);
	border-radius: 0;
	padding: 4px 0 4px 24px;
	margin: 0;
	max-width: 720px;
}
.svm-note p { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; }
.svm-note .svm-signoff {
	font-family: var(--svm-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--svm-ink-soft);
	margin-top: 18px;
}

/* 9. Photos ---------------------------------------------------------------- */
/* width/height attributes on each <img> reserve space, so nothing shifts. */
.svm-photo { margin: 0; }
.svm-photo img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--svm-rule-soft);
	border-radius: 2px;
}
.svm-photo--32 img { aspect-ratio: 3 / 2; object-fit: cover; }
.svm-photo--45 img { aspect-ratio: 4 / 5; object-fit: cover; }
.svm-photo--169 img { aspect-ratio: 16 / 9; object-fit: cover; }
.svm-photo figcaption {
	font-family: var(--svm-mono);
	font-size: 12px;
	color: var(--svm-ink-soft);
	margin-top: 8px;
	text-align: left;
}

/* 10. Closing call to action ----------------------------------------------- */
.svm-cta {
	background: var(--svm-ticket);
	border: 1px dashed var(--svm-rule);
	border-top: 3px solid var(--svm-ink);
	padding: clamp(24px, 4vw, 40px);
	max-width: 760px;
	box-sizing: border-box;
}
.svm-cta h2 { margin-top: 0; }
.svm-cta p { color: var(--svm-ink); }

/* 11. Forms ---------------------------------------------------------------- */
.svm-form { max-width: 720px; margin: 8px 0 0; }
.svm-form p { max-width: none; margin: 0 0 18px; }
.svm-form-row { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 640px) {
	.svm-form-row { grid-template-columns: 1fr 1fr; }
}
.svm-form label {
	display: block;
	font-family: var(--svm-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
	color: var(--svm-ink);
}
.svm-form label span { color: var(--svm-ink-soft); }
body .svm-form input[type="text"],
body .svm-form input[type="email"],
body .svm-form select,
body .svm-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--svm-ticket);
	color: var(--svm-ink);
	border: 1px solid var(--svm-rule);
	border-radius: 2px;
	padding: 12px 14px;
	min-height: 48px;
	font-family: var(--svm-serif);
	font-size: 17px;
}
.svm-form textarea { min-height: 150px; resize: vertical; }
.svm-form input:focus-visible,
.svm-form select:focus-visible,
.svm-form textarea:focus-visible { border-color: var(--svm-ink); }
.svm-form ::placeholder { color: #756B5E; opacity: 1; } /* 5.1:1 on ticket */
.svm-form-fine { font-size: 14px; color: var(--svm-ink-soft); }
.svm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.svm-form-note {
	max-width: 720px;
	padding: 14px 16px;
	border-radius: 2px;
	font-size: 16px;
	margin: 0 0 20px;
}
.svm-form-ok { background: var(--svm-ok-bg); color: var(--svm-ok-ink); }
.svm-form-err { background: var(--svm-err-bg); color: var(--svm-err-ink); }

/* 12. Legal pages ---------------------------------------------------------- */
.svm-legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* 13. Small screens -------------------------------------------------------- */
@media (max-width: 781px) {
	.svm-cols.wp-block-columns { flex-wrap: wrap !important; }
	.svm-cols.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.svm-actions .svm-btn { flex: 1 1 auto; text-align: center; }
}

/* 14. Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
