/*
 * Filename: style.css
 * Description: The stylesheet of the chinmoydham theme of siteadm, published as /style.css.
 * Author: SCS
 * Copyright: Copyright (C) 2026, SCS, all rights reserved.
 * Created: 2026-10-04 Sun 16:16
 * Version: 0.1.0
 * Last-Updated: 2026-10-04 Sun 16:16
 * Update #: 1
 */

/* Spartan: system fonts, no decoration, readable on a phone and on paper.
   On a phone the regions follow each other: nav, main, left, right,
   footer.  On a wide screen left and right stand beside main. */

body {
  margin: 0 auto;
  max-width: 72em;
  padding: 1em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

header .site {
  font-size: 1.25em;
  font-weight: bold;
  color: inherit;
  text-decoration: none;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  display: inline-block;
  margin-right: 1em;
}

main {
  max-width: 42em;
}

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

figure {
  margin: 1em 0;
}

figcaption, .date, .tags {
  font-size: 0.9em;
  color: #555;
}

.tags a {
  margin-left: 0.5em;
}

footer {
  margin-top: 2em;
  border-top: 1px solid #ccc;
  font-size: 0.9em;
}

@media (min-width: 60em) {
  .page {
    display: flex;
    gap: 2em;
  }

  .page > main {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
  }

  .page > .left {
    order: 1;
    flex: 0 0 14em;
  }

  .page > .right {
    order: 3;
    flex: 0 0 14em;
  }

  .text.columns-2 {
    column-count: 2;
    column-gap: 2em;
  }

  .text.columns-3 {
    column-count: 3;
    column-gap: 2em;
  }

  .text .outline-2 {
    break-inside: avoid;
  }
}

@media print {
  nav {
    display: none;
  }

  body {
    max-width: none;
  }
}
