/* Will Yeoman — component styles. Colours, type scale and spacing live in theme.json. */

/* Labels, meta lines */
.wy-label,
.wy-label a,
.wy-label.wp-block-post-terms a {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.wy-meta,
.wy-meta a {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}
.wy-meta a { text-decoration: underline; text-underline-offset: 3px; }
.wy-standfirst {
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.45;
	color: var(--wp--preset--color--body);
}
.wy-summary { font-size: 1.125rem; line-height: 1.5; color: var(--wp--preset--color--body); }

/* Header */
.wy-topline {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}
.wy-topline a { color: var(--wp--preset--color--muted); }
.wy-masthead.wp-block-site-title { font-size: var(--wp--preset--font-size--huge); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.wy-masthead-small.wp-block-site-title { font-size: 2.25rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.wy-tagline {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.wy-navbar {
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	padding-top: 0.875rem;
	padding-bottom: 0.875rem;
}
.wy-hairline { border-bottom: 1px solid var(--wp--preset--color--ink); padding-bottom: 1.125rem; }

/* Section headings with a rule */
.wy-section-head {
	border-top: 1px solid var(--wp--preset--color--ink);
	padding-top: 1rem;
}
.wy-section-head .wp-block-heading { margin: 0; }
.wy-more { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); font-weight: 500; }

/* Cards and lists */
.wy-cards > li,
.wy-card { border-top: 1px solid var(--wp--preset--color--rule); padding-top: 1.25rem; }
.wy-list > li { border-bottom: 1px solid var(--wp--preset--color--rule); padding: 1.25rem 0; }
.wy-cards .wp-block-post-title,
.wy-list .wp-block-post-title { font-size: 1.625rem; line-height: 1.2; margin: 0; }
.wy-list .wp-block-post-title { font-size: 1.5rem; }
.wy-cards .wp-block-post-excerpt__excerpt,
.wy-list .wp-block-post-excerpt__excerpt { font-size: 1.0625rem; line-height: 1.5; color: var(--wp--preset--color--body); margin: 0; }
.wy-cards .wp-block-post-featured-image { margin-bottom: 1rem; }

/* Article */
.wy-byline {
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding: 1rem 0;
}
.has-drop-cap:not(:focus)::first-letter {
	font-size: 4.2em;
	line-height: 0.85;
	font-weight: 500;
	margin: 0.08em 0.1em 0 0;
}
.wy-source-panel {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	padding: 1.5rem 1.75rem;
}
.wy-source-panel p { margin: 0; }
.wy-source-panel a { color: var(--wp--preset--color--paper); }
.wy-source-panel a:hover { color: var(--wp--preset--color--bone); text-decoration: underline; text-underline-offset: 4px; }
.wy-source-panel .wy-panel-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ash);
}
.wy-source-panel .wy-panel-link { font-size: 1.5rem; }
.wy-excerpt-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.wy-tags a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--wp--preset--color--rule);
	margin: 0 0.25rem 0.5rem 0;
}
.wy-tags .wp-block-post-terms__separator { display: none; }

/* Dark: photography band, photography page, footer */
.wy-dark {
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--bone);
}
.wy-dark a { color: var(--wp--preset--color--bone); }
.wy-dark a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.wy-dark .wy-meta,
.wy-dark .wy-tagline,
.wy-dark .wy-topline,
.wy-dark figcaption,
.wy-dark .wp-element-caption,
.wy-dark .wy-muted { color: var(--wp--preset--color--ash); }
.wy-dark .wy-navbar,
.wy-dark .wy-hairline,
.wy-dark .wy-section-head { border-color: #3A3936; }
.wy-dark .wy-label { color: var(--wp--preset--color--ash); }
body:has(.wy-photography-page) { background: var(--wp--preset--color--night); }

/* Photo grids: uniform square crops */
.wy-photo-grid .wp-block-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.wy-photo-grid .wp-block-image { margin: 0; }
.wy-series-title { font-size: 1.625rem; }

/* About */
.wy-stone { background: var(--wp--preset--color--stone); border-top: 1px solid var(--wp--preset--color--rule); }
.wy-button-outline a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	padding: 0.75rem 1.375rem;
	border: 1px solid var(--wp--preset--color--ink);
}

/* Footer */
.wy-footer { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ash); }
.wy-footer .wp-block-site-title { font-family: var(--wp--preset--font-family--serif); font-size: 1.375rem; font-weight: 400; }
.wy-footer .wp-block-navigation { font-size: var(--wp--preset--font-size--small); font-weight: 400; }
.wy-footer .wp-block-navigation a { color: var(--wp--preset--color--ash); }

/* Phone */
@media (max-width: 600px) {
	.wy-navbar .wp-block-navigation__container { gap: 0.25rem 1.25rem; }
}
.wy-about { font-size: 1.375rem; line-height: 1.55; }
/* Crop focus for the Hanoi photographs (stall: the couple; street: the woman walking) */
.wy-photo-grid img[src*="hanoi-stall"] { object-position: 72% 50%; }
.wy-photo-grid img[src*="hanoi-street"] { object-position: 40% 50%; }
.wy-photo-grid img[src*="hanoi-aodai"] { object-position: 60% 50%; }

/* Grids: fill the row (auto-fit collapses empty columns), stack on phones */
.wy-cards.is-layout-grid,
.wy-photo-grid.is-layout-grid,
.wy-autofit.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(var(--wy-min, 18rem), 100%), 1fr)) !important;
}
.wy-autofit-wide.is-layout-grid { --wy-min: 26rem; }
.wy-dark .wy-standfirst { color: var(--wp--preset--color--ash); }
.wy-button-outline { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Newsletter (footer) */
.wy-newsletter { border-bottom: 1px solid #3A3936; }
.wy-newsletter .wy-newsletter-title { font-family: var(--wp--preset--font-family--serif); font-size: 1.75rem; font-weight: 400; color: var(--wp--preset--color--bone); margin: 0; }
.wy-newsletter .wy-newsletter-text { font-family: var(--wp--preset--font-family--serif); font-size: 1.125rem; font-style: italic; color: var(--wp--preset--color--ash); margin: 0; }
.wy-newsletter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; width: min(100%, 30rem); }
.wy-newsletter-form input[type="email"] {
	flex: 1 1 16rem;
	min-height: 2.875rem;
	padding: 0 1rem;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--bone);
	background: transparent;
	border: 1px solid #5C5A55;
	border-radius: 0;
}
.wy-newsletter-form input[type="email"]::placeholder { color: #8C887F; }
.wy-newsletter-form input[type="email"]:focus { outline: 2px solid var(--wp--preset--color--bone); outline-offset: 1px; border-color: var(--wp--preset--color--bone); }
.wy-newsletter-form button {
	min-height: 2.875rem;
	padding: 0 1.5rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--night);
	background: var(--wp--preset--color--bone);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
.wy-newsletter-form button:hover { background: #fff; }
.wy-newsletter-form button:focus-visible { outline: 2px solid var(--wp--preset--color--bone); outline-offset: 2px; }

/* Space above headings inside page and post text */
.wp-block-post-content > h2 { margin-top: 3rem; }
.wp-block-post-content > h3 { margin-top: 2rem; }

/* Homepage talks list (filled from the Talks & Workshops page) */
.wy-talks-feed { display: flex; flex-direction: column; gap: 1.5rem; }
.wy-talks-feed .wy-card > * { margin: 0; }
.wy-talks-feed .wy-card > * + * { margin-top: 0.5rem; }
.wy-talks-feed .wp-block-heading { font-size: 1.3125rem; line-height: 1.3; }
