/* hub.ulyssesworkshop.com: the logo's palette (night navy, sailcloth, rope and signal red). */
:root {
  --navy: #020e20;
  --navy-2: #06182f;
  --navy-3: #0b223f;
  --line: rgba(243, 228, 203, 0.12);
  --line-strong: rgba(243, 228, 203, 0.24);
  --cream: #f4e5cc;
  --sand: #e3b98b;
  --rope: #cfae84;
  --red: #e3242b;
  --red-dark: #b8161d;
  --text: #f4e5cc;
  --muted: #a8b2c3;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --caps: 'Montserrat', 'Inter', system-ui, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Brand mark: the emblem with ULYSSES / WORKSHOP as in the logo. */
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-text { display: flex; flex-direction: column; line-height: 1; }
.mark-name { font-family: var(--serif); font-size: 22px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cream); }
.mark-sub { font: 800 10px/1 var(--caps); text-transform: uppercase; letter-spacing: 0.42em; color: var(--red); margin-top: 4px; }

.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(2, 14, 32, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: flex; gap: 28px; }
.nav a { font: 700 12px/1 var(--caps); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--cream); }

/* Kicker: the red tapered rules around WORKSHOP in the logo. */
.kicker {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font: 800 12px/1 var(--caps); letter-spacing: 0.34em; text-transform: uppercase; color: var(--red);
}
.rule { width: 44px; height: 4px; background: var(--red); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.rule + .rule, .kicker .rule:last-child { clip-path: polygon(0 0, 100% 50%, 0 100%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 13px/1 var(--caps); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); }
.btn-ghost:hover { border-color: var(--sand); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 12px; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 120px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, rgba(227, 185, 139, 0.10), transparent 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); color: var(--cream); max-width: 14ch; }
.lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 22px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; gap: 40px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts div { margin: 0; }
.facts dt { white-space: nowrap; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--sand); }
.facts dd { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hero-art img { width: min(100%, 520px); margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)); }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 64px; fill: var(--navy-2); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--navy); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 48px); color: var(--cream); }
.section-head p:not(.kicker) { color: var(--muted); margin: 16px 0 0; }
#juegos, #herramientas { background: var(--navy-2); }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.games > .game { grid-column: span 2; }
.games > .game:nth-child(-n+2) { grid-column: span 3; }
.game {
  display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.game:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.game-head { display: flex; align-items: center; gap: 18px; }
.app-icon { flex: none; border-radius: 18px; box-shadow: 0 0 0 1px var(--line-strong), 0 8px 20px rgba(0, 0, 0, 0.4); object-fit: cover; }
.game h3 { font-size: 30px; color: var(--cream); margin-top: 8px; }
.status { font: 700 10px/1 var(--caps); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }
.status-desarrollo { color: var(--muted); }
.tagline { margin: 20px 0 8px; font-weight: 600; color: var(--cream); }
.desc { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.feats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.feats li { padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--rope); }
.game-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.host { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillars article { padding: 32px 28px; border-top: 2px solid var(--red); background: rgba(2, 14, 32, 0.5); border-radius: 0 0 var(--radius) var(--radius); }
.pillar-n { font-family: var(--serif); font-size: 26px; color: var(--sand); }
.pillars h3 { font-size: 24px; color: var(--cream); margin: 10px 0 12px; }
.pillars p { margin: 0; color: var(--muted); font-size: 15px; }

/* Tools */
.tools { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.tool {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-2);
  text-decoration: none; transition: border-color .15s;
}
.tool:hover { border-color: var(--line-strong); }
.tool .app-icon { border-radius: 12px; }
.tool-text { flex: 1; min-width: 0; }
.tool h3 { font-size: 20px; color: var(--cream); }
.tool p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.lock { font: 700 10px/1.3 var(--caps); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rope); text-align: right; max-width: 150px; }
.arrow { font-size: 20px; color: var(--sand); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: #010a18; }
.foot-in { display: grid; gap: 28px; justify-items: center; text-align: center; }
.foot-brand { display: grid; justify-items: center; gap: 10px; }
.foot-brand p { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--cream); }
.fine { margin: 0; max-width: 640px; font-size: 12px; color: rgba(168, 178, 195, 0.7); }

@media (max-width: 1020px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .games > .game, .games > .game:nth-child(-n+2) { grid-column: span 1; }
}
@media (max-width: 880px) {
  .hero { padding: 40px 0 96px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(56vw, 280px); }
  .hero-text { text-align: center; }
  .hero h1, .lead { margin-inline: auto; }
  .cta, .facts { justify-content: center; }
  .pillars { grid-template-columns: 1fr; }
  .nav { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 700px) {
  .games { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .game { padding: 22px; }
  .facts { gap: 20px; }
  .facts dt { font-size: 28px; }
  .lock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game { transition: none; }
}
