/* sagild.dk - "kirkebogen": pergament, jerngalle-blæk og et segl i okseblodsrødt */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }

:root {
  --papir: #f3ecdf;
  --papir-2: #ebe1cd;
  --blaek: #2a211a;
  --blaek-2: #5a4c40;
  --segl: #7d2b1f;
  --segl-moerk: #5e1f16;
  --linje: #cbbb9f;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papir);
  color: var(--blaek);
  font: 400 1.125rem/1.65 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection { background: var(--segl); color: var(--papir); }
:focus-visible { outline: 2px solid var(--segl); outline-offset: 3px; border-radius: 2px; }

a { color: var(--segl); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--segl-moerk); text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.35rem); margin: 2.6rem 0 .75rem; }
h3 { font-size: 1.45rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

.ramme { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.ramme.smal { max-width: 46rem; }

.spring { position: absolute; left: 1rem; top: -4rem; background: var(--blaek); color: var(--papir); padding: .5rem .9rem; z-index: 2; }
.spring:focus { top: 1rem; }

/* Top */
.top { border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.ordmaerke { display: block; line-height: 0; }
.ordmaerke svg { overflow: visible; }
.om-navn { font-family: var(--serif); font-weight: 600; font-size: 30px; fill: var(--blaek); letter-spacing: -.01em; }
.om-dk { font-family: var(--sans); font-weight: 400; font-size: 15px; fill: var(--blaek-2); }
.om-streg { stroke: var(--segl); stroke-width: 1.2; }
.om-prik { fill: var(--segl); }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.menu a { font-weight: 600; font-size: .98rem; color: var(--blaek-2); text-decoration: none; padding: .35rem 0; }
.menu a:hover { color: var(--segl); }
.menu a[aria-current="page"] { color: var(--blaek); text-decoration: underline; text-decoration-color: var(--segl); text-decoration-thickness: 2px; text-underline-offset: .4em; }

/* Forside */
.forside-top { padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(2rem, 6vw, 3.5rem); }
.navn { font-size: clamp(4rem, 17vw, 6rem); font-weight: 500; line-height: .95; letter-spacing: -.02em; }
.undertitel { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 4.5vw, 1.9rem); color: var(--segl); margin: .35rem 0 1.6rem; }
.indledning { font-size: clamp(1.15rem, 2.6vw, 1.3rem); line-height: 1.6; max-width: 38em; color: var(--blaek); }

.to-spalter { display: grid; gap: 1.5rem; padding-bottom: 1rem; }
.tekst { max-width: 40rem; }
.tekst > h2:first-child { margin-top: 1rem; }
.note {
  align-self: start;
  border-top: 1px solid var(--segl);
  padding-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--blaek-2);
}
.note h2 { font-style: normal; font-size: 1.5rem; margin: 0 0 .5rem; color: var(--blaek); }
@media (min-width: 60rem) {
  .to-spalter { grid-template-columns: minmax(0, 40rem) 17rem; justify-content: space-between; gap: 4rem; }
  .note { position: sticky; top: 2rem; margin-top: 4.4rem; }
}

/* Kirkebogens rubrikker */
.protokol-sektion { background: var(--papir-2); border-top: 1px solid var(--linje); border-bottom: 1px solid var(--linje); padding: clamp(2.5rem, 7vw, 4.5rem) 0; margin: 2.5rem 0 1rem; }
.protokol-sektion h2 { margin-top: 0; }
.sektion-intro { max-width: 40rem; color: var(--blaek-2); }
.protokol { margin: 1.75rem 0 1.75rem; border-top: 3px double var(--blaek); border-bottom: 1px solid var(--blaek); }
.protokol-raekke { display: grid; gap: .25rem; padding: 1rem 0; border-bottom: 1px solid var(--linje); }
.protokol-raekke:last-child { border-bottom: 0; }
.protokol-hoved { display: none; }
.rubrik { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--segl); }
@media (min-width: 45rem) {
  .protokol-hoved { display: grid; padding: .55rem 0; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blaek-2); }
  .protokol-raekke { grid-template-columns: 15rem 1fr; gap: 2rem; padding: 1.1rem 0; }
  .protokol-raekke > :first-child { border-right: 1px solid var(--linje); padding-right: 1rem; }
}
.videre { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .1rem; }
.videre::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .45em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-.08em) rotate(45deg); }
.videre:hover { border-bottom-width: 2px; }

/* Trin */
.trin { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: trin; }
.trin li { counter-increment: trin; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .9rem; padding: 1.1rem 0; border-top: 1px solid var(--linje); }
.trin li::before { content: counter(trin); grid-row: span 2; font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: .9; color: var(--segl); }
.trin p { margin: 0; color: var(--blaek); }

/* Artikler */
.artikel { padding-bottom: 2rem; }
.artikel-top { padding: clamp(2.5rem, 8vw, 5rem) 0 1rem; max-width: 46rem; }
.artikel-top h1 { font-size: clamp(3rem, 11vw, 4.75rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.liste { padding-left: 1.1rem; margin: 0 0 1rem; }
.liste li { margin-bottom: .8rem; padding-left: .25rem; }
.liste li::marker { color: var(--segl); }
.naeste { margin: 2.5rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--linje); color: var(--blaek-2); }

/* Bund */
.bund { border-top: 1px solid var(--linje); margin-top: 3rem; }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.4rem; padding-bottom: 2rem; font-size: .95rem; color: var(--blaek-2); }
.bund-ind p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--blaek); }
.bund a { color: var(--blaek-2); }
.bund a:hover { color: var(--segl); }

@media (prefers-reduced-motion: no-preference) {
  .menu a, a { transition: color .15s ease-out; }
}
