/* Abhash — small additions to theme.json. Keep this file tiny. */

.is-style-label,
.wp-block-heading.is-style-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

/* Type refinements */
h1, h2, h3, .ab-hero-title { text-wrap: balance; font-optical-sizing: auto; }
p { text-wrap: pretty; }
.ab-hero-title { margin-top: 1.1rem !important; max-width: 14.5em; }
.ab-hero-title em { font-style: italic; letter-spacing: -0.02em; }
.ab-hero-lead { max-width: 34em; line-height: 1.55; }
.is-style-label { letter-spacing: .12em; }
.ab-header + * .is-style-label, h1.is-style-label { font-size: .75rem; }

/* Header */
.ab-header .wp-block-navigation a { text-decoration: none; }
.ab-lang { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; font-size: .875rem; }
.ab-lang a, .ab-lang span { padding: .45rem .85rem; text-decoration: none; min-height: 24px; line-height: 1.4; }
.ab-lang .is-current { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 999; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); padding: .75rem 1rem; }

/* Hero portrait: sits on the skyline rule, edges fade into the page */
.ab-portrait img {
	display: block;
	margin-inline: auto;
	width: 100%;
	max-width: 580px;
	height: auto;
	aspect-ratio: 1;
	mix-blend-mode: multiply;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.ab-avatar img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; mix-blend-mode: multiply; border: 1px solid var(--wp--preset--color--ink); }

/* Skyline line drawing */
.ab-skyline { border-top: 1px solid var(--wp--preset--color--ink); padding-top: .5rem; }
.ab-skyline svg { display: block; width: 100%; height: auto; }
.ab-skyline path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: ab-draw 3.2s ease-out both; }
.ab-skyline figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: .6rem; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
@keyframes ab-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Grids drawn with 1px gaps */
.ab-hairgrid { gap: 0 !important; padding: 1px 0 0 1px; }
.ab-hairgrid > * { margin: -1px 0 0 -1px !important; border: 1px solid var(--wp--preset--color--line); }
.ab-dark .ab-hairgrid, .ab-dark .ab-hairgrid > * { border-color: #34373C; }
.ab-dark h3 a { text-decoration: none; }
.ab-dark h3 a:hover { color: var(--wp--preset--color--accent-on-dark); }
.ab-logo { min-height: 96px; display: flex; align-items: center; justify-content: center; text-align: center; padding: .75rem; }
.ab-logo img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; }

/* Dark band */
.ab-dark a { color: var(--wp--preset--color--paper); }
.ab-dark .is-style-label { color: #A9A49A; }

/* Rules */
.ab-rule-top { border-top: 1px solid var(--wp--preset--color--ink); }
.ab-rule-top-soft { border-top: 1px solid var(--wp--preset--color--line); }

/* Lists */
.is-style-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.is-style-chips li { border: 1px solid currentColor; border-radius: 999px; padding: .3rem .85rem; font-size: .9375rem; }
.is-style-ruled { list-style: none; padding: 0; border-top: 1px solid var(--wp--preset--color--ink); }
.is-style-ruled li { padding: .85rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.is-style-ruled li strong { font-weight: 600; }
.ab-timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
.ab-timeline li > em:first-child { font-style: normal; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); padding-top: .2rem; }

/* FAQ */
.ab-faq .wp-block-details summary { font-family: var(--wp--preset--font-family--serif); font-size: 1.375rem; cursor: pointer; }
.ab-faq .wp-block-details > :not(summary) { color: var(--wp--preset--color--body); margin-top: .75rem; }

/* Cards */
.ab-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.ab-card-ph { aspect-ratio: 3 / 2; background: #DCD8CF; }

/* Contact form */
.ab-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.ab-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ab-form input, .ab-form select, .ab-form textarea { font: inherit; font-size: 1.125rem; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--ink); border: 0; border-bottom: 1px solid var(--wp--preset--color--ink); background: transparent; padding: .5rem 0; border-radius: 0; }
.ab-form input:focus-visible, .ab-form select:focus-visible, .ab-form textarea:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.ab-form .ab-full { grid-column: 1 / -1; }
.ab-form .ab-hp { position: absolute; left: -9999px; }
.ab-form button { justify-self: start; font: inherit; font-weight: 500; background: var(--wp--preset--color--accent); color: #fff; border: 0; border-radius: 999px; padding: 1rem 1.9rem; min-height: 52px; cursor: pointer; }
.ab-form button:hover { background: var(--wp--preset--color--ink); }
.ab-notice { padding: 1rem 1.25rem; border-left: 3px solid var(--wp--preset--color--accent); background: #fff; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 781px) {
	.ab-timeline li { grid-template-columns: 1fr; gap: .15rem; }
}

/* Facts list as two columns */
.ab-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 2rem; }
.ab-facts small { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ab-facts strong { font-weight: 500; }
.ab-plain { list-style: none; padding: 0; }
.ab-plain li { margin: .2rem 0; }
.ab-card-top { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 1rem; }
.ab-author { display: flex; gap: 1rem; align-items: center; margin-top: var(--wp--preset--spacing--60); padding-top: 1.25rem; }
.ab-author .ab-avatar img { width: 64px; height: 64px; }
.ab-author p { margin: 0; }
@media (max-width: 781px) {
	.ab-header { row-gap: .5rem; }
	.ab-header .wp-block-navigation__container { gap: .35rem 1.1rem !important; justify-content: flex-start; }
	.ab-header > .wp-block-group { width: 100%; }
}

/* Illustrations on white: blend into the paper colour */
.ab-cutout img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.ab-cutout--sm { max-width: 320px; margin-bottom: var(--wp--preset--spacing--40); }
.ab-cutout--walk { max-width: 300px; margin-inline: auto; }
.ab-scene { margin: var(--wp--preset--spacing--50) 0 0; }
.ab-scene img { display: block; width: 100%; height: auto; border: 1px solid var(--wp--preset--color--ink); mix-blend-mode: multiply; }
.ab-scene figcaption { margin-top: .5rem; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
@media (max-width: 781px) {
	.ab-cutout--sm { max-width: 240px; }
}
