/*
Theme Name: Daniel Kinder
Theme URI: https://danielkinder.co.uk/
Author: Built for Daniel Kinder
Author URI: https://danielkinder.co.uk/
Description: Custom WordPress block theme for danielkinder.co.uk — wedding and nightlife videographer, London and Essex. Dark, editorial, entity-first. No page builder, no jQuery, no icon fonts, no carousel libraries. Fluid by construction: every size uses clamp() and every grid uses auto-fit/auto-fill with minmax(), so there are no breakpoints.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daniel-kinder
Tags: blog, portfolio, one-column, block-patterns, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, template-parts, wide-blocks
*/

/* ==========================================================================
   Contents
   1.  Reset / root
   2.  Focus + skip link (accessibility)
   3.  Layout helpers (sections, grids, measure)
   4.  Type helpers (eyebrows, meta, prose)
   5.  Buttons + chips
   6.  Media placeholders
   7.  Header
   8.  Hero
   9.  Marquee
   10. Brand cards / services / work cards
   11. Where I work + FAQ
   12. Portfolio (filter + grid)
   13. Journal
   14. About (facts + timeline)
   15. Contact (form + panels)
   16. Single project / single post
   17. CTA band
   18. Footer
   19. Core block overrides
   20. Reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset / root
   -------------------------------------------------------------------------- */

:root {
	--dk-gutter: clamp(16px, 4vw, 40px);
	--dk-section: clamp(56px, 7vw, 88px);
	--dk-hairline: 1px solid #1e1e1e;
	--dk-stroke: 1.5px solid #cfff45;
	--dk-radius-media: 12px;
	--dk-radius-card: 14px;
	--dk-radius-card-lg: 16px;
	--dk-radius-field: 8px;
	--dk-radius-pill: 999px;
	--dk-tone-hero-body: #c8c8c2;
	--dk-tone-rule: #2a2a2a;
	--dk-tone-separator: #3a3a36;
	--dk-tone-placeholder-note: #595953;
	--dk-transition: 170ms ease;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	/* `clip` rather than `hidden`: hidden would turn the body into a scroll
	   container and break the sticky header. */
	overflow-x: clip;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@supports not (overflow: clip) {
	body {
		overflow-x: hidden;
	}
}

/* Header, main and footer supply their own padding, so the root block gap must
   not add space between them. */
.wp-site-blocks > * {
	margin-block: 0;
}

::selection {
	background: #cfff45;
	color: #0a0a0a;
}

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

/* Every image and video slot in the design has a fixed ratio, so reserving the
   box keeps CLS at zero even before the asset loads. */
img[width][height] {
	height: auto;
}

a {
	transition: color var(--dk-transition), border-color var(--dk-transition), background-color var(--dk-transition), opacity var(--dk-transition);
}

/* Deterministic vertical rhythm.
   Every margin in this design is stated explicitly, either in a class below or
   as a block attribute in a pattern. Zeroing the browser defaults here means
   Gutenberg's generated flow-layout margins never have to be fought. */
p {
	margin-block: 0;
}

.wp-block-heading,
h1, h2, h3, h4, h5, h6 {
	margin-block: 0;
}

/* Our own grid / flex containers manage spacing with `gap`, so core's
   flow-layout child margins must not stack on top of it. Two classes beats
   Gutenberg's single-class `.wp-container-… > * + *` rule. */
.wp-block-group.dk-grid > *,
.wp-block-group.dk-split > *,
.wp-block-group.dk-stack > *,
.wp-block-group.dk-hero__grid > *,
.wp-block-group.dk-form > *,
.wp-block-group.dk-form__pair > *,
.wp-block-group.dk-footer__cols > *,
.wp-block-group.dk-linklist > *,
.wp-block-group.dk-timeline > *,
.wp-block-group.dk-featured > *,
.wp-block-group.dk-direct > *,
.wp-block-group.dk-facts > * {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   2. Focus + skip link (accessibility)
   The prototype does not style focus at all. Every interactive element gets a
   visible 2px accent ring with a 2px offset.
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid #cfff45;
	outline-offset: 2px;
	border-radius: 2px;
}

.dk-pill:focus-visible,
.dk-chip:focus-visible,
.dk-cta__circle:focus-visible,
.dk-newsletter__submit:focus-visible,
.dk-form__submit:focus-visible {
	border-radius: var(--dk-radius-pill);
}

.dk-input:focus-visible,
.dk-select:focus-visible,
.dk-textarea:focus-visible {
	border-radius: var(--dk-radius-field);
}

/* Forced-colours users keep a ring too. */
@media (forced-colors: active) {
	:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
		outline-color: Highlight;
	}
}

