/* ═══ legacy/style.css — vzhled stránky Ithaca Legacy ═══════════════════
   Motiv: klasické piano — slonovina, eben, tmavě vínový akcent, patkové
   písmo. Všechno je pod .legacy.                                       */

body { background: #F3EEE3; }

.legacy {
  --ivory: #F3EEE3; --ivory-2: #EAE3D3; --ebony: #17130F; --ink: #2A241D;
  --mute: #6E6457; --line: #D8CFBC; --wine: #7A2E2A; --brass: #A8864A;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--ivory); color: var(--ink);
  font: 400 17px/1.75 var(--sans); -webkit-font-smoothing: antialiased;
}
.legacy *, .legacy *::before, .legacy *::after { box-sizing: border-box; }
.legacy p { margin: 0 0 1em; text-wrap: pretty; }
.legacy p:last-child { margin-bottom: 0; }
.legacy h1, .legacy h2, .legacy h3 { margin: 0; font-weight: 400; font-family: var(--serif); }
.legacy a { color: var(--wine); text-decoration: none; border-bottom: 1px solid rgba(122,46,42,0.35); }
.legacy a:hover { border-bottom-color: var(--wine); }
.legacy img { max-width: 100%; height: auto; display: block; }

.l-wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.l-eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--wine); margin-bottom: 16px !important; }

/* ── hero ── */
.l-hero { padding: 96px 0 0; }
.l-title { font-size: clamp(56px, 10vw, 120px); line-height: 0.95; letter-spacing: -0.02em; color: var(--ebony); }
.l-title em { font-style: italic; color: var(--wine); }
.l-lead { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.5; max-width: 32em; margin: 28px 0 32px !important; color: var(--ink); }
/* proužek klaviatury */
.l-keys { margin-top: 72px; height: 56px; border-top: 1px solid var(--ebony); border-bottom: 1px solid var(--ebony);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100%/52 - 1px), var(--ebony) calc(100%/52 - 1px) calc(100%/52)),
    var(--ivory);
  position: relative; }
.l-keys::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 58%;
  background: repeating-linear-gradient(90deg,
    transparent 0 1.37%, var(--ebony) 1.37% 2.47%, transparent 2.47% 3.30%, var(--ebony) 3.30% 4.40%,
    transparent 4.40% 7.14%, var(--ebony) 7.14% 8.24%, transparent 8.24% 9.07%, var(--ebony) 9.07% 10.17%,
    transparent 10.17% 10.99%, var(--ebony) 10.99% 12.09%, transparent 12.09% 13.4615%); }
/* jedna oktáva = 7 bílých z 52 = 13.4615 % šířky; černé klávesy sedí na hranicích bílých */

.l-badge { display: inline-flex; align-items: center; gap: 9px; font: 500 12px/1 var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass);
  border: 1px solid currentColor; padding: 9px 14px; }
.l-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.l-badge--ok { color: var(--wine); }

/* ── sekce ── */
.l-sec { padding: 88px 0 0; }
.l-sec:last-of-type { padding-bottom: 96px; }
.l-h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; color: var(--ebony); margin-bottom: 32px !important; }
.l-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
.l-cols--bank { align-items: start; }

.l-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ebony); }
.l-card { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--line); }
.l-card:nth-child(odd) { border-right: 1px solid var(--line); }
.l-card:nth-child(even) { padding-left: 32px; padding-right: 0; }
.l-card h3 { font-size: 24px; color: var(--ebony); margin-bottom: 10px; }
.l-card p { font-size: 15.5px; color: var(--mute); }

.l-note { margin-top: 40px; padding: 24px 28px; background: var(--ivory-2); border-left: 3px solid var(--brass); font-size: 15px; color: var(--ink); }
.l-note strong { color: var(--ebony); font-weight: 600; }

.l-shot { margin: 40px 0 0; padding: 10px; background: var(--ebony); }

