/*
Theme Name:  WikiFonts
Theme URI:   https://wikifonts.com
Description: Theme chia sẻ font chữ — đen trắng thuần, system font UI, live preview, download counter. Không dùng web font cho UI; font được load động qua JavaScript khi preview.
Author:      WikiFonts
Version:     1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wikifonts
Tags:        fonts, typography, one-column, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Đổi màu toàn site CHỈ sửa block này.
   ========================================================================== */
:root {
  /* Brand: đen trắng thuần */
  --bg:          #ffffff;
  --ink:         #1a1a1a;
  --ink-soft:    #404040;
  --muted:       #6e6e6e;
  --line:        #e4e4e4;
  --panel:       #f6f6f6;
  --dark:        #111111;
  --accent:      #1a1a1a;
  --accent-deep: #000000;
  --link:        #1a1a1a;
  --on-dark:     #ffffff;

  /* Semantic (chỉ dùng trong badge trạng thái) */
  --good:   #1e8e5a;
  --warn:   #b45309;
  --bad:    #c0392b;

  /* Layout */
  --wrap:   1100px;
  --narrow: 760px;
  --radius: 10px;
  --gap:    24px;

  /* System font – 0 KB tải thêm */
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

svg {
  width: 1em; height: 1em; fill: currentColor;
  flex: none; vertical-align: -.125em;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: .4rem; }
p  { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: .3rem; }

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

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 8px; top: 8px; z-index: 100;
  background: var(--dark); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--radius);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--narrow); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px; align-items: start;
}
.layout__side { position: sticky; top: 20px; align-self: start; }
.site-main { padding: 32px 0 56px; }

/* ==========================================================================
   4. HEADER + LOGO
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 66px; }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { height: .9em; width: auto; fill: currentColor; flex: none; }
.logo__name { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.logo__tld  { font-size: 24px; font-weight: 400; color: var(--muted); letter-spacing: -.03em; }

/* Nav */
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-soft);
}
.site-nav a:hover, .site-nav a.current-menu-item { background: var(--panel); color: var(--ink); }

/* Upload CTA button in nav */
.site-nav .nav-cta a {
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--radius);
}
.site-nav .nav-cta a:hover { background: var(--accent-deep); }

/* Mobile toggle – checkbox trick, no JS needed */
.nav-toggle { display: none; }
.nav-toggle__box { display: none; }

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--on-dark); margin-top: 60px; padding: 40px 0 48px; }
.site-footer a { color: var(--on-dark); }
.site-footer .logo { color: var(--on-dark); }
.site-footer .logo__name { font-size: 22px; }
.site-footer .logo__tld  { font-size: 22px; color: rgba(255,255,255,.6); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px; margin-top: 24px;
}
.site-footer h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.6); margin: 0 0 10px;
}
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 6px; font-size: 14px; }
.site-footer__legal {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px; color: rgba(255,255,255,.65);
}

