/*
Theme Name: Maison Drabiec Blog
Theme URI: https://maisondrabiec.fr/blog
Author: Maison Drabiec
Description: Theme WordPress leger pour le blog Maison Drabiec.
Version: 1.0.0
Requires at least: 6.0
Text Domain: maison-drabiec-blog
*/

:root {
  --md-ink: #202124;
  --md-muted: #62676d;
  --md-line: #dedbd2;
  --md-paper: #fbfaf7;
  --md-card: #ffffff;
  --md-teal: #0f766e;
  --md-gold: #b37a1b;
  --md-red: #b23b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--md-ink);
  background: var(--md-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--md-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  border-bottom: 1px solid var(--md-line);
  background: var(--md-card);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--md-ink);
  text-decoration: none;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand span {
  color: var(--md-muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--md-ink);
  text-decoration: none;
}

.nav .cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--md-teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--md-line);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--md-muted);
  font-size: 1.08rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  padding: 42px 0 56px;
}

.post-list {
  display: grid;
  gap: 22px;
}

.post-card {
  padding: 24px;
  border: 1px solid var(--md-line);
  border-radius: 8px;
  background: var(--md-card);
}

.post-card h2,
.entry h1 {
  margin: 0 0 10px;
  line-height: 1.16;
  letter-spacing: 0;
}

.post-card h2 {
  font-size: 1.55rem;
}

.post-card h2 a {
  color: var(--md-ink);
  text-decoration: none;
}

.post-thumb,
.entry-thumb {
  display: block;
  margin: 0 0 18px;
}

.post-thumb img,
.entry-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #eee9df;
}

.entry-thumb figcaption {
  margin-top: 8px;
  color: var(--md-muted);
  font-size: 0.9rem;
}

.meta {
  color: var(--md-muted);
  font-size: 0.92rem;
}

.entry {
  padding: 30px;
  border: 1px solid var(--md-line);
  border-radius: 8px;
  background: var(--md-card);
}

.entry h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.entry h2 {
  margin-top: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.entry h3 {
  margin-top: 1.6rem;
}

.entry p,
.entry ul,
.entry ol {
  margin-bottom: 1.1rem;
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--md-gold);
  background: #fff7e3;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-box {
  padding: 20px;
  border: 1px solid var(--md-line);
  border-radius: 8px;
  background: var(--md-card);
}

.side-box h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.side-box ul {
  margin: 0;
  padding-left: 18px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--md-line);
  color: var(--md-muted);
  background: var(--md-card);
  font-size: 0.94rem;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .entry,
  .post-card {
    padding: 20px;
  }
}
