/*
Theme Name: Youngmi Yi bootScore
Theme URI: https://youngmiyi.com
Author: Codex
Description: Custom bootScore child theme for Youngmi Yi, Korean culture educator.
Template: bootscore
Version: 1.0.0
Text Domain: youngmiyi
*/

:root {
  --ymi-ivory: #f8f1e6;
  --ymi-paper: #fffdf8;
  --ymi-gold: #d8a63e;
  --ymi-gold-dark: #bd8427;
  --ymi-ink: #17130f;
  --ymi-brown: #6e4b2e;
  --ymi-jade: #6f8c78;
  --ymi-line: rgba(110, 75, 46, 0.18);
  --ymi-shadow: 0 24px 80px rgba(84, 56, 31, 0.14);
  --ymi-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ymi-ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 249, 236, 0.96) 0 22%, rgba(255, 249, 236, 0) 44%),
    linear-gradient(135deg, #fbf4e8 0%, #ecdcc4 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 16px;
  z-index: -1;
  pointer-events: none;
  border: 8px solid rgba(216, 166, 62, 0.85);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.75);
}

h1, h2, h3, h4, .ymi-serif {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(216, 166, 62, 0.28);
  backdrop-filter: blur(16px);
}

.ymi-navbar {
  min-height: 88px;
}

.ymi-brand img {
  width: 220px;
  height: auto;
}

.ymi-nav-link {
  position: relative;
  color: var(--ymi-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.ymi-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--ymi-gold);
  transition: width 0.2s ease;
}

.ymi-nav-link:hover,
.ymi-nav-link:focus {
  color: var(--ymi-gold-dark);
}

.ymi-nav-link:hover::after,
.ymi-nav-link:focus::after {
  width: 100%;
}

.ymi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.82rem 1.35rem;
  border: 1px solid var(--ymi-ink);
  border-radius: 999px;
  color: var(--ymi-ink);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ymi-btn:hover,
.ymi-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(84, 56, 31, 0.16);
  color: var(--ymi-ink);
}

.ymi-btn-primary {
  border-color: var(--ymi-gold);
  background: var(--ymi-gold);
}

.ymi-btn-primary:hover,
.ymi-btn-primary:focus {
  background: #e1b758;
  border-color: #e1b758;
}

.ymi-btn-dark {
  color: #fffaf0;
  background: var(--ymi-ink);
}

.ymi-btn-dark:hover,
.ymi-btn-dark:focus {
  color: #fffaf0;
  background: #2c2118;
}

.ymi-main {
  overflow: hidden;
}

.ymi-section {
  padding: clamp(76px, 8vw, 132px) 0;
}

.ymi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--ymi-gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ymi-eyebrow::before,
.ymi-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ymi-gold);
}

.ymi-display {
  font-size: clamp(4.3rem, 9.4vw, 9.2rem);
  line-height: 0.86;
  margin: 0;
}

.ymi-title {
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.98;
  margin: 0;
}

.ymi-lead {
  color: var(--ymi-brown);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.78;
}

.ymi-hero {
  position: relative;
  padding: clamp(78px, 8vw, 140px) 0 clamp(52px, 6vw, 92px);
}

.ymi-hero::before {
  content: "";
  position: absolute;
  left: -16vw;
  bottom: 0;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(111, 140, 120, 0.18), rgba(111, 140, 120, 0) 65%);
  pointer-events: none;
}

.ymi-hero-copy {
  position: relative;
  padding-left: 2.2rem;
}

.ymi-hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 230px;
  background: var(--ymi-gold);
}

.ymi-specialties {
  color: var(--ymi-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.ymi-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2.2rem;
  overflow: hidden;
  border: 1px solid var(--ymi-line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.62);
}

.ymi-stat {
  padding: 1.15rem 1rem;
  border-right: 1px solid var(--ymi-line);
}

.ymi-stat:last-child {
  border-right: 0;
}

.ymi-stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.ymi-stat span {
  color: var(--ymi-brown);
  font-size: 0.78rem;
}

.ymi-hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--ymi-gold);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: var(--ymi-shadow);
}

.ymi-hero-collage::before {
  content: "";
  position: absolute;
  inset: -24px 34px auto auto;
  width: 170px;
  height: 90px;
  background: rgba(216, 166, 62, 0.18);
  transform: rotate(-7deg);
  z-index: -1;
}

.ymi-hero-photo,
.ymi-collage-stack img,
.ymi-program-card img,
.ymi-gallery-card img {
  width: 100%;
  object-fit: cover;
  background: #ead8bc;
}

.ymi-hero-photo {
  height: 560px;
}

.ymi-collage-stack {
  display: grid;
  gap: 14px;
}

.ymi-collage-stack img {
  height: 174px;
}

.ymi-card {
  border: 1px solid var(--ymi-line);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 50px rgba(84, 56, 31, 0.08);
}

