/* Skovmark Advokater - demo site styles
   Layout paradigm: newspaper / magazine masthead, hairlines, drop cap. */

/* Self-hosted fonts (SIL Open Font License 1.1, see CREDITS.md) */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --paper: #F4F1EA;
  --ink: #1A1A1A;
  --muted: #55514A;
  --oxblood: #7A1F1F;
  --focus: #7A1F1F;
  --shadow: 0 16px 34px rgba(26, 26, 26, .14);
  --container: 980px;
  --section-padding: clamp(52px, 7vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Public Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
img, svg { max-width: 100%; display: block; }
a { color: var(--oxblood); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.demo-banner, .site-footer { --focus: #F4F1EA; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-align: center;
  font-size: .9rem;
}
.demo-banner a { color: #E3A0A0; font-weight: 700; text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.dateline {
  display: flex;
  justify-content: space-between;
  padding-block: 8px;
  font-family: 'Public Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  color: var(--muted);
}
@media (max-width: 639.98px) {
  .dateline { display: none; }
}
.masthead__name-wrap {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-block: 14px;
  text-align: center;
}
.masthead__name {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  letter-spacing: .04em;
  color: var(--ink);
  display: inline-block;
}
.masthead__nav { padding-block: 8px; }
.masthead__nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
.masthead__nav li { border-left: 1px solid var(--ink); padding-inline: 12px; line-height: 1.6; }
.masthead__nav li:first-child { border-left: none; }
.masthead__nav a {
  font-family: 'Public Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
}
.masthead__nav a:hover { color: var(--oxblood); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 0;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: 'Public Sans', sans-serif;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  margin-bottom: clamp(24px, 4vw, 40px);
}
.lead, .areas, .fees, .faq, .people, .contact { padding-block: var(--section-padding); }

/* ---------- Lead ---------- */
.lead__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 860px) {
  .lead__grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .lead__main { grid-column: 1 / span 8; }
  .lead__aside { grid-column: 9 / span 4; }
}
.kicker {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--oxblood);
  margin-bottom: 14px;
}
.lead h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4.2rem); line-height: 1.05; margin-bottom: 18px; }
.lead__standfirst { font-style: italic; font-size: 1.15rem; color: var(--muted); margin-bottom: 20px; max-width: 56ch; }
.lead__body { max-width: 62ch; color: var(--ink); }
.lead__body::first-letter {
  float: left;
  font-family: 'Newsreader', serif;
  font-size: 4.2em;
  line-height: .8;
  padding-right: 8px;
  color: var(--oxblood);
}
.lead__aside { position: relative; }
.ornament {
  position: absolute;
  top: -30px;
  right: 0;
  font-family: 'Newsreader', serif;
  font-size: 12rem;
  color: var(--oxblood);
  opacity: .1;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.lead__box {
  position: relative;
  z-index: 1;
  border: 1px solid var(--ink);
  padding: 26px;
  background: var(--paper);
}
.lead__box h2 { font-size: 1.3rem; margin-bottom: 14px; }
.lead__box p { margin-bottom: 10px; }
.lead__box .btn { margin-top: 10px; width: 100%; }

/* ---------- Områder ---------- */
.areas__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .areas__grid { grid-template-columns: repeat(2, 1fr); column-gap: 60px; }
}
.area { padding-block: 22px; border-top: 1px solid rgba(26, 26, 26, .2); }
.area__label { color: var(--oxblood); font-weight: 700; margin-bottom: 6px; font-family: 'Public Sans', sans-serif; }
.area h3 { font-size: 1.3rem; margin-bottom: 8px; }
.area p { color: var(--muted); }

/* ---------- Honorar ---------- */
.fees__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .fees__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .fee { padding-inline: 32px; border-left: 1px solid rgba(26, 26, 26, .2); }
  .fee:first-child { border-left: none; padding-left: 0; }
}
.fee h3 { font-size: 1.2rem; margin-bottom: 10px; }
.fee p { color: var(--muted); }

/* ---------- Spørgsmål ---------- */
.faq__item {
  border-bottom: 1px solid rgba(26, 26, 26, .2);
  padding-block: 18px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--oxblood);
  flex-shrink: 0;
}
.faq__item[open] summary::after { content: '\2212'; }
.faq__item p { color: var(--muted); margin-top: 14px; }

/* ---------- Folk ---------- */
.people__list { display: flex; flex-direction: column; }
.people__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 16px;
  border-top: 1px solid rgba(26, 26, 26, .2);
}
.people__list li:last-child { border-bottom: 1px solid rgba(26, 26, 26, .2); }
.people__name { font-family: 'Newsreader', serif; font-weight: 600; font-size: 1.1rem; }
.people__role { color: var(--muted); }