.skip-link,
.skip-link.screen-reader-text {
	background: #cfff45;
	color: #0a0a0a;
	font-family: Archivo, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: var(--dk-radius-pill);
	left: var(--dk-gutter);
	top: 12px;
	z-index: 100000;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	position: absolute;
	display: block;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.dk-section {
	padding-block: var(--dk-section);
	padding-inline: var(--dk-gutter);
}

.dk-section--tall {
	padding-block: clamp(64px, 8vw, 96px);
}

.dk-section--top {
	padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
}

.dk-section--flush-top {
	padding-block: 0 var(--dk-section);
	padding-inline: var(--dk-gutter);
}

.dk-rule-top {
	border-top: var(--dk-hairline);
}

.dk-rule-bottom {
	border-bottom: var(--dk-hairline);
}

/* Two-column "label + content" split used by Two sides and What I do. */
.dk-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: clamp(28px, 4vw, 56px);
}

.dk-split--start {
	align-items: start;
}

/* Generic fluid grids. The minmax() minimums come straight from the spec; each
   is wrapped in min(…, 100%) so a track can never grow wider than its container
   on a very narrow viewport. Behaviour is identical at 390px and above — this
   only removes the horizontal scrollbar below it. Still no media queries. */
.dk-grid {
	display: grid;
}

.dk-grid--brands {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.dk-grid--services {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 40px clamp(28px, 4vw, 56px);
}

.dk-grid--work {
	grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
	gap: 22px;
}

.dk-grid--portfolio {
	grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
	gap: 28px;
}

.dk-grid--posts {
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 28px;
}

.dk-grid--links {
	grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
	gap: 12px 22px;
	align-content: start;
}

.dk-grid--faq {
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: clamp(24px, 3vw, 44px);
}

.dk-grid--two {
	grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
	gap: clamp(36px, 5vw, 64px);
}

.dk-grid--start {
	align-items: start;
}

.dk-grid--two-wide {
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: clamp(28px, 4vw, 44px);
	align-items: center;
}

.dk-grid--footer {
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: clamp(32px, 4vw, 48px);
}

.dk-stack {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.dk-centre {
	text-align: center;
}

.dk-centre-block {
	margin-inline: auto;
}

/* Measure caps. */
.dk-measure {
	max-width: 62ch;
}

.dk-measure--tight {
	max-width: 46ch;
}

.dk-measure--52 {
	max-width: 52ch;
}

.dk-measure--56 {
	max-width: 56ch;
}

.dk-measure--44 {
	max-width: 44ch;
}

.dk-measure--70 {
	max-width: 70ch;
}

.dk-measure--headline {
	max-width: 26ch;
}

.dk-measure--headline-tight {
	max-width: 15ch;
}

.dk-baseline-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */

.dk-eyebrow {
	font-size: 12.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a8a84;
	margin: 0;
	line-height: 1.4;
}

.dk-eyebrow--accent {
	color: #cfff45;
}

.dk-eyebrow--dotted {
	display: flex;
	align-items: center;
	gap: 11px;
}

.dk-eyebrow--dotted::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: var(--dk-radius-pill);
	background: #cfff45;
	display: inline-block;
	flex: none;
}

.dk-eyebrow--wide {
	font-size: 14px;
	letter-spacing: 0.16em;
}

.dk-eyebrow--category {
	font-size: 12px;
	letter-spacing: 0.16em;
	color: #cfff45;
}

.dk-meta {
	font-size: 13.5px;
	color: #8a8a84;
	margin: 0;
	line-height: 1.5;
}

.dk-meta--lg {
	font-size: 14px;
}

.dk-balance {
	text-wrap: balance;
}

.dk-pretty {
	text-wrap: pretty;
}

.dk-accent {
	color: #cfff45;
}

.dk-lede {
	font-size: clamp(16px, 1.7vw, 18.5px);
	line-height: 1.55;
	color: var(--dk-tone-hero-body);
	text-wrap: pretty;
}

/* Inline links inside prose keep the design's accent hairline underline.
   The global link style is undecorated, so prose links need it back for
   contrast-independent affordance. */
.dk-prose a:not(.dk-pill),
.dk-inline-link {
	border-bottom: 1px solid #cfff45;
}

.dk-prose a:not(.dk-pill):hover,
.dk-inline-link:hover {
	color: #cfff45;
}

.dk-prose strong {
	color: #f4f4f1;
	font-weight: 600;
}

/* Long-form article body (Journal posts, project write-ups, location pages). */
.dk-prose {
	font-size: clamp(16px, 1.8vw, 17.5px);
	line-height: 1.7;
	color: #b8b8b2;
	max-width: 68ch;
}

/* The doubled selector is deliberate: two classes outrank Gutenberg's
   single-class flow-layout margin reset, so prose keeps its rhythm inside a
   Group block. */
.dk-prose > *,
.wp-block-group.dk-prose > * {
	margin-block: 0 1.15em;
}

.dk-prose > *:last-child,
.wp-block-group.dk-prose > *:last-child {
	margin-bottom: 0;
}

.dk-prose > h2 {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(24px, 3.4vw, 40px);
	line-height: 1.05;
	text-transform: uppercase;
	color: #f4f4f1;
	margin-block: 1.7em 0.5em;
}

.dk-prose > h3 {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: #f4f4f1;
	margin-block: 1.5em 0.4em;
}

.dk-prose > h4 {
	font-size: 17px;
	font-weight: 600;
	color: #f4f4f1;
	margin-block: 1.4em 0.4em;
}

.dk-prose ul,
.dk-prose ol {
	padding-left: 1.2em;
}

.dk-prose li {
	margin-bottom: 0.5em;
}

.dk-prose blockquote {
	border-left: 2px solid #cfff45;
	padding-left: 22px;
	margin-inline: 0;
	color: #f4f4f1;
}

.dk-prose img {
	border-radius: var(--dk-radius-media);
	border: var(--dk-hairline);
}

.dk-prose hr {
	border: 0;
	border-top: var(--dk-hairline);
	margin-block: 2em;
}

/* --------------------------------------------------------------------------
   5. Buttons + chips
   -------------------------------------------------------------------------- */

.dk-pill,
.wp-block-button__link.dk-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #cfff45;
	color: #0a0a0a;
	border: var(--dk-stroke);
	font-family: Archivo, Helvetica, Arial, sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	padding: 15px 30px;
	border-radius: var(--dk-radius-pill);
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
}

