/*
 * Victorian Gazette Toolkit — Widget styles
 * Self-contained: defines its own design tokens so the widgets render in
 * full Victorian dress on ANY theme (including Hello Elementor / blank setups).
 * When used on the companion "Victorian Gazette" theme the palettes simply agree.
 */

.vgt-masthead,
.vgt-divider,
.vgt-btn-wrap,
.vgt-icon-wrap,
.vgt-dropcap,
.vgt-pullquote,
.vgt-engraving,
.vgt-card {
	--vgt-ink:      #221b12;
	--vgt-ink-soft: #4a3f30;
	--vgt-paper:    #f4ecd8;
	--vgt-rule:     #2b2118;
	--vgt-hairline: #b9a886;
	--vgt-accent:   #7a1f1f;

	--vgt-font-name: "UnifrakturMaguntia", "Old English Text MT", serif;
	--vgt-font-head: "Playfair Display", "Times New Roman", Georgia, serif;
	--vgt-font-body: "IM Fell English", "Old Standard TT", Georgia, serif;
	--vgt-font-meta: "Old Standard TT", Georgia, serif;

	box-sizing: border-box;
}

.vgt-masthead *,
.vgt-card * { box-sizing: border-box; }

/* ===================================================================== */
/*  Masthead                                                             */
/* ===================================================================== */
.vgt-masthead {
	text-align: center;
	color: var(--vgt-ink);
	padding: .4rem 0 .8rem;
}
.vgt-masthead .vgt-mast-date {
	font-family: var(--vgt-font-meta);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: .5rem;
}
.vgt-masthead .vgt-rule {
	border: 0;
	border-top: 3px double currentColor;
	margin: .35rem 0;
	opacity: .85;
}
.vgt-masthead .vgt-nameplate {
	font-family: var(--vgt-font-name);
	font-weight: 400;
	line-height: .95;
	font-size: clamp(2.6rem, 8vw, 5.5rem);
	margin: .2rem 0 .35rem;
	letter-spacing: .01em;
}
.vgt-masthead .vgt-dateline {
	font-family: var(--vgt-font-meta);
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.vgt-masthead .vgt-mid::before,
.vgt-masthead .vgt-mid::after {
	content: "\2766";
	margin: 0 .6em;
	color: var(--vgt-accent);
}

/* ===================================================================== */
/*  Divider ("smiles" rule)                                              */
/* ===================================================================== */
.vgt-divider {
	color: var(--vgt-ink);
	margin: 1.4rem auto;
	max-width: 320px;
	line-height: 0;
}
.vgt-divider svg,
.vgt-svg {
	display: inline-block;
	width: 100%;
	height: auto;
	fill: currentColor;
	vertical-align: middle;
}

/* ===================================================================== */
/*  Button                                                               */
/* ===================================================================== */
.vgt-btn-wrap { text-align: center; }
.vgt-btn {
	--vgt-btn-ink:  var(--vgt-ink);
	--vgt-btn-fill: var(--vgt-paper);
	display: inline-block;
	font-family: var(--vgt-font-meta);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--vgt-btn-ink);
	padding: .7em 1.6em;
	position: relative;
	transition: background-color .18s ease, color .18s ease;
}
.vgt-btn .vgt-btn-text { position: relative; z-index: 1; }

/* Ornate — double-rule frame with corner flourishes */
.vgt-btn-ornate {
	border: 1px solid var(--vgt-btn-ink);
	box-shadow: 0 0 0 3px var(--vgt-btn-fill), 0 0 0 4px var(--vgt-btn-ink);
	background: var(--vgt-btn-fill);
}
.vgt-btn-ornate::before,
.vgt-btn-ornate::after {
	content: "\2766";
	position: relative;
	color: var(--vgt-accent);
	font-size: .9em;
}
.vgt-btn-ornate::before { margin-right: .6em; }
.vgt-btn-ornate::after  { margin-left: .6em; }
.vgt-btn-ornate:hover { background: var(--vgt-btn-ink); color: var(--vgt-btn-fill); }