/* ---------- Kontakt ---------- */
.form-note { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.contact__note { color: var(--oxblood); font-size: .88rem; margin-bottom: 20px; font-weight: 600; }
.req { color: var(--oxblood); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
@media (min-width: 860px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(26, 26, 26, .3);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--checkbox { display: flex; align-items: flex-start; gap: 10px; }
.field--checkbox input { width: auto; margin-top: 4px; }
.field--checkbox label { font-weight: 400; margin-bottom: 0; }
.demo-form__status { margin-top: 14px; font-weight: 700; color: var(--oxblood); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 241, 234, .85);
  padding-block: 32px;
  text-align: center;
  font-size: .88rem;
  border-top: 1px solid rgba(244, 241, 234, .3);
}
.site-footer__name {
  font-family: 'Newsreader', serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1rem;
  color: var(--paper);
  margin-bottom: 10px;
}
.site-footer p { margin-top: 8px; }
.site-footer a { color: #E3A0A0; font-weight: 700; }

/* ======================================================================
   Multi-page additions
   ====================================================================== */
[hidden] { display: none !important; }
img { height: auto; }

/* Phase A fix: masthead on narrow screens */
@media (max-width: 639.98px) {
  .masthead .container { padding-inline: 16px; }
  .masthead__name { font-size: clamp(1.25rem, 6.4vw, 1.8rem); letter-spacing: .02em; white-space: nowrap; }
  .masthead__name-wrap { padding-block: 8px; }
  .masthead__nav { padding-block: 6px; }
  .masthead__nav li { padding-inline: 8px; }
  .masthead__nav a { font-size: .72rem; }
}
.masthead__nav a[aria-current="page"] { color: var(--oxblood); border-bottom: 2px solid var(--oxblood); }

/* Photo treatment: grayscale, hairline, small-caps caption */
.photo { margin: 0 0 32px; }
.photo__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); border: 1px solid var(--ink); }
.photo figcaption { font-family: 'Public Sans', sans-serif; font-variant: small-caps; letter-spacing: .06em; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.photo--article { max-width: 460px; }
.photo--article .photo__img { aspect-ratio: auto; }

/* Index additions */
.area__more { margin-top: 10px; }
.area__more a, .insight__all a { font-weight: 600; border-bottom: 1px solid var(--oxblood); }
.insight { padding-block: var(--section-padding); border-top: 1px solid rgba(26, 26, 26, .2); }
.insight__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) {
  .insight__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .teaser { padding-inline: 28px; border-left: 1px solid rgba(26, 26, 26, .2); }
  .teaser:first-child { padding-left: 0; border-left: 0; }
}
.teaser__meta, .note__meta { text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.teaser h3 { font-size: 1.3rem; margin-bottom: 8px; }
.teaser h3 a { color: var(--ink); }
.teaser h3 a:hover { color: var(--oxblood); }
.teaser p:last-child { color: var(--muted); }
.insight__all { margin-top: 28px; }

/* Area pages */
.area-page { padding-block: var(--section-padding); }
.area-page__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 860px) { .area-page__grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; } }
.area-page h1 { font-size: clamp(1.75rem, 8.5vw, 4rem); line-height: 1.05; margin-bottom: 16px; }
.area-page__standfirst { font-style: italic; font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.area-page__main h2, .article h2 { font-size: 1.55rem; margin: 38px 0 12px; }
.area-page__main p { max-width: 62ch; }
.ruled-list li { padding: 12px 0; border-top: 1px solid rgba(26, 26, 26, .2); max-width: 62ch; }
.ruled-list li:last-child { border-bottom: 1px solid rgba(26, 26, 26, .2); }
.steps-list { counter-reset: st; max-width: 62ch; }
.steps-list li { counter-increment: st; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid rgba(26, 26, 26, .2); }
.steps-list li:last-child { border-bottom: 1px solid rgba(26, 26, 26, .2); }
.steps-list li::before { content: counter(st); position: absolute; left: 0; top: 6px; font-family: 'Newsreader', serif; font-size: 1.8rem; color: var(--oxblood); }
.area-page__side { display: grid; gap: 24px; align-content: start; }
.who, .cta-box { border: 1px solid var(--ink); padding: 22px; background: var(--paper); }
.who h2, .cta-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.who__name { font-family: 'Newsreader', serif; font-weight: 600; font-size: 1.3rem; }
.who__role { color: var(--muted); }
.cta-box p { color: var(--muted); margin-bottom: 14px; }
.cta-box .btn { width: 100%; }

/* Insight list */
.insight-page { padding-block: var(--section-padding); }
.insight-page h1 { font-size: clamp(1.75rem, 8.5vw, 4rem); line-height: 1.05; margin-bottom: 12px; }
.insight-page__intro { color: var(--muted); font-style: italic; font-size: 1.15rem; margin-bottom: 28px; }
.article-filter { display: flex; flex-wrap: wrap; gap: 16px 20px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 14px; }
.article-filter__field { flex: 1 1 220px; }
.article-filter label { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 6px; }
.article-filter select, .article-filter input { width: 100%; padding: 11px 13px; border: 1px solid rgba(26, 26, 26, .4); border-radius: 0; background: #fff; color: var(--ink); }
.article-count { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.article-empty { padding: 24px 0; font-style: italic; font-size: 1.1rem; }
.notes { display: grid; grid-template-columns: 1fr; }
.note { padding-block: 26px; border-top: 1px solid rgba(26, 26, 26, .25); max-width: 68ch; }
.note h2 { font-size: 1.6rem; margin-bottom: 10px; }
.note p:not(.note__meta) { color: var(--ink); }
.note__more { margin-top: 12px; }
.note__more a { font-weight: 600; border-bottom: 1px solid var(--oxblood); }

/* Article */
.article { padding-block: var(--section-padding); }
.article__inner { max-width: 760px; }
.article h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.08; margin-bottom: 14px; }
.article__byline { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.article p { margin-bottom: 14px; max-width: 64ch; }
.article .lead__body { font-size: 1.1rem; margin-bottom: 8px; }
.pullquote { margin: 36px 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--oxblood); }
.pullquote p { font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.3; margin: 0; }
.related-areas { margin: 36px 0; }
.related-areas h2 { margin-top: 0; }
.related-areas a { font-weight: 600; border-bottom: 1px solid var(--oxblood); }
.cta-box--wide { margin-top: 40px; }
.cta-box--wide .btn { width: auto; }
.site-footer__disc { font-style: italic; }