/* ==========================================================================
   6. COMMON COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-dark); text-decoration: none;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--panel); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn svg { width: 1em; height: 1em; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.5;
  background: var(--panel); color: var(--ink-soft); border: 1px solid var(--line);
}
.badge--free    { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.badge--ofl     { background: transparent; color: var(--good); border-color: var(--good); }
.badge--commercial { background: transparent; color: var(--warn); border-color: var(--warn); }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }

.meta { font-size: 13px; color: var(--muted); }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"],
.search-form input[type="text"] {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 15px; font-family: inherit; color: var(--ink);
  background: var(--bg);
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

/* Pagination */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pagination .page-numbers {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pagination .page-numbers:hover:not(.current) { background: var(--panel); }

/* Notices */
.notice { padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; font-size: 14px; }
.notice--info { background: #f0f7ff; border-color: #bfd7f5; }
.notice--success { background: #f0faf5; border-color: #a8d5bb; }

/* ==========================================================================
   7. FONT CARD (Grid item)
   ========================================================================== */
.font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; background: var(--line); margin: 16px 0;
}

.font-card {
  background: var(--bg); padding: 22px;
  text-decoration: none; display: flex; flex-direction: column;
  min-height: 200px; transition: background .12s;
}
.font-card:hover { background: var(--panel); text-decoration: none; }

.font-card__meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.font-card__name {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-decoration: none; flex: 1;
}
.font-card__cat {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* Preview area: rendered with the actual font */
.font-card__preview {
  font-size: 36px; line-height: 1.15; color: var(--ink);
  margin-bottom: auto; padding: 8px 0 16px;
  word-break: break-word; overflow: hidden;
  max-height: 120px;
  /* font-family injected via inline style per card */
}

.font-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px;
}
.font-card__stats { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.font-card__stats span { display: flex; align-items: center; gap: 4px; }

/* ==========================================================================
   8. SINGLE FONT PAGE
   ========================================================================== */
.font-hero {
  border-bottom: 1px solid var(--ink);
  padding: 36px 0 32px;
}
.font-hero__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.font-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.0;
  letter-spacing: -.04em; margin-bottom: 12px;
}
.font-hero__sub { font-size: 1rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 18px; }
.font-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.font-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Live Preview Widget */
.font-preview-widget {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 28px 0;
}
.font-preview-widget__controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 18px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.font-preview-widget__controls label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.font-preview-widget__text-input {
  flex: 1; min-width: 180px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--bg);
}
.font-preview-widget__size {
  display: flex; align-items: center; gap: 8px;
}
.font-preview-widget__size input[type="range"] {
  width: 100px; accent-color: var(--ink);
}
.font-preview-widget__size output {
  font-size: 12px; color: var(--muted); min-width: 40px;
}
.font-preview-widget__style-btns { display: flex; gap: 4px; }
.font-preview-widget__style-btns button {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); cursor: pointer; font-size: 12px; font-family: inherit;
  font-weight: 600; color: var(--ink-soft);
}
.font-preview-widget__style-btns button.active,
.font-preview-widget__style-btns button:hover {
  background: var(--ink); color: var(--on-dark); border-color: var(--ink);
}

.font-preview-widget__stage {
  padding: 32px 28px; min-height: 120px;
  font-size: 48px; line-height: 1.2;
  word-break: break-word; color: var(--ink);
  background: var(--bg); transition: font-size .1s;
}
.font-preview-widget__stage--dark {
  background: var(--dark); color: var(--on-dark);
}

/* Variant list */
.variant-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.variant-table th, .variant-table td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.variant-table th { background: var(--panel); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.variant-table tr:last-child td { border-bottom: none; }
.variant-preview { font-size: 18px; color: var(--ink); }

/* Sidebar facts */
.sidefacts { list-style: none; margin: 14px 0 18px; }
.sidefacts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.sidefacts li:last-child { border-bottom: 0; }
.sidefacts__label { font-size: 12.5px; color: var(--muted); }
.sidefacts__val { font-size: 14px; font-weight: 700; text-align: right; }
.sidefacts__val--none { font-weight: 400; color: #9a9a9a; font-size: 13px; }

/* Download box in sidebar */
.download-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--bg); margin-bottom: 20px;
}
.download-box h3 { margin-top: 0; font-size: 15px; margin-bottom: 6px; }
.download-box p  { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.download-count  { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ==========================================================================
   9. HOMEPAGE SECTIONS
   ========================================================================== */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 46px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.side-title {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}

/* Hero 2-col */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
  padding: 46px 0 40px; border-bottom: 1px solid var(--ink);
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04;
  letter-spacing: -.035em; margin-bottom: 18px; max-width: 16ch;
}
.hero__sub { font-size: 1rem; color: var(--ink-soft); max-width: 54ch; }
.hero__search { margin-top: 24px; max-width: 480px; }
.hero__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.hero__tags a {
  font-size: 12px; font-weight: 600; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink-soft);
}
.hero__tags a:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* Stats sidebar in hero */
.statlist { list-style: none; margin: 0; }
.statlist li { padding: 13px 0; border-top: 1px solid var(--line); }
.statlist li:first-child { border-top: 0; }
.statlist__num { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.statlist__label { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Featured fonts: big 3 */
.lead-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
}
.lead {
  display: flex; flex-direction: column; background: var(--bg);
  padding: 22px 24px 24px; text-decoration: none; min-height: 168px;
  transition: background .12s;
}
.lead:hover { background: var(--panel); text-decoration: none; }
.lead__store { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lead__name { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 6px; }
.lead__sample {
  font-size: 42px; line-height: .95; letter-spacing: -.03em;
  color: var(--ink); margin: 6px 0 4px;
  /* font-family set via inline style */
}
.lead__unit { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.lead__free { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--ink-soft); }

/* Category list */
.catlist { list-style: none; margin: 0; columns: 3; column-gap: 44px; }
.catlist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; margin: 0;
}
.catlist a { text-decoration: none; font-size: 14px; }
.catlist a:hover { text-decoration: underline; }
.catlist__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* A–Z jump bar */
.azjump {
  display: flex; flex-wrap: wrap; gap: 2px;
  margin: 18px 0 4px; border-top: 1px solid var(--ink); padding-top: 14px;
}
.azjump a {
  min-width: 30px; text-align: center; padding: 5px 6px; border-radius: 4px;
  font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-soft);
}
.azjump a:hover { background: var(--ink); color: var(--on-dark); text-decoration: none; }