.dk-pill:hover,
.dk-pill:focus {
	background: #f4f4f1;
	color: #0a0a0a;
}

.dk-pill--sm {
	font-size: 13.5px;
	padding: 11px 22px;
}

.dk-pill--outline {
	background: transparent;
	color: #f4f4f1;
	font-weight: 400;
}

.dk-pill--outline:hover,
.dk-pill--outline:focus {
	background: #cfff45;
	color: #0a0a0a;
}

.dk-link-accent {
	font-size: 14px;
	color: #cfff45;
	font-weight: 600;
	white-space: nowrap;
}

.dk-link-accent:hover {
	color: #f4f4f1;
}

/* Filter chips — server-rendered links so they work with JavaScript off. */
.dk-filter {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dk-chip {
	display: inline-flex;
	align-items: center;
	background: transparent;
	color: #b8b8b2;
	border: var(--dk-stroke);
	font-family: Archivo, Helvetica, Arial, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	padding: 11px 22px;
	border-radius: var(--dk-radius-pill);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
}

.dk-chip:hover {
	background: rgba(207, 255, 69, 0.12);
	color: #f4f4f1;
}

.dk-chip[aria-current="true"],
.dk-chip--active {
	background: #cfff45;
	color: #0a0a0a;
}

.dk-chip[aria-current="true"]:hover,
.dk-chip--active:hover {
	background: #f4f4f1;
	color: #0a0a0a;
}

/* --------------------------------------------------------------------------
   6. Media placeholders
   Reproduces the prototype's striped grey block with a monospace label. Every
   one of these is a stand-in for a real still or clip; replacing it with an
   Image block in the editor is all that is needed.
   -------------------------------------------------------------------------- */

.dk-ph {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	background: repeating-linear-gradient(115deg, #151515 0 14px, #101010 14px 28px);
	border: var(--dk-hairline);
	border-radius: var(--dk-radius-media);
	overflow: hidden;
	aspect-ratio: var(--dk-ph-ratio, 16 / 10);
}

.dk-ph--card {
	border-radius: var(--dk-radius-card);
}

.dk-ph--16x10 { --dk-ph-ratio: 16 / 10; }
.dk-ph--16x11 { --dk-ph-ratio: 16 / 11; }
.dk-ph--16x9  { --dk-ph-ratio: 16 / 9; }
.dk-ph--4x3   { --dk-ph-ratio: 4 / 3; }
.dk-ph--3x2   { --dk-ph-ratio: 3 / 2; }
.dk-ph--3x4   { --dk-ph-ratio: 3 / 4; }

.dk-ph--tight {
	padding: 16px;
}

.dk-ph__label,
p.dk-ph__label {
	font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", Consolas, monospace;
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6e6e68;
	margin: 0;
}

.dk-ph__label--sm {
	font-size: 10.5px;
}

/* Media wrapper used by the [dk_media] shortcode so real images and
   placeholders occupy exactly the same box. */
.dk-media {
	display: block;
	position: relative;
	overflow: hidden;
	border: var(--dk-hairline);
	border-radius: var(--dk-radius-media);
	background: repeating-linear-gradient(115deg, #151515 0 14px, #101010 14px 28px);
	aspect-ratio: var(--dk-ph-ratio, 16 / 10);
}

.dk-media--card {
	border-radius: var(--dk-radius-card);
}

.dk-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dk-media__label {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 20px;
	font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", Consolas, monospace;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6e6e68;
	margin: 0;
}

.dk-media--tight .dk-media__label {
	padding: 16px;
	font-size: 10.5px;
}

.dk-media-link {
	display: block;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.dk-header {
	position: sticky;
	/* Sits below the admin bar when one is present, flush to 0 otherwise. */
	top: var(--wp-admin--admin-bar--position-offset, 0px);
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	padding: 16px var(--dk-gutter);
	background: rgba(10, 10, 10, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: var(--dk-hairline);
}

/* Browsers without backdrop-filter get a solid bar rather than unreadable
   overlapping text. */
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
	.dk-header {
		background: #0a0a0a;
	}
}

.dk-header .wp-block-site-title a {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: 21px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

.dk-header .wp-block-site-title {
	margin: 0;
}

.dk-nav .wp-block-navigation__container {
	gap: 12px 24px;
	flex-wrap: wrap;
}

.dk-nav .wp-block-navigation-item__content {
	font-size: 14.5px;
	letter-spacing: 0.01em;
}

.dk-nav .wp-block-navigation-item__content:hover {
	color: #cfff45;
}

/* Active page marker. */
.dk-nav .current-menu-item > .wp-block-navigation-item__content,
.dk-nav [aria-current="page"] {
	color: #cfff45;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.dk-hero {
	position: relative;
	isolation: isolate;
	min-height: min(88vh, 860px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(80px, 12vw, 150px) var(--dk-gutter) clamp(36px, 5vw, 56px);
	border-bottom: var(--dk-hairline);
	overflow: hidden;
	/* Striped placeholder for the showreel. To ship the real thing, either set a
	   background image on this group in the editor (Styles → Background) or drop
	   a Video block with the class dk-hero__media as its first child. Both sit
	   under the overlay below. */
	background-color: #0a0a0a;
	background-image: repeating-linear-gradient(115deg, #151515 0 14px, #101010 14px 28px);
	background-size: cover;
	background-position: center;
}

/* Gradient scrim from the design, so the bottom-left copy stays legible over
   any still or clip. */
.dk-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.25) 40%, rgba(10, 10, 10, 0.92) 100%);
}

.dk-hero__media,
.dk-hero .wp-block-video,
.dk-hero .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}

.dk-hero__media video,
.dk-hero__media img,
.dk-hero .wp-block-video video,
.dk-hero .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

.dk-hero__content {
	position: relative;
	z-index: 2;
	max-width: 1180px;
	width: 100%;
}

.dk-hero__note {
	position: absolute;
	top: clamp(18px, 3vw, 28px);
	right: var(--dk-gutter);
	max-width: min(42ch, 60%);
	text-align: right;
	z-index: 3;
	font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dk-tone-placeholder-note);
	margin: 0;
}

.dk-hero h1 {
	font-size: clamp(31px, 8.6vw, 132px);
	line-height: 0.9;
	letter-spacing: -0.015em;
	max-width: 15ch;
	text-wrap: balance;
	margin: 0;
}

.dk-hero__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: clamp(24px, 3vw, 44px);
	align-items: end;
	margin-top: clamp(28px, 3.5vw, 44px);
}

.dk-hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

/* --------------------------------------------------------------------------
   9. Marquee
   -------------------------------------------------------------------------- */

.dk-marquee {
	overflow: hidden;
	border-bottom: var(--dk-hairline);
	padding-block: 26px;
}

.dk-marquee__viewport {
	display: flex;
	width: max-content;
	gap: 56px;
	animation: dk-marquee 34s linear infinite;
}

.dk-marquee__track {
	display: flex;
	gap: 56px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(18px, 2.6vw, 26px);
	text-transform: uppercase;
	color: #5c5c56;
	white-space: nowrap;
	align-items: center;
}

.dk-marquee__item {
	display: flex;
	align-items: center;
	gap: 56px;
}

.dk-marquee__item::after {
	content: "\2022";
	color: #cfff45;
}

/* Pause on hover and on keyboard focus anywhere inside the band. */
.dk-marquee:hover .dk-marquee__viewport,
.dk-marquee:focus-within .dk-marquee__viewport {
	animation-play-state: paused;
}

@keyframes dk-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. Brand cards / services / work cards
   -------------------------------------------------------------------------- */

.dk-brand-card {
	position: relative;
	display: block;
	border: var(--dk-hairline);
	border-radius: var(--dk-radius-card);
	overflow: hidden;
	text-decoration: none;
	transition: border-color var(--dk-transition);
}

.dk-brand-card:hover,
.dk-brand-card:focus-within {
	border-color: #cfff45;
}

/* One real link per card, stretched to make the whole card clickable. */
.dk-brand-card__domain a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.dk-brand-card__domain a {
	color: #cfff45;
	position: relative;
}

.dk-brand-card__domain a:hover {
	color: #f4f4f1;
}

.dk-ph--flush {
	border: 0;
	border-radius: 0;
}

.dk-brand-card__body {
	padding: 26px 24px 30px;
}

.dk-brand-card h2,
.dk-brand-card .dk-brand-card__title {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(26px, 3vw, 34px);
	text-transform: uppercase;
	line-height: 1;
	margin: 0 0 12px;
	color: #f4f4f1;
}

.dk-brand-card p {
	font-size: 16px;
	line-height: 1.55;
	color: #b8b8b2;
	margin: 0;
}

.dk-brand-card__domain {
	font-size: 13.5px;
	color: #cfff45;
	font-weight: 600;
	margin: 20px 0 0;
}

.dk-service h3,
.dk-service .dk-service__title {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(23px, 2.6vw, 28px);
	text-transform: uppercase;
	line-height: 1.1;
	margin: 0 0 10px;
	color: #f4f4f1;
}

.dk-service p {
	font-size: 16px;
	line-height: 1.55;
	color: #b8b8b2;
	margin: 0;
}

/* Selected work / project / post cards. */
.dk-card {
	display: block;
	text-decoration: none;
}

.dk-card:hover,
.dk-card:focus-visible {
	opacity: 0.85;
}

.dk-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	margin: 16px 0 5px;
	color: #f4f4f1;
}

