/* brianebbesen.dk. Rolig, tekstfokuseret. En serif (Newsreader, selvhostet) til overskrifter, systemets sans til broedtekst. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
}

:root {
  --bg: #FBFAF7;
  --ink: #1C1B19;
  --muted: #625E56;
  --line: #E4E0D8;
  --accent: #2F5D50;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --ink: #ECE8E0;
    --muted: #A49F95;
    --line: #2E2C28;
    --accent: #8FBFAE;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* Top og bund */
.top { padding: 1.5rem 0 3rem; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.top nav a:hover { color: var(--accent); }
.foot { margin-top: 5rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.foot p { margin: 0 0 .5rem; }
.foot a { color: var(--ink); }
.muted, .foot .muted a { color: var(--muted); }

/* Typografi */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-optical-sizing: auto; }
h2 { font-size: 1.6rem; margin-top: 2.75rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; }
p, ul, ol { margin: 0 0 1.25rem; }
.lede { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink); }
.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.hero { padding: 1rem 0 2rem; }
.hero h1 { margin-bottom: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
small, .small { font-size: .9rem; color: var(--muted); }

/* Broedtekst i artikler og sider */
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--line); color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }
.prose img { max-width: 100%; height: auto; display: block; }
.prose pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 4px; font-size: .9rem; line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: .92em; }
.prose :not(pre) > code { padding: .1em .3em; border: 1px solid var(--line); border-radius: 3px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Liste over indlaeg */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts time { display: block; font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.posts h3, .posts h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.posts h3 a, .posts h2 a { color: var(--ink); text-decoration: none; }
.posts h3 a:hover, .posts h2 a:hover { color: var(--accent); text-decoration: underline; }
.posts p { margin: 0; color: var(--muted); }

/* Artikel */
.article-head { margin-bottom: 2.5rem; }
.article-head .meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.tags { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li { font-family: var(--mono); font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.article-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Kontakt */
.contact { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1.5rem; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color .15s ease; }
}
@media (max-width: 480px) {
  .top { padding-bottom: 2rem; }
  .top nav { gap: 1rem; }
  .contact { grid-template-columns: 1fr; gap: .1rem; }
  .contact dd { margin-bottom: .75rem; }
}

/* Forside: hero-foto, navn, spor og sektioner (26. oktober 2026) */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.hero-photo { margin-top: -3rem; margin-bottom: 2.5rem; }
.hero-photo img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.05); }
.name { font-size: clamp(2.6rem, 2rem + 3vw, 3.75rem); margin-bottom: .5rem; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; margin: 0 0 1.5rem; }
.links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: 1.5rem 0 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.links a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .15em; }
.links a:hover { border-bottom-width: 2px; }
.hero .prose p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }

.tracks { margin: 3rem 0 0; }
.tracks ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.tracks li { padding: 1rem 1rem 1.1rem; border-right: 1px solid var(--line); }
.tracks li:last-child { border-right: 0; }
.tracks .num { display: block; font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: 1.25rem; }
.tracks h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.tracks p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }

.s { margin-top: 3.5rem; }
.section-title { font-size: 1.9rem; font-style: italic; font-weight: 400; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--ink); }
.more { margin-top: 1rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.more a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .15em; }
.photo { margin: 1.5rem 0 0; }
.photo img { display: block; width: 100%; height: auto; filter: grayscale(1); }
.contact-block .big-links { display: flex; flex-direction: column; gap: .35rem; margin: 1rem 0 0; font-family: var(--serif); font-size: 1.35rem; }
.contact-block .big-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); width: max-content; max-width: 100%; }
.contact-block .big-links a:hover { border-bottom-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .tracks ol { grid-template-columns: repeat(2, 1fr); }
  .tracks li:nth-child(2) { border-right: 0; }
  .tracks li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Briefen 26. oktober 2026: indgange, begreber, foredrag, formular, forfatterboks */
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.9rem); }
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 2rem; }
.entry { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.entry:last-child { border-right: 0; }
.entry .num { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.entry b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.2; }
.entry span:not(.num) { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.entry:hover b { color: var(--accent); text-decoration: underline; }
.concept-card { border: 1px solid var(--line); padding: 1.25rem; }
.concept-card h3 { margin: .25rem 0 .5rem; font-size: 1.5rem; }
.concept-card h3 a { color: var(--ink); text-decoration: none; }
.concept-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.concept-card p:last-child { margin: 0; }
.venues { list-style: none; margin: 0; padding: 0; }
.venues li { display: flex; gap: 1rem; flex-wrap: wrap; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.venues li b { font-weight: 600; }
.venues li span { color: var(--muted); }
.concepts { margin: 0; }
.concepts div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.concepts div:last-child { border-bottom: 1px solid var(--line); }
.concepts dt { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin: 0 0 .3rem; }
.concepts dt a { color: var(--ink); text-decoration: none; }
.concepts dt a:hover { color: var(--accent); text-decoration: underline; }
.concepts dd { margin: 0; color: var(--muted); }
.pull { margin: 2rem 0; padding: 1.25rem 0 1.25rem 1.25rem; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; font-style: italic; color: var(--ink); }
.facts { list-style: none; padding: 0; }
.facts li { padding: .5rem 0; border-top: 1px solid var(--line); }
.numbered { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.numbered li { padding: 1rem; border-right: 1px solid var(--line); }
.numbered li:last-child { border-right: 0; }
.numbered .num { display: block; font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: 1rem; }
.numbered h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.numbered p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.summary { padding: 1rem 1.25rem; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, var(--ink)); font-size: 1rem; line-height: 1.5; }
.related { margin-top: 2.5rem; padding: 1.25rem; border: 1px solid var(--line); }
.related ul { margin: 0; padding-left: 1.1rem; }
.related li + li { margin-top: .4rem; }
.author { display: flex; gap: 1rem; align-items: flex-start; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.author p { margin: 0 0 .35rem; }
.form { display: grid; gap: 1rem; margin-top: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: .6rem .7rem; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form button { justify-self: start; font: inherit; font-weight: 600; color: var(--bg); background: var(--ink); border: 0; border-radius: 3px; padding: .75rem 1.25rem; cursor: pointer; }
.form button:hover { background: var(--accent); }
.form-note { margin: 0; }
@media (max-width: 640px) {
  .entries, .numbered { grid-template-columns: 1fr; }
  .entry, .numbered li { border-right: 0; border-bottom: 1px solid var(--line); }
  .entry:last-child, .numbered li:last-child { border-bottom: 0; }
  .form .two-col { grid-template-columns: 1fr; }
}
