/* ==========================================================================
   Haugesund Kunstforening – theme styles
   A hanging plan drawn in pencil. Drafting paper is the wall; the pictures, not the sections, get
   frames: thin pencil lines with a hand-drawn wobble, a paper mat, a soft shadow. Wall text in light
   Geist, labels in Courier Prime, and air between everything. Beige, grey, ink and the logo's red.
   ========================================================================== */

:root {
	--bg: var(--wp--preset--color--papir, #E9E0CA);
	--sand: var(--wp--preset--color--sand, #D8C7A4);
	--mat: var(--wp--preset--color--kort, #F3EEE1);
	--board: var(--wp--preset--color--graa, #CFCBC2);
	--ink: var(--wp--preset--color--blekk, #2A2825);
	--pencil: #4A463F;
	--muted: #5E5950;
	--red: var(--wp--preset--color--rod, #D02027);
	--line: rgba(74, 70, 63, .55);
	--line-soft: rgba(74, 70, 63, .25);
	--rule: rgba(42, 40, 37, .07);
	--margin: clamp(1.25rem, 4vw, 4rem);
	--gutter: clamp(0.75rem, 1.4vw, 1.5rem);
	--step-small: var(--wp--preset--font-size--small);
	--step-body: var(--wp--preset--font-size--body);
	--step-lead: var(--wp--preset--font-size--lead);
	--step-head: var(--wp--preset--font-size--head);
	--step-display: var(--wp--preset--font-size--display);
	--section: clamp(6rem, 11vw, 11rem);
	--text: var(--wp--preset--font-family--geist);
	--mono: var(--wp--preset--font-family--mono);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
	--t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
	--paper-shadow: 0 1px 0 rgba(42, 40, 37, .06), 0 18px 40px -30px rgba(42, 40, 37, .45);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 40 3, 70 12, 110 6 S 170 4, 198 8' fill='none' stroke='%23D02027' stroke-width='3' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E");
	--wire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 L100 7 L200 60' fill='none' stroke='%234A463F' stroke-width='1'/%3E%3Ccircle cx='100' cy='6' r='2.6' fill='%234A463F'/%3E%3C/svg%3E");
}

/* The wall ------------------------------------------------------------------ */
html { scroll-behavior: smooth; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
body {
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; position: relative;
	background-color: var(--bg); background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 32px);
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .2; mix-blend-mode: multiply; }
.site-main { overflow-x: clip; }
.wp-site-blocks > * + * { margin-block-start: 0; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2 { font-weight: 300; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; hyphens: none; margin: 0; }
h3 { margin: 0; }
p { text-wrap: pretty; max-width: 62ch; }
p + p { margin-top: 0.9em; }
img { height: auto; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; color: inherit; }
a:hover { color: var(--red); }
strong, b { font-weight: 500; }

/* Pencil notes (typewriter) ------------------------------------------------- */
.hk-notat, p.is-style-notat, .hk-xy, .site-nav a, .site-header__aside, .hk-card__meta, .hk-row__kind, .hk-row__when, .hk-info__row dt, .site-footer__legal, .hk-facts, .hk-hero__tag, .site-footer__head, .hk-kontaktband__links small, .page-body .wp-block-image figcaption, .hk-hours__time, .hk-tidslinje__year, .hk-etikett-tekst, p.is-style-etikett, .hk-info__type, .hk-hours__heading, .hk-screen__bar {
	font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; line-height: 1.45; color: var(--pencil);
}
.hk-etikett-tekst, p.is-style-etikett, .hk-hero__tag, .site-footer__head, .hk-info__type, .hk-hours__heading, .hk-screen__bar { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.hk-etikett { font-family: var(--mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; max-width: none; }
.hk-marker { background: var(--marker) no-repeat left bottom / 100% .45em; padding-bottom: .12em; }
h2.is-style-marker { display: inline; background: var(--marker) no-repeat left bottom / 100% .35em; padding-bottom: .1em; }
.hk-xy { position: fixed; top: 1.1rem; left: 1.1rem; z-index: 60; margin: 0; display: grid; gap: .05em; font-size: .85rem; font-style: italic; color: var(--muted); pointer-events: none; }
.hk-xy b { font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .hk-xy { display: none; } }

/* The pencil frame: a thin drawn line, a mat, a soft paper shadow.
   The filtered lines sit UNDER the picture (z-index 0, picture 1): Chrome delays painting a lazy
   image when an SVG-filtered layer lies over it inside a reveal transition. ------------------- */
.hk-pencil, .wp-block-image.is-style-pencil, .wp-block-group.is-style-kort, .hk-info, .hk-kart__frame, .hk-single .kulby-details, .hk-single .kulby-checkout, .hk-kulby-grid .kulby-card__media {
	position: relative; background: var(--mat); padding: clamp(.7rem, 1.6vw, 1.1rem); box-shadow: var(--paper-shadow);
}
.hk-pencil::before, .wp-block-image.is-style-pencil::before, .wp-block-group.is-style-kort::before, .hk-info::before, .hk-kart__frame::before, .hk-single .kulby-details::before, .hk-single .kulby-checkout::before, .hk-kulby-grid .kulby-card__media::before {
	content: ""; position: absolute; inset: 0; border: 1.5px solid var(--line); filter: url(#hk-pencil); pointer-events: none; z-index: 0;
}
.hk-pencil::after, .wp-block-image.is-style-pencil::after, .hk-kart__frame::after, .hk-kulby-grid .kulby-card__media::after {
	content: ""; position: absolute; inset: calc(clamp(.7rem, 1.6vw, 1.1rem) - 3px); border: 1px solid var(--line-soft); filter: url(#hk-pencil); pointer-events: none; z-index: 0;
}
.hk-pencil > *, .wp-block-image.is-style-pencil > *, .wp-block-group.is-style-kort > *, .hk-info > *, .hk-kart__frame > *, .hk-single .kulby-details > *, .hk-single .kulby-checkout > *, .hk-kulby-grid .kulby-card__media > * { position: relative; z-index: 1; }
.hk-pencil img, .wp-block-image.is-style-pencil img { display: block; width: 100%; }
.wp-block-image.is-style-pencil figcaption { margin: .9rem 0 0; text-align: left; }
/* hung on a wire from one nail */
.hk-hung { margin-top: 4.5rem; }
.hk-hung { --wire-h: 3.6rem; }
.hk-hung > :first-child::before { content: none; }
.hk-wire { position: absolute; left: 50%; bottom: 100%; width: min(62%, 560px); height: var(--wire-h); transform: translateX(-50%); background: var(--wire) no-repeat center bottom / 100% 100%; pointer-events: none; }
.hk-seksjon, .wp-block-group.is-style-seksjon { padding: var(--section) var(--margin) !important; }
.page-body > .wp-block-group.is-style-seksjon, .page-body > .wp-block-group.hk-seksjon { margin-inline: calc(-1 * var(--margin)) !important; max-width: none !important; }
p.is-style-ingress { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; font-weight: 300; }
p.is-style-utsagn { font-size: clamp(1.4rem, 2.05vw, 2rem); line-height: 1.25; max-width: 30ch; font-weight: 300; }
ul.is-style-sjekk, .hk-sjekk { list-style: none; padding: 0; margin: 0; }
ul.is-style-sjekk li, .hk-sjekk li { position: relative; padding: .55em 0 .55em 1.9em; }
ul.is-style-sjekk li::before, .hk-sjekk li::before { content: ""; position: absolute; left: .2em; top: .95em; width: .55em; height: .9em; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* Buttons: a pencil box with the logo's red dot ------------------------------- */
.wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .7em; text-decoration: none; line-height: 1.1; cursor: pointer;
	border: 1.2px solid var(--pencil); background: var(--mat); color: var(--ink);
	font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .02em; padding: .6em 1.15em .65em .75em; border-radius: 2px;
	transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.wp-element-button::before, .wp-block-button__link::before { content: ""; width: .95em; height: .95em; border-radius: 50%; background: var(--red); flex: none; }
.wp-element-button:hover, .wp-block-button__link:hover { background: var(--sand); color: var(--ink); }
.wp-element-button:active, .wp-block-button__link:active { transform: translateY(1px); }
.is-style-marine .wp-block-button__link, .wp-element-button.is-style-marine { background: var(--ink); color: var(--mat); border-color: var(--ink); }
.is-style-marine .wp-block-button__link:hover, .wp-element-button.is-style-marine:hover { background: var(--pencil); color: #fff; }
.is-style-omriss .wp-block-button__link { background: transparent; }
.is-style-omriss .wp-block-button__link:hover { background: var(--mat); }

/* Header: a small plaque ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; padding: 1rem var(--margin) 0; pointer-events: none; }
.site-header__box { pointer-events: auto; width: max-content; max-width: 100%; margin: 0 auto; gap: clamp(1rem, 3vw, 2.5rem) !important; background: color-mix(in srgb, var(--mat) 92%, transparent); border: 1.2px solid var(--pencil); padding: .5rem .55rem .5rem 1rem; border-radius: 2px; backdrop-filter: blur(6px); }
.site-header__brand { line-height: 0; }
.site-header__brand img { width: clamp(130px, 13vw, 170px) !important; height: auto; }
.site-nav a { text-decoration: none; font-weight: 400; color: var(--ink); }
.site-nav a:hover { text-decoration: underline; color: var(--ink); }
.site-header__action .wp-block-button__link { padding: .45em .9em .5em .6em; white-space: nowrap; }
.site-header__aside { pointer-events: auto; position: absolute; right: var(--margin); top: 1.5rem; margin: 0; }
.site-header__aside a { text-decoration: none; color: var(--muted); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem var(--margin); background: var(--bg) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--text); font-weight: 300; font-size: clamp(2.2rem, 10vw, 4rem); letter-spacing: -.03em; }
@media (max-width: 1100px) { .site-header__aside { display: none; } }
@media (max-width: 760px) { .site-header__action { display: none; } .site-header__box { width: auto; } }

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero { padding: clamp(3rem, 7vw, 6rem) var(--margin) clamp(2rem, 5vw, 4rem); text-align: center; }
.page-hero__title { font-size: var(--step-display) !important; max-width: 16ch; margin-inline: auto !important; }
.page-hero__lede { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; margin: 1.25rem auto 0 !important; font-weight: 300; }
.page-hero .wp-block-buttons { margin-top: 2rem; justify-content: center; }
.page-body { padding-inline: var(--margin); padding-bottom: var(--section); }
.page-body > * { margin-left: 0 !important; }
.page-body h2 { margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: 1.25rem; max-width: 20ch; font-size: var(--step-head); }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 2.5rem; margin-bottom: .75rem; }
.page-body ul, .page-body ol { max-width: 62ch; padding-left: 1.2em; }
.page-body .wp-block-image { margin-block: 2.5rem; }
.page-body .wp-block-image figcaption { margin-top: .6rem; text-align: left; }
.page-body .alignwide { max-width: none !important; }
.page-body .alignfull { margin-inline: calc(-1 * var(--margin)) !important; max-width: none !important; width: auto !important; }

/* Hero: wall text, then the picture on its wire ------------------------------ */
.hk-hero { padding: clamp(2rem, 4vw, 3.5rem) var(--margin) clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "tag screen" "title screen" "support screen" "action screen" ". screen"; grid-template-rows: auto auto auto auto 1fr; column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hk-hero > * { max-width: 100%; min-width: 0; }
.hk-hero__tag { grid-area: tag; margin: 4.5rem 0 1.25rem; align-self: end; }
.hk-hero__title { grid-area: title; font-size: clamp(2.25rem, 3.4vw, 3.25rem); max-width: none; margin-top: 4.5rem; }
.hk-hero__tag + .hk-hero__title { margin-top: 0; }
.hk-hero__support { grid-area: support; font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; margin: 1.5rem 0 0; font-weight: 300; color: var(--ink); }
.hk-screen { grid-area: screen; width: 100%; margin: 0; text-align: left; }
.hk-screen__bar { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .7rem; min-width: 0; }
.hk-screen__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-screen__count { flex: none; }
.hk-screen__view { position: relative; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; cursor: pointer; }
.hk-screen__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 900ms var(--ease-soft); }
.hk-screen__slide.is-on { opacity: 1; }
.hk-screen__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-screen__corner { display: none; }
.hk-screen__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; }
.hk-screen__title { font-size: var(--step-lead); font-weight: 300; text-decoration: none; letter-spacing: -.01em; color: var(--ink); }
.hk-screen__title:hover { text-decoration: underline; color: var(--ink); }
.hk-screen__nav { display: flex; gap: .4rem; }
.hk-screen__nav button { font: inherit; font-family: var(--mono); background: transparent; border: 1.2px solid var(--pencil); color: var(--ink); width: 2.3rem; height: 2.3rem; cursor: pointer; border-radius: 2px; transition: background-color var(--t-hover); }
.hk-screen__nav button:hover { background: var(--sand); }
.hk-hero__action { grid-area: action; margin: 2.25rem 0 0; }
@media (max-width: 960px) {
	.hk-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tag" "title" "support" "screen" "action"; grid-template-rows: auto; padding-top: 2.5rem; }
	.hk-hero__tag { margin-top: 0; }
	.hk-hero__title { font-size: 11vw; margin-top: 0; max-width: none; }
	.hk-screen { margin-top: 2.5rem; }
	.hk-hero__action { margin-top: 2rem; }
	.hk-screen__view { aspect-ratio: 4 / 3; }
	.hk-screen__title { font-size: var(--step-body); font-weight: 400; }
	.hk-wire { display: none; }
	.hk-hung { margin-top: 2rem; }
}

@media (max-width: 720px) {
	.hk-program__cards, .hk-program__cards.is-naa { grid-template-columns: 1fr; }
}

/* Program: pictures hung on the wall ----------------------------------------- */
.hk-program { padding: var(--section) var(--margin) 0; }
.hk-program__heading { font-size: var(--step-head); max-width: 16ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hk-program__intro { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; margin: -1rem 0 2.5rem; font-weight: 300; }
.hk-program__group { margin: clamp(3.5rem, 6vw, 5rem) 0 1.5rem; font-size: var(--step-lead); font-weight: 300; letter-spacing: -.01em; }
.hk-program__heading + .hk-program__group, .hk-program__intro + .hk-program__group { margin-top: 0; }
.hk-program__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.hk-program__cards.is-naa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hk-card { margin: 0; min-width: 0; }
.hk-card__link { display: block; text-decoration: none; color: inherit; }
.hk-card__media { display: block; transition: transform var(--t-ui) var(--ease-out); }
.hk-card__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hk-program__cards.is-naa .hk-card__media img { aspect-ratio: 3 / 2; }
.hk-card__link:hover .hk-card__media { transform: translateY(-3px); }
.hk-card__title { font-size: var(--step-lead); font-weight: 300; letter-spacing: -.01em; line-height: 1.2; margin: 1.1rem 0 .3rem; max-width: 24ch; }
.hk-card__meta { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; }
.hk-card.is-naa .hk-card__meta { color: var(--red); }
.hk-card__excerpt { margin: 0; font-size: var(--step-body); line-height: 1.45; max-width: 36ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hk-program__table { display: grid; }
.hk-row { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(10rem, max-content) minmax(8rem, max-content); column-gap: var(--gutter); align-items: baseline; padding: .8rem 0; border-bottom: 1px dashed var(--line-soft); text-decoration: none; color: inherit; }
.hk-row__title { font-size: var(--step-lead); font-weight: 300; }
.hk-row__kind, .hk-row__when { font-size: .8125rem; letter-spacing: .1em; }
.hk-row__when { text-align: right; }
.hk-row:hover .hk-row__title { text-decoration: underline; }
.hk-program__more { margin: 3rem 0 0; }
.hk-program__empty { font-size: var(--step-lead); max-width: 36ch; font-weight: 300; }
.hk-plakater { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) var(--gutter); }
.hk-plakat__link { display: block; text-decoration: none; color: inherit; }
.hk-plakat__media { display: block; }
.hk-plakat__media img, .hk-plakat__noimg { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hk-plakat__title { display: block; margin: 1rem 0 .25rem; font-size: var(--step-body); font-weight: 400; line-height: 1.2; }
.hk-plakat__when { display: block; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) {
	.hk-program__cards, .hk-program__cards.is-naa { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
	.hk-row { grid-template-columns: 1fr; grid-template-areas: "title" "kind" "when"; row-gap: .2rem; }
	.hk-row__title { grid-area: title; } .hk-row__kind { grid-area: kind; } .hk-row__when { grid-area: when; text-align: left; }
	.hk-plakater { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Single arrangement ------------------------------------------------------ */
.hk-single__head { padding: clamp(2.5rem, 5vw, 4rem) var(--margin) 0; text-align: center; }
.hk-single__back { margin: 0 0 1.5rem; font-family: var(--mono); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; max-width: none; color: var(--muted); }
.hk-single__back a { text-decoration: none; }
.hk-single__back a::before { content: "← "; }
.hk-single__back a:hover { text-decoration: underline; }
.hk-single__title { font-size: var(--step-display) !important; max-width: 18ch; margin-inline: auto !important; }
.hk-single__title.is-long { font-size: clamp(2rem, 4.6vw, 4rem) !important; max-width: 26ch; }
.hk-single__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; padding: clamp(3rem, 7vw, 6rem) var(--margin) 0; }
.hk-single__media { grid-column: 1 / 8; margin: 0 !important; }
.hk-single__media img { aspect-ratio: 16 / 11; object-fit: cover; }
.hk-single__row .wp-block-hk-arrangement-info { grid-column: 9 / -1; }
.hk-single__content { padding: clamp(3rem, 7vw, 6rem) var(--margin) 0; }
.hk-single__content > * { margin-left: 0 !important; }
.hk-single__content p { max-width: 62ch; }
.hk-single__content h2 { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; margin: 2rem 0 .75rem; letter-spacing: -.01em; }
@media (max-width: 900px) { .hk-single__row { grid-template-columns: 1fr; } .hk-single__media, .hk-single__row .wp-block-hk-arrangement-info { grid-column: 1; } }
.hk-info { padding: 1.5rem; }
.hk-info__type { margin: 0 0 1rem; }
.hk-info__rows { margin: 0; display: grid; }
.hk-info__row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: var(--gutter); align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); }
.hk-info__row dt { text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; }
.hk-info__row dd { margin: 0; }
.hk-info__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin: 1.5rem 0 0; }
.hk-info__actions:empty { display: none; }
.hk-info--demo { color: var(--muted); }

/* Statement with portrait (about) ------------------------------------------ */
.wp-block-group.is-style-utsagn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.is-style-utsagn > .hk-etikett { grid-column: 1 / -1; }
.is-style-utsagn > .hk-facts { grid-column: 3 / -1; order: 3; margin: 0; max-width: none; display: flex; flex-wrap: wrap; gap: .4rem 2.5rem; }
.is-style-utsagn > .hk-facts span { display: block; }
.is-style-utsagn > .hk-utsagn { grid-column: 3 / -1; }
.hk-utsagn p { font-size: clamp(1.4rem, 2.05vw, 2rem); line-height: 1.28; max-width: none; font-weight: 300; }
.hk-utsagn p + p { margin-top: 1.2em; font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; }
.hk-utsagn .is-style-portrett, .hk-utsagn .wp-block-image.is-style-portrett { float: left; width: 4.4em; margin: .15em .8em .3em 0 !important; font-size: clamp(1.4rem, 2.05vw, 2rem); line-height: 1.28; background: var(--mat); padding: .22em; box-shadow: var(--paper-shadow); position: relative; }
.hk-utsagn .is-style-portrett::before { content: ""; position: absolute; inset: 0; border: 1.2px solid var(--line); filter: url(#hk-pencil); pointer-events: none; z-index: 0; }
.hk-utsagn .is-style-portrett img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; position: relative; z-index: 1; }
.hk-utsagn .wp-block-buttons { clear: both; margin-top: 2.5rem; }
@media (max-width: 720px) {
	.wp-block-group.is-style-utsagn { grid-template-columns: 1fr; }
	.is-style-utsagn > .hk-facts { grid-column: 1; }
	.is-style-utsagn > .hk-utsagn { grid-column: 1; }
	.hk-utsagn p { font-size: 1.375rem; }
	.hk-utsagn .is-style-portrett { width: 110px; font-size: 1.375rem; }
}

/* Membership: the certificate on its wire ------------------------------------ */
.hk-medlem { padding: var(--section) var(--margin) 0; }
.hk-medlem__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hk-medlem__heading { font-size: var(--step-display); max-width: 12ch; }
.hk-medlem__support { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; margin: 1.5rem 0 0; font-weight: 300; }
.hk-medlem__note { margin: 1.5rem 0 0; }
.hk-medlem__card { padding: clamp(1.75rem, 3vw, 2.5rem) !important; transform: rotate(-1deg); transition: transform var(--t-ui) var(--ease-out); }
.hk-medlem__card:hover { transform: rotate(0); }
.hk-medlem__cardtitle { margin: 0 0 .75rem; font-family: var(--text); font-size: var(--step-lead); font-weight: 300; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.hk-medlem__price { margin: 0 0 1.25rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.hk-medlem__amount { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.hk-medlem__perks { margin: 0 0 1.5rem; }
.hk-medlem__perks li { font-size: var(--step-body); }
@media (max-width: 820px) { .hk-medlem__inner { grid-template-columns: 1fr; } .hk-medlem__card { transform: none; } }

/* Contact band --------------------------------------------------------------- */
.hk-kontaktband { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: center; }
.hk-kontaktband > .hk-etikett { grid-column: 1 / -1; }
.hk-kontaktband > .hk-kontaktband__sentence { grid-column: 1 / 7; margin: 0; font-size: clamp(1.4rem, 2.05vw, 2rem); line-height: 1.28; max-width: none; font-weight: 300; }
.hk-kontaktband > .wp-block-image { grid-column: 8 / 10; margin: 0; }
.hk-kontaktband > .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.hk-kontaktband > .hk-kontaktband__links { grid-column: 10 / -1; margin: 0; font-size: var(--step-body); }
.hk-kontaktband__links strong { display: block; margin-bottom: 1rem; }
.hk-kontaktband__links a { display: block; margin-bottom: .5rem; }
.hk-kontaktband__links small { display: block; margin-top: 1rem; }
@media (max-width: 720px) {
	.hk-kontaktband { grid-template-columns: 96px 1fr; }
	.hk-kontaktband > .hk-kontaktband__sentence { grid-column: 1 / -1; font-size: 1.375rem; }
	.hk-kontaktband > .wp-block-image { grid-column: 1; }
	.hk-kontaktband > .hk-kontaktband__links { grid-column: 2; }
}

/* Opening hours, form, map, timeline ----------------------------------------- */
.hk-hours__heading { margin-bottom: 1rem; }
.hk-hours__list { list-style: none; margin: 0; padding: 0; max-width: 24rem; }
.hk-hours__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: .45rem 0; border-bottom: 1px dashed var(--line-soft); }
.hk-hours__row.is-today { font-weight: 500; color: var(--red); }
.hk-hours__status { margin: 1.25rem 0 0; font-weight: 500; }
.hk-hours__note { margin: .5rem 0 0; color: var(--muted); }
.hk-form { display: grid; gap: 1.25rem; max-width: 640px; }
.hk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.hk-field { display: grid; gap: .4rem; font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); }
.hk-field abbr { text-decoration: none; color: var(--red); }
.hk-field input, .hk-field textarea, .hk-field select { font: inherit; font-family: var(--text); font-size: var(--step-body); text-transform: none; letter-spacing: 0; width: 100%; background: var(--mat); border: 1.2px solid var(--pencil); padding: .7rem .9rem; color: var(--ink); border-radius: 2px; }
.hk-field input:focus-visible, .hk-field textarea:focus-visible, .hk-field select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.hk-form .wp-element-button { justify-self: start; }
.hk-form__notice { padding: 1rem 1.25rem; background: var(--mat); border: 1.2px solid var(--pencil); margin: 0; }
.hk-form__notice.is-success { border-color: var(--red); color: var(--red); }
.hk-hp { position: absolute !important; left: -9999px; }
@media (max-width: 600px) { .hk-form__row { grid-template-columns: 1fr; } }
.hk-kart__frame { aspect-ratio: 4 / 3; }
.hk-kart__frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.hk-kart__link { margin: .75rem 0 0; }
.hk-tidslinje__heading { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 16ch; }
.hk-tidslinje__list { list-style: none; margin: 0; padding: 0; display: grid; }
.hk-tidslinje__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding: 1.5rem 0; border-bottom: 1px dashed var(--line-soft); }
.hk-tidslinje__year { grid-column: 1 / 3; font-size: var(--step-lead); }
.hk-tidslinje__body { grid-column: 3 / 11; }
.hk-tidslinje__title { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; margin-bottom: .35rem; letter-spacing: -.01em; }
.hk-tidslinje__text { margin: 0; max-width: 56ch; }
@media (max-width: 720px) { .hk-tidslinje__item { grid-template-columns: 1fr; row-gap: .4rem; } .hk-tidslinje__year, .hk-tidslinje__body { grid-column: 1; } }
.hk-kulby__heading { margin-bottom: 2rem; }

/* Footer: the floor plan in pencil on grey board ----------------------------- */
.site-footer { position: relative; margin-top: var(--section); background: var(--board); color: var(--ink); padding: clamp(3rem, 6vw, 5rem) var(--margin) 2rem; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(42, 40, 37, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 40, 37, .07) 1px, transparent 1px); background-size: 24px 24px; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .2; mix-blend-mode: multiply; }
.site-footer__plan { margin: 0 auto clamp(2rem, 4vw, 3rem); width: min(100%, 760px); transform: rotate(-1.2deg); opacity: .9; }
.site-footer__plan svg { width: 100%; height: auto; display: block; }
.site-footer__panel { position: relative; padding-top: clamp(2rem, 4vw, 3rem); }
.site-footer__ghost { display: none; }
.site-footer__cols { position: relative; }
.site-footer__tagline { font-size: var(--step-lead); line-height: 1.35; font-weight: 300; max-width: 32ch; margin-bottom: 1.5rem; }
.site-footer__head { margin: 0 0 .75rem; }
.site-footer__links { margin: 0; display: grid; gap: .4rem; max-width: none; }
.site-footer__panel a { text-decoration: none; }
.site-footer__panel a:hover { text-decoration: underline; color: var(--ink); }
.site-footer__legal { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin: 3rem 0 0; font-size: .82rem; max-width: none; color: var(--pencil); }

/* Motion -------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-rise] { opacity: 0; transform: translateY(14px); animation: hk-rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
	@keyframes hk-rise { to { opacity: 1; transform: none; } }
	.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
	.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Editor -------------------------------------------------------------------- */
.editor-styles-wrapper [data-rise], .editor-styles-wrapper [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
.editor-styles-wrapper .hk-form input, .editor-styles-wrapper .hk-form textarea, .editor-styles-wrapper .hk-form select { pointer-events: none; }
.hk-list-editor .components-base-control { margin-bottom: 8px; }

/* Kulby event pages (plugin blocks drawn in the house style) ---------------------------------- */
/* The poster hangs left at picture size; beside it the wall label (info) and, under that, the
   ticket desk, both the same width, so the right column reads as one stack. */
/* A fixed composition, never wider than a poster plus a label: on a big screen it sits centred with
   wall around it instead of stretching the cards into strips. */
.hk-single__row--kulby { padding-top: clamp(2rem, 4vw, 3.5rem); align-items: start; row-gap: var(--gutter); max-width: calc(1080px + 2 * var(--margin)); margin-inline: auto; }
.hk-single__row--kulby > .hk-single__media { grid-column: 1 / 5; grid-row: 1 / span 2; margin: 0 !important; }
.hk-single__row--kulby > .hk-single__media img { aspect-ratio: auto; width: 100%; height: auto; object-fit: unset; }
.hk-single .kulby-details { grid-column: 5 / -1; grid-row: 1; border: 0; border-radius: 0; background: var(--mat); max-width: none; padding: 1.25rem 1.5rem 1.5rem; box-shadow: var(--paper-shadow); margin: 0; }
.hk-single .kulby-details__rows { display: grid; grid-template-columns: 1.35fr 1fr; column-gap: var(--gutter); row-gap: 0; }
.hk-single .kulby-details__row { grid-template-columns: 5rem minmax(0, 1fr); column-gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--line-soft); }
.hk-single .kulby-details__row dt { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; color: var(--pencil); }
.hk-single .kulby-details__actions { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin-top: 1rem; }
.hk-single .kulby-details__cal, .hk-single .kulby-details__kulby { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; }
.hk-single .kulby-checkout { grid-column: 5 / -1; grid-row: 2; align-self: start; background: var(--mat); padding: 1.25rem 1.5rem 1.5rem; margin: 0; box-shadow: var(--paper-shadow); }
.hk-single .kulby-checkout__heading { font-size: var(--step-lead); font-weight: 400; letter-spacing: -.01em; margin: 0 0 .5rem; }
.hk-single .kulby-checkout__form, .hk-single .kulby-checkout__pay, .hk-single .kulby-checkout__done, .hk-single .kulby-checkout__note { max-width: none; }
.hk-single .kulby-checkout fieldset { margin-bottom: 1rem; }
.hk-single .kulby-tier, .hk-single .kulby-addon { border-bottom: 1px dashed var(--line-soft); padding: .6rem 0; }
.hk-single .kulby-tier__name { font-weight: 400; }
.hk-single .kulby-tier__price, .hk-single .kulby-addon__desc, .hk-single .kulby-tier__left { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; }
.hk-single .kulby-tier__qty select { border: 1.2px solid var(--pencil); border-radius: 2px; background: var(--kort, var(--mat)); padding: .3em .4em; min-width: 3.5em; font-family: var(--mono); }
.hk-single .kulby-checkout__buyer { grid-template-columns: 1fr 1fr; gap: .75rem var(--gutter); margin-bottom: 1rem; }
.hk-single .kulby-checkout__buyer label { font-family: var(--mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); gap: .25rem; }
.hk-single .kulby-checkout__buyer input { font-family: var(--text); font-size: var(--step-body); text-transform: none; letter-spacing: 0; border: 1.2px solid var(--pencil); border-radius: 2px; background: var(--kort, var(--mat)); padding: .5em .65em; }
.hk-single .kulby-checkout__sum { font-size: var(--step-body); margin-bottom: 1rem; }
.hk-single .kulby-checkout__sum .is-total { border-top: 1px dashed var(--line-soft); }
.hk-single .kulby-checkout__terms { font-size: .9rem; margin-bottom: .9rem; }
.hk-single .kulby-checkout__result { background: var(--sand); border: 0; }
.hk-single .kulby-checkout__stripe { min-height: 360px; }
/* With the ticket desk right beside it, the label's own buy button is noise on a wide screen. */
@media (min-width: 901px) { .hk-single__row--kulby .kulby-details__ticket { display: none; } }
.hk-single .kulby-events__list--list { gap: 0; }
.hk-single .kulby-card--list .kulby-card__link { grid-template-columns: minmax(10rem, max-content) 1fr; padding: .8rem 0; border-bottom: 1px dashed var(--line-soft); align-items: baseline; }
.hk-single .kulby-card__when, .hk-single .kulby-card__line { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; color: var(--pencil); }
.hk-single .kulby-card--list .kulby-card__title { font-size: var(--step-lead); font-weight: 300; letter-spacing: -.01em; }
.hk-single .kulby-card--list .kulby-card__foot { font-family: var(--mono); font-size: .8125rem; }
.hk-single .kulby-events__heading { font-size: var(--step-head); margin: 0 0 1.5rem; }
.hk-single__more { padding: clamp(3rem, 7vw, 6rem) var(--margin) 0; max-width: calc(1080px + 2 * var(--margin)); margin-inline: auto; }
.hk-single--kulby .hk-single__content { max-width: calc(1080px + 2 * var(--margin)); margin-inline: auto; }
@media (max-width: 1100px) and (min-width: 901px) {
	.hk-single .kulby-details__rows { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	/* One column: the poster hangs at picture size, the two cards follow at full width. */
	.hk-single__row--kulby > .hk-single__media, .hk-single .kulby-details, .hk-single .kulby-checkout { grid-column: 1; grid-row: auto; }
	.hk-single__row--kulby > .hk-single__media { max-width: 400px; }
	.hk-single .kulby-details__rows { grid-template-columns: 1fr; }
	.hk-single .kulby-card--list .kulby-card__link { grid-template-columns: 1fr; gap: .15rem; }
}
@media (max-width: 600px) {
	.hk-single .kulby-checkout__buyer { grid-template-columns: 1fr; }
}

/* Kulby archive: the same wall as the site's own Program page --------------------------------- */
.hk-kulby-archive .kulby-events { padding: clamp(3rem, 6vw, 5rem) var(--margin) 0; }
.hk-kulby-archive .kulby-events__group { margin: clamp(3.5rem, 6vw, 5rem) 0 1.5rem; font-size: var(--step-lead); font-weight: 300; letter-spacing: -.01em; color: var(--ink); text-transform: none; }
.hk-kulby-archive .kulby-events__group:first-child { margin-top: 0; }
.hk-kulby-archive .kulby-events__heading { font-size: var(--step-head); max-width: 16ch; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.hk-kulby-archive .kulby-events__empty { font-size: var(--step-lead); max-width: 36ch; font-weight: 300; color: var(--ink); }
.hk-kulby-grid .kulby-events__list--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.hk-kulby-grid .kulby-card__link { gap: 0; }
.hk-kulby-grid .kulby-card__media { border-radius: 0; background: var(--mat); aspect-ratio: auto; overflow: visible; transition: transform var(--t-ui) var(--ease-out); }
/* Posters are mostly square or upright: a square crop from the top keeps their titles. */
.hk-kulby-grid .kulby-card__media img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; transition: none; }
.hk-kulby-grid .kulby-card__link:hover .kulby-card__media { transform: translateY(-3px); }
.hk-kulby-grid .kulby-card__link:hover .kulby-card__img { transform: none; }
.hk-kulby-grid .kulby-card__body { margin-top: 1.1rem; }
.hk-kulby-grid .kulby-card__when, .hk-kulby-grid .kulby-card__line, .hk-kulby-grid .kulby-card__foot { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; color: var(--pencil); }
.hk-kulby-grid .kulby-card.is-naa .kulby-card__when { color: var(--red); }
.hk-kulby-grid .kulby-card__title { font-size: var(--step-lead); font-weight: 300; letter-spacing: -.01em; line-height: 1.2; margin: .3rem 0 .3rem; max-width: 24ch; color: var(--ink); }
.hk-kulby-grid .kulby-card__excerpt { font-size: var(--step-body); line-height: 1.45; max-width: 36ch; margin-top: .25rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.hk-kulby-grid .kulby-card__foot { margin-top: .5rem; }
.hk-kulby-grid .kulby-flag { background: transparent; padding: 0; font-weight: 400; }
.hk-kulby-grid .kulby-flag--utsolgt { color: var(--red); }
.hk-kulby-past .kulby-events__list--list { gap: 0; }
.hk-kulby-past .kulby-card--list .kulby-card__link { grid-template-columns: minmax(10rem, max-content) 1fr; padding: .8rem 0; border-bottom: 1px dashed var(--line-soft); align-items: baseline; }
.hk-kulby-past .kulby-card__when, .hk-kulby-past .kulby-card__line, .hk-kulby-past .kulby-card__foot { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; color: var(--pencil); }
.hk-kulby-past .kulby-card--list .kulby-card__title { font-size: var(--step-lead); font-weight: 300; letter-spacing: -.01em; color: var(--ink); }
@media (max-width: 900px) { .hk-kulby-grid .kulby-events__list--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; } .hk-kulby-past .kulby-card--list .kulby-card__link { grid-template-columns: 1fr; gap: .15rem; } }
@media (max-width: 600px) { .hk-kulby-grid .kulby-events__list--cards { grid-template-columns: 1fr; } }
