/*
Theme Name: Ngam Jing Beauty
Theme URI: https://namjing.com
Description: Child theme for งามจริง บิวตี้ / Ngam Jing Beauty, Phra Khanong, Bangkok.
  Carries the Thai-first typography, palette and block patterns. Built so the recurring
  work is adding a post, never rearranging a layout.
Author: Tom Hopkins
Template: twentytwentyfive
Version: 0.1.0
Text Domain: ngamjing
Requires at least: 6.8
Tested up to: 7.0
*/

/* Thai-specific typographic correction.
   Thai stacks vowels and tone marks above and below the baseline, so the generous
   line-height set in theme.json is load-bearing, not taste. Thai also has no
   uppercase and no italic tradition, so nothing here may lean on text-transform
   or font-style for hierarchy - weight and size carry it instead. */
:lang(th) h1, :lang(th) h2, :lang(th) h3 { letter-spacing: 0; }

/* Placeholder slots. Deliberately visible: they read as designed, not broken,
   but no one could mistake one for finished content. */
.ngj-placeholder {
  /* Column, not row: each line separated by <br> becomes its own anonymous flex
     item, so a row direction lays the lines out side by side instead of stacked. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px dashed color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
  border-radius: 2px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--wp--preset--color--surface) 92%, transparent),
      color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent));
  color: color-mix(in srgb, var(--wp--preset--color--contrast) 62%, transparent);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.7;
}
.ngj-placeholder::before {
  content: "";
  display: block;
  width: 0.8em;
  height: 0.8em;
  margin-bottom: 0.75em;
  border: 2px solid currentColor;
  border-radius: 1px;
  opacity: 0.55;
}
.ngj-placeholder--photo { aspect-ratio: 4 / 3; }
.ngj-placeholder--portrait { aspect-ratio: 3 / 4; }
.ngj-placeholder--wide { aspect-ratio: 16 / 9; }

/* Language switcher. Small, quiet, and always reachable in the header - the one
   visitor who needs it needs it immediately, and everyone else should not notice. */
.ngj-languages {
  display: inline-flex;
  gap: 0.15em;
  align-items: center;
  font-size: var(--wp--preset--font-size--small);
  letter-spacing: 0.02em;
}
.ngj-languages a { color: inherit; text-decoration: none; opacity: 0.6; }
.ngj-languages a:hover, .ngj-languages a:focus { opacity: 1; text-decoration: underline; }
.ngj-languages [aria-current] { font-weight: 600; }
