@import './wordmark.css';
@font-face {
  font-family: 'YoWorlds';
  src: url('/assets/site/yoworlds-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

/* Shared identity for the website and player lobby. World controls retain their own theme. */
.site-page,
.lobby-page {
  --paper: #f8f7f2;
  --ink: #20231e;
  --muted: #66695f;
  --line: #ddded5;
  --accent: #c7411c;
  --orange: #f05c32;
  --panel: #ffffff;
  --text: #20231e;
  --lime: #c7411c;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  font-family: 'YoWorlds', 'Segoe UI', sans-serif;
  font-synthesis: none;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.site-page *,
.lobby-page * {
  box-sizing: border-box;
}
.site-page {
  margin: 0;
}
.site-page a {
  color: inherit;
  text-decoration: none;
}
.site-page button,
.site-page input {
  font: inherit;
}
.site-page :focus-visible,
.lobby-page :focus-visible {
  outline: 3px solid #256b9b;
  outline-offset: 5px;
}
.site-page ::selection,
.lobby-page ::selection {
  background: #ffd7bd;
  color: var(--ink);
}
.site-page [hidden] {
  display: none !important;
}
.site-wrap {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 64px;
}
.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand,
.lobby-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  letter-spacing: -1.2px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}
.site-brand > .brand-symbol,
.lobby-page .brand > .brand-symbol {
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 550;
}
.site-nav a:not(.nav-cta):hover,
.text-link:hover {
  color: var(--accent);
}
.site-nav .nav-cta {
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 7px;
}
.site-nav .nav-cta:hover {
  background: var(--ink);
  color: white;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.site-page p {
  line-height: 1.65;
  color: var(--muted);
}
.site-page h1,
.site-page h2,
.site-page h3 {
  font-weight: 650;
  margin: 0;
}
.site-page .eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #548049;
  display: inline-block;
  flex-shrink: 0;
}
.site-hero {
  padding: 38px 0 44px;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: 32px;
}
.hero-copy {
  padding: 30px 0;
}
.hero-copy h1 {
  font-size: clamp(52px, 5.4vw, 76px);
  letter-spacing: -4.5px;
  line-height: 1.02;
  margin: 25px 0 26px;
}
.hero-copy h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -4px;
}
.hero-copy > p {
  max-width: 410px;
  font-size: 18px;
  margin: 0;
}
.site-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}
.site-page .button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
  text-decoration: none;
}
.site-page .button:hover {
  background: #3b4235;
  transform: translateY(-2px);
}
.site-page .button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #b9bdb1;
}
.site-page .button.secondary:hover {
  background: #e9ecdf;
}
.site-page button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.text-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  padding-block: 12px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.hero-art {
  margin: 0;
  position: relative;
  min-width: 0;
}
.hero-image {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 57% center;
  border-radius: 120px 120px 12px 12px;
  background: #c3dfdc;
}
.postcard-label {
  position: absolute;
  left: -20px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--paper);
  border: 1px solid #fff;
  box-shadow: 0 7px 20px #20332212;
  border-radius: 6px;
  padding: 15px 20px;
  transform: rotate(-3deg);
}
.postcard-label .label-arrow {
  font-size: 30px;
  color: var(--accent);
}
.postcard-label strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.postcard-label small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.network-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 13px;
}
.network-strip > span:first-child {
  color: var(--muted);
}
.network-strip .strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.network-strip .strip-symbol {
  color: var(--accent);
  font-size: 18px;
}
.worlds-section {
  padding-block: 74px;
}
.section-heading-site {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}
.section-heading-site h2 {
  font-size: clamp(32px, 3.2vw, 46px);
  letter-spacing: -2px;
  margin-top: 12px;
  line-height: 1.05;
}
.section-heading-site p {
  margin: 10px 0 0;
}
.world-postcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.world-postcard {
  display: block;
  min-width: 0;
}
.world-postcard .postcard-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #bfdcce;
}
.world-postcard img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s;
}
.world-postcard:hover img {
  transform: scale(1.035);
}
.world-kind {
  position: absolute;
  left: 16px;
  top: 16px;
  border-radius: 4px;
  padding: 7px 10px;
  background: #f8f7f2ed;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.postcard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.postcard-heading h3 {
  font-size: 24px;
  letter-spacing: -0.9px;
}
.postcard-heading > span {
  display: grid;
  place-items: center;
  border: 1px solid #c8cbbf;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
}
.world-postcard:hover .postcard-heading > span {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.world-postcard p {
  margin: 6px 45px 0 0;
  font-size: 15px;
}
.illustration-note {
  font-size: 12px;
  margin: 20px 0 0;
}
.identity-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 54px 0 64px;
  border-top: 1px solid var(--line);
}
.identity-section h2 {
  font-size: clamp(35px, 3.5vw, 49px);
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 16px 0 22px;
}
.identity-section p {
  max-width: 440px;
  margin: 0;
}
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.journey-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.journey-steps li:first-child {
  padding-top: 0;
}
.journey-steps li:last-child {
  border: 0;
  padding-bottom: 0;
}
.journey-steps .step {
  padding-top: 4px;
  color: var(--accent);
  font-size: 13px;
}
.journey-steps h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin-bottom: 7px;
}
.journey-steps p {
  font-size: 15px;
}
.builder-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  background: #e7ebd9;
  border-radius: 10px;
  padding: 42px 46px;
}
.builder-band h2 {
  font-size: 35px;
  letter-spacing: -1.5px;
  margin-top: 12px;
}
.builder-band p {
  margin: 13px 0 0;
  max-width: 600px;
  font-size: 16px;
}
.site-footer {
  margin-top: 66px;
  padding: 27px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer .footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.6px;
  font-weight: 700;
}
.site-footer > div {
  display: flex;
  align-items: center;
  gap: 23px;
}
.site-footer a:hover {
  color: var(--accent);
}
.guide {
  max-width: 880px;
  margin: auto;
  padding: 56px 0 30px;
}
.guide .label {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.guide h1 {
  font-size: clamp(44px, 5.5vw, 70px);
  letter-spacing: -3px;
  line-height: 1.05;
  margin: 24px 0;
}
.guide h2 {
  font-size: 28px;
  letter-spacing: -0.9px;
  margin: 44px 0 14px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 25px;
}
.guide p,
.guide li {
  font-size: 17px;
}
.guide a:not(.button) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide .actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.guide .code {
  padding: 24px;
  background: #e9ecdf;
  border: 1px solid #d0d5c2;
  color: #303d28;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.guide code {
  overflow-wrap: anywhere;
}
.guide #connect-form label {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  font-size: 15px;
  font-weight: 550;
}
.guide #connect-form input {
  width: 100%;
  padding: 15px;
  background: white;
  border: 1px solid #bbbfb2;
  border-radius: 5px;
  color: var(--ink);
}
.guide #connect-status {
  color: #445c31;
  background: #e7ebd9;
  padding: 16px;
  border-radius: 6px;
}
.guide #connect-status:empty {
  display: none;
}
.guide #my-worlds p {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (min-width: 1441px) {
  .hero-copy h1 {
    font-size: 80px;
  }
}
@media (max-width: 1100px) {
  .site-wrap {
    padding-inline: 36px;
  }
  .site-hero {
    gap: 25px;
  }
  .hero-copy h1 {
    font-size: 62px;
    letter-spacing: -3.8px;
  }
  .hero-image {
    height: 460px;
    border-radius: 95px 95px 10px 10px;
  }
  .network-strip {
    font-size: 12px;
    gap: 15px;
  }
  .identity-section {
    gap: 45px;
  }
}
@media (max-width: 760px) {
  .site-wrap {
    padding-inline: 24px;
  }
  .site-header {
    height: 84px;
  }
  .site-brand {
    font-size: 22px;
  }
  .site-nav {
    gap: 18px;
    font-size: 14px;
  }
  .site-nav .hide-small {
    display: none;
  }
  .site-nav .nav-cta {
    padding: 10px 13px;
  }
  .site-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 0 34px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy h1 {
    font-size: clamp(50px, 9vw, 70px);
    letter-spacing: -3px;
    margin-block: 23px;
  }
  .hero-copy h1 em {
    letter-spacing: -3px;
  }
  .hero-copy > p {
    max-width: 480px;
    font-size: 17px;
  }
  .hero-image {
    height: 370px;
    border-radius: 90px 90px 9px 9px;
    object-position: 50% 48%;
  }
  .postcard-label {
    left: 14px;
    bottom: 18px;
  }
  .network-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    font-size: 12px;
  }
  .worlds-section {
    padding-block: 48px;
  }
  .section-heading-site {
    gap: 16px;
  }
  .section-heading-site h2 {
    letter-spacing: -1.5px;
  }
  .section-heading-site > .text-link {
    display: none;
  }
  .world-postcards {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  .world-postcard img {
    height: 240px;
  }
  .identity-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 42px;
  }
  .builder-band {
    padding: 30px 25px;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .builder-band h2 {
    font-size: 31px;
  }
  .builder-band .button {
    justify-self: start;
  }
  .site-footer {
    margin-top: 45px;
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .site-footer > div {
    flex-wrap: wrap;
    gap: 15px;
  }
  .guide {
    padding-top: 35px;
  }
  .guide h1 {
    letter-spacing: -2px;
  }
}
@media (max-width: 600px) {
  .site-nav .builder-nav {
    display: none;
  }
}
@media (max-width: 400px) {
  .site-wrap {
    padding-inline: 18px;
  }
  .site-brand {
    font-size: 19px;
    gap: 7px;
  }
  .site-brand > .brand-symbol {
    width: 30px;
    height: 30px;
  }
  .site-nav {
    gap: 12px;
  }
  .site-actions {
    gap: 12px;
  }
  .site-page .button {
    gap: 22px;
    padding-inline: 17px;
  }
  .hero-image {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-page *,
  .lobby-page * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
