/* ============================================================
   Clément Marot Website – Complete Stylesheet
   Font: Inter (modern, readable)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* ---------- Root color and spacing variables ---------- */
:root {
  --bg: #fbf9f5;
  --border: #cbbfa8;
  --accent: #5e3c1f;
  --accent-light: #b8916e;
  --text: #2b2520;
  --muted: #6a665c;
  --paper: #fffefb;
}

/* ---------- Base typography ---------- */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--accent);
  margin-top: 1.2em;
  margin-bottom: .4em;
  font-weight: 600;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1em 0;
}

a {
  color: #8a4d1c;
  text-decoration: none;
  transition: color .15s ease;
}
a:hover, a:focus {
  color: #c1743f;
  text-decoration: underline;
}

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

/* ---------- Header & Navigation ---------- */
.site-header {
  border-bottom: 3px double var(--border);
  background: linear-gradient(#fffefb, #f5f0e8);
  padding: .5rem 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marot-thumb {
  width: 70px;
  border: 2px solid var(--border);
  border-radius: 4px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, .15);
}

.title-block h1 {
  font-size: 1.9rem;
  margin: 0;
}

.subtitle {
  margin: 0;
  color: var(--accent-light);
  font-size: .95rem;
  font-weight: 500;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .6rem;
  padding-bottom: .6rem;
  border-top: 1px solid var(--border);
}

.topnav a {
  background: #fdfaf5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .4rem .8rem;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 0 #fff inset;
}

.topnav a:hover,
.topnav a:focus {
  background: #f7f2ea;
  border-color: var(--accent-light);
}

.topnav a.active {
  background: var(--accent);
  color: #fff;
}

/* ---------- Main content area ---------- */
.content {
  max-width: 1024px;
  margin: 2rem auto;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.content h2 {
  color: var(--accent);
  margin-top: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px double var(--border);
  text-align: center;
  padding: 1rem 0;
  font-size: .9rem;
  color: var(--accent-light);
  background: #f8f6f2;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 1.7rem;
}

.gallery figure {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform .2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: .4rem;
  line-height: 1.4;
}

/* ---------- Images ---------- */

.float-right {
  float: right;
  margin: 0 0 1em 1em;  /* top, right, bottom, left margins */
  width: 120px;         /* or whatever fits your layout */
  border-radius: 4px;
  border: 1px solid var(--border);


/* ---------- Tables & lists ---------- */
table {
  border-collapse: collapse;
  margin: 1em 0;
}

td, th {
  padding: .4em .6em;
  border: 1px solid var(--border);
  vertical-align: top;
}

ul, ol {
  margin: 0 0 1em 1.4em;
}

/* === Legacy FrontPage Cleanup Styles === */

/* Reset browser defaults and tame FrontPage spacing */
body {
  margin: 1.5em auto;
  max-width: 60rem;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #222;
}

/* Paragraphs: smaller, consistent vertical rhythm */
p {
  margin-top: 0.4em;
  margin-bottom: 0.8em;
}

/* Remove margin from empty paragraphs (often used as spacers) */
p:empty {
  display: none;
}

/* Headings: consistent spacing */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

/* Lists: remove extra gaps when <p> tags are inside <li> */
li p {
  margin: 0.2em 0 0.4em 0;
}

/* Reduce list spacing overall */
ul, ol {
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  padding-left: 1.5em;
}

/* Optional: make links more modern */
a {
  color: #0645ad;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Images and tables fit nicely */
img, table {
  max-width: 100%;
  height: auto;
  border: none;
}

/* Light top and bottom space for HR */
hr {
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid #ccc;
}




/* ---------- Mobile adjustments ---------- */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    justify-content: center;
  }

  .content {
    padding: 1rem;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}