/* Filled — solid ink block */
.vgt-btn-filled {
	background: var(--vgt-btn-ink);
	color: var(--vgt-btn-fill);
	border: 1px solid var(--vgt-btn-ink);
}
.vgt-btn-filled:hover { background: var(--vgt-accent); border-color: var(--vgt-accent); color: #fff; }

/* Outline — single hairline */
.vgt-btn-outline {
	background: transparent;
	border: 2px solid var(--vgt-btn-ink);
}
.vgt-btn-outline:hover { background: var(--vgt-btn-ink); color: var(--vgt-btn-fill); }

/* ===================================================================== */
/*  Ornament icon ("smiles")                                             */
/* ===================================================================== */
.vgt-icon-wrap {
	color: var(--vgt-ink);
	line-height: 0;
}
.vgt-icon {
	display: inline-block;
	width: 64px;
	height: auto;
	fill: currentColor;
}

/* ===================================================================== */
/*  Drop cap                                                             */
/* ===================================================================== */
.vgt-dropcap {
	--vgt-cols: 1;
	font-family: var(--vgt-font-body);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--vgt-ink);
	column-count: var(--vgt-cols);
	column-gap: 2rem;
}
.vgt-dropcap p { margin: 0 0 1rem; }
.vgt-dropcap p:first-of-type::first-letter {
	font-family: var(--vgt-font-name);
	float: left;
	font-size: 3.6em;
	line-height: .72;
	padding: .06em .12em 0 0;
	margin-top: .04em;
	color: var(--vgt-accent);
}
@media (max-width: 600px) { .vgt-dropcap { column-count: 1 !important; } }

/* ===================================================================== */
/*  Pull quote                                                           */
/* ===================================================================== */
.vgt-pullquote {
	font-family: var(--vgt-font-head);
	font-style: italic;
	font-size: clamp(1.3rem, 3.2vw, 1.9rem);
	line-height: 1.4;
	text-align: center;
	color: var(--vgt-ink);
	border-top: 3px double currentColor;
	border-bottom: 3px double currentColor;
	padding: 1.4rem 1rem 1.2rem;
	margin: 1.6rem auto;
	max-width: 38ch;
	position: relative;
}
.vgt-pullquote p { margin: 0; }
.vgt-pq-mark {
	display: block;
	font-family: var(--vgt-font-name);
	font-size: 2.4em;
	line-height: .4;
	color: var(--vgt-accent);
	margin-bottom: .1em;
}
.vgt-pullquote cite {
	display: block;
	margin-top: .7rem;
	font-family: var(--vgt-font-meta);
	font-style: normal;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* ===================================================================== */
/*  Engraving figure                                                     */
/* ===================================================================== */
.vgt-engraving {
	margin: 1.2rem 0;
	text-align: center;
}
.vgt-engraving img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
.vgt-framed img,
.vgt-card-media.vgt-framed img,
.vgt-engraving.vgt-framed img {
	border: 1px solid var(--vgt-rule);
	box-shadow: 0 0 0 3px var(--vgt-paper), 0 0 0 4px var(--vgt-rule);
	background: var(--vgt-paper);
	padding: 4px;
}
.vgt-engraving figcaption {
	font-family: var(--vgt-font-meta);
	font-size: .78rem;
	font-style: italic;
	letter-spacing: .04em;
	color: var(--vgt-ink-soft);
	margin-top: .7rem;
}

/* ===================================================================== */
/*  Article card ("spost")                                              */
/* ===================================================================== */
.vgt-card {
	font-family: var(--vgt-font-body);
	color: var(--vgt-ink);
	border: 1px solid var(--vgt-hairline);
	background: var(--vgt-paper);
	padding: 1.1rem 1.2rem 1.3rem;
	text-align: center;
}
.vgt-card-media {
	margin: -.2rem 0 1rem;
	line-height: 0;
}
.vgt-card-media img { display: block; width: 100%; height: auto; }
.vgt-kicker {
	font-family: var(--vgt-font-meta);
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--vgt-accent);
	margin: 0 0 .4rem;
}
.vgt-card-title {
	font-family: var(--vgt-font-head);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.15;
	margin: 0 0 .5rem;
}
.vgt-card-title a { color: inherit; text-decoration: none; }
.vgt-card-title a:hover { color: var(--vgt-accent); }
.vgt-card-byline {
	font-family: var(--vgt-font-meta);
	font-size: .74rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--vgt-ink-soft);
	margin: 0 0 .7rem;
}
.vgt-card-byline::before,
.vgt-card-byline::after { content: "\2014"; margin: 0 .5em; opacity: .6; }
.vgt-card-excerpt {
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
}
