/* Responsive adjustments for the five-language header and keyboard-accessible gallery. */
:root {
  --font-heading: 'Cormorant Garamond', 'Georgia', 'Noto Serif CJK SC', 'Songti SC', 'Hiragino Mincho ProN', 'Batang', serif;
  --font-accent: 'Cinzel', 'Georgia', 'Noto Serif CJK SC', 'Songti SC', 'Hiragino Mincho ProN', 'Batang', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, 'Noto Sans CJK SC', 'PingFang SC', 'Hiragino Sans', 'Malgun Gothic', sans-serif;
  --wb-header-height: 85px;
}
html { scroll-padding-top: calc(var(--wb-header-height) + 14px); }
body.admin-bar { --wb-header-height: 117px; }
body.admin-bar #header { top: 32px; }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.wb-skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); background: white; color: var(--color-black); padding: 12px 20px; z-index: 3000; }
.wb-skip-link:focus { transform: translateY(0); }
.wb-header .container { gap: clamp(1rem, 2.5vw, 2rem); }
.logo { flex-shrink: 1; min-width: 0; }
.logo a { align-items: flex-start; text-align: left; }
.logo .brand-name { font-family: var(--font-accent); font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: 1.1px; line-height: 1.25; white-space: nowrap; }
.logo .brand-tagline { color: #666; font-size: 0.72rem; letter-spacing: .075em; margin-top: 3px; white-space: normal; line-height: 1.35; }
.wb-header-actions { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.4rem); flex-shrink: 0; }
.wb-nav .nav-links { align-items: center; gap: clamp(.9rem, 1.9vw, 1.65rem); }
.wb-nav .nav-links a { white-space: nowrap; line-height: 1.3; font-size: .875rem; }
.wb-language { position: relative; color: var(--color-dark-gray); }
.wb-language summary { display: flex; justify-content: center; align-items: center; gap: .55rem; font-size: .84rem; border-left: 1px solid rgba(0,0,0,.13); padding: 8px 0 8px 1rem; cursor: pointer; list-style: none; white-space: nowrap; }
.wb-language summary::-webkit-details-marker { display: none; }
.wb-language-chevron { line-height: 1; font-size: 1rem; margin-top: -3px; }
.wb-language[open] .wb-language-chevron { transform: rotate(180deg); }
.wb-language ul { position: absolute; background: white; top: calc(100% + 8px); right: -10px; width: max-content; min-width: 130px; padding: 6px; border: 1px solid #e8e8e8; border-radius: 3px; box-shadow: var(--box-shadow); }
.wb-language a { display: block; padding: 8px 12px; font-size: .86rem; }
.wb-language a[aria-current] { color: var(--color-primary); font-weight: 600; }
.wb-language a:hover { background: var(--color-off-white); }
.hero { min-height: 560px; height: 100vh; height: 100svh; padding-top: var(--wb-header-height); background: var(--color-off-white); }
.wb-hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 245, 0.1)); z-index: 1; pointer-events: none; }
.hero-content h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: var(--spacing-lg); color: var(--color-black); font-weight: bold; }
.hero-content p { line-height: 1.65; }
.wb-nav .wb-nav-order, .wb-nav .nav-links a[aria-current] { color: var(--color-primary); font-weight: 600; }
.wb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
.wb-hero-actions .btn { padding: .8rem 1.25rem; text-transform: none; letter-spacing: .025em; }
.wb-hero-actions .btn-secondary { background: rgba(255,255,255,.88); }
.wb-hero-actions .btn-secondary:hover { background: var(--color-crystal-purple-light); }
.hero-content .wb-order-hint {
  max-width: 37rem;
  margin: 1rem auto 0;
  padding: .65rem .9rem;
  border-radius: var(--border-radius);
  color: var(--color-dark-gray);
  background: rgba(255,255,255,.9);
  font-size: .86rem;
  font-weight: 400;
}
.wb-order-hint a { display: inline-block; color: var(--color-primary); text-decoration: underline; text-underline-offset: .16em; }
.wb-home-notes { padding: clamp(2.5rem, 5vw, 4.5rem) 0; background: var(--color-off-white); }
.wb-home-notes-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.25rem; margin-bottom: 1.5rem; }
.wb-home-notes-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.wb-home-notes-heading a, .wb-footer-order a { text-decoration: underline; text-underline-offset: .2em; }
.wb-home-notes-heading a { color: var(--color-primary); }
.wb-home-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.wb-home-note { min-width: 0; background: var(--color-white); border: 1px solid var(--color-light-gray); border-radius: var(--border-radius); }
.wb-home-note a { display: block; padding: 1rem 1rem .75rem; }
.wb-home-note a:hover h3 { color: var(--color-primary); text-decoration: underline; text-underline-offset: .18em; }
.wb-home-note img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--border-radius); margin-bottom: .9rem; }
.wb-home-note h3 { margin: 0; font-size: 1.15rem; line-height: 1.45; overflow-wrap: anywhere; }
.wb-home-note p { margin: 0; padding: 0 1rem 1rem; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.wb-footer-order { max-width: 24rem; }
.wb-footer-order a { color: var(--color-white); font-weight: 600; }
.wb-footer-order p { margin: .65rem 0 0; color: #bdbdbd; font-size: .9rem; line-height: 1.7; }
.featured-image, .styling-image { display: block; cursor: zoom-in; }
.featured-item { width: 100%; }
.styling-text h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .055em; margin-bottom: var(--spacing-xs); color: var(--color-dark-gray); }
.styling-intro p, .styling-text p { color: #626262; }
.footer-logo p, .footer-links ul li a, .footer-bottom p { color: #a8a8a8; }
.footer-logo p { letter-spacing: .08em; }
.wb-gallery-dialog { position: fixed; margin: auto; max-width: min(1000px, 95vw); max-height: 92vh; overflow: auto; padding: 2rem; border: none; border-radius: 4px; color: white; background: #171717; }
.wb-gallery-dialog:not([open]) { display: none; }
.wb-gallery-dialog::backdrop { background: rgba(0,0,0,.86); }
.wb-gallery-dialog figure { text-align: center; }
.wb-gallery-dialog img { margin: 0 auto; max-width: 100%; max-height: min(76vh, 900px); object-fit: contain; }
.wb-gallery-dialog #modal-caption { margin-top: 1rem; font-family: var(--font-body); font-size: 1rem; }
.wb-gallery-close { position: absolute; top: 5px; right: 7px; font-size: 2rem; width: 2.3rem; height: 2.3rem; color: white; background: rgba(0,0,0,.48); border-radius: 100%; line-height: 1; z-index: 1; }
.wb-gallery-close:focus-visible { outline-color: white; }
.wb-standard-page { padding-top: calc(var(--wb-header-height) + 2rem); padding-bottom: 5rem; min-height: 70vh; }
.wb-standard-page article { max-width: 820px; margin: 0 auto 3rem; }
.wb-standard-page article h1 { margin: 1.5rem 0; }
.wb-standard-page article a { text-decoration: underline; }
.wb-standard-page article :is(ul, ol) { margin: 1rem 0 1rem 1.5rem; list-style: revert; }
.wb-standard-page article :is(h1,h2,h3) { margin-top: 1.35rem; }
@media (max-width: 1100px) {
  :root { --wb-header-height: 92px; }
  .wb-nav .nav-links { position: static; height: auto; width: auto; max-width: none; padding: 0; background: transparent; box-shadow: none; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
  .wb-nav .mobile-menu-btn { display: none; }
  .wb-header-actions { flex-shrink: 1; min-width: 0; }
  .wb-header .container { padding-top: 12px; padding-bottom: 12px; }
  .wb-language summary { padding-left: .8rem; }
  .js .wb-nav .mobile-menu-btn { display: flex; }
  .js .wb-nav .nav-links { display: none; position: absolute; top: 100%; right: 0; left: 0; width: 100%; padding: 14px 2rem; background: white; box-shadow: 0 4px 8px rgba(0,0,0,.08); flex-direction: column; gap: 0; align-items: stretch; }
  .js .wb-nav .nav-links.active { display: flex; }
  .js .wb-nav .nav-links a { display: block; padding: 13px 5px; }
}
@media (max-width: 782px) {
  body.admin-bar { --wb-header-height: 138px; }
  body.admin-bar #header { top: 46px; }
  .wb-home-notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  :root { --wb-header-height: 92px; }
  .logo .brand-name { font-size: 1.07rem; letter-spacing: .8px; }
  .logo .brand-tagline { font-size: .67rem; }
  .wb-header .container { gap: .65rem; }
  .wb-header-actions { gap: .75rem; flex-shrink: 0; }
  .wb-language summary { font-size: .79rem; padding-left: .65rem; }
  .wb-language ul { right: 0; }
  .hero { min-height: 580px; }
  .hero-content { padding: 1.5rem; }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .wb-home-notes-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem .9rem; }
  .featured-text h3 { font-size: .82rem; line-height: 1.45; letter-spacing: 0; }
  .styling-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.6rem .9rem; }
  .styling-text h3 { font-size: .9rem; }
  .styling-text p { font-size: .82rem; }
  .wb-gallery-dialog { padding: 1.75rem 1rem 1rem; }
}
@media (max-width: 350px) {
  .logo .brand-name { white-space: normal; }
  .wb-nav .mobile-menu-btn { width: 21px; }
  .wb-header .container { padding-left: .75rem; padding-right: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
