/*
Theme Name:   Maakey (HitMag child)
Template:     hitmag
Description:  maakey.art child theme of HitMag: self-hosted Tamil fonts and reading tweaks.
              Source of truth: claude-agent-ops deploy/vps/friend-site/wp/themes/maakey-hitmag
              (bind-mounted read-only; edit in the repo, never in wp-admin).
Version:      1.0.9
Update URI:   false
License:      GNU General Public License v2 or later
Text Domain:  maakey-hitmag
*/

/* Fonts: Fontsource woff2 subsets, SIL OFL 1.1 (see OFL.txt). Served from this site only. */
@font-face { font-family: "Noto Serif Tamil"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/noto-serif-tamil-tamil-400.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Noto Serif Tamil"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/noto-serif-tamil-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Tamil"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/noto-serif-tamil-tamil-700.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Noto Serif Tamil"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/noto-serif-tamil-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta Malar"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/mukta-malar-tamil-600.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Mukta Malar"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/mukta-malar-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta Malar"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/mukta-malar-tamil-700.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Mukta Malar"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/mukta-malar-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Display font for the site name மாக்கி only (header and footer). */
@font-face { font-family: "Kavivanar"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/kavivanar-tamil-400.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

/* Body text: serif Tamil for reading. */
body, button, input, select, textarea, .entry-content, .entry-summary {
  font-family: "Noto Serif Tamil", Georgia, serif;
}

/*
 * Sizes (Leo 2026-11-24: "too big, match kirishanth.com"). Tamil glyphs look larger than Latin at
 * the same px, so these sit a little under HitMag's defaults (body 16, list title 21, post title 32).
 */
body, button, input, select, textarea { font-size: 15px; }
.widget-title { font-size: 16px; }
.widget, .entry-meta, .cat-links { font-size: 13.5px; }

/* Headings, menu, meta, widgets: sans Tamil. */
h1, h2, h3, h4, h5, h6, .site-title, .site-description, .main-navigation, .hm-top-bar,
.widget-title, .entry-meta, .cat-links, .tags-links, .page-title, .post-title, .hm-rel-post,
.comment-reply-title, .comments-title, .hm-readmore, .nav-links, .site-info,
button, input[type="submit"], .juiz_sps_links, .post-views,
.navbutton, .main-nav-btn-lbl, .responsive-mainnav, .responsive-mainnav a, .hm-nwrap {
  font-family: "Mukta Malar", "Helvetica Neue", Arial, sans-serif;
}

/* Header: banner image behind the site name (header_image_position = header-background). */
.header-main-area.hm-header-bg-holder { background-size: cover; background-position: center; }
.header-main-area.hm-header-bg-holder .site-branding { padding: 46px 0; }
.header-main-area.hm-header-bg-holder .site-title a,
.header-main-area.hm-header-bg-holder .site-description {
  color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.site-title, .maakey-footer .maakey-footer-name {
  font-family: "Kavivanar", "Mukta Malar", cursive; font-weight: 400; letter-spacing: 1px;
}
.site-title { font-size: 3rem; line-height: 1.4; }

/* Poster header (name built into the image): full width, text title hidden (still in the HTML). */
.hm-header-image img { display: block; width: 100%; height: auto; }
.hm-header-image + .header-main-area { display: none; }

/* Home and archives: compact list with small thumbnails (as on kirishanth.com). */
.home article { margin-bottom: 4px; }
.th-list-posts .archive-thumb img { width: 150px; max-width: 150px; height: auto; }
.th-list-posts .entry-title, .hitmag-post .entry-title { font-size: 18px; line-height: 1.45; }
.th-list-posts .entry-summary { font-size: 14.5px; line-height: 1.7; }
.th-list-posts .entry-summary p,
body.home #main.site-main .entry-content p { text-align: justify; }

/* Single post: Tamil needs more size and line height than Latin. */
.single .entry-content p, .page .entry-content p {
  text-align: justify; font-size: 15px; line-height: 1.8;
}
.hitmag-single .entry-title, .page .entry-title { font-size: 26px; line-height: 1.4; }

/* Read counter line under the content. */
.post-views { margin: 12px 0; color: #666; font-size: 13.5px; }

/* Footer (as yatharthan.com): one centred block, white text on dark. */
.footer-widget-area .footer-sidebar { float: none; width: 100%; margin: 0; text-align: center; }
.maakey-footer { max-width: 640px; margin: 10px auto 0; color: #ddd; font-size: 14px; line-height: 1.8; }
.maakey-footer .maakey-footer-name {
  /* Lettering cut from the poster (images/maakey-name.png, white on transparent); text kept for screen readers. */
  height: 96px; margin: 0 auto 14px; max-width: 220px;
  background: url("images/maakey-name.png") center / contain no-repeat;
  color: transparent; font-size: 0; overflow: hidden;
}
.maakey-footer a { color: #fff; }
.maakey-footer .wp-block-social-links { margin-top: 16px; }
.maakey-footer .wp-block-social-link { border: 1px solid rgba(255, 255, 255, .25); padding: 6px; }

/* Share links (functions.php): small outlined squares, red on hover like the theme. */
.maakey-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 8px; }
.maakey-share-label { font-family: "Mukta Malar", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #666; margin-right: 4px; }
.maakey-share a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid #dcdcdc; border-radius: 4px; color: #555; font-size: 16px; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.maakey-share a:hover, .maakey-share a:focus { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.post-views { display: flex; align-items: center; gap: 6px; }

