/* Homepage typography is self-hosted; both families include their OFL licenses. */


.home-page .header nav { gap: 25px; }
.home-page .hero { height: 570px; border: 0; outline: 0; }
.home-page .hero h1 { font-family: 'Grenze Gotisch', Georgia, serif; font-weight: 500; font-size: clamp(60px, 11.5vw, 180px); letter-spacing: -.035em; line-height: 1.12; }
.home-page .hero-subtitle { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: clamp(26px, 2.8vw, 39px); }
.world-directory { max-width: 1440px; padding: 28px 5.2% 0; margin: 0 auto; scroll-margin-top: 24px; }
.directory-heading { display: flex; align-items: center; gap: 24px; margin: 0 0 42px; color: #aa858c; font-size: 11px; letter-spacing: 2.5px; }
.directory-divider { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #8d354d 35%, #8d354d 65%, transparent); }
.directory-divider::after { content: ''; position: absolute; width: 7px; height: 7px; top: -3px; left: calc(50% - 3px); transform: rotate(45deg); background: #9b4358; box-shadow: 0 0 14px #a5224350; }
.world-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; border: 0; }
.world-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  padding: 32px 25px 36px 15px;
  min-height: 330px;
  border: 0;
  background: radial-gradient(ellipse at 8% 45%, #65304719, transparent 75%), linear-gradient(115deg, #211e2a55, #10192300 85%);
}
/* Short illuminated corners define each panel without a rigid table grid. */
.world-group::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #9f435c, transparent) left top / 78px 1px no-repeat,
    linear-gradient(#9f435c, transparent) left top / 1px 78px no-repeat,
    linear-gradient(270deg, #70364c, transparent) right bottom / 78px 1px no-repeat,
    linear-gradient(0deg, #70364c, transparent) right bottom / 1px 78px no-repeat;
}
.world-group::after { content: ''; position: absolute; bottom: -4px; left: calc(50% - 4px); width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid #9b4a60; background: #291b2a; box-shadow: 0 0 15px #7e233e40; pointer-events: none; }
.world-emblem { container-type: inline-size; position: relative; align-self: stretch; min-width: 0; min-height: 190px; overflow: hidden; }
.world-emblem img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; filter: brightness(0) invert(.73) sepia(.15) saturate(1.3); opacity: .85; transition: opacity .25s ease; }
/* These tall emblems have wide transparent side margins. Cover fills their
   column vertically; only those empty margins are clipped. Round emblems
   use contain so their complete outlines always remain visible. */
.world-group:nth-child(-n+2) .world-emblem img { height: min(100%, 200cqw); margin: auto; object-fit: cover; }
.world-group:hover .world-emblem img { opacity: 1; }
.world-group-content { min-width: 0; padding-top: 2px; }
.world-group h2 { font: 500 clamp(29px, 2.55vw, 37px)/1.13 'Grenze Gotisch', Georgia, serif; color: #dfa0ab; margin: 0 0 22px; text-wrap: balance; }
.world-links { list-style: none; margin: 0; padding: 0; }
.world-links li { margin: 0; padding: 0; }
.world-links a { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; color: #c2c9d1; font-size: 15px; line-height: 1.55; border: 0; transition: color .2s, background .2s; }
.world-links a::before { content: ''; width: 4px; height: 4px; flex: 0 0 4px; background: #854358; transform: rotate(45deg); align-self: center; }
.world-links a>span:first-child { flex: 1; }
.world-links a:hover { color: #f5dce2; background: linear-gradient(90deg, #76304728, transparent); }
.link-arrow { font-size: 14px; color: #ac7080; flex-shrink: 0; }
.home-join { max-width: 1290px; margin: 0 auto; padding: 58px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-join h2 { font: 500 42px/1.2 'Cormorant Garamond', Georgia, serif; margin: 12px 0 15px; }
.home-join p { font-size: 15px; line-height: 1.8; color: #a4afbc; margin: 0; }
.home-join p a { color: #d5b4bc; text-decoration: underline; text-underline-offset: 4px; }
.home-join .primary { flex-shrink: 0; }
@media (max-width: 1450px) { .home-join { margin: 0 8%; } }
@media (max-width: 1100px) {
  .home-page .header { flex-wrap: wrap; height: auto; padding-top: 15px; }
  .home-page .header nav { order: 3; width: 100%; height: 46px; justify-content: center; gap: 32px; }
  .home-page .header-link { margin-bottom: 14px; }
  .world-grid { gap: 35px 24px; }
  .world-group { grid-template-columns: minmax(90px, 37%) minmax(0, 1fr); gap: 16px; padding: 28px 18px 30px 10px; }
  .world-group h2 { font-size: 30px; }
}
@media (max-width: 760px) {
  .home-page .hero { height: 480px; }
  .home-page .hero h1 { font-size: 13.6vw; }
  .home-page .header nav { justify-content: space-between; gap: 12px; height: auto; min-height: 50px; font-size: 12px; }
  .home-page .header nav a { padding: 9px 0; line-height: 1.5; }
  .home-page .header nav a:nth-child(3) { max-width: 105px; }
  .world-directory { padding: 20px 6% 0; }
  .directory-heading { gap: 13px; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 30px; }
  .world-grid { grid-template-columns: 1fr; gap: 32px; }
  .world-group { grid-template-columns: minmax(90px, 34%) minmax(0, 1fr); gap: 18px; padding: 26px 14px 30px 8px; min-height: 245px; }
  .world-group h2 { font-size: 32px; margin-bottom: 17px; }
  .world-emblem { min-height: 175px; }
  .world-links a { font-size: 15px; padding: 11px 0; gap: 9px; }
  .home-join { flex-direction: column; align-items: flex-start; margin: 0 6%; padding: 42px 0; gap: 24px; }
  .home-join h2 { font-size: 36px; }
  .home-join p { font-size: 16px; }
}
@media (max-width: 380px) {
  .world-group { grid-template-columns: minmax(70px, 29%) minmax(0, 1fr); gap: 12px; }
  .world-group h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { .world-emblem img, .world-links a { transition: none; } }
