/* ===========================================================================
   dedeacoudre.fr — handmade sewing boutique theme over Foundation 6
   Tokens from design/specs.md:
   terracotta #C56B4B / deep #9C4E33 / rose #D8A7A0 / sage #8AA17F
   cream #FBF6EE / ink #3A322C / muted #8A7F74 / border #EBE1D2
   Headings: Playfair Display · Body: Nunito Sans
   =========================================================================== */
:root {
  --dd-terra: #C56B4B;
  --dd-terra-deep: #9C4E33;
  --dd-rose: #D8A7A0;
  --dd-sage: #8AA17F;
  --dd-cream: #FBF6EE;
  --dd-card: #FFFFFF;
  --dd-ink: #3A322C;
  --dd-muted: #8A7F74;
  --dd-border: #EBE1D2;
  --dd-radius: 14px;
  --dd-shadow: 0 4px 16px rgba(58,50,44,0.07);
  --dd-shadow-hover: 0 10px 28px rgba(58,50,44,0.13);
}
body { background: var(--dd-cream); color: var(--dd-ink); font-family: "Nunito Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: "Playfair Display", Georgia, serif; color: var(--dd-terra-deep); font-weight: 700; line-height: 1.25; }

/* header */
.dd-header { position: sticky; top: 0; z-index: 60; background: var(--dd-terra); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.10); }
.dd-header__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.25rem; flex-wrap: wrap; }
.dd-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.dd-brand__title { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.4rem; color: #fff; }
.dd-brand__sub { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f6e4dc; }
.dd-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.dd-nav li { margin: 0; position: relative; }
.dd-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 999px; color: #fbeae3; text-decoration: none; font-size: 0.9rem; font-weight: 700; transition: background .2s,color .2s; }
.dd-nav a:hover, .dd-nav a.active { background: rgba(255,255,255,0.18); color: #fff; }
.dd-nav .has-children > .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--dd-card); border: 1px solid var(--dd-border); border-radius: var(--dd-radius); box-shadow: var(--dd-shadow); padding: 0.3rem; z-index: 70; flex-direction: column; }
.dd-nav .has-children:hover > .submenu, .dd-nav .has-children:focus-within > .submenu { display: flex; }
.dd-nav .submenu a { color: var(--dd-ink); white-space: nowrap; font-weight: 400; }
.dd-nav .submenu a:hover { background: #f7ece2; color: var(--dd-terra-deep); }
.dd-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 8px; padding: 0.25rem 0.6rem; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 940px) {
  .dd-toggle { display: block; }
  .dd-nav { display: none; flex-basis: 100%; }
  #dd-nav-toggle:checked ~ .dd-nav { display: block; }
  .dd-nav ul { flex-direction: column; align-items: stretch; }
  .dd-nav .has-children > .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
}

