/* Inter (variable, self-hosted, OFL). */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Base / reset – token-driven, no raw colours. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--text-body); }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--ui-hover); }

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* WordPress core classes (editor alignment, captions, galleries, sticky posts, post author comments). */
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft,
.alignright,
.aligncenter { max-width: 100%; }
.wp-caption { max-width: 100%; margin-bottom: 24px; }
.wp-caption img { display: block; max-width: 100%; height: auto; }
.wp-caption-text,
.gallery-caption,
.wp-element-caption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.gallery { display: grid; grid-template-columns: repeat(var(--gallery-cols, 3), minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.gallery-columns-1 { --gallery-cols: 1; }
.gallery-columns-2 { --gallery-cols: 2; }
.gallery-columns-4 { --gallery-cols: 4; }
.gallery-columns-5 { --gallery-cols: 5; }
.gallery-columns-6 { --gallery-cols: 6; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.sticky { position: relative; }
.bypostauthor > .comment-body .comment-author,
.bypostauthor > article .comment-author { font-weight: 600; }
@media (max-width: 600px) {
  .alignleft,
  .alignright { float: none; margin-left: 0; margin-right: 0; }
  .gallery { --gallery-cols: 2; }
}

@media (max-width: 1488px) { .container { width: calc(100% - 48px); } }
@media (max-width: 768px)  { .container { width: calc(100% - 32px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