.dk-card__meta {
	font-size: 13.5px;
	color: #8a8a84;
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. Where I work + FAQ
   -------------------------------------------------------------------------- */

.dk-linklist a {
	display: block;
	border-top: var(--dk-hairline);
	padding: 14px 0;
	font-size: 16px;
	text-decoration: none;
}

.dk-linklist a:hover {
	color: #cfff45;
}

.dk-faq__item {
	border-top: var(--dk-hairline);
	padding-top: 22px;
}

.dk-faq__q {
	font-family: Archivo, Helvetica, Arial, sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 10px;
	text-transform: none;
	letter-spacing: 0;
	color: #f4f4f1;
	text-wrap: pretty;
}

.dk-faq__a {
	font-size: 16px;
	line-height: 1.6;
	color: #b8b8b2;
	margin: 0;
	max-width: 56ch;
	text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   12. Portfolio
   -------------------------------------------------------------------------- */

.dk-portfolio-head h1 {
	font-size: clamp(40px, 13vw, 220px);
	line-height: 0.82;
	text-align: center;
	margin: 0;
}

.dk-portfolio-intro {
	margin-top: 44px;
	padding-top: 40px;
	border-top: var(--dk-hairline);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.dk-portfolio-intro h2 {
	font-size: clamp(28px, 3.4vw, 48px);
	line-height: 1.05;
	margin: 0 0 20px;
	max-width: 26ch;
}

.dk-project-card__title {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(21px, 2.4vw, 26px);
	text-transform: uppercase;
	line-height: 1.1;
	margin: 18px 0 6px;
	color: #f4f4f1;
}

.dk-project-card__meta {
	font-size: 14px;
	color: #8a8a84;
	margin: 0;
}

/* Live region wrapper so the progressively-enhanced filter announces results. */
.dk-results {
	scroll-margin-top: 120px;
}

.dk-results[aria-busy="true"] {
	opacity: 0.5;
	transition: opacity 120ms ease;
}

.dk-empty {
	font-size: 17px;
	color: #b8b8b2;
	text-align: center;
	margin: 0;
	padding-block: 40px;
}

/* --------------------------------------------------------------------------
   13. Journal
   -------------------------------------------------------------------------- */

.dk-page-head h1 {
	font-size: clamp(40px, 11vw, 180px);
	line-height: 0.86;
	margin: 0;
}

.dk-page-head--centre h1 {
	text-align: center;
}

.dk-page-lede {
	font-size: 18px;
	line-height: 1.6;
	color: #b8b8b2;
	max-width: 62ch;
	margin: 32px auto 0;
	text-align: center;
	text-wrap: pretty;
}

.dk-featured {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: clamp(28px, 4vw, 44px);
	align-items: center;
	text-decoration: none;
}

.dk-featured:hover,
.dk-featured:focus-visible {
	opacity: 0.88;
}

.dk-featured__title {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(26px, 3.6vw, 54px);
	line-height: 1.02;
	text-transform: uppercase;
	margin: 0 0 18px;
	color: #f4f4f1;
}

.dk-featured__excerpt {
	font-size: 17px;
	line-height: 1.6;
	color: #b8b8b2;
	margin: 0 0 20px;
	max-width: 56ch;
	text-wrap: pretty;
}

/* core/post-excerpt wraps the text in its own paragraph. */
.wp-block-post-excerpt__excerpt {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.wp-block-post-excerpt {
	margin: 0;
}

/* Card hover and keyboard focus dim the whole card, as in the design. */
.dk-grid--work > li:hover,
.dk-grid--portfolio > li:hover,
.dk-grid--posts > li:hover,
.dk-grid--work > li:focus-within,
.dk-grid--portfolio > li:focus-within,
.dk-grid--posts > li:focus-within {
	opacity: 0.85;
}

.dk-grid--work > li,
.dk-grid--portfolio > li,
.dk-grid--posts > li {
	transition: opacity var(--dk-transition);
}

.dk-post-card__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 10px;
	text-wrap: pretty;
	color: #f4f4f1;
}

.dk-post-card__excerpt {
	font-size: 14.5px;
	line-height: 1.5;
	color: #8a8a84;
	margin: 0;
}

.dk-post-card .dk-eyebrow--category {
	margin: 18px 0 10px;
}

/* --------------------------------------------------------------------------
   14. About
   -------------------------------------------------------------------------- */

.dk-about h2 {
	font-size: clamp(30px, 3.4vw, 48px);
	line-height: 1.05;
	margin: 0 0 28px;
	text-wrap: balance;
}

.dk-about__body {
	font-size: clamp(16px, 1.8vw, 17.5px);
	line-height: 1.65;
	color: #b8b8b2;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dk-about__body p {
	margin: 0;
	text-wrap: pretty;
}

.dk-panel {
	border: var(--dk-hairline);
	border-radius: var(--dk-radius-card);
	padding: 28px;
}

.dk-panel--roomy {
	padding: 30px;
}

/* Unmissable, on purpose: an outstanding content gap the client must fill in
   before that page is promoted. Delete the block and this styling goes with it. */
.dk-todo {
	border: var(--dk-stroke);
	background: rgba(207, 255, 69, 0.06);
}

.dk-todo .wp-block-list {
	font-size: 15.5px;
	line-height: 1.6;
	color: #f4f4f1;
	margin: 0;
	padding-left: 1.2em;
}

.dk-todo .wp-block-list li {
	margin-bottom: 8px;
}

.dk-todo .wp-block-list li:last-child {
	margin-bottom: 0;
}

.dk-facts {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px 24px;
	font-size: 15.5px;
}

.dk-facts dt {
	color: #8a8a84;
}

.dk-facts dd {
	margin: 0;
	color: #f4f4f1;
}

.dk-timeline {
	display: flex;
	flex-direction: column;
}

.dk-timeline__row {
	display: grid;
	grid-template-columns: minmax(70px, 150px) 1fr;
	gap: clamp(18px, 3vw, 32px);
	padding: 26px 0;
	border-top: var(--dk-hairline);
	align-items: baseline;
}

.dk-timeline__year {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: 26px;
	line-height: 1;
	color: #cfff45;
}

.dk-timeline__title {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 6px;
	color: #f4f4f1;
}

.dk-timeline__body {
	font-size: 15.5px;
	line-height: 1.55;
	color: #b8b8b2;
	margin: 0;
	max-width: 70ch;
	text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */

.dk-availability {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 32px 0 0;
	font-size: 15px;
	color: #b8b8b2;
}

.dk-availability::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: var(--dk-radius-pill);
	background: #cfff45;
	display: inline-block;
	flex: none;
}

.dk-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 520px;
	scroll-margin-top: 120px;
}

.dk-field__error {
	display: block;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
	color: #cfff45;
	font-weight: 500;
}

.dk-form__smallprint {
	font-size: 13px;
	color: #5c5c56;
	margin: 0;
	max-width: 46ch;
}

.dk-form__pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
	gap: 18px;
}

.dk-field {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8a8a84;
}

/* The label text and its required marker are one flex item, so the asterisk
   stays on the same line as the label rather than dropping below it. */
.dk-field__label {
	display: block;
}

.dk-field__req {
	color: #cfff45;
}

.dk-input,
.dk-select,
.dk-textarea {
	background: #111111;
	border: var(--dk-stroke);
	border-radius: var(--dk-radius-field);
	color: #f4f4f1;
	font-family: Archivo, Helvetica, Arial, sans-serif;
	font-size: 15.5px;
	line-height: 1.4;
	padding: 14px 16px;
	letter-spacing: 0;
	text-transform: none;
	width: 100%;
	box-sizing: border-box;
}

.dk-input::placeholder,
.dk-textarea::placeholder {
	color: #6e6e68;
}

.dk-textarea {
	resize: vertical;
	min-height: 132px;
}

/* Native select arrow replaced with an inline SVG data URI — no icon font. */
.dk-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23cfff45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
}

