/*
Theme Name: 168amulets Speed SEO (Child)
Theme URI: https://168amulets.com
Template: twentytwentyfive
Author: 168amulets.com
Description: Lightweight SEO-first child theme for 168amulets.com built from the approved speed/SEO mockup.
Version: 1.0.1
Text Domain: 168amulets-speed-seo-child
*/

/* Speed: system font, no external assets, compact selectors, no motion effects. */
:root {
  --bg: #120f0a;
  --panel: #1d1710;
  --paper: #f5ecd4;
  --paper-2: #fff8e8;
  --gold: #d4ad42;
  --gold-2: #f0d36e;
  --brick: #7a281f;
  --text: #27180e;
  --muted: #6c5a41;
  --line: #8a6a2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(18, 15, 10, .82), rgba(18, 15, 10, .58) 52%, rgba(18, 15, 10, .76)),
    linear-gradient(180deg, rgba(18, 15, 10, .86), rgba(18, 15, 10, .68) 46%, rgba(18, 15, 10, .9)),
    url("assets/buddha-profile-bg.webp");
  background-position: center, center, right center;
  background-size: auto, auto, cover;
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat;
  color: var(--paper);
  font: 15px/1.65 Tahoma, "Leelawadee UI", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 2px solid var(--line);
  background: #0b0906;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/amulet-pendants-bg.webp");
  background-position: center;
  background-size: cover;
  opacity: .72;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 9, 6, .92), rgba(11, 9, 6, .78) 42%, rgba(11, 9, 6, .52)),
    linear-gradient(180deg, rgba(11, 9, 6, .72), rgba(11, 9, 6, .9));
  pointer-events: none;
}

.brand {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

.brand,
.nav {
  position: relative;
  z-index: 1;
}

.logo {
  width: 54px;
  height: 54px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--paper);
  padding: 5px;
}

h1 {
  margin: 0;
  color: var(--gold-2);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
  text-shadow:
    0 0 1px #fff7c8,
    0 0 3px rgba(240, 211, 110, .95),
    0 0 9px rgba(212, 173, 66, .72),
    0 0 18px rgba(212, 173, 66, .46);
}

.tagline {
  display: block;
  margin: 4px 0 0;
  color: #cbbf9f;
  font-size: 13px;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(212, 173, 66, .35);
}

.nav a {
  padding: 10px 13px;
  color: var(--gold-2);
  border-right: 1px solid rgba(212, 173, 66, .25);
  font-weight: 700;
  font-size: 13px;
}

main {
  padding: 18px 0 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.hero-copy {
  padding: 22px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-2);
  color: #211305;
  font-size: 12px;
  font-weight: 700;
}

h2 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: auto;
}

.hero-copy p,
.card p,
.article p,
.note p {
  margin: 0;
  color: #ddd0ad;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: auto;
}

.hero-copy p {
  font-size: 14px;
  line-height: 1.72;
  width: calc(100% - 8px);
  max-width: 100%;
  padding-right: 6px;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: auto;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #2b2115;
  color: var(--gold-2);
  font-weight: 700;
}

.button.primary {
  background: var(--gold);
  color: #1b1006;
}

.hero-media {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: var(--paper);
  /* Speed: static gold glow only. */
  box-shadow:
    0 0 0 1px rgba(240, 211, 110, .48),
    0 0 16px 3px rgba(212, 173, 66, .34),
    0 0 34px 7px rgba(212, 173, 66, .18);
}

.image-placeholder {
  width: min(230px, 72%);
  aspect-ratio: 1;
}

.section-head {
  margin: 26px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.section-head p {
  margin: 4px 0 0;
  color: #cbbf9f;
  font-size: 13px;
}

.grid-3,
.grid-4,
.content-grid {
  display: grid;
  gap: 12px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.content-grid { grid-template-columns: 1fr 300px; align-items: start; }

article.card,
article.article,
aside.note {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.card-img {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.card-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body,
.article,
.note {
  padding: 13px;
}

.card-body a {
  color: var(--gold-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-link {
  display: block;
  height: 100%;
}

.card .read-more {
  margin-top: 8px;
}

h3 {
  margin: 0 0 5px;
  color: var(--gold-2);
  font-size: 17px;
  line-height: 1.35;
}

.meta {
  margin-bottom: 7px;
  color: #d0a84b;
  font-size: 12px;
  font-weight: 700;
}

.article {
  margin-bottom: 10px;
}

.note {
  background: #22180f;
  padding-top: 18px;
}

#guide {
  margin-top: 26px;
}

.note ul {
  margin: 0;
  padding-left: 20px;
  color: #ddd0ad;
}

.site-footer {
  border-top: 2px solid var(--line);
  background: #0b0906;
  color: #cbbf9f;
  padding: 18px 0;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    min-width: 0;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  #guide {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .brand {
    grid-template-columns: 48px 1fr;
  }

  .brand > div {
    min-width: 0;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .tagline {
    width: calc(100vw - 90px);
    font-size: 12px;
    line-height: 1.42;
  }

  .nav a {
    flex: 1 0 50%;
    border-bottom: 1px solid rgba(212, 173, 66, .18);
  }

  .hero-copy {
    padding: 18px 28px 18px 18px;
  }

  .hero h2 {
    font-size: 23px;
  }

  .hero-copy p {
    width: calc(100% - 46px);
    font-size: 13px;
    line-height: 1.68;
    padding-right: 18px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
