/* boligfotograf.dk - mørkekammer, papir og eftermiddagslys */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --moerk: #1c1b18;
  --moerk-2: #2a2824;
  --papir: #f4f0e8;
  --papir-2: #e9e3d6;
  --blaek: #1f1d1a;
  --daempet: #5c574e;
  --linje: #d4ccbc;
  --rav: #b8642a;
  --rav-lys: #e6a35a;
  --rav-dyb: #8a4518;
  --display: "Instrument Serif", Georgia, serif;
  --tekst: "Figtree", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--blaek); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility; }
::selection { background: var(--rav-lys); color: var(--moerk); }
img, svg { max-width: 100%; }
a { color: var(--rav-dyb); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--blaek); }
:focus-visible { outline: 2px solid var(--rav); outline-offset: 3px; }

.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--rav-lys); color: var(--moerk); padding: 0.5rem 0.9rem; font-weight: 600; z-index: 10; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 7.2vw, 4.9rem); margin: 0 0 1.1rem; }
h1 em { font-style: normal; color: var(--rav-lys); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 2.2em 0 0.5em; }
h3 { font-family: var(--tekst); font-weight: 650; font-size: 1.1rem; margin: 1.6em 0 0.4em; line-height: 1.3; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.1rem, 2.1vw, 1.27rem); line-height: 1.55; max-width: 42ch; }
.etiket { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rav); margin: 0 0 1rem; }

