

/* .css for https://www.cbeaume.com */
/* To be imported by cbeaume2026.css */
/* Author: Cédric Beaume */
/* Date: 2026 */


/* ==== Base Style ==== */

* {
  box-sizing: border-box; /* includes padding in element width */
}

body {
  margin: 0;
  padding: var(--space-3);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--font-color);
  background: var(--main-background);
  text-rendering: optimizeLegibility; /* aesthetic improvement (e.g. ligatures) */
  /* Controls hyphenation; useful for justified text */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  /* Font improvement for Apple devices */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==== Headings ==== */

h1 {
  font-family: "Times New Roman", serif;
  font-size: var(--font-size-name);
  text-align: center;
  color: var(--author-color);
  margin: 0;
}

h2 {
  font-family: "Times New Roman", serif;
  font-size: var(--font-size-career);
  font-style: italic;
  text-align: center;
  color: var(--author-color);
  margin: 0 0 var(--space-3) 0;
}

h3 {
  font-family: "Times New Roman", serif;
  font-size: var(--font-size-section);
  font-weight: bold;
  line-height: 1.2;
  color: var(--section-color);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  padding-left: var(--space-2);
  border-left: 3px solid var(--section-color);
}

h4 {
  font-family: "Times New Roman", serif;
  font-size: var(--font-size-subsection);
  font-weight: bold;
  color: var(--section-color);
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
  letter-spacing: 0.02em;
}


/* ==== Paragraph ==== */

p {
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
  margin: 0 0 var(--space-2) 0;
}
    
    
/* ==== Hyperlinks ==== */

a {
  font-weight: bold;
  color: var(--link-color);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
  text-decoration-color: rgba(58,95,163,0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration-color: currentColor;
}

    
/* ==== Media ==== */

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

audio {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: var(--space-2) auto;
}

figcaption {
  font-style: italic;
  text-align: center;
  font-size: var(--font-size-caption);
  margin: 0 0 var(--space-2) 0;
}

.media-block {
  text-align: center;
  margin: var(--space-3) 0;
}

.media-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-2);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.media-row img {
  display: block;
  max-height: 250px;
  height: auto;
  border-radius: 0.5em;
}

.media-block iframe {
  display: block;
  margin: 0 auto; 
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 0.5em;
  border: 0;
}


/* ==== Expanding Element ==== */

details {
  margin-bottom: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-color);
  border-radius: 0.5em;
  background: rgba(0,0,0,0.02);
}

summary {
  cursor: pointer;
  font-family: "Times New Roman", serif;
  font-size: var(--font-size-chapter);
  transition: color 0.15s ease;
}

summary::marker {
  color: var(--section-color);
}

summary:hover {
  color: var(--section-color);
}

details[open] > summary {
  padding-bottom: var(--space-1);
}

details[open] > summary + p {
  margin-top: 0;
}
