/*
 * WayMark Desert / Sun theme
 *
 * Drop this file into your content directory as "style.css".
 */

/* ------------------------------------------------------------------
 * 1. THEME VARIABLES
 * ------------------------------------------------------------------ */
:root {
  --bg: #fff8e8;        /* sunlit sand */
  --fg: #382719;        /* dark desert earth */
  --muted: #8c765c;     /* weathered sandstone */
  --link: #b95025;      /* burnt orange */
  --border: #e8d4ae;    /* pale sand */
  --code-bg: #f5e8ce;   /* warm dune */

  --accent: #e99a24;    /* desert sun */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

/* Dark mode: desert night with warm sunlight accents */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211b16;        /* deep desert night */
    --fg: #f6e8d0;        /* warm moonlit sand */
    --muted: #b5a087;     /* muted sandstone */
    --link: #f2a65a;      /* amber */
    --border: #49372a;    /* dark sandstone */
    --code-bg: #30251c;   /* shaded earth */
    --accent: #f2b544;    /* golden sun */
  }
}

/* ------------------------------------------------------------------
 * 2. EXISTING ELEMENTS
 * ------------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.4rem;
  color: var(--fg);
}

h2 {
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}

a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

blockquote {
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
}

pre, code {
  border: 1px solid var(--border);
  border-radius: 5px;
}

pre code {
  border: 0;
}

th {
  background: var(--code-bg);
  text-align: left;
}

.waymark-footer {
  text-align: center;
  border-top: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------------
 * 3. ADDITIONAL STYLING
 * ------------------------------------------------------------------ */
::selection {
  background: var(--accent);
  color: #382719;
}

img {
  border-radius: 10px;
}

/* Reusable callout */
.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--code-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* Task list checkboxes from GFM */
input[type="checkbox"] {
  accent-color: var(--accent);
}