:root {
  color-scheme: light;
  --bg: #fdfdfc;
  --fg: #16181a;
  --fg-soft: #2b3033;
  --muted: #6d7378;
  --muted-2: #9aa1a5;
  --accent: #1f5d4c;
  --accent-bg: #eef4f1;
  --border: #e7e9ea;
  --border-soft: #f0f2f2;
  --border-strong: #16181a;

  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 28px 32px 48px;
}

/* Header / masthead */

.site-header {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 32px;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  padding: 28px 0 16px;
  border-bottom: 2px solid var(--border-strong);
}

.site-title {
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-header nav a {
  color: var(--accent);
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  max-width: 660px;
  margin: 0 auto;
  padding: 18px 32px 40px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:first-of-type {
  margin-left: auto;
}

/* Homepage: featured articles + archive list */

.featured {
  display: flex;
  flex-direction: column;
}

.featured-article {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
}

.featured-article img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}

.featured-article .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-article a.title {
  text-decoration: none;
  color: var(--fg);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.featured-article p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 30px 0 6px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-heading .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-heading a {
  font-size: 12px;
  text-decoration: none;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: flex;
  flex-direction: column;
}

.archive-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.archive-list .date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  width: 82px;
  flex: none;
}

.archive-list a {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
}

/* Item pages: beer / brewery / beertype */

.item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.item-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

.item-meta .rating {
  color: var(--accent);
}

.item-header {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  align-items: flex-start;
}

.thumbnail {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}

.hero {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 16px;
}

dl.fields {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 0;
  font-size: 13px;
}

dl.fields dt {
  padding: 7px 16px 7px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border-soft);
}

dl.fields dd {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
}

.content {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-soft);
}

.content p {
  margin: 14px 0 0;
}

.content p:first-child {
  margin-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
}

.tags a {
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 9px;
  border-radius: 2px;
}

.related-types, .references {
  margin-top: 26px;
}

.related-types h2, .references h2 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.related-types ul, .references ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-types li, .references li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}

/* Generic listing pages (bryggerier/oeltyper/oelanmeldelser) */

.listing {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.listing li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.listing a {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
}

.meta {
  font-family: var(--font-mono);
  color: var(--muted-2);
  font-size: 12px;
}
