/*
Theme Name: Designs by Dharshan Child
Theme URI: https://designsbydharshan.ca
Description: Design-system child theme — editorial serif type, terracotta + cream + gold palette.
Template: astra
Version: 1.0.0
Author: Site Admin
License: GNU General Public License v2 or later
Text Domain: designsbydharshan-child
*/

/* ---------------------------------------------
   Design tokens
--------------------------------------------- */
:root {
  --dbd-terracotta: #B85C38;
  --dbd-terracotta-dark: #9A4A2B;
  --dbd-gold: #EFC462;
  --dbd-ink: #2E2620;
  --dbd-text: #57504A;
  --dbd-cream: #F7F1E7;
  --dbd-tint: #F3E4D3;
  --dbd-line: #E9E0D4;
  --dbd-serif: 'Libre Baskerville', Georgia, serif;

  --dbd-text-sm: 0.9rem;
  --dbd-text-base: 1.0625rem;
  --dbd-text-xl: clamp(1.55rem, 2.6vw, 2rem);
  --dbd-text-2xl: clamp(2rem, 3.8vw, 2.8rem);
  --dbd-text-3xl: clamp(2.5rem, 5.5vw, 3.6rem);

  --dbd-radius-md: 0.75rem;
  --dbd-radius-lg: 1.1rem;
  --dbd-radius-pill: 999px;
  --dbd-shadow-sm: 0 1px 2px rgba(46, 38, 32, 0.06), 0 4px 12px rgba(46, 38, 32, 0.05);
  --dbd-shadow-md: 0 4px 16px rgba(46, 38, 32, 0.08), 0 12px 32px rgba(46, 38, 32, 0.06);
  --dbd-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------
   Base typography — editorial voice
--------------------------------------------- */
body {
  font-size: var(--dbd-text-base);
  line-height: 1.75;
  color: var(--dbd-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dbd-serif);
  color: var(--dbd-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--dbd-text-3xl); }
h2 { font-size: var(--dbd-text-2xl); }
h3 { font-size: var(--dbd-text-xl); }

/* Generous editorial spacing between sections of content */
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 2rem; }

a { transition: color var(--dbd-transition); }

/* ---------------------------------------------
   Content links — terracotta underline
--------------------------------------------- */
.entry-content :is(p, li) a {
  font-weight: 500;
  color: var(--dbd-terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--dbd-gold);
  padding-bottom: 1px;
}

.entry-content :is(p, li) a:hover {
  color: var(--dbd-terracotta-dark);
  border-bottom-color: var(--dbd-terracotta);
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.button,
.wp-block-button__link,
.ast-button,
button[type="submit"],
.elementor-button {
  border-radius: var(--dbd-radius-pill);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color var(--dbd-transition), box-shadow var(--dbd-transition), transform var(--dbd-transition);
}

.button,
.ast-button,
button[type="submit"] {
  background-color: var(--dbd-terracotta);
  color: #fff;
}

.button:hover,
.ast-button:hover,
button[type="submit"]:hover {
  background-color: var(--dbd-terracotta-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--dbd-shadow-md);
}

/* ---------------------------------------------
   Portfolio & blog cards
--------------------------------------------- */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  border: 1px solid var(--dbd-line);
  border-radius: var(--dbd-radius-lg);
  box-shadow: var(--dbd-shadow-sm);
}

.ast-separate-container .ast-article-post {
  transition: box-shadow var(--dbd-transition), transform var(--dbd-transition);
}

.ast-separate-container .ast-article-post:hover {
  box-shadow: var(--dbd-shadow-md);
  transform: translateY(-3px);
}

/* Blog featured images (absorbed from astra-custom-style.css) */
.ast-blog-layout-classic-grid .ast-blog-featured-section img,
.ast-blog-layout-grid .ast-blog-featured-section img,
.ast-blog-layout-list .ast-blog-featured-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 250px;
  border-radius: var(--dbd-radius-md);
  box-shadow: var(--dbd-shadow-sm);
}

.ast-blog-featured-section {
  margin-bottom: 1.5em;
  overflow: hidden;
}

.widget_recent_entries img,
.widget_categories img,
.widget_archive img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

@media (max-width: 768px) {
  .ast-blog-layout-classic-grid .ast-blog-featured-section img,
  .ast-blog-layout-grid .ast-blog-featured-section img {
    min-height: 200px;
  }
}

/* ---------------------------------------------
   Tables & quotes — warm editorial treatment
--------------------------------------------- */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--dbd-radius-md);
  overflow: hidden;
  box-shadow: var(--dbd-shadow-sm);
}

.entry-content th {
  background: var(--dbd-tint);
  color: var(--dbd-ink);
  text-align: left;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--dbd-line);
}

.entry-content blockquote {
  margin: 2.5rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--dbd-gold);
  background: var(--dbd-cream);
  border-radius: 0 var(--dbd-radius-md) var(--dbd-radius-md) 0;
  font-family: var(--dbd-serif);
  font-size: 1.1em;
}

/* ---------------------------------------------
   Mobile logo boost (absorbed from Additional CSS)
--------------------------------------------- */
@media (max-width: 768px) {
  .custom-logo-link img,
  .ast-mobile-header-wrap .custom-logo-link img,
  .ast-header-break-point .site-branding img {
    max-width: 250px !important;
    width: 250px !important;
    height: auto !important;
  }

  .footer-widget-1 .wp-block-image img,
  [id*="footer-widget"] .wp-block-image img,
  .footer-widget-area .wp-block-image img {
    max-width: 250px !important;
    width: min(250px, 90vw) !important;
    height: auto !important;
  }
}

/* ---------------------------------------------
   Accessibility
--------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--dbd-terracotta);
  outline-offset: 2px;
}
