/* ----------------------------
   Root & Global Styles
----------------------------- */
:root {
  --primary: #1f4e8c; /* trust-inspired deep blue */
  --primary-light: #6ea3d8;
  --accent: #ffb347;
  --text: #313231;
  --bg: #f9f9f9;
  --font-body: 'Open Sans', sans-serif;
}

html {
  font-size: 16px;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  counter-reset: figure;

}


figure {
  display: table;             /* shrink to fit image + caption */
  margin: 2rem auto;          /* center figure with space around */
}


figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;         /* optional: soften image corners */
}

/* Style the figcaption */
figcaption {
  counter-increment: figure;  /* increase figure counter */
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  color: #666;                /* softer color than body text */
  margin-top: 0.5rem;
}

/* Add automatic "Figure n:" prefix */
figcaption::before {
  content: "Figure " counter(figure) ": ";
  font-weight: 600;
  color: var(--primary);      /* accent color for "Figure n:" */
}

/* ----------------------------
   Header
----------------------------- */
header.site-header {
  background: var(--primary);
  color: white;
  /*padding: 2rem 1rem;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
  text-align: center;
  min-height: 100vh;
}

.site-header > * {
  width: 100%;
}

.intro,
.hero-explanation {
  flex: 1 1 320px;
}

.intro {
  order: 1;
}

.hero-explanation {
  order: 2;
  width: 100%;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Contact highlight */
.contact {
  background: rgba(140, 173, 204, 0.15); /* soft tint of primary-light */
  border-left: 5px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

header.site-header h1 {
  font-size: 2rem;
  margin: 0;
}

header.site-header h3 {
  font-weight: 400;
  margin: 0.5rem 0;
}

header.site-header a {
  color: white;
  text-decoration: underline;
}

header.site-header a:hover {
  color: var(--accent);
}

#disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #0f2744;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

#disclaimer a {
  color: #0f2744;
  text-decoration: underline;
  font-weight: 800;
}

a {
  color: var(--primary);
  text-decoration: underline dotted;
  text-underline-offset: 2px; /* optional: gives a little space between text and line */
}

a:hover {
  color: var(--accent);
  text-decoration-style: dotted; /* keeps the dotted style on hover */
}

/* Body and typography */
article {
  max-width: 65ch;
  margin: 2rem auto;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  color: #222;
}

.teaser {
  font-weight: bold;     /* whole teaser bold */
  margin: 1.5rem 0;      /* optional spacing above/below */
}

.teaser::first-line {
  text-transform: lowercase;  /* force lowercase */
  font-variant: small-caps;   /* render as small caps */
}


/* Headings */
.charter-page h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

article h2, article h3, article h4 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  text-transform: none;
  font-variant: none;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

article h5 {
  font-size: 1em;
}

/* Links */
article a {
  color: #0077cc;
  text-decoration: underline dotted;
}

/* Lists */
article ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

article ul li {
  margin-bottom: 0.75rem;
}

.charter-page .numbered-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  counter-reset: charter-item;
}

.charter-page .numbered-list li {
  counter-increment: charter-item;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.charter-page .numbered-anchor {
  display: inline-block;
  min-width: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.charter-page .numbered-anchor::before {
  content: counter(charter-item) ".";
}

.charter-page .numbered-anchor:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Contact section using <dl> */
.contact dl {
  display: grid;
  grid-template-columns: max-content auto;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}

.contact dt {
  font-weight: bold;
}

.contact dd {
  margin: 0;
}
.outer {
  width: 100%;
  padding: 2rem 1rem;
  background-color: #fff;
}

.inner {
  max-width: 1200px;       /* max width of the whole inner container */
  min-width: 600px;        /* never shrink below 600px */
  margin: 0 auto;          /* center horizontally */
  padding: 0 1rem;         /* small inner padding */
  display: flex;
  flex-direction: column;
  align-items: center;     /* center content horizontally */
  box-sizing: border-box;
}

.box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 900px;        /* prevents boxes from stretching too wide */
}

.box {
  flex: 1 1 200px;          /* grow and shrink but minimum width 200px */
  max-width: 300px;         /* optional max width for each box */
  padding: 1rem 1.5rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  box-sizing: border-box;
}


h2, h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  text-transform: lowercase; /* ensure letters are lowercase for small-caps */
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-top: 0;
  position: relative;
}



/* ----------------------------
   Navigation
----------------------------- */
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 1rem auto 0 auto;
  padding: 0;
  justify-content: center;
  background-color: var(--primary);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

nav a:hover {
  background: var(--primary-light);
}

