/* Only the font island: each photo, title and description remains editable. */
#fonts .section-inner { max-width: 1040px; }
#fonts .font-guide-grid { min-height: 0; padding: 58px 0 12px; }
#fonts [data-guide-flow] {
  position: relative; left: 0; top: 0; width: 100%; min-width: 0;
  margin: 0; padding: 0; transform-origin: top left;
}
#fonts .font-guide-header { text-align: center; margin: 0 0 46px; }
#fonts .font-guide-heading h2 {
  display: block;
  margin: 0; font-family: var(--font-heading); font-size: 32px;
  font-weight: 600; line-height: 1.5; letter-spacing: .06em; color: var(--color-terracotta);
}
#fonts .font-guide-heading { display: flex; align-items: center; justify-content: center; gap: 18px; }
#fonts .font-guide-heading::before,
#fonts .font-guide-heading::after {
  content: ''; display: block; width: 32px; height: 1px; background: currentColor; opacity: .65; flex: 0 0 auto;
}
#fonts .font-guide-intro { margin-top: 10px; }
#fonts .font-guide-intro p { margin: 0; font-size: 15px; line-height: 1.8; }
#fonts .font-guide-panel {
  position: relative;
  padding: 20px 18px 16px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 19px;
  background: linear-gradient(135deg,rgba(241,229,215,.78),rgba(253,250,246,.93) 42%,rgba(242,232,219,.72));
  box-shadow: 0 12px 28px rgba(96,70,51,.13);
}
#fonts .font-guide-panel + .font-guide-panel { margin-top: 36px; }
#fonts .font-guide-group-heading {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 16px; color: #663e30;
}
#fonts .font-guide-group-heading h3 {
  margin: 0; font: italic 400 36px/1.2 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.025em;
}
#fonts .font-guide-group-japanese {
  display: inline-block; padding-left: 16px; border-left: 1px solid #8b685c;
  font: 500 17px/1.3 var(--font-heading);
}
#fonts .font-guide-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
#fonts .font-guide-item {
  position: relative; min-width: 0; padding: 8px 8px 18px; border-radius: 15px;
  container-type: inline-size;
  background: rgba(255,253,250,.97); border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 6px 19px rgba(110,76,43,.07);
}
#fonts .font-guide-image { border-radius: 10px; aspect-ratio: 1.12; overflow: hidden; }
#fonts .font-guide-image .scene-img { width: 100%; height: 100%; object-fit: cover; }
#fonts .font-guide-placeholder { position: absolute; inset: 0; background: #f2e7d9; display: grid; place-items: center; font-size: 12px; color: #8f7760; }
#fonts .font-guide-placeholder[hidden] { display: none; }
#fonts .font-guide-title { margin-top: 14px; }
#fonts .font-guide-title h3 { margin: 0; font-family: var(--font-heading); font-size: 23px; font-weight: 600; line-height: 1.65; }
#fonts .font-guide-divider { height: 1px; margin: 9px 8px 10px; background: #e7d8c8; }
#fonts .font-guide-description p { margin: 0; font-size: 14px; line-height: 1.65; color: #51493f; }
#fonts .font-guide-intro p,
#fonts .font-guide-description p,
#fonts .font-guide-extra :is(h3,p) { white-space: pre !important; }
#fonts .font-guide-extras { margin-top: 32px; text-align: center; }
#fonts .font-guide-extras:empty { display: none; }
#fonts .font-guide-extra { margin-top: 16px; }
#fonts .font-guide-extra :is(h3,p) { margin: 0; line-height: 1.6; }
#fonts .font-guide-image .clone-media-button { left: 3px; top: 3px; max-width: calc(100% - 6px); padding: 6px 3px; font-size: 10px; }
@media (max-width: 767px) {
  #fonts.section { padding-left: 12px; padding-right: 12px; padding-bottom: 38px; }
  #fonts .font-guide-grid { padding-top: 48px; }
  #fonts .font-guide-header { margin-bottom: 36px; }
  #fonts .font-guide-heading { gap: 9px; }
  #fonts .font-guide-heading h2 { font-size: clamp(23px,6.3vw,28px); letter-spacing: .04em; }
  #fonts .font-guide-heading::before,
  #fonts .font-guide-heading::after { width: 24px; }
  #fonts .font-guide-intro { margin-top: 10px; }
  #fonts .font-guide-intro p { font-size: 11px; }
  #fonts .font-guide-panel { padding: 11px 7px 8px; border-radius: 14px; }
  #fonts .font-guide-panel + .font-guide-panel { margin-top: 25px; }
  #fonts .font-guide-group-heading { gap: 11px; margin: 0 5px 11px; }
  #fonts .font-guide-group-heading h3 { font-size: clamp(23px,6.3vw,27px); }
  #fonts .font-guide-group-japanese { padding-left: 11px; font-size: 12px; }
  #fonts .font-guide-cards { gap: 7px; }
  #fonts .font-guide-item { padding: 4px 4px 10px; border-radius: 10px; box-shadow: 0 6px 16px rgba(110,76,43,.08); }
  #fonts .font-guide-image { border-radius: 8px; }
  #fonts .font-guide-title { margin-top: 7px; }
  #fonts .font-guide-title h3 { font-size: 14px; line-height: 1.7; }
  #fonts .font-guide-divider { margin: 5px 5px 6px; }
  #fonts .font-guide-description p { font-size: clamp(7.5px,7.2cqw,8.5px); line-height: 1.55; }
}
