/* Lille Strandgård — digitalt arkiv
   Skrifttyper: Cormorant Garamond & EB Garamond (SIL Open Font License), hostet lokalt. */

@font-face { font-family: "Cormorant"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #f4ecdb;
  --paper-deep: #e9dcc0;
  --ink: #1d1813;
  --ink-soft: #4a3f33;
  --muted: #7a6a57;
  --red: #7b1e22;
  --red-deep: #5e1418;
  --rule: #bfae8c;
  --display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper-deep);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,250,238,.85) 0%, rgba(244,236,219,0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: 36rem; margin: 0 auto; padding: 1rem .75rem 2.5rem; }

/* Topbar */
.crumb {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: .25rem .4rem .9rem;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--red); }

/* Certifikatet */
.cert {
  position: relative;
  background: var(--paper);
  background-image: inherit;
  padding: 1.6rem 1.25rem 1.75rem;
  border: 1px solid var(--red);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -22px rgba(60,40,20,.45), 0 2px 6px -2px rgba(60,40,20,.25);
}
.cert::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border: 1px solid rgba(29,24,19,.55);
}
.corner { position: absolute; width: 18px; height: 18px; color: var(--red); }
.corner.tl { top: 9px; left: 9px; } .corner.tr { top: 9px; right: 9px; transform: scaleX(-1); }
.corner.bl { bottom: 9px; left: 9px; transform: scaleY(-1); } .corner.br { bottom: 9px; right: 9px; transform: scale(-1,-1); }

.center { text-align: center; }

.brand {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.55rem, 7.4vw, 2.35rem); letter-spacing: .16em; line-height: 1.1;
  margin: .6rem 0 0; padding-left: .16em; /* optisk centrering af spatiering */
}
.edition {
  font-family: var(--display); font-weight: 500; color: var(--red);
  font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; margin: .55rem 0 0; padding-left: .3em;
}

.rule { display: flex; align-items: center; gap: .6rem; color: var(--red); margin: 1rem auto; max-width: 15rem; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .75; }
.rule svg { width: 10px; height: 10px; flex: none; }

.gaard { margin: 1.1rem auto .4rem; max-width: 19rem; }
.gaard img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

h1.title {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(2rem, 9.2vw, 2.9rem); line-height: 1.05; margin: .9rem 0 .2rem; color: var(--ink);
}
.subtitle {
  font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted); margin: 0; padding-left: .26em;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 1.2rem auto 0; max-width: 28rem; hyphens: auto; }

/* Segl */
.seal { display: block; width: 9.6rem; height: 9.6rem; margin: 1.5rem auto .5rem; transform: rotate(-8deg); }
.seal text { font-family: var(--display); }

/* Faktaliste med prikkede ledere */
.facts { margin: 1.4rem 0 .4rem; padding: 0; }
.facts div {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .52rem 0; border-bottom: 1px solid rgba(191,174,140,.55);
}
.facts div:first-child { border-top: 1px solid rgba(191,174,140,.55); }
.facts dt {
  font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); flex: none;
}
.facts dt::after { content: ""; }
.facts .lead { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-.3em); min-width: .8rem; }
.facts dd { margin: 0; text-align: right; font-size: 1.06rem; }

/* Sektioner */
.section { margin-top: 2.1rem; }
.section h2 {
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--red); text-align: center; margin: 0 0 .9rem; padding-left: .24em;
}
.section p { margin: 0 0 .8rem; hyphens: auto; }

/* Forløb */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .32rem; top: .5rem; bottom: .6rem; width: 1px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 1rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.22rem; top: .52rem; width: 9px; height: 9px;
  transform: rotate(45deg); background: var(--paper); border: 1px solid var(--red);
}
.timeline li.done::before { background: var(--red); }
.timeline .when { display: block; font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.timeline .what { display: block; }
.pending { font-style: italic; color: var(--muted); }

/* Smagsnoter */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }
.note {
  border: 1px solid rgba(123,30,34,.35); padding: .8rem .7rem .75rem; text-align: center; background: rgba(255,252,244,.45);
}
.note .yr { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.7rem; line-height: 1; color: var(--red); }
.note .yr small { font-size: .55em; font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.note .txt { display: block; font-size: .95rem; margin-top: .35rem; }

/* Afslutning */
.motto { font-family: var(--display); font-style: italic; font-size: 1.45rem; line-height: 1.25; margin: 2.2rem 0 .3rem; }
.place { font-family: var(--display); font-weight: 600; font-size: clamp(.66rem, 2.9vw, .78rem); letter-spacing: .22em; white-space: nowrap; color: var(--muted); margin: 0; padding-left: .3em; }

.fineprint { font-size: .9rem; color: var(--muted); margin: 1.8rem 0 0; text-align: center; line-height: 1.5; }
.fineprint .addr { font-family: var(--display); letter-spacing: .04em; color: var(--ink-soft); word-break: break-word; }

.actions { display: flex; justify-content: center; gap: 1.2rem; margin-top: 1.4rem; font-family: var(--display); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; }
.actions button {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--red);
  background: none; border: 1px solid rgba(123,30,34,.5); padding: .55rem 1rem; cursor: pointer;
}
.actions button:hover { background: rgba(123,30,34,.06); }

/* Arkiv-forside */
.archive-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.archive-list li { border-top: 1px solid rgba(191,174,140,.55); }
.archive-list li:last-child { border-bottom: 1px solid rgba(191,174,140,.55); }
.archive-list a { display: flex; align-items: baseline; gap: .6rem; padding: .9rem .2rem; text-decoration: none; color: var(--ink); }
.archive-list a:hover .yr { color: var(--red-deep); }
.archive-list .yr { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--red); line-height: 1; }
.archive-list .meta { flex: 1; font-size: 1rem; color: var(--ink-soft); }
.archive-list .go { font-family: var(--display); color: var(--red); }

@media (min-width: 600px) {
  .wrap { padding-top: 2.5rem; }
  .cert { padding: 2.6rem 2.6rem 2.6rem; }
  .notes { grid-template-columns: repeat(4, 1fr); }
}

/* Printvenlig udgave */
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .crumb, .actions { display: none !important; }
  .cert { box-shadow: none; background: #fff; padding: 12mm 14mm; }
  .section, .notes, .facts div, .timeline li { break-inside: avoid; }
  .section { margin-top: 7mm; }
  .seal { width: 30mm; height: 30mm; margin: 6mm auto 2mm; }
  .notes { grid-template-columns: repeat(4, 1fr); }
  a { color: var(--ink); text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