/* ----------------------------
   Main Content
----------------------------- */
.container {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

h4 {
  margin: 0.5rem 0;
}

/* ----------------------------
   Card Lists (Thoughts / Talks)
----------------------------- */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card-list li {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3e7ef;
  box-shadow: 0 4px 16px rgba(56, 72, 117, 0.07), 0 1.5px 4px rgba(56, 72, 117, 0.04);
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  margin: 0;
  transition: transform 0.15s cubic-bezier(.4,2,.3,1), box-shadow 0.15s cubic-bezier(.4,2,.3,1);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-list li:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 24px rgba(56, 72, 117, 0.13), 0 2px 8px rgba(56, 72, 117, 0.08);
}

.card-list .date {
  align-self: flex-start;
  font-size: 0.85rem;
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card-list h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.card-list .category {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.card-list p {
  margin: 0.5rem 0 0.5rem 0;
  color: #444;
  flex: 1 1 auto;
}
  .site-header { position: relative; }
  .hero-explanation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    min-height: 100%;
    align-self: stretch;
  }

.community-members {
  text-align: left;
  margin: 0 auto 1rem auto;
  padding-left: 1.2rem;
  max-width: 640px;
  color: #0f2744;
}

.community-members li {
  margin-bottom: 0.35rem;
}
  .hero-content {
    max-width: 900px;
    text-align: center;
  }
  .hero-content h2 { margin: 0 0 .5rem; font-size: 1.5rem; color: white;}
  .hero-content p  { margin: 0; font-size: 1rem;  }
  @media (min-width: 768px) {
    .hero-content h2 { font-size: 2rem; }
    .hero-content p  { font-size: 1.125rem; }
  }

/* Responsive: 2 columns on medium, 3 on large screens */
@media (min-width: 600px) {
  .card-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .card-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Events should always stay a single column spanning the container */
#events .card-list {
  grid-template-columns: 1fr;
}

/* Use case card meta info */
.usecase-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #5d6478;
  margin: 0.75rem 0;
  align-items: center;
}

.usecase-card-meta .usecase-status {
  font-weight: 600;
  color: var(--primary);
}

.usecase-card-meta .usecase-artefacts-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.usecase-card-meta .usecase-artefacts-link:hover {
  text-decoration: underline;
}

/* Must Reads use a single column layout that blends with the page text */
.mustread-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.mustread-item {
  padding: 0;
  width: 100%;
}

.mustread-item .meta {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin: 0.25rem 0 0.75rem 0;
}

.mustread-item h4 {
  margin: 0;
}

.mustread-item h4 a {
  color: var(--primary);
  text-decoration: underline dotted;
}

.mustread-item h4 a:hover {
  color: var(--accent);
}

/* Use case layout cards */
.usecase-infocards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-card {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(56, 72, 117, 0.08);
}

.info-card h5 {
  margin: 0 0 0.6rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
}

.info-card ul {
  margin: 0;
  padding-left: 1rem;
}

.info-card li {
  margin-bottom: 0.35rem;
}

.info-card a {
  color: var(--primary);
  text-decoration: underline dotted;
}

.info-card a:hover {
  color: var(--accent);
}

.status-inline {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 72, 117, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ----------------------------
   Contact Section
----------------------------- */
.contact a {
  color: var(--primary);
}

.contact a:hover {
  text-decoration: underline;
}

/* ----------------------------
   Footer
----------------------------- */
footer {
  font-size: 0.85rem;
  color: #666;
  padding: 2rem 0;
  text-align: center;
  background: white;
  border-top: 1px solid #ddd;
}

/* ----------------------------
   Responsive Design
----------------------------- */
@media (max-width: 768px) {
  header.site-header {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    justify-content: center;
  }
}

/* Post Page Styles */
.post-page {
  margin-top: 2rem;
}

.post h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.post-meta .by a {
  color: var(--primary);
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.post-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* ----------------------------
   Post Page Typography
----------------------------- */
.post-content {
  font-size: 1rem;          /* comfortable base size */
  line-height: 1.65;        /* airy line height */
  letter-spacing: 0.01em;   /* subtle spacing */
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.5em;     /* spacing between paragraphs */
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 700;
}

.post-content h2 {
  font-size: 1.8rem;
  color: var(--primary);
}

.post-content h3 {
  font-size: 1.4rem;
  color: var(--primary-light);
}

.post-content h4 {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--accent);
}

.post-content blockquote {
  border-left: 4px solid var(--primary-light);
  padding-left: 1rem;
  margin: 1.5em 0;
  color: #555;
  font-style: italic;
  background: rgba(140, 173, 204, 0.05);
  border-radius: 4px;
}

.post-content ul,
.post-content ol {
  margin: 1em 0 1.5em 1.5em;
  line-height: 1.5;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

.post-content pre,
.post-content code {
  font-family: 'Fira Mono', monospace;
  background: #f5f5f5;
  padding: 0.5em 0.8em;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.95em;
}

.post-content code {
  padding: 0.2em 0.4em;
}

.post-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 3em 0;
}