/* Top */
.top { background: var(--moerk); color: var(--papir); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.6rem; padding-block: 0.95rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--papir); text-decoration: none; font-family: var(--display); font-size: 1.65rem; line-height: 1; }
.ordmaerke em { font-style: normal; color: var(--rav-lys); }
.ordmaerke:hover { color: var(--papir); }
.blaende { width: 1.7rem; height: 1.7rem; color: var(--rav-lys); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; }
.menu a { color: #cfc8ba; text-decoration: none; font-size: 0.95rem; font-weight: 500; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.menu a:hover { color: var(--papir); border-bottom-color: #6d665a; }
.menu a[aria-current="page"] { color: var(--rav-lys); border-bottom-color: var(--rav-lys); }

/* Helt */
.helt { background: var(--moerk); color: var(--papir); padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.helt-ind { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .helt-ind { grid-template-columns: 1.05fr 1fr; } }
.helt .indledning { color: #ddd6c8; }
.helt-billede { position: relative; }

/* Søgertegning */
.soeger { display: block; width: 100%; height: auto; }
.s-vaeg { fill: #efe6d6; }
.s-gulv { fill: #c99e72; }
.s-fodliste { stroke: #f8f3ea; stroke-width: 6; }
.s-vindue { fill: #cfe0e6; stroke: #f8f3ea; stroke-width: 8; }
.s-sprosse { stroke: #f8f3ea; stroke-width: 5; }
.s-lys { fill: #fff6df; opacity: 0.55; }
.s-ramme { fill: #f8f3ea; stroke: #2a2824; stroke-width: 4; }
.s-motiv { fill: #7f9a8c; }
.s-sofa, .s-sofa-ryg { fill: #5f6f68; }
.s-sofa-arm { fill: #52615a; }
.s-ben { stroke: #2a2824; stroke-width: 4; stroke-linecap: round; }
.s-skaerm { fill: #e6a35a; }
.s-potte { fill: #b8642a; }
.s-blad { fill: none; stroke: #4c7a5c; stroke-width: 6; stroke-linecap: round; }
.s-grid line { stroke: rgba(28, 27, 24, 0.28); stroke-width: 1.5; stroke-dasharray: 6 6; }
.s-hjoerne path { fill: none; stroke: #1c1b18; stroke-width: 4; }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.knap { display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; padding: 0.75rem 1.25rem; background: var(--rav-lys); color: var(--moerk); text-decoration: none; border: 1px solid var(--rav-lys); border-radius: 999px; cursor: pointer; }
.knap:hover { background: #f0b878; color: var(--moerk); }
.knap-lys { background: transparent; color: inherit; border-color: currentColor; }
.knap-lys:hover { background: rgba(230, 163, 90, 0.14); color: inherit; }
.tekstside .knap-lys { color: var(--blaek); }

/* Sektioner */
.sektion { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sektion > .ramme > h2:first-child, .to-spalter h2 { margin-top: 0; }
.sektion-moerk { background: var(--moerk-2); color: var(--papir); }
.sektion-moerk a { color: var(--rav-lys); }
.to-spalter { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .to-spalter { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.principper { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem 3rem; }
@media (min-width: 720px) { .principper { grid-template-columns: 1fr 1fr; } }
.principper li { padding-top: 1rem; border-top: 1px solid var(--linje); }
.principper h3 { margin-top: 0.4rem; font-family: var(--display); font-weight: 400; font-size: 1.75rem; }
.principper p { color: var(--daempet); max-width: 46ch; }
.nr { font-family: var(--mono); font-size: 0.8rem; color: var(--rav); letter-spacing: 0.1em; }

.punkter { padding-left: 1.2rem; margin: 0 0 1em; }
.punkter li { margin-bottom: 0.55rem; }

.genveje { display: grid; gap: 1px; background: var(--linje); border: 1px solid var(--linje); }
@media (min-width: 640px) { .genveje { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .genveje { grid-template-columns: repeat(4, 1fr); } }
.genvej { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem 1.4rem 1.7rem; background: var(--papir); color: var(--blaek); text-decoration: none; transition: background-color 0.2s ease; }
.genvej:hover { background: #fffaf1; color: var(--blaek); }
.genvej-nr { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rav); }
.genvej-titel { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.genvej span:last-child { color: var(--daempet); font-size: 0.97rem; }

/* Tekstsider */
.tekstside { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.side-top { max-width: 48rem; margin-bottom: 2.5rem; }
.artikel { max-width: 44rem; }
.artikel h2:first-child { margin-top: 0.5em; }

.figur { margin: 2rem 0; }
.figur figcaption { font-size: 0.93rem; color: var(--daempet); margin-top: 0.6rem; }
.diagram { display: block; width: 100%; height: auto; background: #fbf8f2; border: 1px solid var(--linje); }
.d-gulv { stroke: var(--blaek); stroke-width: 2; }
.d-moebel { fill: var(--papir-2); stroke: var(--daempet); stroke-width: 1.5; }
.d-kamera rect { fill: var(--moerk); }
.d-kamera line { stroke: var(--moerk); stroke-width: 2.5; }
.d-kamera-2 rect { fill: #9a9184; }
.d-straale { stroke: var(--rav); stroke-width: 2; stroke-dasharray: 7 5; }
.d-straale-2 { stroke: #9a9184; }
.d-tekst { font-family: var(--mono); font-size: 13px; fill: var(--blaek); }
.d-tekst-2 { fill: #7b7367; }

.kompas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--linje); border: 1px solid var(--linje); margin: 1.5rem 0 1rem; }
@media (min-width: 560px) { .kompas { grid-template-columns: repeat(4, 1fr); } }
.kompas div { background: #fbf8f2; padding: 1rem; display: flex; flex-direction: column; }
.kompas strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.kompas span { font-family: var(--mono); font-size: 0.8rem; color: var(--daempet); }

/* Tjekliste */
.tjekliste { max-width: 44rem; margin-bottom: 3rem; }
.tjek-status { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.8rem; background: var(--papir); padding: 0.8rem 0; font-family: var(--mono); font-size: 0.85rem; border-bottom: 1px solid var(--linje); }
.tjek-bjaelke { flex: 1 1 8rem; height: 6px; background: var(--papir-2); border-radius: 3px; overflow: hidden; }
.tjek-bjaelke span { display: block; height: 100%; width: 0; background: var(--rav); transition: width 0.25s ease; }
.tjekliste fieldset { border: 0; padding: 0; margin: 1.8rem 0 0; }
.tjekliste legend { font-family: var(--display); font-size: 1.6rem; padding: 0; margin-bottom: 0.4rem; }
.tjekliste label { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--linje); cursor: pointer; }
.tjekliste input { width: 1.2rem; height: 1.2rem; margin-top: 0.22rem; flex: none; accent-color: var(--rav); }
.tjekliste label:has(input:checked) { color: var(--daempet); text-decoration: line-through; text-decoration-color: var(--rav); }

/* Skudliste */
.skudliste { list-style: none; padding: 0; margin: 0 0 3rem; max-width: 48rem; }
.skudliste li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--linje); }
.skudliste li:last-child { border-bottom: 1px solid var(--linje); }
.skud-nr { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--rav); }
.skudliste h2 { margin: 0 0 0.3rem; font-size: 1.7rem; }
.skudliste p { margin: 0; color: var(--daempet); }

/* Fod */
.bund { background: var(--moerk); color: #cfc8ba; padding: 2.5rem 0; }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; }
.bund-navn { font-family: var(--display); font-size: 1.5rem; color: var(--papir); margin: 0; max-width: 30rem; line-height: 1.2; }
.bund-navn span { display: block; font-family: var(--tekst); font-size: 0.92rem; color: #a9a294; margin-top: 0.35rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: flex-start; }
.bund a { color: #cfc8ba; text-decoration: none; font-size: 0.95rem; }
.bund a:hover { color: var(--rav-lys); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
