/* Tømrermester Høgh – theme styles */

:root {
	--ink: #161513;
	--ink-2: #0e0d0c;
	--ground: #f3f0ea;
	--sand: #eae5dc;
	--white: #ffffff;
	--accent: #d08a42;
	--accent-text: #8a4b17;
	--accent-soft: #e8b07a;
	--text-2: #4a453e;
	--text-3: #6b645a;
	--on-dark-2: #d9d3c8;
	--on-dark-3: #bdb6aa;
	--line-dark: #34312c;
	--field: #b9b1a4;
	--display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--body: "Barlow", system-ui, sans-serif;
	--wrap: 1240px;
	--gutter: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.disp { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.accent { color: var(--accent); }
.icon { flex: none; }

.sr-only,
.skip-link:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 10px 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-md { display: flex; flex-direction: column; gap: 22px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.stack-xl { display: flex; flex-direction: column; gap: 48px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 28px; border-radius: 4px; border: 1.5px solid transparent;
	font: 600 18px/1.2 var(--body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 46px; padding: 10px 20px; font-size: 17px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-soft); color: var(--ink); }
.btn--ghost { color: var(--ground); border-color: #5a554d; }
.btn--ghost:hover { color: var(--ground); border-color: var(--ground); }
.btn--dark { background: var(--ink); color: var(--ground); width: 100%; }
.btn--dark:hover { background: #33302b; color: var(--ground); }
.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Eyebrows & type */
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow a { color: inherit; }
.eyebrow--accent { color: var(--accent); }
.eyebrow--line { display: flex; align-items: center; gap: 12px; color: var(--on-dark-3); font-weight: 500; }
.eyebrow--line::before { content: ""; width: 36px; height: 2px; background: var(--accent); }
.lead { font-size: 20px; line-height: 1.55; max-width: 520px; }
.sec--dark .lead { color: var(--on-dark-2); }
.muted { font-size: 15px; color: var(--on-dark-3); }
.body-l { font-size: 18px; line-height: 1.65; color: #3a362f; }
.signature { font-size: 30px; font-weight: 600; margin-top: 8px; }

/* Header */
.site-header { background: var(--ink); color: var(--ground); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ground); text-decoration: none; }
.brand:hover { color: var(--ground); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 700; font-size: 24px; letter-spacing: .04em; }
.brand__sub { font-size: 13px; letter-spacing: .22em; color: var(--on-dark-3); margin-top: 3px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { color: var(--ground); text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 4px; display: block; }
.site-nav a:hover { color: var(--accent-soft); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
	display: none; width: 46px; height: 46px; border: 0; border-radius: 4px; background: transparent;
	color: var(--ground); cursor: pointer; align-items: center; justify-content: center;
}

/* Sections */
.sec { padding: 104px 0; }
.sec--dark { background: var(--ink); color: var(--ground); }
.sec--dark a:not(.btn) { color: var(--ground); }
.sec--sand { background: var(--sand); }
.sec__h { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: .95; }
.sec__h--sm { font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.sec__intro { max-width: 420px; font-size: 18px; color: var(--text-2); }

/* Hero */
.hero { padding: 64px 0 96px; }
.hero__grid, .split {
	display: grid; gap: 56px; align-items: center;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.split--wide-gap { gap: 64px; align-items: start; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__h { font-weight: 800; font-size: clamp(48px, 7vw, 92px); line-height: .92; }
.facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 18px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts .disp { font-size: 34px; font-weight: 700; }
.facts span:last-child { font-size: 14px; color: var(--on-dark-3); }

/* Framed image */
.framed { position: relative; }
.framed--left { padding: 0 0 24px 24px; }
.framed--right { padding: 0 24px 24px 0; }
.framed::before { content: ""; position: absolute; bottom: 0; width: 70%; height: 70%; border: 2px solid var(--accent); }
.framed--left::before { left: 0; }
.framed--right::before { right: 0; }
.framed__img { position: relative; overflow: hidden; background: #2a2723; }
.ratio-45 { aspect-ratio: 4 / 5; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover--natural { height: auto; }
.cover--empty { aspect-ratio: 4 / 5; background: #dcd5c9; }
.hero__badge {
	position: absolute; right: -8px; bottom: 56px; background: var(--ground); color: var(--ink);
	padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.hero__badge span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.hero__badge strong { font-size: 22px; font-weight: 700; }
.ph-tag {
	position: absolute; top: 14px; left: 14px; background: rgba(22, 21, 19, .82); color: var(--ground);
	padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* Grids */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.grid--proj { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.promise { background: var(--ground); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.promise .icon { color: var(--accent-text); }
.promise h3 { font-size: 26px; font-weight: 700; }
.promise p { color: var(--text-2); }

.service { display: flex; flex-direction: column; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .2s; }
.service:hover { color: var(--ink); transform: translateY(-3px); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; background: #dcd5c9; }
.service__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.service__num { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.service h3 { font-size: 28px; font-weight: 700; line-height: 1; }
.service p { font-size: 16px; color: var(--text-2); }

/* Before / after */
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #2a2723; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--ground); pointer-events: none; }
.ba__knob {
	position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
	background: var(--ground); color: var(--ink); display: flex; align-items: center; justify-content: center;
	pointer-events: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.ba__tag {
	position: absolute; top: 16px; left: 16px; background: rgba(22, 21, 19, .82); color: var(--ground);
	padding: 6px 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; pointer-events: none;
}
.ba__tag--after { left: auto; right: 16px; background: var(--accent); color: var(--ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Projects */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	font: 600 15px var(--body); border-radius: 999px; padding: 11px 20px; min-height: 44px; cursor: pointer;
	background: transparent; color: var(--ink); border: 1.5px solid var(--field); text-decoration: none;
	display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.proj { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #dcd5c9; }
.proj[hidden] { display: none; }
.proj a { display: block; height: 100%; color: var(--ground); text-decoration: none; }
.proj img { transition: transform .4s; }
.proj a:hover img { transform: scale(1.04); }
.proj figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 22px 20px;
	background: linear-gradient(to top, rgba(22, 21, 19, .9), rgba(22, 21, 19, 0));
	display: flex; flex-direction: column; gap: 4px;
}
.proj__cat { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); }
.proj__title { font-size: 26px; font-weight: 700; line-height: 1.05; }
.insta-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; padding: 12px 0; }
.notice-box { background: var(--white); padding: 20px 24px; border: 1.5px dashed var(--field); }

/* Steps */
.steps {
	list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.steps li { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.steps__num { font-size: 56px; font-weight: 800; color: var(--accent-text); line-height: 1; }
.steps h3 { font-size: 26px; font-weight: 700; }
.steps p { font-size: 16px; color: var(--text-2); }

/* Contact */
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.contact-list > * { display: flex; flex-direction: column; text-decoration: none; }
.contact-list .label { font-size: 14px; color: var(--on-dark-3); letter-spacing: .1em; text-transform: uppercase; }
.contact-list .big { font-size: 40px; font-weight: 700; line-height: 1.1; }
.contact-list .mid { font-size: 22px; font-weight: 500; }
.form { background: var(--ground); color: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.form input, .form textarea {
	font: 16px var(--body); padding: 14px; border: 1.5px solid var(--field); border-radius: 4px; background: var(--white); color: var(--ink);
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(208, 138, 66, .35); }
.form__note { font-size: 14px; color: #5e584f; }
.form__status { padding: 12px 16px; font-weight: 600; }
.form__status--ok { background: #dfeedd; color: #1f4d1c; }
.form__status--err { background: #f6dcd4; color: #7a2410; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Entries */
.entry__content > * + * { margin-top: 1em; }
.entry h2 a { text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink-2); color: var(--on-dark-3); padding: 40px 0; font-size: 15px; }
.site-footer a { color: var(--ground); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer__inner > a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__name { color: var(--ground); font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.site-footer__credit { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #8f887d; }
.site-footer__credit a { color: var(--on-dark-3); }

/* Responsive */
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--ink);
		border-top: 1px solid var(--line-dark); padding: 8px var(--gutter) 20px;
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 760px) {
	:root { --gutter: 20px; }
	.sec { padding: 72px 0; }
	.hero { padding: 40px 0 72px; }
	.brand__text { display: none; }
	.btn--sm span { display: none; }
	.btn--sm { padding: 10px 14px; }
	.form { padding: 24px; }
	.contact-list .big { font-size: 34px; }
	.hero__badge { right: 0; }
}

/* Project gallery (inside single project content) */
.proj-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 8px; }
.proj-gallery figure { margin: 0; }
.proj-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.proj-gallery figcaption { font-size: 14px; color: var(--text-3); margin-top: 6px; }