.dk-select option {
	background: #111111;
	color: #f4f4f1;
}

.dk-form__submit {
	align-self: flex-start;
	font-size: 15px;
	padding: 16px 30px;
}

/* Honeypot: kept in the DOM and in the accessibility tree's "presentation"
   sense but off-screen, never display:none, so bots still fill it in. */
.dk-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.dk-notice {
	border: var(--dk-stroke);
	border-radius: var(--dk-radius-field);
	padding: 16px 18px;
	font-size: 15.5px;
	line-height: 1.5;
	color: #f4f4f1;
	margin: 0;
	background: rgba(207, 255, 69, 0.07);
}

.dk-notice--error {
	border-color: #f4f4f1;
	background: rgba(244, 244, 241, 0.06);
}

.dk-notice strong {
	color: #cfff45;
	font-weight: 600;
}

.dk-direct {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 18px;
}

.dk-direct a {
	text-decoration: none;
}

.dk-direct > *:not(:last-child) {
	border-bottom: 1px solid var(--dk-tone-rule);
	padding-bottom: 12px;
}

.dk-panel p:last-child {
	margin-bottom: 0;
}

.dk-panel__body {
	font-size: 16px;
	line-height: 1.6;
	color: #b8b8b2;
	margin: 0;
}

/* --------------------------------------------------------------------------
   16. Single project / single post
   -------------------------------------------------------------------------- */

