:root {
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #1e3a5f;
  --border: #e5e7eb;
  --soft: #f8fafc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

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

.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--accent); color: #fff; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a {
  color: #dbe4ee;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: #fff; }
.site-header nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

@media (max-width: 640px) {
  /* 44px touch targets on phones */
  .site-header nav { gap: 0 16px; }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
}

main.container { padding-top: 32px; padding-bottom: 48px; }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
h2 { font-size: 1.35rem; color: var(--accent); margin: 32px 0 12px; }
h3 { font-size: 1.1rem; margin: 0; }

/* Card titles are h2 (they follow the page h1); project section labels are h3. */
.card h2 { font-size: 1.1rem; color: var(--text); margin: 0; }
.card h2 ~ h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 16px 0 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  background: #fff;
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

.hero h1 { border-bottom: none; margin-bottom: 8px; padding-bottom: 0; }
.headline { font-size: 1.2rem; margin: 0 0 4px; }
.meta, .dates { color: var(--muted); margin: 4px 0 0; }
.dates { font-size: 0.9rem; white-space: nowrap; }
.lead { margin: 8px 0 0; }

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}
.card ul { margin: 12px 0 0; padding-left: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.tag {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.9rem;
}

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--border); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
}
.button-secondary { background: #fff; color: var(--accent); }

.status-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
  border-radius: 6px;
  padding: 10px 14px;
}
.empty { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin: 24px 0 0;
}
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-list { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { margin-bottom: 12px; }
}

.prose { max-width: 70ch; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose code { background: var(--soft); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; font-size: 0.9em; }

/* Footer "Cookie settings" looks like the footer links but is a button,
   because it opens the banner instead of going to a page. */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #fff;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.consent-inner p { margin: 0; flex: 1 1 320px; }
.consent-actions { display: flex; gap: 12px; }
/* Accept and Decline get equal weight so neither choice is nudged. */
.consent-actions button {
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent-actions button:hover { background: var(--soft); }
.consent-banner[hidden], .link-button[hidden] { display: none; }