.ymi-program-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.ymi-program-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ymi-radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ymi-program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--ymi-gold);
  z-index: 2;
}

.ymi-program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ymi-shadow);
}

.ymi-program-card img {
  height: 190px;
}

.ymi-program-card .card-body {
  padding: 1.45rem;
}

.ymi-program-card h3 {
  font-size: 1.42rem;
  margin-bottom: 0.7rem;
}

.ymi-program-card p {
  color: var(--ymi-brown);
  line-height: 1.65;
}

.ymi-panel {
  border: 1px solid var(--ymi-line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(248, 241, 230, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(216, 166, 62, 0.2), transparent 38%);
  box-shadow: var(--ymi-shadow);
}

.ymi-credential-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ymi-credential-list li {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ymi-line);
  color: var(--ymi-brown);
}

.ymi-credential-list li:last-child {
  border-bottom: 0;
}

.ymi-credential-list strong {
  color: var(--ymi-ink);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.ymi-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 3rem;
}

.ymi-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 2px;
  background: var(--ymi-gold);
}

.ymi-milestone {
  position: relative;
  padding-top: 44px;
  text-align: center;
}

.ymi-milestone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--ymi-gold);
  box-shadow: 0 0 0 8px var(--ymi-paper);
}

.ymi-milestone strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.ymi-milestone span {
  display: block;
  padding: 0 0.7rem;
  color: var(--ymi-brown);
  font-size: 0.88rem;
  line-height: 1.48;
}

.ymi-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ymi-gallery-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--ymi-paper);
  border: 1px solid rgba(216, 166, 62, 0.24);
  box-shadow: 0 14px 36px rgba(84, 56, 31, 0.08);
}

.ymi-gallery-card img {
  height: 310px;
  object-position: top center;
  transition: transform 0.35s ease;
}

.ymi-gallery-card:hover img {
  transform: scale(1.035);
}

.ymi-gallery-caption {
  padding: 0.95rem 1rem 1.1rem;
}

.ymi-gallery-caption strong {
  display: block;
  font-size: 0.9rem;
}

.ymi-gallery-caption span {
  color: var(--ymi-brown);
  font-size: 0.78rem;
}

.ymi-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  border: 3px double rgba(216, 166, 62, 0.72);
}

.ymi-contact::before,
.ymi-contact::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(216, 166, 62, 0.32);
  transform: rotate(45deg);
}

.ymi-contact::before {
  left: -120px;
  top: -120px;
}

.ymi-contact::after {
  right: -120px;
  bottom: -120px;
}

.ymi-contact a {
  color: var(--ymi-ink);
  font-weight: 800;
}

.ymi-footer {
  color: #fffaf0;
  background: #382616;
}

.ymi-footer a {
  color: #fffaf0;
}

.ymi-footer .ymi-brand img {
  filter: invert(1) sepia(0.25) saturate(0.6);
}

@media (max-width: 1199.98px) {
  .ymi-program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ymi-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body::before {
    inset: 8px;
    border-width: 5px;
  }

  .ymi-navbar {
    min-height: 76px;
  }

  .ymi-mobile-menu {
    border-top: 1px solid var(--ymi-line);
    padding: 1rem 0 1.25rem;
  }

  .ymi-hero-photo {
    height: 470px;
  }

  .ymi-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ymi-timeline::before {
    left: 16px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .ymi-milestone {
    padding: 0.5rem 0 0.5rem 3.2rem;
    text-align: left;
  }

  .ymi-milestone::before {
    left: 17px;
    top: 0.85rem;
    margin-left: -11px;
  }

  .ymi-milestone span {
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  .ymi-brand img {
    width: 184px;
  }

  .ymi-hero-copy {
    padding-left: 1.35rem;
  }

  .ymi-hero-copy::before {
    height: 160px;
  }

  .ymi-hero-collage {
    grid-template-columns: 1fr;
  }

  .ymi-hero-photo,
  .ymi-collage-stack img {
    height: 330px;
  }

  .ymi-stat-row {
    grid-template-columns: 1fr;
  }

  .ymi-stat {
    border-right: 0;
    border-bottom: 1px solid var(--ymi-line);
  }

  .ymi-stat:last-child {
    border-bottom: 0;
  }

  .ymi-program-grid,
  .ymi-gallery-grid {
    grid-template-columns: 1fr;
  }

  .ymi-gallery-card img {
    height: 360px;
  }

  .ymi-credential-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* QA refinements after live browser capture */
.ymi-display {
  max-width: 100%;
  font-size: clamp(4rem, 7.2vw, 7.75rem);
  white-space: nowrap;
}

.ymi-contact .ymi-btn-dark,
.ymi-contact .ymi-btn-dark:hover,
.ymi-contact .ymi-btn-dark:focus {
  color: #fffaf0;
}

@media (max-width: 575.98px) {
  .ymi-display {
    font-size: clamp(3.4rem, 17vw, 5.4rem);
    white-space: normal;
  }
}