.dk-entry-head h1,
.dk-entry-head .wp-block-post-title {
	font-size: clamp(30px, 6vw, 84px);
	line-height: 0.92;
	margin: 0;
	text-wrap: balance;
}

.dk-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 14px;
	color: #8a8a84;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.dk-entry-meta li {
	margin: 0;
}

.dk-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border: var(--dk-hairline);
	border-radius: var(--dk-radius-card);
	overflow: hidden;
	background: #101010;
}

.dk-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dk-credits {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px 24px;
	font-size: 15.5px;
}

.dk-credits dt {
	color: #8a8a84;
}

.dk-credits dd {
	margin: 0;
	color: #f4f4f1;
}

.dk-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	justify-content: space-between;
	border-top: var(--dk-hairline);
	padding-top: 28px;
	font-size: 15px;
}

.wp-block-post-terms a,
.dk-terms a {
	color: #cfff45;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */

.dk-cta {
	border-top: var(--dk-hairline);
	padding: 110px var(--dk-gutter) 100px;
	text-align: center;
	position: relative;
	overflow: hidden;
	background: radial-gradient(70% 120% at 50% 45%, #191919 0%, #0a0a0a 68%);
}

.dk-cta__eyebrow {
	margin: 0 0 34px;
}

.dk-cta__stack {
	position: relative;
	display: inline-block;
	max-width: 1100px;
}

.dk-cta__stack h2 {
	font-size: clamp(30px, 8.4vw, 140px);
	line-height: 0.9;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

/* The circle deliberately overlaps the headline — this is the design, not a
   layout bug. The heading text stays intact in the DOM and the circle carries
   its own accessible label. */
.dk-cta__circle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: clamp(74px, 13vw, 132px);
	height: clamp(74px, 13vw, 132px);
	border-radius: var(--dk-radius-pill);
	background: #cfff45;
	color: #0a0a0a;
	border: var(--dk-stroke);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-shadow: 0 0 70px rgba(207, 255, 69, 0.32);
	text-decoration: none;
}

.dk-cta__circle:hover,
.dk-cta__circle:focus {
	background: #f4f4f1;
	color: #0a0a0a;
}

.dk-cta__circle-glyph {
	font-size: clamp(14px, 1.9vw, 19px);
	line-height: 1;
}

.dk-cta__circle-label {
	font-size: clamp(10px, 1.35vw, 13.5px);
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	line-height: 1;
}

.dk-cta__row {
	display: flex;
	justify-content: center;
	gap: clamp(14px, 3vw, 44px);
	flex-wrap: wrap;
	margin: 52px 0 0;
	font-size: clamp(14px, 1.6vw, 16.5px);
	color: #b8b8b2;
}

.dk-cta__row a,
.dk-cta__row span {
	white-space: nowrap;
}

.dk-cta__sep {
	color: var(--dk-tone-separator);
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.dk-footer {
	border-top: var(--dk-hairline);
	padding: 64px var(--dk-gutter) var(--dk-gutter);
}

.dk-footer__cols {
	padding-bottom: 48px;
}

.dk-footer__wordmark {
	font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(24px, 3.4vw, 48px);
	text-transform: uppercase;
	line-height: 1;
	margin: 0 0 18px;
	color: #f4f4f1;
}

.dk-footer__bio {
	font-size: 16px;
	line-height: 1.6;
	color: #8a8a84;
	margin: 0 0 32px;
	max-width: 44ch;
}

.dk-footer__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dk-footer__links li {
	margin: 0;
}

.dk-footer__links .dk-eyebrow {
	margin-bottom: 6px;
}

.dk-footer__nav .wp-block-navigation-item__content {
	font-size: 15px;
}

.dk-footer__nav .wp-block-navigation__container {
	gap: 12px;
}

.dk-footer__legal {
	border-top: var(--dk-hairline);
	padding-top: 28px;
	font-size: 13px;
	color: #5c5c56;
	margin: 0;
}

.dk-newsletter {
	display: flex;
	gap: 10px;
	max-width: 360px;
	align-items: flex-start;
}

.dk-newsletter__input {
	flex: 1;
	min-width: 0;
	background: #111111;
	border: var(--dk-stroke);
	border-radius: var(--dk-radius-pill);
	color: #f4f4f1;
	font-family: Archivo, Helvetica, Arial, sans-serif;
	font-size: 15px;
	padding: 13px 20px;
	box-sizing: border-box;
}

.dk-newsletter__input::placeholder {
	color: #6e6e68;
}

.dk-newsletter__submit {
	background: #cfff45;
	color: #0a0a0a;
	border: var(--dk-stroke);
	border-radius: var(--dk-radius-pill);
	width: 48px;
	height: 48px;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dk-newsletter__submit:hover,
.dk-newsletter__submit:focus {
	background: #f4f4f1;
}

.dk-newsletter__note {
	font-size: 13px;
	color: #5c5c56;
	margin: 10px 0 0;
	max-width: 44ch;
}

/* --------------------------------------------------------------------------
   19. Core block overrides
   -------------------------------------------------------------------------- */

/* Buttons: theme.json handles the filled lime default. These are the two
   variations registered in functions.php. */
.wp-block-button .wp-block-button__link {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--dk-transition), color var(--dk-transition);
}

.wp-block-button.is-style-dk-outline .wp-block-button__link {
	background-color: transparent;
	color: #f4f4f1;
	font-weight: 400;
	border: var(--dk-stroke);
}

.wp-block-button.is-style-dk-outline .wp-block-button__link:hover,
.wp-block-button.is-style-dk-outline .wp-block-button__link:focus {
	background-color: #cfff45;
	color: #0a0a0a;
}

.wp-block-button.is-style-dk-small .wp-block-button__link {
	font-size: 13.5px;
	padding: 11px 22px;
}

.wp-block-buttons {
	gap: 14px;
}

.wp-block-group.is-style-dk-panel {
	border: var(--dk-hairline);
	border-radius: var(--dk-radius-card);
	padding: 28px;
}

/* Navigation: no overlay menu is used, so the nav simply wraps. */
.wp-block-navigation {
	--navigation-layout-justification-setting: flex-start;
}

.wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	display: none !important;
}

/* Query loop grids reuse the design's grid helpers. */
.wp-block-post-template.dk-grid,
ul.wp-block-post-template.dk-grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
}

.wp-block-post-template.dk-grid > li {
	margin: 0;
}

.dk-filter-wrap {
	padding-inline: var(--dk-gutter);
	padding-bottom: var(--dk-gutter);
}

.wp-block-query-pagination {
	border-top: var(--dk-hairline);
	padding-top: 28px;
	margin-top: 40px;
	gap: 14px 24px;
	font-size: 15px;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers,
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	color: #cfff45;
}

.wp-block-post-featured-image {
	margin: 0;
	border: var(--dk-hairline);
	border-radius: var(--dk-radius-media);
	overflow: hidden;
}

.wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-post-excerpt__more-text {
	font-size: 14px;
}

/* Comments are not part of this design but must remain legible if enabled. */
.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea {
	background: #111111;
	border: var(--dk-stroke);
	border-radius: var(--dk-radius-field);
	color: #f4f4f1;
	padding: 12px 14px;
}

/* Search is not part of the design; keep it to a sensible measure on the 404
   and search templates rather than letting it span the full page. */
.wp-block-search {
	max-width: 480px;
}

.wp-block-search__input {
	background: #111111;
	border: var(--dk-stroke);
	border-radius: var(--dk-radius-pill);
	color: #f4f4f1;
	padding: 13px 20px;
}

.wp-block-search__button {
	background: #cfff45;
	color: #0a0a0a;
	border: var(--dk-stroke);
	border-radius: var(--dk-radius-pill);
	font-weight: 600;
	padding: 13px 24px;
}

/* Editor parity: the Site Editor canvas is dark, so keep placeholders visible. */
.editor-styles-wrapper .dk-ph,
.editor-styles-wrapper .dk-media {
	min-height: 80px;
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dk-marquee__viewport {
		animation: none;
		transform: none;
	}

	.dk-marquee {
		overflow-x: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