/* Store/font list (hairline, 2-col) */
.storelist { list-style: none; margin: 0; columns: 2; column-gap: 48px; }
.storelist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  break-inside: avoid; margin: 0;
}
.storelist a { text-decoration: none; font-size: 14.5px; font-weight: 600; }
.storelist a:hover { text-decoration: underline; }
.storelist__num { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.more-link { margin-top: 16px; font-size: 13.5px; font-weight: 700; }

/* About method */
.method { margin-top: 10px; }
.method__cols { columns: 2; column-gap: 48px; font-size: 14.5px; color: var(--ink-soft); }
.method__cols p { break-inside: avoid; }

/* ==========================================================================
   10. ARCHIVE / TAXONOMY PAGE
   ========================================================================== */
.archive-header { padding: 32px 0 24px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.archive-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.03em; }
.archive-header p { color: var(--ink-soft); font-size: 1rem; max-width: 60ch; margin-top: 8px; margin-bottom: 0; }

/* Filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.filter-bar__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); align-self: center; margin-right: 4px; }
.filter-bar a, .filter-bar span {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink-soft);
}
.filter-bar a:hover, .filter-bar a.active {
  background: var(--ink); color: var(--on-dark); border-color: var(--ink);
}

/* ==========================================================================
   11. SEARCH RESULTS
   ========================================================================== */
.search-results-header {
  padding: 24px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.search-results-header h1 { font-size: 1.5rem; }
.search-results-header .count { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 8px; }

/* ==========================================================================
   12. ENTRY CONTENT (static pages)
   ========================================================================== */
.entry-content { max-width: var(--narrow); }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 40px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.entry-content h3 { font-size: 16px; margin-top: 26px; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 8px; }

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout__side { position: static; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .catlist { columns: 2; }
  .font-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 760px) {
  h1 { font-size: 1.7rem; }

  /* Mobile hamburger nav */
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle__box { display: none; }
  .nav-toggle__btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
  }
  .site-nav { display: none; margin-left: 0; }
  .nav-toggle__box:checked ~ .site-nav {
    display: block; position: absolute; left: 0; right: 0; top: 66px; z-index: 20;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .site-header__inner { position: relative; }

  .font-preview-widget__controls { gap: 8px; }
  .font-preview-widget__stage { font-size: 32px; padding: 20px 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 26px 0 22px; }
  .lead-row { grid-template-columns: 1fr; }
  .lead { min-height: 0; padding: 18px 0; }
  .storelist, .catlist, .method__cols { columns: 1; }
  .logo__name, .logo__tld { font-size: 18px; }
  .font-grid { grid-template-columns: 1fr; }
  .font-preview-widget__stage { font-size: 24px; }
  h1 { font-size: 1.5rem; }
}

@media print {
  .site-header, .site-footer, .layout__side, .btn,
  .font-preview-widget__controls { display: none; }
  .layout { grid-template-columns: 1fr; }
  .font-preview-widget__stage { border: 1px solid #ccc; }
}

/* ==========================================================================
   FOOTER ENHANCEMENTS (Customizer-driven content)
   ========================================================================== */

/* Top row: logo+tagline left / contact right */
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }

.site-footer__tagline {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  max-width: 280px;
  line-height: 1.55;
}

/* Contact info block */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.site-footer__contact-item:hover { color: #fff; }
.site-footer__contact-item svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* Social icons row */
.site-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  transition: background .15s, border-color .15s, color .15s;
}
.site-footer__social-link:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.site-footer__social-link svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* Responsive: stack top row on small screens */
@media (max-width: 640px) {
  .site-footer__top {
    flex-direction: column;
    gap: 20px;
  }
  .site-footer__contact { margin-top: 0; }
}