.l-box { border: 1px solid var(--line); background: #fff8; padding: 30px 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.l-box p { color: var(--mute); font-size: 15.5px; margin: 0 !important; }
.l-link { font-size: 15px; }

/* ── HW: tmavá eben sekce ── */
.l-sec--dark { background: var(--ebony); color: #E9E1D0; margin-top: 88px; padding-top: 88px; }
.l-sec--dark .l-h2 { color: #F6EFDF; }
.l-sec--dark .l-eyebrow { color: var(--brass); }
.l-sec--dark a { color: #E3B98A; border-bottom-color: rgba(227,185,138,0.4); }
.l-miles { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid #3A322A; }
.l-miles li { display: grid; grid-template-columns: 170px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid #3A322A; }
.l-miles li p { color: rgba(233,225,208,0.78); font-size: 15.5px; margin: 0; }
.l-miles__st { font: 500 12px/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.l-miles li.done .l-miles__st { color: #E3B98A; }
.l-miles li.done .l-miles__st::before { content: "✓ "; }
.l-placeholder { margin-top: 48px; height: 200px; border: 1px dashed #4A4036; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 20px; font-size: 14px; color: rgba(233,225,208,0.6); }

@media (max-width: 860px) {
  .l-wrap { padding: 0 16px; }
  .l-hero { padding-top: 48px; }
  .l-keys { margin-top: 48px; height: 40px; }
  .l-sec { padding-top: 56px; }
  .l-sec--dark { margin-top: 56px; padding-top: 56px; }
  .l-cols, .l-cards { grid-template-columns: 1fr; }
  .l-card, .l-card:nth-child(even) { padding: 24px 0; border-right: 0; }
  .l-miles li { grid-template-columns: 1fr; gap: 8px; }
}

/* ═══ Oživení (2026-11-25) — pohyb řeší legacy/legacy.js ═════════════════
   Klaviatura v hero hraje: klávesy se rozsvěcují (samy i pod kurzorem)
   a tiše s nimi „rezonují“ oktáva a kvinta. Obsah stránky beze změny.  */
.l-hero { position: relative; overflow: hidden; overflow: clip;
  background: radial-gradient(900px 520px at 85% 0%, rgba(168,134,74,0.20), transparent 65%),
              radial-gradient(700px 420px at 0% 100%, rgba(122,46,42,0.07), transparent 70%); }
.l-eyebrow, .l-title, .l-lead, .l-hero .l-badge { animation: l-up 1s cubic-bezier(.2,.7,.2,1) both; }
.l-title { animation-delay: .08s; } .l-lead { animation-delay: .22s; } .l-hero .l-badge { animation-delay: .34s; }
.l-sec .l-eyebrow { animation: none; }
@keyframes l-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.l-title em { background: linear-gradient(100deg, #7A2E2A 20%, #B0503E 50%, #7A2E2A 80%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
  animation: l-sheen 9s ease-in-out infinite; }
@keyframes l-sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.l-badge { border-radius: 999px; }
.l-badge--ok::before { animation: l-pulse 2.4s ease-in-out infinite; }
@keyframes l-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(122,46,42,.45); } 60% { box-shadow: 0 0 0 7px rgba(122,46,42,0); } }

/* klaviatura: vyšší, s hloubkou; .l-keys__hit vkládá legacy.js (52 bílých kláves) */
.l-keys { height: 92px; box-shadow: 0 26px 40px -26px rgba(23,19,15,.55); cursor: pointer; }
.l-keys::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(23,19,15,.16)); }
.l-keys::after { z-index: 1; pointer-events: none; box-shadow: inset 0 -3px 0 rgba(255,255,255,.08); }
.l-keys__hit { position: absolute; inset: 0; display: flex; }
.l-keys__hit i { flex: 1 1 0; }

/* karty „Jak hraje“ */
.l-card { position: relative; transition: background .4s; }
.l-card h3 { transition: color .3s; }
.l-card::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--wine);
  transition: width .6s cubic-bezier(.2,.7,.2,1); }
.l-card:hover::before { width: 100%; }
.l-card:hover h3 { color: var(--wine); }

/* screenshot editoru: rám nástroje */
.l-shot { margin-top: 56px; padding: 12px; border-radius: 10px;
  box-shadow: 0 40px 70px -38px rgba(23,19,15,.75), 0 0 0 1px rgba(168,134,74,.35) inset; }
.l-shot img { border-radius: 4px; }
.l-box { border-radius: 10px; box-shadow: 0 24px 40px -32px rgba(23,19,15,.4); }

/* HW: milníky s jemnou linkou postupu */
.l-sec--dark { background: radial-gradient(900px 420px at 80% 0%, rgba(168,134,74,0.13), transparent 65%), var(--ebony); }
.l-miles li { transition: background .3s, padding-left .4s cubic-bezier(.2,.7,.2,1); }
.l-miles li:hover { background: rgba(233,225,208,.035); padding-left: 14px; }
.l-placeholder { border-radius: 10px; }

@media (max-width: 860px) { .l-keys { height: 64px; } .l-shot { padding: 6px; margin-top: 36px; } }
@media (prefers-reduced-motion: reduce) {
  .l-eyebrow, .l-title, .l-lead, .l-hero .l-badge, .l-title em, .l-badge--ok::before { animation: none; }
}