/* hero */
.dd-hero { background: linear-gradient(120deg, var(--dd-terra), var(--dd-terra-deep)); color: #fff; border-radius: 0 0 20px 20px; padding: 3rem 1.5rem; text-align: center; margin-bottom: 2rem; }
.dd-hero h1 { color: #fff; font-size: clamp(1.9rem,4vw,2.9rem); margin: 0 0 0.5rem; }
.dd-hero p { color: #f6ded6; max-width: 60ch; margin: 0 auto; }
.dd-hero::after { content:""; display:block; width:90px; height:4px; background:var(--dd-rose); margin:1.1rem auto 0; border-radius:4px; }

/* layout */
.dd-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.dd-cols { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 940px) { .dd-cols { grid-template-columns: 1fr; } }
.dd-section-title { font-size: 1.7rem; margin: 0 0 1.1rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--dd-rose); display: inline-block; }

/* sidebar */
.dd-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.dd-panel { background: var(--dd-card); border: 1px solid var(--dd-border); border-radius: var(--dd-radius); box-shadow: var(--dd-shadow); padding: 1.1rem 1.25rem; }
.dd-panel h3 { font-size: 1.05rem; margin: 0 0 0.7rem; color: var(--dd-terra-deep); }
.dd-panel ul { list-style: none; margin: 0; padding: 0; }
.dd-panel li { margin: 0 0 0.4rem; }
.dd-panel a { color: var(--dd-ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.dd-panel a:hover { color: var(--dd-terra); }

/* content */
.content-prose { max-width: 100%; }
.content-copy { margin: 0 0 1rem; }
.content-heading { margin: 1.5rem 0 0.7rem; }
.content-prose a, .content-copy a, .content-mini-card h3 a { color: var(--dd-terra); text-decoration: underline; text-decoration-color: rgba(197,107,75,0.4); text-underline-offset: 2px; }
.content-prose a:hover, .content-copy a:hover { color: var(--dd-terra-deep); }
.content-figure { margin: 1rem 0; }
.content-figure img, .content-gallery img { max-width: 100%; height: auto; border-radius: 10px; }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 0.7rem; margin: 1rem 0; }
.content-gallery__item { margin: 0; }
.content-gallery__item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
figcaption { font-size: 0.8rem; color: var(--dd-muted); margin-top: 0.25rem; }
.content-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.content-table-wrap { overflow-x: auto; margin: 1rem 0; }
.content-table { width: 100%; border-collapse: collapse; background: var(--dd-card); }
.content-table td, .content-table th { padding: 0.45rem 0.6rem; border: 1px solid var(--dd-border); text-align: left; vertical-align: top; }
.content-table th { background: #f7ece2; color: var(--dd-terra-deep); }

/* cards */
.dd-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1.2rem; }
.content-mini-card { background: var(--dd-card); border: 1px solid var(--dd-border); border-radius: var(--dd-radius); box-shadow: var(--dd-shadow); padding: 1rem 1.1rem; transition: transform .2s, box-shadow .2s; }
.content-mini-card:hover { transform: translateY(-3px); box-shadow: var(--dd-shadow-hover); }
.content-mini-card h3 { font-size: 1.02rem; margin: 0 0 0.3rem; }
.content-mini-card p { margin: 0; color: var(--dd-muted); font-size: 0.88rem; }

/* breadcrumbs */
.dd-breadcrumbs { margin: 0 0 1rem; font-size: 0.85rem; }
.dd-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.dd-breadcrumbs li::after { content: "›"; margin-left: 0.35rem; color: var(--dd-muted); }
.dd-breadcrumbs li:last-child::after { content: ""; }
.dd-breadcrumbs a { color: var(--dd-terra); text-decoration: none; }

/* article */
.dd-article { background: var(--dd-card); border: 1px solid var(--dd-border); border-radius: var(--dd-radius); box-shadow: var(--dd-shadow); padding: 1.5rem 1.75rem; }
.dd-article__meta { color: var(--dd-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.dd-article__summary { border-left: 4px solid var(--dd-rose); background: var(--dd-cream); padding: 0.8rem 1.1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.4rem; }
.dd-article__image { float: right; max-width: 40%; margin: 0 0 1rem 1.4rem; border-radius: 10px; }
@media (max-width: 600px) { .dd-article__image { float: none; max-width: 100%; margin: 0 0 1rem; } }
.dd-toc { background: var(--dd-cream); border: 1px solid var(--dd-border); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.4rem; }
.dd-toc ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.dd-toc a { color: var(--dd-terra); }

/* category grid */
.dd-cat-grid { display: grid; gap: 1.2rem; }
.dd-cat-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.dd-cat-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 800px) { .dd-cat-grid.cols-2, .dd-cat-grid.cols-3 { grid-template-columns: 1fr; } }
.dd-cat-card { display: flex; flex-direction: column; overflow: hidden; }
.dd-cat-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.dd-cat-card__body { padding: 1rem 1.1rem; }
.dd-cat-card__body h3 a { color: var(--dd-terra-deep); text-decoration: none; }
.dd-cat-card__body h3 a:hover { color: var(--dd-terra); }
.dd-readmore { display: inline-block; margin-top: 0.5rem; color: var(--dd-terra); font-weight: 700; text-decoration: none; }
.dd-readmore:hover { text-decoration: underline; }

/* footer */
.dd-footer { background: var(--dd-terra-deep); color: #f2ddd4; margin-top: 3rem; padding: 2.5rem 1.25rem; border-top: 4px solid var(--dd-rose); }
.dd-footer__inner { max-width: 1200px; margin: 0 auto; }
.dd-footer h2 { color: #fff; margin: 0 0 0.5rem; font-family: "Playfair Display", serif; }
.dd-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0; }
.dd-footer__links a { color: #f3ddd3; text-decoration: none; font-size: 0.85rem; }
.dd-footer__links a:hover { text-decoration: underline; color: #fff; }
.dd-footer__copy { color: #d6a695; font-size: 0.8rem; margin-top: 1rem; }
